Teach CLARKE through decisions, policies, corrections, and feedback. Use when: 'remember this', 'record decision', 'add policy', 'that was wrong'
Parse the user's input to identify one of four modes:
Triggers: "we decided", "the decision is", "record that we chose"
Ask for:
Call clarke_create_decision with the details
Confirm: "Decision recorded. CLARKE will reference this in future queries about this topic."
Triggers: "always", "never", "from now on", "the rule is", "add a policy"
Ask for:
Call clarke_create_policy
Explain: "Policy created in draft status. It may need approval before influencing agent behavior. Use /clarke-review to check."
Triggers: "that was wrong", "actually it should be", "incorrect"
Ask for:
Call clarke_feedback with accepted: false and detailed notes
Explain: "Correction submitted. If enough similar corrections accumulate, CLARKE will propose a behavioral directive. Check /clarke-review periodically."
Triggers: "that was great", "perfect", "exactly right"
clarke_feedback with accepted: true| Tool | Purpose |
|---|---|
clarke_create_decision | Record an architectural or process decision |
clarke_create_policy | Create a new behavioral policy |
clarke_feedback | Submit positive or negative feedback |
User says: "we decided to use structlog instead of stdlib logging because it gives us structured JSON output"
Agent does:
clarke_create_decision