name: beads description: 'Track issues with bd/br, triage with bv, and convert plans to beads.' skill_api_version: 1 context: window: fork intent: mode: task sections: exclude: [HISTORY] intel_scope: topic metadata: tier: library dependencies: [] internal: true output_contract: "beads (via bd/br/bv CLI)"
Beads - Persistent Task Memory for AI Agents
Graph-based issue tracker that survives conversation compaction.
Overview
bd and br (beads_rust) replace markdown task lists with a dependency-aware graph stored in git. bv adds graph-aware triage using PageRank and betweenness centrality.
Key Distinction:
- bd/br: Multi-session work, dependencies, survives compaction, git-backed
- bv: Graph analysis, priority triage, bottleneck detection, parallel execution planning
- Task tools (TaskCreate/TaskUpdate/TaskList): Single-session tasks, status tracking, conversation-scoped
Decision Rule: If resuming in 2 weeks would be hard without bd, use bd.
br vs bd: br is the Rust rewrite. Commands are the same except: br never auto-commits (git is your job), and bd sync becomes br sync --flush-only. Use whichever is installed.
bv safety: NEVER run bare bv — it launches interactive TUI and blocks the terminal. Always use --robot-* flags.
Operating Rules
- Treat live
bdreads as authoritative. Usebd show,bd ready,bd list, andbd exportto inspect current tracker state. Do not treat.beads/issues.jsonlas the primary decision source when livebddata is available. - Treat
.beads/issues.jsonlas a git-friendly export artifact. If the repo tracks.beads/issues.jsonland you mutate tracker state, refresh it explicitly withbd export -o .beads/issues.jsonl. - After closing or materially updating a child issue, reconcile the open parent in the same session. Update stale "remaining gap" notes immediately, and close the parent when the child resolved the parent's last real gap.
- Before closing a child issue, include scoped closure proof in the
bd close --reasontext. Name the touched files or explicit no-file evidence artifact, validation command(s), and parent reconciliation outcome. Do not use generic closure reasons such as "done" or "implemented" for child beads. - If
bd readyreturns a broad umbrella issue, do not implement directly against vague parent wording. First narrow the remaining gap into an execution-ready child issue, then land the child and reconcile the parent. - Normalize stale queue items instead of silently skipping them. Rewrite broad or partially absorbed beads to the actual remaining gap.
- Use this post-mutation sequence when tracker state changed:
bd ... # mutate tracker state
bd export -o .beads/issues.jsonl # if tracked in git
bd vc status
bd dolt commit -m "..." # if tracker changes are pending
bd dolt push # only if a Dolt remote is configured
Prerequisites
- bd CLI: Version 0.34.0+ installed and in PATH
- Git Repository: Current directory must be a git repo
- Initialization:
bd initrun once (humans do this, not agents)
Examples
Skill Loading from /vibe
User says: /vibe
What happens:
- Agent loads beads skill automatically via dependency
- Agent calls
bd show <id>to read issue metadata - Agent links validation findings to the issue being checked
- Output references issue ID in validation report
Result: Validation report includes issue context, no manual bd lookups needed.
Skill Loading from /implement
User says: /implement ag-xyz-123
What happens:
- Agent loads beads skill to understand issue structure
- Agent calls
bd show ag-xyz-123to read issue body - Agent checks dependencies with bd output
- Agent closes issue with
bd close ag-xyz-123after completion
Result: Issue lifecycle managed automatically during implementation.
br (beads_rust) Quick Reference
br is the Rust rewrite of bd. Commands match bd except git handling is explicit.
# Lifecycle
br create "Title" -p 1 -t task # Create (priority 0-4)
br update <id> --status in_progress # Claim work
br close <id> --reason "Done" # Complete
br ready --json # Actionable work (not blocked)
br list --json # All issues
br show <id> --json # Issue details
# Dependencies
br dep add <child> <parent> # child depends on parent
br dep cycles # MUST be empty
br dep tree <id> # Visualize dependencies
# Sync (EXPLICIT — never automatic)
br sync --flush-only # DB → JSONL (before git commit)
br sync --import-only # JSONL → DB (after git pull)
Session ending pattern (br):
git pull --rebase
br sync --flush-only
git add .beads/ && git commit -m "Update issues"
git push
bv Graph Triage
NEVER run bare bv. Always use --robot-* flags.
| Command | Use When |
|---|---|
bv --robot-triage | What should I work on? Full recommendations + blockers + health |
bv --robot-next | Just the single top pick |
bv --robot-plan | What can run concurrently? Parallel execution tracks |
bv --robot-insights | Deep analysis: metrics, cycles, density, k-core |
bv --robot-priority | Am I prioritizing wrong? Misalignment detection |
bv --robot-alerts | Stale issues, blocking cascades, priority mismatches |
Key metrics: PageRank = everything depends on this (fix first). Betweenness = bottleneck (blocks multiple paths). High both = critical bottleneck, drop everything.
Plan-to-Beads Workflow
Convert a markdown plan into fully dependency-wired beads:
- Read the plan file
- Create beads with
br createfor each issue, including full context in the description - Wire dependencies with
br dep add - Polish iteratively (run polish prompt 6-9 times until steady-state)
- Validate:
br dep cyclesmust be empty,bv --robot-insightsfor graph health - Begin:
bv --robot-nextfor first bead
Beads should be so detailed that a fresh agent can implement without consulting the original plan.
Troubleshooting
| Problem | Cause | Solution |
|---|---|---|
| bd/br command not found | CLI not installed or not in PATH | Install bd: brew install bd or check PATH |
| "not a git repository" error | bd requires git repo, current dir not initialized | Run git init or navigate to git repo root |
| "beads not initialized" error | .beads/ directory missing | Human runs bd init --prefix <prefix> once |
| Issue ID format errors | Wrong prefix or malformed ID | Check rigs.json for correct prefix |
bv hangs | TUI launched without robot flag | Always use --robot-* flags |
| Cycles detected | Circular dependency | br dep remove to break cycle |
| br sync confusion | Missing --flush-only or --import-only | Always specify direction explicitly |
Reference Documents
- references/ANTI_PATTERNS.md
- references/BOUNDARIES.md
- references/BR_REFERENCE.md
- references/BV_TRIAGE.md
- references/CLI_REFERENCE.md
- references/DEPENDENCIES.md
- references/INTEGRATION_PATTERNS.md
- references/ISSUE_CREATION.md
- references/MIGRATION.md
- references/MOLECULES.md
- references/PATTERNS.md
- references/PLAN_TO_BEADS.md
- references/RESUMABILITY.md
- references/ROUTING.md
- references/STATIC_DATA.md
- references/TROUBLESHOOTING.md
- references/WORKFLOWS.md