context_note
Capture codebase knowledge the user states in chat—decisions, conventions, guardrails—into durable, reviewable memory.
Instructions
Capture a durable fact the USER just stated in chat. Call this IMMEDIATELY when the user shares codebase knowledge — don't wait for session end. ALWAYS trigger on: 'we use X because Y' (DECISION), 'never do X' (GUARDRAIL), 'we always X' (CONVENTION), 'we tried X, it failed' (FAILED_APPROACH), 'the architecture is...' (ARCHITECTURE). Skip task-specific requests like 'fix this bug'. User-stated facts are queued for review with high trust (HUMAN_ATTESTED evidence).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Best-fit memory kind (e.g. user says 'never do X' → GUARDRAIL, 'we tried X, failed' → FAILED_APPROACH, 'we always X' → CONVENTION) | |
| paths | No | Repo-relative paths the fact applies to (omit for repo-wide) | |
| quote | No | The user's own words, verbatim (preserves nuance for the reviewer) | |
| symbols | No | Symbols (functions/classes) it applies to | |
| agent_id | No | Your agent identifier, e.g. 'claude-code' | |
| statement | Yes | The fact, rephrased as a falsifiable claim about the codebase (e.g. 'Payments retries are handled in src/queue; handlers must be idempotent') | |
| guardrail_level | No | For kind=GUARDRAIL: never | always | ask-first |