Beads - A memory upgrade for your coding agent https://beads.gascity.com
  • Go 95.2%
  • Python 1.6%
  • Starlark 1.5%
  • Shell 1.3%
  • Rust 0.2%
Find a file
Daniel Sauer 4fffdb7fae
fix(sqlite): add missing agent fields to scanIssues and related queries (#1176)
The scanIssues() function and multiple SQL queries were not selecting or
scanning agent-related fields (hook_bead, role_bead, agent_state, last_activity,
role_type, rig, mol_type) and time-based scheduling fields (due_at, defer_until).

This caused bd list --json to return null for last_activity even when the
database contained valid timestamps, preventing proper agent health monitoring.

Updated files:
- dependencies.go: scanIssues() variable declarations, scan calls, assignments
- queries.go: SearchIssues query
- labels.go: GetIssuesByLabel query
- ready.go: GetReadyWork and GetNewlyUnblockedByClose queries
- transaction.go: GetIssue query, SearchIssues query, scanIssueRow()

Fixes steveyegge/beads#1175
2026-01-19 10:11:03 -08:00
.agent/workflows fix: improve JSONL-only mode detection and error messages (GH #534) 2025-12-13 12:50:33 -08:00
.beads chore: ignore metadata.json in .beads 2026-01-17 04:22:35 -08:00
.beads-hooks Fix shebang env (#817) 2026-01-01 10:54:22 -08:00
.claude docs: update daemon CLI syntax from flags to subcommands 2026-01-14 21:47:15 -08:00
.claude-plugin chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
.devcontainer Fix devcontainer init check - look for DB file not directory 2025-11-05 17:31:30 -08:00
.github chore(deps): bump actions/upload-pages-artifact from 3 to 4 (#1055) 2026-01-12 23:05:05 -08:00
claude-plugin chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
cmd/bd fix(doctor): improve diagnostic fix message output (#1187) 2026-01-19 10:10:57 -08:00
docs feat(sync): add sync mode configuration (hq-ew1mbr.3) 2026-01-17 10:52:29 -08:00
examples docs: update daemon CLI syntax from flags to subcommands 2026-01-14 21:47:15 -08:00
integrations chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
internal fix(sqlite): add missing agent fields to scanIssues and related queries (#1176) 2026-01-19 10:11:03 -08:00
npm-package chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
scripts refactor: replace bump-version.sh with molecule pointer 2026-01-14 21:53:06 -08:00
tests/integration refactor: Remove legacy MCP Agent Mail integration (bd-6gd) 2025-12-17 23:14:23 -08:00
website feat: add Junie agent integration 2026-01-13 08:41:25 -06:00
winget Add Windows ARM64 build support (#834) 2026-01-01 19:46:02 -08:00
.gitattributes bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
.gitignore fix: ignore entire .claude/ directory, not just settings 2026-01-17 00:36:38 -08:00
.golangci.yml fix(lint): resolve CI lint failures for v0.47.0 release 2026-01-08 20:21:02 -08:00
.goreleaser.yml feat: comprehensive NixOS support improvements (#1024) 2026-01-12 23:46:33 -08:00
.pre-commit-config.yaml refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
.test-skip chore: code health review - test fix and error comments (bd-9g1z, bd-ork0) 2025-12-22 21:30:57 -08:00
AGENT_INSTRUCTIONS.md docs: Add agent warning about interactive bd edit command 2026-01-13 20:58:07 -08:00
AGENTS.md Merge pull request #1138 from steveyegge/fix/agents-md-claude-md-reference-1049 2026-01-17 00:24:55 -08:00
beads.go feat: show redirect info in bd prime output (bd-kblo) 2025-12-27 21:33:01 -08:00
beads_test.go bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
BENCHMARKS.md feat(cli): add 'bd thanks' command to thank contributors 2025-12-14 12:40:32 -08:00
build-docs.md docs: Add comprehensive documentation for version reporting changes 2025-12-13 10:04:01 +11:00
CHANGELOG.md chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
CONTRIBUTING.md feat(daemon): unify auto-sync config for simpler agent workflows (#904) 2026-01-06 12:52:19 -08:00
default.nix chore(release): bump version to 0.48.0 2026-01-17 04:36:41 -08:00
flake.lock feat: Add Nix flake for declarative builds 2025-10-15 13:45:05 +02:00
flake.nix fix: NixOS symlink compatibility for mtime and permission checks (#459) 2025-12-05 13:22:09 -08:00
go.mod fix: enable building on Windows without CGO (#1117) 2026-01-15 19:23:02 -08:00
go.sum fix: enable building on Windows without CGO (#1117) 2026-01-15 19:23:02 -08:00
install.ps1 docs: don't auto-install Go in Windows installer; instruct user instead (fixes #292) (#302) 2025-11-12 14:15:46 -08:00
LICENSE Initial commit: Beads issue tracker with security fixes 2025-10-11 20:07:36 -07:00
Makefile refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
README.md feat: comprehensive NixOS support improvements (#1024) 2026-01-12 23:46:33 -08:00
RELEASING.md docs: update paths for claude-plugin subdirectory structure (GH#985) (#1007) 2026-01-10 22:49:29 -08:00
SECURITY.md Prepare for public launch: comprehensive examples, docs, and tooling 2025-10-12 11:25:29 -07:00
THIRD_PARTY_LICENSES Add THIRD_PARTY_LICENSES for Apache 2.0 Dolt dependencies 2026-01-16 12:19:57 -08:00

bd - Beads

Distributed, git-backed graph issue tracker for AI agents.

License Go Report Card Release npm version PyPI

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.

⚡ Quick Start

# Install (macOS/Linux/FreeBSD)
curl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash

# Initialize (Humans run this once)
bd init

# Tell your agent
echo "Use 'bd' for task tracking" >> AGENTS.md

🛠 Features

  • Git as Database: Issues stored as JSONL in .beads/. Versioned, branched, and merged like code.
  • 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.
  • Invisible Infrastructure: SQLite local cache for speed; background daemon for auto-sync.
  • Compaction: Semantic "memory decay" summarizes old closed tasks to save context window.

📖 Essential Commands

Command Action
bd ready List tasks with no open blockers.
bd create "Title" -p 0 Create a P0 task.
bd dep add <child> <parent> Link tasks (blocks, related, parent-child).
bd show <id> View task details and audit trail.

🔗 Hierarchy & Workflow

Beads supports hierarchical IDs for epics:

  • bd-a3f8 (Epic)
  • bd-a3f8.1 (Task)
  • bd-a3f8.1.1 (Sub-task)

Stealth Mode: Run bd init --stealth to use Beads locally without committing files to the main repo. Perfect for personal use on shared projects.

📦 Installation

  • npm: npm install -g @beads/bd
  • Homebrew: brew install steveyegge/beads/bd
  • Go: go install github.com/steveyegge/beads/cmd/bd@latest

Requirements: Linux, FreeBSD, macOS, or Windows.

🌐 Community Tools

See docs/COMMUNITY_TOOLS.md for a curated list of community-built UIs, extensions, and integrations—including terminal interfaces, web UIs, editor extensions, and native apps.

📝 Documentation