Cleanup
Sequentially run cleanup tasks before session end.
Topics
| Topic | Description | Guide |
|---|---|---|
| config | Enable/disable individual tasks | config.md |
| hook-review | Review hook errors and suggest improvements | hook-review.md |
| rag-store | Persist to RAG before session end + sync completed fix_plan items (medium matrix fallback) | rag-store.md |
| run | 4-step sequential execution (commit → self-improve → knowledge persist → backlog delegation) + automated helper script execution (fa-analyze.py, hybrid_sweep_rag.py, sync_dual_wiki.py) |
run.md |
| run-self-improve | Step 2 body — mistake analysis, hook/skill review, pattern detection | run-self-improve.md |
| run-knowledge-persist | Step 3 body — walkthrough, infra check, RAG store modes (3-C.1~3-C.4), memory dual-sync | run-knowledge-persist.md |
| run-checklist-sync | Step 4-A / 4-B body — checklist record via backlog skill, comprehensive result report matrix | run-checklist-sync.md |
| run-wip-handoff | Step 4-C / 4.5 body — wip delegation via backlog skill, status-based self-task prune | run-wip-handoff.md |
Moved topics: retrospect and fa-prune are owned by the fa skill — invoke Skill("fa") / Skill("fa", "fa-prune"). The stubs retrospect.md / fa-prune.md only redirect.
Quick Reference
Run everything
/cleanup # run topic (default)
/cleanup run # explicit run
Suppress asks (attended session, no interruptions)
/cleanup --auto # attended session, don't ask — use documented defaults, still commit/edit/call skills normally
/cleanup --ralph # typed in an interactive session (no RALPH_LOOP=1): treated as --auto (see run.md's mode comparison table)
--ralph's fully-restricted meaning (record-only, no direct modification, report to .ralph/improvements.md) applies only to a true autonomous loop — .ralph/ directory present and RALPH_LOOP=1 set. See run.md "Auto Mode vs. Ralph Mode" for the full comparison.
Change settings
/cleanup config # view current settings
/cleanup config disable serena # disable serena memory
/cleanup config enable serena # enable serena memory
