Conductor-Beads: Command for Claude Code

.claude/skills/beads/commands/compact.md

compact is a command for Claude Code from NguyenSiTrung/Conductor-Beads. It costs 0 tokens per session (276 once invoked), scanned A, a copy of compact, Apache-2.0.

Commands for shrinking the database records of old closed issues by replacing their full content with summaries. An issue is a tracked task, bug, or piece of work.

In plain words
What is it for?
Previewing eligible issues, compacting all or selected issues, choosing a compression tier, using parallel workers, and viewing storage statistics.
Why use it?
It reduces storage use in long-running projects, but the original content is discarded from the database and must be recovered from Git history if needed.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is NguyenSiTrung/Conductor-Beads's own configuration. It tells Claude Code how to work on Conductor-Beads itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Conductor-Beads configures →

Reuse

Borrowing it

Nothing to install: this file belongs to NguyenSiTrung/Conductor-Beads. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/NguyenSiTrung/Conductor-Beads/main/.claude/skills/beads/commands/compact.md
Clone the repo
git clone --depth 1 https://github.com/NguyenSiTrung/Conductor-Beads

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compact

README.md
[![agentmods](https://agentmods.dev/badge/commands/nguyensitrung/conductor-beads/compact/github.svg)](https://agentmods.dev/commands/nguyensitrung/conductor-beads/compact)
Your own site
<a href="https://agentmods.dev/commands/nguyensitrung/conductor-beads/compact"><img src="https://agentmods.dev/badge/commands/nguyensitrung/conductor-beads/compact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compact

Your own site · 80×15
<a href="https://agentmods.dev/commands/nguyensitrung/conductor-beads/compact"><img src="https://agentmods.dev/badge/commands/nguyensitrung/conductor-beads/compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00276
Opus 5.5 $0.00000 $0.00110
Sonnet 5.5 $0.00000 $0.00055
Haiku 4.5 $0.00000 $0.00028

Measured 2mo ago against content hash 22c1ec8b9e4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to compact — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/beads/commands/compact.md · 32 lines

What it actually says

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, ~95% size reduction)

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 32 lines · 0 tokens per session scan A 22c1ec8b9e4b

Subscribe to this mod's changes

compact is a command published in the GitHub repository NguyenSiTrung/Conductor-Beads (23 stars, last pushed 8mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 276 tokens. A static security scan graded it A with 0 findings. It is 92% identical to compact, differing in 4 lines, and is treated as a copy.

Related

compact compared with commands from other repositories

compact next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compactNguyenSiTrung/Conductor-BeadsCommand238mo agoApache-2.0A0Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code