Help us improve
Share bugs, ideas, or general feedback.
From llm-council-plugin
Removes the .council/ working directory and temporary files from LLM Council sessions. Idempotent and safe to run multiple times.
npx claudepluginhub xrf9268-hue/llm-council-plugin --plugin llm-council-pluginHow this command is triggered — by the user, by Claude, or both
Slash command
/llm-council-plugin:council-cleanupclaude-haiku-4-5-20251001The summary Claude sees in its command listing — used to decide when to auto-load this command
# Council Cleanup
Remove the `.council/` working directory and all temporary files created by the LLM Council for the most recent sessions.
## Usage
This command takes no arguments and is safe to run multiple times.
## Implementation Instructions
When this command is invoked:
1. **Check for existing working directory**: Use the **Bash tool** to determine whether `.council/` exists in the current project root.
2. **If `.council/` exists**:
- Inform the user that this operation will delete:
- `.council/final_report.md`
- All Stage 1/2 files (`stage1_*.txt`, `stage2_revie.../oac-cleanupCleans old temporary files from .tmp/sessions (>7 days), .tmp/tasks (completed >30 days), and .tmp/external-context (>7 days) with interactive preview and confirmation. Supports --force and custom --*-days flags. Outputs JSON summary.
/cleanup-contextRuns Claude Code context cleanup script, permanently deleting files older than 7-60 days from file-history, sessions, projects, todos, logs, and statsig. Shows before/after stats and deletion summary.
/cleanRemoves temporary test fixtures from tmp/ directory (e.g., cloned bktide repos). Lists contents and sizes first, deletes, and confirms space freed.
/cleanupRemoves temporary design lab files from .claude-design/ directory and Next.js/Vite preview routes after user confirmation. Reports deletions.
/cleanupCleans old log files from workflows, commands, audio, Figma, JIRA, and plugins older than specified days (default 30). Supports --dry-run preview.
/unadoptRemoves the claude-mem-lite invited-memory sentinel from the current project's memdir, cleaning MEMORY.md, plugin detail file, and state sidecar. Supports --all flag for bulk removal.
Share bugs, ideas, or general feedback.
Remove the .council/ working directory and all temporary files created by the LLM Council for the most recent sessions.
/council-cleanup
This command takes no arguments and is safe to run multiple times.
When this command is invoked:
Check for existing working directory: Use the Bash tool to determine whether .council/ exists in the current project root.
If .council/ exists:
.council/final_report.mdstage1_*.txt, stage2_review_*.txt).council/# Resolve path to council_utils.sh
if [[ -n "${COUNCIL_PLUGIN_ROOT:-}" ]]; then
UTILS_PATH="${COUNCIL_PLUGIN_ROOT}/skills/council-orchestrator/scripts/council_utils.sh"
elif [[ -n "${CLAUDE_PLUGIN_ROOT:-}" ]]; then
UTILS_PATH="${CLAUDE_PLUGIN_ROOT}/skills/council-orchestrator/scripts/council_utils.sh"
elif [[ -n "${CLAUDE_PROJECT_DIR:-}" ]]; then
UTILS_PATH="${CLAUDE_PROJECT_DIR}/skills/council-orchestrator/scripts/council_utils.sh"
else
# Try standard installation locations
for candidate in \
"$HOME/.claude/plugins/cache/llm-council-plugin/skills/council-orchestrator/scripts/council_utils.sh" \
"$HOME/.claude/plugins/llm-council-plugin/skills/council-orchestrator/scripts/council_utils.sh"; do
if [[ -f "$candidate" ]]; then
UTILS_PATH="$candidate"
break
fi
done
fi
# Verify path exists
if [[ -z "${UTILS_PATH:-}" ]] || [[ ! -f "$UTILS_PATH" ]]; then
echo "❌ Error: Cannot locate council utilities"
echo "Please set COUNCIL_PLUGIN_ROOT to your plugin installation path."
exit 1
fi
source "$UTILS_PATH"
council_cleanup
✅ Council working directory cleaned (removed .council/)If .council/ does not exist:
ℹ️ No .council/ working directory found (already clean).Idempotency:
/council-cleanup is idempotent and can be run safely at any time when the user wants to remove prior council session files.