Graphite-like plan stack manager for Claude Code
npm install claude-stackA Graphite-like CLI for managing stacks of Claude Code plans with dependency relationships.
Claude Stack (cc) helps you organize and execute multiple Claude Code plans in the correct order based on their dependencies. Think of it like Graphite for git branches, but for Claude plans.
- Visualize plan dependencies as trees
- Execute plans in topological order via claude -p
- Track execution status across runs
``bash`
npm install -g claude-stack
`bash`Initialize config directory (~/.claude-stack/)
cc init
| Command | Description |
|---------|-------------|
| cc init | Initialize configuration |cc create
| | Create a stack (interactive by default) |cc ls [stack]
| | List stacks or visualize a specific stack |cc status [stack]
| | Show execution status |cc run
| | Execute plans in dependency order |
`bashInteractive mode (default) - use Space to select, Enter to confirm
cc create my-stack
$3
`bash
List all stacks
cc lsVisualize a stack as a tree
cc ls my-stack
`Output:
`
Stack: my-stack◯┬─fix-auth-bug
│ └─◯── add-login-feature
Legend:
◯ pending ◉ running ● completed ✗ failed ○ skipped
`$3
`bash
Preview execution order
cc run my-stack --dry-runExecute all plans
cc run my-stackReset status and re-run
cc run my-stack --reset
`How Plans Work
Plans are markdown files in
~/.claude/plans/ with YAML frontmatter:`markdown
---
references:
- "[[other-plan-name]]"
- "[[another-plan]]"
---
Fix: Authentication Bug
Problem
...
`- Plan ID = filename without
.md
- Dependencies = parsed from references field (wiki-link format)
- Type = extracted from H1 title prefix (Fix:, Plan:, Feature:, etc.)Storage
`
~/.claude-stack/
├── config.json # Global settings
├── stacks/
│ └── my-stack.json # Stack definitions
└── status/
└── my-stack.json # Execution status
``MIT