/beads:dep [command] [from-id] [to-id]from beads
Manages issue dependency relationships — add, remove, visualize trees with Mermaid/JSON output, and detect cycles.
Ships in beads. Installing the plugin adds it to Claude Code.
Manage dependencies between beads issues.
add: Add a dependency between issues
remove: Remove a dependency
tree: Show dependency tree for an issue
--reverse: Show dependent tree (what was discovered from this) instead of dependency tree (what blocks this)--format mermaid: Output as Mermaid.js flowchart (renders in GitHub/GitLab markdown)--json: Output as JSON--max-depth N: Limit tree depth (default: 50)--show-all-paths: Show all paths (no deduplication for diamond dependencies)cycles: Detect dependency cycles
The --format mermaid option outputs the dependency tree as a Mermaid.js flowchart:
Example:
bd dep tree bd-1 --format mermaid
Output can be embedded in markdown:
```mermaid
flowchart TD
bd-1["◧ bd-1: Main task"]
bd-2["☑ bd-2: Subtask"]
bd-1 --> bd-2
```
Status Indicators:
Each node includes a symbol indicator for quick visual status identification:
The diagram colors are determined by your Mermaid theme (default, dark, forest, neutral, or base). Mermaid diagrams render natively in GitHub, GitLab, VSCode markdown preview, and can be imported to Miro.
bd dep add bd-10 bd-20 --type blocks: bd-10 depends on bd-20 (bd-20 blocks bd-10)bd dep tree bd-20: Show what blocks bd-20 (dependency tree going UP)bd dep tree bd-1 --reverse: Show what was discovered from bd-1 (dependent tree going DOWN)bd dep tree bd-1 --reverse --max-depth 3: Show discovery tree with depth limitbd dep tree bd-20 --format mermaid > tree.md: Generate Mermaid diagram for documentationbd dep cycles: Check for circular dependenciesThe --reverse flag inverts the tree direction to show dependents instead of dependencies:
Normal mode (bd dep tree ISSUE):
Reverse mode (bd dep tree ISSUE --reverse):
Use Cases:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub peterkc-io/beads --plugin beads29 commands in this plugin
/auditUsageLog and label agent interactions (append-only JSONL)/blockedShow blocked issues/closeClose a completed issue/commentsView CommentsView or manage comments on an issue/compactCompaction TiersCompact old closed issues using semantic summarization/createCreate a new issue interactively4 plugins ship this exact command · first indexed Aug 11, 2026
Other plugins' commands for the same job