gastownhall /beads
Beads - A memory upgrade for your coding agent
★ 29,181⑂ 1,964👁 90⑃ 5,438● 3,023▤ 115
+38
Daily
+301
Weekly
29,181
stars
1,964
forks
90
watchers
5,438
prs
3,023
issues
115
releases
README
bd - Beads
Distributed graph issue tracker for AI agents, powered by Dolt.
Platforms: macOS, Linux, Windows, FreeBSD
Docs: https://beads.gascity.com/
Beads provides a persistent, structured memory for coding agents. It replaces messy markdown plans with a dependency-aware graph, allowing agents to handle long-horizon tasks without losing context.
mermaid
flowchart LR
create["bd createnew bead"] -- depgraph["dependencygraph"]
depgraph -- ready["bd readyclaimable work"]
ready -- claim["bd update --claimagent takes it"]
claim -- close["bd closework done"]
close --|blockers released| ready
depgraph |"bd dolt push / pull"| remote[("other machinesand agents")]
⚡ Quick Start
bash
Install beads CLI (system-wide - don't clone this repo into your project)
curl -fsSL https://raw.githubusercontent.com/gastownhall/beads/main/scripts/install.sh | bash
Initialize in YOUR project
cd your-project
bd init
Optional: refresh or install richer instructions for your agent
bd setup codex Codex CLI - installs skill, AGENTS.md guidance, and hooks
bd setup claude Claude Code - installs hooks/settings
bd setup factory Factory.ai Droid - creates/updates AGENTS.md
Note: Beads is a CLI tool you install once and use everywhere. You don't need to clone this repository into your project.
bd init creates or updates AGENTS.md by default so agents can discover the beads workflow, and also installs the project Claude Code, Codex, and Cursor integrations unless you pass --skip-agents or --stealth. Use bd setup --list to see supported integrations, including bd setup codex, bd setup factory, bd setup claude, bd setup mux, bd setup cursor, and more. See Agent and IDE setup.
Manual copy-paste is only for unsupported agents, existing projects where you cannot rerun bd init/bd setup, or custom instruction files. In those cases, run bd onboard and paste the printed snippet into the file your agent reads.
If your agent is not covered by bd setup, add this minimal AGENTS.md section:
markdown
This project uses bd (beads) for issue tracking.
- Run bd prime for workflow context and command guidance.
- Use bd ready, bd show , bd update --claim, and bd close .
- Use bd remember "a project insight" for durable project facts; keep per-operator preferences in your harness's own memory.
- Do not use markdown TODO lists for task tracking.
🛠 Features
Dolt-Powered: Version-controlled SQL database with cell-level merge, native branching, and built-in sync via Dolt remotes.
Agent-Optimized: JSON output, dependency tracking, and auto-ready task detection.
Zero Conflict: Hash-based IDs (bd-a1b2) prevent merge collisions in multi-agent/multi-branch workflows.
Compaction: Semantic "memory decay" summarizes old closed tasks to save context window.
Messaging: Message issue type with threading (--thread), ephemeral lifecycle, and mail delegation.
Graph Links: relates-to, duplicates, supersedes, and replies-to for knowledge graphs.
📖 EssentiTop issues
#5877Proposal: Memory Beads134 comments · 2026-08-20#7656[Memory] Implementation Status69 comments · 2026-10-17#5898Proposal: Beads History and Versioned Beads66 comments · 2026-08-20#4380Aux row re-key crashes the migration pass on dolt#11131-class drifted storage (server panic 'invalid hash length: 19') — fix: skip-and-warn per table29 comments · 2026-06-12#8523CI is red on main25 comments · 2026-11-18#6051BDP: a draft protocol contract for versioning, memory, and federation19 comments · 2026-08-28#7151PR Risk: Proxied Dolt Cmd shard 5/15 hits the 15m test timeout on fork PRs (3 of 4 recent runs)10 comments · 2026-10-03#6136Versioned beads phase 3: versioned reads and expectedRevision CAS10 comments · 2026-09-01
Discussions
#8029Merged but unreleased: how does content on main reach a release, and can contributors help order it?1 comments · 2026-10-31#7598Beads added to the AgentManager tool catalog0 comments · 2026-10-16#7509Legacy 0.50.3 tombstone migration to 1.3.1: all-table preservation and export hash contract0 comments · 2026-10-12#6849bd gql: ask Beads for only the fields your agent needs0 comments · 2026-09-27#6830Beads with Cloud Agents?2 comments · 2026-09-27#6600Using Jev to classify and triage beads quickly and efficiently compared to an LLM0 comments · 2026-09-18#6568myc: a SQLite-based task+memory layer that imports a beads workspace (bd export → myc import-beads)0 comments · 2026-09-15#6566Why does "bd ready" list parent with open children?1 comments · 2026-09-15
Latest release
v1.3.4 v1.3.4 2026-11-04beads v1.3.4 Pre-compiled binaries for Linux, macOS (Intel & Apple Silicon), Windows (AMD64 & ARM64), Android/Termux (ARM64), and FreeBSD. Release notes 1.3.4 is 1.3.3 plus one fix: bd reads GT_ROOT from a rig's .beads/.env again (8118, a backport of 8117). 1.3.3 ignored it and printed beads: ignoring GT_ROOT from .beads/.env on every bd command in a Gas City rig. That made released gc misreport failed bd commands there. Read the full notes in CHANGELOG.md: the [1.3.4] and [1.3.4-rc.1] sections. Coming from 1.3.2 or earlier, also read the [1.3.3-rc.1] Upgrade notes and Known issues. They