> Manage dependencies between beads issues.
Manage dependencies between beads issues using add, remove, tree, and cycles commands. Use when you need to track blockers, visualize work relationships, or generate Mermaid diagrams for documentation.
/plugin marketplace add shaneholloman/beads/plugin install beads@beads-marketplaceManage 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:
beads dep tree beads-1 --format mermaid
Output can be embedded in markdown:
```mermaid
flowchart TD
beads-1["◧ beads-1: Main task"]
beads-2["☑ beads-2: Subtask"]
beads-1 --> beads-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.
beads dep add beads-10 beads-20 --type blocks: beads-10 blocks beads-20beads dep tree beads-20: Show what blocks beads-20 (dependency tree going UP)beads dep tree beads-1 --reverse: Show what was discovered from beads-1 (dependent tree going DOWN)beads dep tree beads-1 --reverse --max-depth 3: Show discovery tree with depth limitbeads dep tree beads-20 --format mermaid > tree.md: Generate Mermaid diagram for documentationbeads dep cycles: Check for circular dependenciesThe --reverse flag inverts the tree direction to show dependents instead of dependencies:
Normal mode (beads dep tree ISSUE):
Reverse mode (beads dep tree ISSUE --reverse):
Use Cases: