Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

beads_rust

> 数据库
Open source

Fast Rust port of Steve Yegge's beads: local-first, non-invasive issue tracker storing tasks in SQLite with JSONL export for git collaboration

1.0K stars0 likes2 views
WebsiteGitHub

About

Fast Rust port of Steve Yegge's beads: local-first, non-invasive issue tracker storing tasks in SQLite with JSONL export for git collaboration

br - Beads Rust

A Rust port of Steve Yegge's beads, frozen at the "classic" SQLite + JSONL architecture I built my Agent Flywheel tooling around.

Quick Start | Commands | Configuration | VCS Integration | FAQ


Why This Project Exists

I (Jeffrey Emanuel) LOVE Steve Yegge's Beads project. Discovering it and seeing how well it worked together with my MCP Agent Mail was a truly transformative moment in my development workflows and professional life. This quickly also led to beads_viewer (bv), which added another layer of analysis to beads that gives swarms of agents the insight into what beads they should work on next to de-bottleneck the development process and increase velocity. I'm very grateful for finding beads when I did and to Steve for making it.

At this point, my Agent Flywheel System is built around beads operating in a specific way. As Steve continues evolving beads toward GasTown and beyond, our use cases have naturally diverged. The hybrid SQLite + JSONL-git architecture that I built my tooling around (and independently mirrored in MCP Agent Mail) is being replaced with approaches better suited to Steve's vision.

Rather than ask Steve to maintain a legacy mode for my niche use case, I created this Rust port that freezes the "classic beads" architecture I depend on. The command is br to distinguish it from the original bd.

This isn't a criticism of beads; Steve's taking it in exciting directions. It's simply that my tooling needs a stable snapshot of the architecture I built around, and maintaining my own fork is the right solution for that. Steve has given his full endorsement of this project.


TL;DR

The Problem

You need to track issues for your project, but:

  • GitHub/GitLab Issues require internet, fragment context from code, and don't work offline
  • TODO comments get lost, have no status tracking, and can't express dependencies
  • External tools (Jira, Linear) add overhead, require context switching, and cost money

The Solution

br is a local-first issue tracker that stores issues in SQLite with JSONL export for git-friendly collaboration. It provides dependency-aware issue tracking, machine-readable output, sync/recovery tooling, and agent-friendly workflows without leaving your repository.

bash
br init                              # Initialize in your repo
br create "Fix login timeout" -p 1   # Create high-priority issue
br ready                             # See what's actionable
br coordination status --json        # Inspect hidden in-progress claims
br close br-abc123                   # Close when done; JSONL auto-flushes by default
br sync --flush-only                 # Optional final export check before git commit

Why br?

Feature br GitHub Issues Jira TODO comments
Works offline Yes No No Yes
Lives in repo Yes No No Yes
Tracks dependencies Yes Limited Yes No
Zero cost Yes Free tier No Yes
No account required Yes No No Yes
Machine-readable Yes (--json) API only API only No
Git-friendly sync Yes (JSONL) N/A N/A N/A
Non-invasive Yes N/A N/A Yes
AI agent integration Yes Limited Limited No

Quick Example

…

Design Philosophy

1. Non-Invasive by Default

For normal issue tracking and sync, br keeps its state in .beads/ and leaves git handoff to you. It never commits, pushes, pulls, installs hooks, or runs as a background service.

Some explicit commands intentionally step outside that default storage boundary: br agents edits requested agent-instruction files, br doctor --repair can fix the project .gitignore, br config edit/set updates config files, br completions -o writes shell completion files, br upgrade updates the installed binary, and git-reporting commands such as br changelog, br orphans, commit-activity br stats, and the explicitly requested bounded br vcs-status diagnostic inspect git state/history.

bash
# Normal issue state lives under .beads/
ls -la .beads/
# beads.db       # SQLite database
# issues.jsonl   # Git-friendly export
# config.yaml    # Optional config

2. SQLite + JSONL Hybrid

SQLite for fast local queries. JSONL for git-friendly collaboration.

bash
# Local: Fast queries via SQLite
br list --priority 0-1 --status open --assignee alice

# Collaboration: JSONL merges cleanly in git
git diff .beads/issues.jsonl
# +{"id":"br-abc123","title":"New feature",...}

3. Explicit Over Implicit

Successful mutating commands update SQLite and auto-flush JSONL by default. Normal issue commands also check for changed local JSONL and import it before running, unless --no-auto-import or sync.auto_import: false disables that check. This includes JSONL changed by your own git pull or merge; br never fetches those changes, commits, pushes, or pulls for you. Git inspection is limited to explicitly requested reporting commands.

…

4. Agent-First Design

Every command supports --json for AI coding agents:

bash
br list --json | jq '.issues[] | select(.priority  **Note:** `cargo install` places binaries in `~/.cargo/bin/`, while the install script uses `~/.local/bin/`. If you have both in PATH, ensure the desired location has higher priority to avoid running an outdated version. Run `which br` to verify which binary is active.

### Claude Code Plugin (agent instructions)

The official `br` skill ships as a Claude Code plugin, so agents get the
workflow rules without you copying `SKILL.md` around:

```bash
/plugin marketplace add Dicklesworthstone/beads_rust
/plugin install beads@beads-rust

The plugin installs agent instructions only — it does not install the br binary, so pair it with one of the install methods above. The optional bd-to-br-migration skill stays opt-in and is not part of the plugin; install it with install.sh --with-migration-skill if you are still migrating from bd. Codex users keep using install.sh, which writes the same skill into ${CODEX_HOME:-~/.codex}/skills.

Disable Self-Update

bash
# Build without self-update feature
cargo build --release --no-default-features

# Or install without it
cargo +nightly-2026-08-31 install --git https://github.com/Dicklesworthstone/beads_rust.git beads_rust --locked --no-default-features

Enable MCP Server Support

br serve is optional and is not built by the default feature set. Build with the mcp feature when you want an AI agent to talk to br over the Model Context Protocol instead of shelling out to CLI commands.

bash
cargo build --release --features mcp

# Or install globally with MCP support
cargo +nightly-2026-08-31 install --git https://github.com/Dicklesworthstone/beads_rust.git beads_rust --locked --features mcp

Run it from an initialized beads workspace:

bash
RUST_LOG=error br serve --actor codex

…

bash
br --version
# br 0.6.0

Verify Release Signatures

Release archives from v0.4.1 onward ship a .minisig sidecar signed with the current br release key (minisign key ID 36B847D11BA5A0D0):

bash
minisign -Vm br--.tar.gz \
  -P 'RWTQoKUb0Ue4NsqTpPWnABCrIU0+m25zsMlbv6UcRClQ7jmRP3A7NmTB'

…

bash
bash
cd my-project
br init
# Initialized beads workspace in .beads/

For automation, br init --json returns an initialization receipt with the resolved workspace and database paths, the stored prefix, and each file's outcome (created, updated, or existing). br schema all --format json includes its InitResult schema.

2. Create Your First Issue

bash
br create "Fix login timeout bug" \
  --type bug \
  --priority 1 \
  --description "Users report login times out after 30 seconds"
# Created: br-a1b2c3

3. Add Labels

bash
br label add br-a1b2c3 backend auth

4. Check Ready Work

bash
br ready
# Shows issues that are open, not blocked, not deferred

5. Claim and Work

bash
br update br-a1b2c3 --status in_progress --assignee "$(git config user.email)"

6. Close When Done

bash
br close br-a1b2c3 --reason "Increased timeout to 60s, added retry logic"

7. Sync to Git

bash
br sync --flush-only        # Idempotent final JSONL export check
git add .beads/             # Stage changes
git commit -m "Fix: login timeout (br-a1b2c3)"

…

yaml
# .beads/config.yaml — the keys br reads; `br config schema` prints the live list
# with types and defaults, and `br config set` warns about keys br does not read.

# Prefix for newly created issue ids (existing ids keep theirs)
issue_prefix: "proj"

# Defaults for `br create` when --priority / --type are not given
default_priority: 2        # 0-4 or P0-P4
default_type: "task"

# Force colored (true) or plain (false) output; unset means auto-detect
# display:
#   color: true

# Sync behavior (these are the defaults; set to false to opt out)
sync:
  auto_flush: true         # export issues.jsonl after each successful mutation
  auto_import: true        # import a newer issues.jsonl before commands run
  history_enabled: true    # keep bounded JSONL snapshots under .beads/.br_history

# Optional
# actor: "alice"           # audit actor when --actor is not given
# claim_exclusive: true    # refuse `br update --claim` on an issue another actor holds
# lock_timeout: 5000       # write-lock wait in milliseconds

Config Commands

bash
# Show all config
br config list

# Every key br honors, with aliases, types, defaults, and descriptions
br config schema

# Get a specific value
br config get issue_prefix

# Set a value (key=value or key value); unknown keys are written but warned about
br config set default_priority=1

# Remove a key, print the config file path, or open it in $EDITOR
br config delete default_priority
br config path
br config edit

Workflow Policy (.beads/policy.yaml)

Workflow behavior is configured separately in .beads/policy.yaml. One use is defining a configurable ready status group: which statuses br ready treats as actionable work. By default only open is ready, but projects with a review workflow can widen it so review-returned work (e.g. rework) resurfaces through the same br ready --json entrypoint:

yaml
# .beads/policy.yaml
workflow:
  status_groups:
    ready:
      - open
      - rework

…

yaml
workflow:
  statuses: [open, in_progress, in_review, rework, closed]
  capacity:
    statuses:
      in_progress:
        hard: 3
    groups:
      active_work:
        statuses: [in_progress, in_review, rework]
        hard: 5
    admission:
      - name: drain_review_before_starting
        transitions:
          from: [open]
          to: [in_progress]
        require_below:
          statuses:
            in_review: 2

Individual status and named multi-status group limits allow the configured count and reject only transitions that would exceed it. Admission thresholds are exclusive (`count in_review": - acceptance_criteria - transition_comment


Pass the request-scoped comment with `br update --transition-comment`,
`br close --transition-comment`, `br defer --transition-comment`, or
`br undefer --transition-comment`; `br reopen --reason` is its transition
comment, and `br epic close-eligible --transition-comment` applies one comment
to every epic in its atomic batch. A historical comment never satisfies the
rule. The prospective acceptance-criteria value must be non-empty and contain
no unchecked markdown boxes. Any

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustdeveloper-toolsgitissue-trackerrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库