Beads
Dependency-aware issue tracking built for AI coding agents
Replaces —

Who it's for
Beads gives AI coding agents a persistent dependency graph to track multi-step implementation work across sessions. `bd setup claude` installs Claude Code hooks and settings automatically; `bd prime` injects current workflow context before each session, and `bd ready` surfaces the next claimable task.
Your tasks fit in a single context window and you do not need to resume work across sessions. For short, self-contained tasks, a simple TODO comment or a GitHub Issue is less overhead.
Hash-based IDs and atomic claims prevent two agents from taking the same task. `bd dolt push/pull` keeps the shared task database in sync across machines via your existing git remote, with no additional infrastructure.
Your agents work on fully independent codebases or branches with no shared task list. Cross-codebase coordination is outside Beads' scope.
Stealth mode (`bd init --stealth`) tracks issues locally without committing Beads files to the main repo. Contributor mode (`bd init --contributor`) routes planning issues to a separate repo such as `~/.beads-planning`, keeping experimental work out of pull requests.
You have write access to the repository and the maintainer already uses Beads. In that case, use standard `bd init` to share the same issue database.
Beads works without git using `BEADS_DIR` and `--stealth`, making it a lightweight task queue for CI/CD pipelines and evaluation harnesses. JSON output on every command integrates directly into orchestration code without parsing terminal output.
Your pipeline already has a task queue such as Redis, SQS, or Temporal. Beads adds dependency-aware semantics, but if simple FIFO queuing is all you need, a general-purpose queue is simpler.
The problem
AI coding agents lose context between sessions. When an agent restarts, it either re-reads a markdown file that may be stale or starts fresh. Markdown TODO files do not track dependencies between tasks, so an agent cannot determine what is currently blocked versus immediately claimable. When two agents work on the same codebase simultaneously, they write to the same files and create conflicts with no built-in resolution. The deeper challenge is coordination at scale. Long-horizon coding tasks span dozens of sub-tasks with complex dependency chains. Tracking which tasks are complete, which are in progress, and which are blocked requires either a dedicated human manager or a system that handles dependency resolution automatically. Generic issue trackers like Jira and GitHub Issues were designed for human sprint workflows, not for programmatic agents that need JSON output, hash-based IDs for conflict-free concurrency, and a ready-queue that surfaces only unblocked work.
How it works
The `bd ready` command returns only the work items with no open blockers, so agents claim tasks without scanning the full list or tracking dependencies manually. Dependency types include blocks, parent-child, discovered-from, and related. When a task closes, its dependents automatically become claimable.
Issues are stored in Dolt, a version-controlled SQL database with cell-level merge and native branching. The database lives in `.beads/embeddeddolt/` by default, embedded in-process with no server to run. Schema versions are tracked and guarded; if an older binary tries to open a database migrated by a newer one, Beads exits with an actionable error naming the version gap and the upgrade path.
Issue IDs are hash-based (e.g., `bd-a1b2`) to prevent merge collisions when multiple agents or branches work concurrently. The atomic claim command `bd update --claim` sets the assignee and marks a task in-progress in a single operation, preventing two agents from claiming the same task.
Formulas are declarative TOML or JSON templates that define work graphs. A molecule instantiates a formula into a concrete set of issues with their dependencies pre-wired. Gates provide async coordination via human approval, timer, or GitHub status checks; downstream work is blocked until the condition resolves.
Every core command supports `--json` for programmatic access: `bd list --json`, `bd show bd-42 --json`, `bd ready --json`. This makes Beads compatible with agent harnesses that parse structured output rather than screen-scraping terminal text.
`bd dolt push` and `bd dolt pull` sync the issues database to `refs/dolt/data` on your existing git remote. No separate sync server is needed. Embedded mode supports a single writer; server mode (`bd init --server`) connects to an external `dolt sql-server` for multiple concurrent writers.
Features
- Dependency graph with automatic ready-queue
- Dolt-backed versioned SQL database
- Multi-agent coordination with hash-based IDs
- Formula system for repeatable workflows
- JSON output on every command
- Cross-machine sync without a separate server
How to install
Install Beads via Homebrew on macOS or Linux, or use npm for Node.js users.
brew install beads
npm install -g @beads/bdRecommended for this setup
Strengths
- Built for AI agent access patterns: Unlike Jira or GitHub Issues, Beads exposes JSON output, hash IDs, and a dependency-filtered ready-queue designed for programmatic consumption. `bd prime` injects workflow context and persistent project memories directly into the agent's prompt. `bd setup claude` wires Claude Code hooks and settings automatically.
- MIT license with no server dependency: The entire Beads CLI is MIT licensed. It runs as a single binary with Dolt embedded in-process, so there is no database server to manage. Install once with Homebrew or npm; the database lives in your project directory alongside your code.
- Persistent project memory across sessions: `bd remember "insight"` stores facts that `bd prime` injects into every future agent session. This provides a lightweight, structured way to carry project knowledge across context windows. Compaction summarizes old closed tasks to reclaim context window space as the project grows.
- Works without git: Beads uses Dolt as its storage backend independently of git. Set `BEADS_DIR` and pass `--stealth` to run without any git operations, making it usable with Sapling, Jujutsu, monorepos, CI/CD pipelines, and evaluation environments with ephemeral databases in `/tmp`.
Trade-offs
- 1,403 open issues for a one-year-old project: The repository has 1,403 open issues despite being created in October 2025. This may reflect active community engagement on a fast-moving codebase, but it also means a non-trivial number of reported edge cases. Review the issue list before adopting for production workflows to understand which categories of problems are most common.
- Schema migration requires a coordinated upgrade sequence: Upgrading across a schema migration requires syncing the remote-backed database with the current binary, exporting a backup with `bd export --all`, upgrading the binary, then running `bd migrate schema` on exactly one designated clone before other clones run `bd bootstrap`. Skipping this sequence on a shared remote breaks other installations.
- Embedded mode is single-writer only: The default embedded Dolt mode supports only one writer at a time. Running two processes that write to the same `.beads/` directory simultaneously requires server mode (`bd init --server`) with an external `dolt sql-server`, which adds an infrastructure dependency.
Tech stack
FAQ
Yes. Beads is MIT licensed and free to use, modify, and distribute for any purpose, including commercial projects. There is no paid tier, no cloud account required, and no per-seat pricing. Install the CLI and the database lives in your project directory.
Beads syncs via `bd dolt push` and `bd dolt pull`, which write to `refs/dolt/data` on your existing git remote. No separate sync server is needed. Each machine installs the binary and pulls the latest issues before starting a session.
No. The default embedded mode bundles Dolt in-process with no separate database server needed. Server mode (`bd init --server`) connects to an external `dolt sql-server`, which requires Dolt installed separately, but that mode is optional and intended for multiple concurrent writers on the same machine.
Beads has documented integrations for Claude Code, Codex CLI, Cursor, GitHub Copilot in VS Code via MCP, Factory.ai Droid, and Mux. Run `bd setup --list` to see all supported agents. For any unsupported agent, `bd onboard` prints an AGENTS.md snippet to paste into your agent's instruction file.
Beads checks the database schema at startup. If an older binary tries to open a database migrated by a newer one, it exits with an actionable error naming the version gap and the upgrade path, rather than issuing queries that fail with cryptic SQL errors. The environment variable `BD_IGNORE_SCHEMA_SKEW=1` bypasses the guard for diagnostic use only.