# AI use cases for Beads (gastownhall/beads)

Repo: [gastownhall/beads](https://github.com/gastownhall/beads) | Use cases: 3 | Page: https://dedupedai.com/use-cases/gastownhall-beads/

Beads (bd) is a distributed, graph-based issue tracker built for AI coding agents and powered by the Dolt version-controlled database. It replaces markdown plans with a dependency-aware graph: agents create tasks, list what is ready, atomically claim work and close it, which releases blocked tasks. Hash-based IDs avoid merge conflicts between agents and branches, bd prime and bd remember give agents persistent memory, and sync across machines runs through Dolt.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Give your coding agent a task graph instead of a TODO list: https://dedupedai.com/use-cases/gastownhall-beads/give-your-coding-agent-a-task-graph/
- Coordinate several agents on one project without conflicts: https://dedupedai.com/use-cases/gastownhall-beads/coordinate-several-agents-without-conflicts/
- Track agent work privately on a shared repo: https://dedupedai.com/use-cases/gastownhall-beads/use-beads-privately-on-a-shared-repo/

## How to give your coding agent a task graph instead of a TODO list with Beads

Repo: [gastownhall/beads](https://github.com/gastownhall/beads) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Install Beads and let your agent track work as issues with dependencies that survive between sessions.

**Who it is for:** A developer whose agent loses its markdown plan halfway through a long task.

**The problem:** Markdown TODO lists live in context or loose files and do not capture which tasks block others.

**The outcome:** A project where the agent runs bd ready, claims a task, closes it and moves to the next unblocked one.

### Steps

1. Install with `brew install beads` or `npm install -g @beads/bd`
2. In your project run bd init, which creates or updates AGENTS.md so agents discover the workflow
3. Install richer agent integration with `bd setup claude` or `bd setup codex`
4. Create tasks such as `bd create "Title" -p 0` and link them with bd dep add
5. Have the agent run bd ready, claim with bd update and the claim flag, and bd close when done

### Prompt to paste into your agent

```text
Install gastownhall/beads, run bd init in this project and `bd setup claude`, then break <goal> into beads tasks with dependencies. Work through them using bd ready, claim each one before starting, and close it when done.
```

### Caveat

bd init writes to AGENTS.md and installs agent integrations by default; pass --skip-agents if you do not want that.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/gastownhall-beads/give-your-coding-agent-a-task-graph/

## How to coordinate several agents on one project without conflicts with Beads

Repo: [gastownhall/beads](https://github.com/gastownhall/beads) | Difficulty: Advanced | Time: 45 minutes | Basis: From the README

Use atomic claims and hash-based IDs so multiple agents and branches share one task graph safely.

**Who it is for:** A team running parallel agents on different branches or machines that keep stepping on each other.

**The problem:** Shared plan files cause merge conflicts and two agents grabbing the same task.

**The outcome:** Agents that claim tasks atomically, with conflict-free IDs and sync through Dolt remotes.

### Steps

1. Initialise Beads in the shared project with bd init
2. Have each agent claim work atomically with bd update and the claim flag, which sets assignee and in_progress
3. Rely on hash-based IDs such as bd-a1b2 to avoid merge collisions across branches
4. Sync between machines with bd dolt push and bd dolt pull against your git remote
5. For many concurrent writers, run bd init --server against an external dolt sql-server

### Prompt to paste into your agent

```text
Set up gastownhall/beads so <number> agents can work on <project> in parallel: each claims tasks atomically, and the task graph syncs with bd dolt push and pull. Show me the ready queue after the first round.
```

### Caveat

Upgrades can cross schema migrations, and the README says only one designated clone should migrate a remote-backed database.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/gastownhall-beads/coordinate-several-agents-without-conflicts/

## How to track agent work privately on a shared repo with Beads

Repo: [gastownhall/beads](https://github.com/gastownhall/beads) | Difficulty: Beginner | Time: 10 minutes | Basis: From the README

Run Beads in stealth or contributor mode so your planning issues never land in the main repo or your PRs.

**Who it is for:** A contributor to an open-source project who wants agent planning without committing tracker files.

**The problem:** Committing personal task files to a shared repository clutters it and leaks experimental work into PRs.

**The outcome:** A local task graph kept out of the main repo, or routed to a separate planning repo.

### Steps

1. Install Beads with `brew install beads`
2. Run `bd init --stealth` to use it locally without committing files to the main repo
3. Or, on a fork, run `bd init --contributor` to route planning issues to a separate repo
4. Store durable project facts with `bd remember "insight"` and load them with bd prime
5. Back up with bd backup before upgrades

### Prompt to paste into your agent

```text
Set up gastownhall/beads in stealth mode on this shared repo with `bd init --stealth`, plan <task> as beads issues, and confirm no beads files are staged in git.
```

### Caveat

The issues.jsonl file is an export, not a backup; use bd backup to protect your data.

Risk, remote script: The Quick Start installs with a script piped from GitHub into bash; Homebrew or npm avoid that, and the README says to verify release checksums for manual installs.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/gastownhall-beads/use-beads-privately-on-a-shared-repo/
