manage_memory
Memory upkeep. cleanup: queue likely duplicate, stale and misfiled records. import: a memory export or edited FlowState markdown into review. stale: facts unchecked for 60+ days, and records flagged possibly stale. files_changed: paths you changed; flags records whose file evidence names them. mark_checked: you re-checked one (clears the flag). set_source: correct an origin (user_stated waits for the user). set_aside: no longer applies but kept (needs reason; out of brief and search; restore_set_aside or undo). delete: only when the user asks; undo restores it; with approvals on it waits for the user's approve (manage_review). Requires project. Returns counts and ids.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"project": "<project>"
},
"name": "manage_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | stale: unchecked for this many days. Default 60. | |
| kind | No | import (memory format): record kind for each memory. Default learning. | |
| text | No | import: the file contents. Max 200,000 chars. | |
| kinds | No | cleanup: which checks. Omit for all three. | |
| limit | No | stale: max facts. Default 20. | |
| model | No | Model name if known. Never guess. | |
| paths | No | files_changed (required): the files you changed, repo-relative. | |
| action | Yes | The operation; see the tool description. | |
| format | No | import: memory (default; one memory per line or bullet) or flowstate_markdown (an edited FlowState markdown export). | |
| origin | No | import: where it came from, such as Claude or ChatGPT. | |
| reason | No | set_aside (required): why the record no longer applies. | |
| source | No | set_source (required) / mark_checked (optional): user_stated, ai_inferred or from_code. | |
| project | Yes | Project name or id. Required. | |
| record_id | No | delete / mark_checked / set_source / set_aside / restore_set_aside: the record's id. | |
| record_type | No | delete / mark_checked / set_source / set_aside / restore_set_aside: the record's type (all but delete: todo, decision, change, learning, problem, variable, method). |