| name | remember |
| description | Review auto-memory entries and propose promotions, cleanups, and deduplication across all memory layers. |
| tags | ["memory","review","cleanup","organisation"] |
| when_to_use | Use when you want to review, organise, or promote auto-memory entries. Also useful for cleaning up outdated or conflicting entries across MEMORY.md, global memory, and auto-memory. |
| allowed_tools | ["Read","Write","Edit","Bash","MemoryRead","MemoryWrite"] |
| user_invocable | true |
Memory Review
Goal
Review koda's memory landscape and produce a clear report of proposed changes, grouped by action type. Do NOT apply changes โ present proposals for user approval first.
Step 1: Gather All Memory Layers
Read every active memory layer:
- Auto-memory โ already in your system prompt context; review it there
- Project memory โ read whichever file exists at the project root (first match wins):
MEMORY.md โ koda native
CLAUDE.md โ Claude Code compat
AGENTS.md โ Codex compat
- Global memory โ read
~/.config/koda/memory.md
ls MEMORY.md CLAUDE.md AGENTS.md 2>/dev/null | head -1
Success criteria: you have the contents of all three layers and can compare them.
Step 2: Classify Each Auto-Memory Entry
For each substantive entry in auto-memory, determine the best destination:
| Destination | What belongs there | Examples |
|---|
| MEMORY.md (project) | Project conventions and instructions that all contributors working with koda in this repo should follow | "use cargo nextest not cargo test", "API routes use kebab-case", "always run cargo clippy before committing" |
Global memory (~/.config/koda/memory.md) | Personal preferences specific to this user, not tied to any one project | "I prefer concise responses", "always explain trade-offs", "don't auto-commit", "run tests before committing" |
| Stay in auto-memory | Working notes, temporary context, or entries that don't clearly fit elsewhere | Session-specific observations, uncertain patterns, one-off notes |
Important distinctions:
MEMORY.md and global memory contain instructions for koda, not preferences for external tools (editor theme, IDE keybindings, shell aliases don't belong in either)
- Workflow practices (PR conventions, merge strategy, branch naming) are ambiguous โ ask the user whether they're personal or project-wide
- When unsure, ask rather than guess
Success criteria: every entry has a proposed destination, or is flagged as ambiguous.
Step 3: Identify Cleanup Opportunities
Scan across all layers for:
- Duplicates: auto-memory entries already captured in
MEMORY.md or global memory โ propose removing from auto-memory
- Outdated: entries in
MEMORY.md or global memory contradicted by newer auto-memory entries โ propose updating the older layer
- Conflicts: contradictions between any two layers โ propose resolution, noting which is more recent
- Bloat: very long auto-memory entries that could be summarised without losing meaning
Success criteria: all cross-layer issues identified.
Step 4: Present the Report
Output a structured report grouped by action type:
- Promotions โ entries to move, with destination and rationale
- Cleanup โ duplicates, outdated entries, conflicts to resolve
- Ambiguous โ entries where you need the user's input before acting
- No action needed โ brief note on entries that should stay put
If auto-memory is empty, say so and offer to review MEMORY.md and global memory for stale content.
Rules
- Present ALL proposals before making any changes
- Do NOT modify files without explicit user approval for each change
- Do NOT create new memory files unless the user confirms they want one
- Ask about ambiguous entries โ do not guess