with one click
supervisor-clean
Remove all supervisor leftovers: clones, logs, state, backups
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Remove all supervisor leftovers: clones, logs, state, backups
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | supervisor-clean |
| description | Remove all supervisor leftovers: clones, logs, state, backups |
| user_invocable | true |
Stop everything, then remove all artifacts left by the supervisor, researcher variants, and E2E tests. Does NOT touch canonical repos or the hub itself.
Read .env from the workspace root for SUPERVISOR_REPO, RAG_TARGET_REPO.
# Stop any running researcher variants
cd <SUPERVISOR_REPO> && $CLAUDE_CONFIG_DIRS pixi run -e dev researcher-variant list --json
For each running variant:
cd <SUPERVISOR_REPO> && $CLAUDE_CONFIG_DIRS pixi run -e dev researcher-variant stop --id <variant_id>
cd <SUPERVISOR_REPO> && $CLAUDE_CONFIG_DIRS pixi run -e dev researcher-variant discard --id <variant_id>
Then stop the main researcher:
cd <SUPERVISOR_REPO> && $CLAUDE_CONFIG_DIRS pixi run -e dev researcher-stop
rm -rf /tmp/sar-research-loop--*
rm -rf <RAG_TARGET_REPO>--*
rm -rf <RAG_TARGET_REPO>.pre-merge-backup
rm -rf <SUPERVISOR_REPO>/.supervisor/snapshots
rm -f <SUPERVISOR_REPO>/.supervisor/history.jsonl
rm -f <SUPERVISOR_REPO>/.supervisor/latest_snapshot.json
rm -f <SUPERVISOR_REPO>/.supervisor/status.jsonl
rm -f <SUPERVISOR_REPO>/.supervisor/prompt-edits.jsonl
rm -f <SUPERVISOR_REPO>/.supervisor/parked-*.json
rm -f <SUPERVISOR_REPO>/.supervisor/start-state.json
rm -f <SUPERVISOR_REPO>/.supervisor/start--*-state.json
rm -f <SUPERVISOR_REPO>/.supervisor/merge.lock
rm -f <SUPERVISOR_REPO>/.supervisor/*.pid
rm -f /tmp/cc-sar-supervisor*.log
rm -rf /tmp/rag-index-cache
rm -rf /tmp/rag-index-cache--*
rm -f /tmp/rag-eval-report*.json
rm -f <RESEARCH_LOOP_REPO>/results.tsv
rm -f .claude/scheduled_tasks.lock
rm -f .claude/scheduled_tasks.json
List what was removed. Verify:
echo "=== Remaining ==="
ls <SUPERVISOR_REPO>/.supervisor/ 2>/dev/null || echo "state: clean"
ls -d /tmp/sar-research-loop--* 2>/dev/null || echo "clones: clean"
ls -d <RAG_TARGET_REPO>--* 2>/dev/null || echo "target clones: clean"
ls /tmp/cc-sar-supervisor*.log 2>/dev/null || echo "logs: clean"
rm -rf a directory that a running process is using/target-reset separatelyStop the running supervisor and all researcher variants
Live tree view of supervisor via cron โ agent collects stats every 30s
Dashboard: supervisor status, researcher variants, and metric history
Start the supervisor as a background process
Delete all deployed SAR repos and clean temp files
Reset the target to its initial seed state