memory_write
Store a falsifiable codebase fact with evidence, including guardrail level for rules that must never or always be followed. Use to persist decisions, conventions, gotchas, or failed approaches as checkable memories.
Instructions
Persist a new memory about this codebase. Write the claim as a FALSIFIABLE statement (something that could be checked against the code). Attach evidence whenever possible. For kind=GUARDRAIL, set guardrail_level (never|always|ask-first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Memory kind, e.g. DECISION, CONVENTION, GOTCHA, GUARDRAIL | |
| claim | Yes | Falsifiable statement, e.g. 'All DB access goes through src/db/store.ts; nothing else imports better-sqlite3' | |
| paths | No | Paths this memory applies to (omit for repo-wide) | |
| symbols | No | Symbols (functions/classes) this applies to | |
| evidence | No | Grounding evidence, e.g. {type:'COMMIT_REF', payload:'abc123'} or {type:'STATIC_CHECK', payload:'! grep -rl better-sqlite3 src --include=*.ts | grep -v store.ts'} | |
| created_by | No | Agent identifier, e.g. 'claude-code' | |
| guardrail_level | No | Required for kind=GUARDRAIL: 'never' (refuse), 'always' (do without asking), 'ask-first' (confirm with user) |