/compact
Compact old closed issues using semantic summarization
> /plugin marketplace add gastownhall/beads > /plugin install beads@beads-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/compact
Context preview
What this command does when you run it.
Compact old closed issues using semantic summarization
Command definition
compact.mddescription: Compact old closed issues using semantic summarization argument-hint: "[--all] [--id issue-id] [--dry-run]"
Reduce database size by summarizing closed issues no longer actively referenced.
Compaction Tiers
- **Tier 1**: Semantic compression (30+ days closed, ~70% size reduction)
- **Tier 2**: Ultra compression (90+ days closed) — planned, not yet implemented
Usage
- **Preview candidates**: `bd admin compact --dry-run`
- **Compact all eligible**: `bd admin compact --all`
- **Compact specific issue**: `bd admin compact --id bd-42`
- **Force compact**: `bd admin compact --id bd-42 --force` (bypass age checks)
- **View statistics**: `bd admin compact --stats`
Options
- **--tier**: Choose compaction tier (1 or 2, default: 1)
- **--workers**: Parallel workers (default: 5)
- **--batch-size**: Issues per batch (default: 10)
Important
This is **permanent graceful decay** - original content is discarded. Use `bd restore <id>` to view full history from git if needed.
Useful for long-running projects to keep database size manageable.
Distributed graph issue tracker for AI agents, powered by Dolt. Platforms: macOS, Linux, Windows, FreeBSD Docs: Beads provides a persistent, structured memory for coding agents.
Repo: gastownhall/beads
Other commands on beads.
- /plan-to-beads
Convert a Claude Code plan file into beads epic + tasks for cross-session tracking.
Open command - /audit
Log and label agent interactions (append-only JSONL)
Open command - /blocked
Show blocked issues
Open command - /close
Close a completed issue
Open command - /comments
View or manage comments on an issue
Open command - /create
Create a new issue interactively
Open command

