memory
Inspect, verify, and correct stored knowledge to keep outdated or wrong facts from misleading future agents; browse, update, supersede, resolve, and track audit history.
Instructions
Inspect and correct stored knowledge.
WHEN TO USE: when a memory surfaced with anchor_status other than ACTIVE and you have just confirmed whether it still holds, or when something stored is wrong. A memory that is merely out of date should be corrected or superseded, never left to rot - an unverified fact costs the next agent more than no fact at all. AFTER THIS: continue the task. Use action='verify' the moment you have the evidence, while you still have it.
Actions: list browse memories, filterable by kind, status, anchor_status. Bodies are included, so this reads many at once rather than costing one get() per memory. get one memory with its anchors, edges and version history. Re-anchoring logs are summarised; action='history' has them raw. history the full re-anchoring audit trail for one memory. verify confirm a memory still applies. Clears NEEDS_REVIEW/DRIFTED. correct edit a memory in place. Previous text is versioned, not lost. supersede replace a memory, keeping both and the link between them. resolve mark a warning or bug as no longer live. guard record that an existing test covers an existing rule, when the two were written in separate calls. Pass the rule as memory_id and the test_evidence memory id as body. reanchor re-run the anchoring cascade for one memory. feedback vote on a memory you were shown: signal='helpful', 'not_helpful', 'stale' or 'wrong' (stale and wrong need a reason). Wrong or repeatedly unhelpful memories stop being volunteered by hooks; nothing is deleted.
Knowledge ICN derived itself, rather than being told. These are proposals: they are down-ranked in search and never treated as rules until settled. infer look for patterns across stored knowledge and the call graph, and propose what they imply. Writes nothing but unreviewed candidates. Safe to re-run: a proposal already made, or already declined, is not raised again. review_queue the proposals awaiting a decision, best-supported first. review settle one: memory_id plus signal='approve' (promote it to a stated fact), 'decline' (forget it), or 'undo'.
Handoffs, "where I left off" for the next session (claimed exactly once, by its session-start hook or workspace(action='open')): handoff write one before stopping mid-task: body=summary, plus open_questions, next_steps, files. handoff_list recent handoffs and their status, without claiming. handoff_cancel withdraw an open one (memory_id=handoff id).
Rules promoted into this repository's CLAUDE.md and AGENTS.md, a small capped block changed only by these commands: rules_recommend ranked, codebase-specific candidates. Read-only. rules_approve promote memory_id (body= optional wording). Refused at the cap, naming the weakest rule to remove first. rules_edit reword a promoted rule (body=). rules_remove demote; the memory itself is unchanged. rules_list what is promoted, and which rules have gone stale. Promote only on the user's say-so: these edit files they own.
Args:
action: one of the actions above.
memory_id: target memory.
body: new text for correct and supersede.
kind: new kind for correct, or a filter for list.
severity: new severity for correct.
status: filter for list (ACTIVE, SUPERSEDED, RESOLVED).
anchor_status: filter for list (ACTIVE, NEEDS_REVIEW, DRIFTED, ORPHANED).
reason: why the change is being made. Recorded.
actor: 'agent' or 'human'.
limit: maximum rows for list.
offset: rows to skip for list. With total and next_offset in the
reply, this pages through a filter larger than one call can carry.
signal: for feedback.
open_questions: for handoff.
next_steps: for handoff.
files: for handoff.
root: repository path. Defaults to the server's working directory.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| kind | No | ||
| root | No | ||
| actor | No | agent | |
| files | No | ||
| limit | No | ||
| action | No | list | |
| offset | No | ||
| reason | No | ||
| signal | No | ||
| status | No | ||
| severity | No | ||
| memory_id | No | ||
| next_steps | No | ||
| anchor_status | No | ||
| open_questions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||