···11+# Dolt database (managed by Dolt, not git)
22+dolt/
33+dolt-access.lock
44+55+# Runtime files
66+bd.sock
77+bd.sock.startlock
88+sync-state.json
99+last-touched
1010+1111+# Local version tracking (prevents upgrade notification spam after git ops)
1212+.local_version
1313+1414+# Worktree redirect file (contains relative path to main repo's .beads/)
1515+# Must not be committed as paths would be wrong in other clones
1616+redirect
1717+1818+# Sync state (local-only, per-machine)
1919+# These files are machine-specific and should not be shared across clones
2020+.sync.lock
2121+export-state/
2222+2323+# Ephemeral store (SQLite - wisps/molecules, intentionally not versioned)
2424+ephemeral.sqlite3
2525+ephemeral.sqlite3-journal
2626+ephemeral.sqlite3-wal
2727+ephemeral.sqlite3-shm
2828+2929+# Dolt server management (auto-started by bd)
3030+dolt-server.pid
3131+dolt-server.log
3232+dolt-server.lock
3333+dolt-server.port
3434+dolt-server.activity
3535+dolt-monitor.pid
3636+3737+# Backup data (auto-exported JSONL, local-only)
3838+backup/
3939+4040+# Legacy files (from pre-Dolt versions)
4141+*.db
4242+*.db?*
4343+*.db-journal
4444+*.db-wal
4545+*.db-shm
4646+db.sqlite
4747+bd.db
4848+# NOTE: Do NOT add negation patterns here.
4949+# They would override fork protection in .git/info/exclude.
5050+# Config files (metadata.json, config.yaml) are tracked by git by default
5151+# since no pattern above ignores them.
+81
.beads/README.md
···11+# Beads - AI-Native Issue Tracking
22+33+Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.
44+55+## What is Beads?
66+77+Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.
88+99+**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)
1010+1111+## Quick Start
1212+1313+### Essential Commands
1414+1515+```bash
1616+# Create new issues
1717+bd create "Add user authentication"
1818+1919+# View all issues
2020+bd list
2121+2222+# View issue details
2323+bd show <issue-id>
2424+2525+# Update issue status
2626+bd update <issue-id> --claim
2727+bd update <issue-id> --status done
2828+2929+# Sync with Dolt remote
3030+bd dolt push
3131+```
3232+3333+### Working with Issues
3434+3535+Issues in Beads are:
3636+- **Git-native**: Stored in Dolt database with version control and branching
3737+- **AI-friendly**: CLI-first design works perfectly with AI coding agents
3838+- **Branch-aware**: Issues can follow your branch workflow
3939+- **Always in sync**: Auto-syncs with your commits
4040+4141+## Why Beads?
4242+4343+✨ **AI-Native Design**
4444+- Built specifically for AI-assisted development workflows
4545+- CLI-first interface works seamlessly with AI coding agents
4646+- No context switching to web UIs
4747+4848+🚀 **Developer Focused**
4949+- Issues live in your repo, right next to your code
5050+- Works offline, syncs when you push
5151+- Fast, lightweight, and stays out of your way
5252+5353+🔧 **Git Integration**
5454+- Automatic sync with git commits
5555+- Branch-aware issue tracking
5656+- Dolt-native three-way merge resolution
5757+5858+## Get Started with Beads
5959+6060+Try Beads in your own projects:
6161+6262+```bash
6363+# Install Beads
6464+curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
6565+6666+# Initialize in your repo
6767+bd init
6868+6969+# Create your first issue
7070+bd create "Try out Beads"
7171+```
7272+7373+## Learn More
7474+7575+- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
7676+- **Quick Start Guide**: Run `bd quickstart`
7777+- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)
7878+7979+---
8080+8181+*Beads: Issue tracking that moves at the speed of thought* ⚡
+54
.beads/config.yaml
···11+# Beads Configuration File
22+# This file configures default behavior for all bd commands in this repository
33+# All settings can also be set via environment variables (BD_* prefix)
44+# or overridden with command-line flags
55+66+# Issue prefix for this repository (used by bd init)
77+# If not set, bd init will auto-detect from directory name
88+# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
99+# issue-prefix: ""
1010+1111+# Use no-db mode: JSONL-only, no Dolt database
1212+# When true, bd will use .beads/issues.jsonl as the source of truth
1313+# no-db: false
1414+1515+# Enable JSON output by default
1616+# json: false
1717+1818+# Feedback title formatting for mutating commands (create/update/close/dep/edit)
1919+# 0 = hide titles, N > 0 = truncate to N characters
2020+# output:
2121+# title-length: 255
2222+2323+# Default actor for audit trails (overridden by BD_ACTOR or --actor)
2424+# actor: ""
2525+2626+# Export events (audit trail) to .beads/events.jsonl on each flush/sync
2727+# When enabled, new events are appended incrementally using a high-water mark.
2828+# Use 'bd export --events' to trigger manually regardless of this setting.
2929+# events-export: false
3030+3131+# Multi-repo configuration (experimental - bd-307)
3232+# Allows hydrating from multiple repositories and routing writes to the correct database
3333+# repos:
3434+# primary: "." # Primary repo (where this database lives)
3535+# additional: # Additional repos to hydrate from (read-only)
3636+# - ~/beads-planning # Personal planning repo
3737+# - ~/work-planning # Work planning repo
3838+3939+# JSONL backup (periodic export for off-machine recovery)
4040+# Auto-enabled when a git remote exists. Override explicitly:
4141+# backup:
4242+# enabled: false # Disable auto-backup entirely
4343+# interval: 15m # Minimum time between auto-exports
4444+# git-push: false # Disable git push (export locally only)
4545+# git-repo: "" # Separate git repo for backups (default: project repo)
4646+4747+# Integration settings (access with 'bd config get/set')
4848+# These are stored in the database, not in this file:
4949+# - jira.url
5050+# - jira.project
5151+# - linear.url
5252+# - linear.api-key
5353+# - github.org
5454+# - github.repo
.beads/dolt-monitor.pid.lock
This is a binary file and will not be displayed.
+24
.beads/hooks/post-checkout
···11+#!/usr/bin/env sh
22+# --- BEGIN BEADS INTEGRATION v0.59.0 ---
33+# This section is managed by beads. Do not remove these markers.
44+if command -v bd >/dev/null 2>&1; then
55+ export BD_GIT_HOOK=1
66+ _bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
77+ if command -v timeout >/dev/null 2>&1; then
88+ timeout "$_bd_timeout" bd hooks run post-checkout "$@"
99+ _bd_exit=$?
1010+ if [ $_bd_exit -eq 124 ]; then
1111+ echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
1212+ _bd_exit=0
1313+ fi
1414+ else
1515+ bd hooks run post-checkout "$@"
1616+ _bd_exit=$?
1717+ fi
1818+ if [ $_bd_exit -eq 3 ]; then
1919+ echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
2020+ _bd_exit=0
2121+ fi
2222+ if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
2323+fi
2424+# --- END BEADS INTEGRATION v0.59.0 ---
+24
.beads/hooks/post-merge
···11+#!/usr/bin/env sh
22+# --- BEGIN BEADS INTEGRATION v0.59.0 ---
33+# This section is managed by beads. Do not remove these markers.
44+if command -v bd >/dev/null 2>&1; then
55+ export BD_GIT_HOOK=1
66+ _bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
77+ if command -v timeout >/dev/null 2>&1; then
88+ timeout "$_bd_timeout" bd hooks run post-merge "$@"
99+ _bd_exit=$?
1010+ if [ $_bd_exit -eq 124 ]; then
1111+ echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
1212+ _bd_exit=0
1313+ fi
1414+ else
1515+ bd hooks run post-merge "$@"
1616+ _bd_exit=$?
1717+ fi
1818+ if [ $_bd_exit -eq 3 ]; then
1919+ echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
2020+ _bd_exit=0
2121+ fi
2222+ if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
2323+fi
2424+# --- END BEADS INTEGRATION v0.59.0 ---
+24
.beads/hooks/pre-commit
···11+#!/usr/bin/env sh
22+# --- BEGIN BEADS INTEGRATION v0.59.0 ---
33+# This section is managed by beads. Do not remove these markers.
44+if command -v bd >/dev/null 2>&1; then
55+ export BD_GIT_HOOK=1
66+ _bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
77+ if command -v timeout >/dev/null 2>&1; then
88+ timeout "$_bd_timeout" bd hooks run pre-commit "$@"
99+ _bd_exit=$?
1010+ if [ $_bd_exit -eq 124 ]; then
1111+ echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
1212+ _bd_exit=0
1313+ fi
1414+ else
1515+ bd hooks run pre-commit "$@"
1616+ _bd_exit=$?
1717+ fi
1818+ if [ $_bd_exit -eq 3 ]; then
1919+ echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
2020+ _bd_exit=0
2121+ fi
2222+ if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
2323+fi
2424+# --- END BEADS INTEGRATION v0.59.0 ---
+24
.beads/hooks/pre-push
···11+#!/usr/bin/env sh
22+# --- BEGIN BEADS INTEGRATION v0.59.0 ---
33+# This section is managed by beads. Do not remove these markers.
44+if command -v bd >/dev/null 2>&1; then
55+ export BD_GIT_HOOK=1
66+ _bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
77+ if command -v timeout >/dev/null 2>&1; then
88+ timeout "$_bd_timeout" bd hooks run pre-push "$@"
99+ _bd_exit=$?
1010+ if [ $_bd_exit -eq 124 ]; then
1111+ echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
1212+ _bd_exit=0
1313+ fi
1414+ else
1515+ bd hooks run pre-push "$@"
1616+ _bd_exit=$?
1717+ fi
1818+ if [ $_bd_exit -eq 3 ]; then
1919+ echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
2020+ _bd_exit=0
2121+ fi
2222+ if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
2323+fi
2424+# --- END BEADS INTEGRATION v0.59.0 ---
+24
.beads/hooks/prepare-commit-msg
···11+#!/usr/bin/env sh
22+# --- BEGIN BEADS INTEGRATION v0.59.0 ---
33+# This section is managed by beads. Do not remove these markers.
44+if command -v bd >/dev/null 2>&1; then
55+ export BD_GIT_HOOK=1
66+ _bd_timeout=${BEADS_HOOK_TIMEOUT:-30}
77+ if command -v timeout >/dev/null 2>&1; then
88+ timeout "$_bd_timeout" bd hooks run prepare-commit-msg "$@"
99+ _bd_exit=$?
1010+ if [ $_bd_exit -eq 124 ]; then
1111+ echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
1212+ _bd_exit=0
1313+ fi
1414+ else
1515+ bd hooks run prepare-commit-msg "$@"
1616+ _bd_exit=$?
1717+ fi
1818+ if [ $_bd_exit -eq 3 ]; then
1919+ echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
2020+ _bd_exit=0
2121+ fi
2222+ if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
2323+fi
2424+# --- END BEADS INTEGRATION v0.59.0 ---
···11+22+# Dolt database files (added by bd init)
33+.dolt/
44+*.db
+150
AGENTS.md
···11+# Agent Instructions
22+33+This project uses **bd** (beads) for issue tracking. Run `bd onboard` to get started.
44+55+## Quick Reference
66+77+```bash
88+bd ready # Find available work
99+bd show <id> # View issue details
1010+bd update <id> --claim # Claim work atomically
1111+bd close <id> # Complete work
1212+bd sync # Sync with git
1313+```
1414+1515+## Non-Interactive Shell Commands
1616+1717+**ALWAYS use non-interactive flags** with file operations to avoid hanging on confirmation prompts.
1818+1919+Shell commands like `cp`, `mv`, and `rm` may be aliased to include `-i` (interactive) mode on some systems, causing the agent to hang indefinitely waiting for y/n input.
2020+2121+**Use these forms instead:**
2222+```bash
2323+# Force overwrite without prompting
2424+cp -f source dest # NOT: cp source dest
2525+mv -f source dest # NOT: mv source dest
2626+rm -f file # NOT: rm file
2727+2828+# For recursive operations
2929+rm -rf directory # NOT: rm -r directory
3030+cp -rf source dest # NOT: cp -r source dest
3131+```
3232+3333+**Other commands that may prompt:**
3434+- `scp` - use `-o BatchMode=yes` for non-interactive
3535+- `ssh` - use `-o BatchMode=yes` to fail instead of prompting
3636+- `apt-get` - use `-y` flag
3737+- `brew` - use `HOMEBREW_NO_AUTO_UPDATE=1` env var
3838+3939+<!-- BEGIN BEADS INTEGRATION -->
4040+## Issue Tracking with bd (beads)
4141+4242+**IMPORTANT**: This project uses **bd (beads)** for ALL issue tracking. Do NOT use markdown TODOs, task lists, or other tracking methods.
4343+4444+### Why bd?
4545+4646+- Dependency-aware: Track blockers and relationships between issues
4747+- Version-controlled: Built on Dolt with cell-level merge
4848+- Agent-optimized: JSON output, ready work detection, discovered-from links
4949+- Prevents duplicate tracking systems and confusion
5050+5151+### Quick Start
5252+5353+**Check for ready work:**
5454+5555+```bash
5656+bd ready --json
5757+```
5858+5959+**Create new issues:**
6060+6161+```bash
6262+bd create "Issue title" --description="Detailed context" -t bug|feature|task -p 0-4 --json
6363+bd create "Issue title" --description="What this issue is about" -p 1 --deps discovered-from:bd-123 --json
6464+```
6565+6666+**Claim and update:**
6767+6868+```bash
6969+bd update <id> --claim --json
7070+bd update bd-42 --priority 1 --json
7171+```
7272+7373+**Complete work:**
7474+7575+```bash
7676+bd close bd-42 --reason "Completed" --json
7777+```
7878+7979+### Issue Types
8080+8181+- `bug` - Something broken
8282+- `feature` - New functionality
8383+- `task` - Work item (tests, docs, refactoring)
8484+- `epic` - Large feature with subtasks
8585+- `chore` - Maintenance (dependencies, tooling)
8686+8787+### Priorities
8888+8989+- `0` - Critical (security, data loss, broken builds)
9090+- `1` - High (major features, important bugs)
9191+- `2` - Medium (default, nice-to-have)
9292+- `3` - Low (polish, optimization)
9393+- `4` - Backlog (future ideas)
9494+9595+### Workflow for AI Agents
9696+9797+1. **Check ready work**: `bd ready` shows unblocked issues
9898+2. **Claim your task atomically**: `bd update <id> --claim`
9999+3. **Work on it**: Implement, test, document
100100+4. **Discover new work?** Create linked issue:
101101+ - `bd create "Found bug" --description="Details about what was found" -p 1 --deps discovered-from:<parent-id>`
102102+5. **Complete**: `bd close <id> --reason "Done"`
103103+104104+### Auto-Sync
105105+106106+bd automatically syncs with git:
107107+108108+- Exports to `.beads/issues.jsonl` after changes (5s debounce)
109109+- Imports from JSONL when newer (e.g., after `git pull`)
110110+- No manual export/import needed!
111111+112112+### Important Rules
113113+114114+- ✅ Use bd for ALL task tracking
115115+- ✅ Always use `--json` flag for programmatic use
116116+- ✅ Link discovered work with `discovered-from` dependencies
117117+- ✅ Check `bd ready` before asking "what should I work on?"
118118+- ❌ Do NOT create markdown TODO lists
119119+- ❌ Do NOT use external issue trackers
120120+- ❌ Do NOT duplicate tracking systems
121121+122122+For more details, see README.md and docs/QUICKSTART.md.
123123+124124+## Landing the Plane (Session Completion)
125125+126126+**When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
127127+128128+**MANDATORY WORKFLOW:**
129129+130130+1. **File issues for remaining work** - Create issues for anything that needs follow-up
131131+2. **Run quality gates** (if code changed) - Tests, linters, builds
132132+3. **Update issue status** - Close finished work, update in-progress items
133133+4. **PUSH TO REMOTE** - This is MANDATORY:
134134+ ```bash
135135+ git pull --rebase
136136+ bd sync
137137+ git push
138138+ git status # MUST show "up to date with origin"
139139+ ```
140140+5. **Clean up** - Clear stashes, prune remote branches
141141+6. **Verify** - All changes committed AND pushed
142142+7. **Hand off** - Provide context for next session
143143+144144+**CRITICAL RULES:**
145145+- Work is NOT complete until `git push` succeeds
146146+- NEVER stop before pushing - that leaves work stranded locally
147147+- NEVER say "ready to push when you are" - YOU must push
148148+- If push fails, resolve and retry until it succeeds
149149+150150+<!-- END BEADS INTEGRATION -->