manage_memory
Maintain shared memory hygiene: flag duplicate, stale, or misfiled records as suggestions, import memory exports, mark facts rechecked, correct sources, and safely delete user-requested entries.
Instructions
Memory upkeep. cleanup: queue likely duplicate, stale and misfiled records as suggestions (rejected ideas not repeated). import: a memory export (Claude, ChatGPT) or edited FlowState markdown into the review queue. stale: facts (paths, ports, URLs, config) unchecked for 60+ days (read-only). mark_checked: you re-checked one. set_source: correct an origin (user_stated waits for the user). delete: only when the user asks; deletes one record (and its attempts or links) after a safety copy, undo restores it; with approvals on it waits for the user's approve (manage_review). A changed fact is log_work. Requires project. Returns counts and ids, {facts} or the result.
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. | |
| 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 export-md` file). | |
| origin | No | import: where it came from, such as Claude or ChatGPT. | |
| 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: the record's id. | |
| record_type | No | delete / mark_checked / set_source: the record's type (the last two: todo, decision, change, learning, problem, variable, method). |