agentleFS
gastownhallgastownhall/beads/engdocs/CLAUDE.md

beads / engdocs

CLAUDE.md28k starsChanged 8 months agoMITView on GitHub

beads (command: bd) is a Dolt-powered issue tracker for AI-supervised coding workflows. Git integration is optional — see BEADS_DIR + --stealth for git-free operation. We dogfood our own tool. IMPORTANT: See AGENTS.md for complete workflow instructions, bd commands, and development guidelines. Beads uses Dolt as its storage backend — a version-controlled SQL database: Core implementation: - Dolt storage: internal/storage/dolt/ - Embedded runtime: internal/storage/embeddeddolt/ - Server runtime: internal/doltserver/, internal/storage/db/, and internal/storage/doltserver/ - Sync commands: cmd/bd/dolt_*.go, cmd/bd/sync_*.go See internal/types/types.go: - Issue: Core…

  • Installs packages

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about gastownhall/beads

The biggest 5 of 58 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 58

Talked about on GitHub and Bluesky (58 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 8

3 more on Bluesky

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All commands support --json for programmatic use

    line 28
  2. Distinctive:

    Use the canonical TESTING.md for test commands, test design, and PR-readiness gates.

    line 64
  3. Very specific:

    Check for duplicates proactively: bd duplicates --auto-merge

    line 80
  4. Very specific:

    Use --json flags for all programmatic use

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

beads (command: bd) is a Dolt-powered issue tracker for AI-supervised coding workflows. Git integration is optional — see BEADS_DIR + --stealth for git-free operation. We dogfood our own tool.

IMPORTANT: See AGENTS.md for complete workflow instructions, bd commands, and development guidelines.

Architecture Overview

Three-Layer Design

  1. Storage Layer (internal/storage/)
    • Dolt in storage/dolt/ — version-controlled SQL database with cell-level merge
    • Common types and interfaces in storage.go
  2. Database Runtime Layer
    • Embedded mode runs Dolt in-process through internal/storage/embeddeddolt/
    • Server mode uses internal/doltserver/ and internal/storage/db/
    • Proxy and pidfile helpers live under internal/storage/db/
    • Storage-facing server adapters live under internal/storage/doltserver/
  3. CLI Layer (cmd/bd/)
    • Cobra-based commands (one file per command: create.go, list.go, etc.)
    • Direct database access (embedded mode for standalone, server mode for orchestrator)
    • All commands support --json for programmatic use
    • Main entry point in main.go

Storage Architecture

Beads uses Dolt as its storage backend — a version-controlled SQL database:

Dolt DB (.beads/dolt/)
    ↕ Dolt commits (automatic per write)
    ↕ Dolt push/pull (native sync)
Remote (Dolt remotes: DoltHub, S3, GCS, etc.)
  • Write path: CLI → Dolt → auto-commit to Dolt history
  • Read path: Direct SQL queries against Dolt
  • Sync: Dolt handles versioning and sync natively via bd dolt push / bd dolt pull
  • Hash-based IDs: Automatic collision prevention (v0.20+)

Core implementation:

  • Dolt storage: internal/storage/dolt/
  • Embedded runtime: internal/storage/embeddeddolt/
  • Server runtime: internal/doltserver/, internal/storage/db/, and internal/storage/doltserver/
  • Sync commands: cmd/bd/dolt_*.go, cmd/bd/sync_*.go

Key Data Types

See internal/types/types.go:

  • Issue: Core work item (title, description, status, priority, etc.)
  • Dependency: Four types (blocks, related, parent-child, discovered-from)
  • Label: Flexible tagging system
  • Comment: Threaded discussions
  • Event: Full audit trail

Development Command Source

Use the canonical TESTING.md for test commands, test design, and PR-readiness gates. This file should not duplicate command matrices or version-management workflows.

Do NOT use go build -o bd or go install directly — they create stale binaries that shadow ~/.local/bin/bd. Always use make install.

Testing

Testing guidance lives in TESTING.md. Architecture-specific notes for Claude are limited to where tests touch agent setup, hooks, or instruction-file generation.

Important Notes

  • Always read AGENTS.md first - it has the complete workflow
  • Check for duplicates proactively: bd duplicates --auto-merge
  • Use --json flags for all programmatic use

Key Files

  • AGENTS.md - Complete workflow and development guide (READ THIS!)
  • README.md - User-facing documentation
  • ADVANCED.md - Advanced features (rename, merge, compaction)
  • docs/core-concepts/labels.md - Complete label system guide
  • docs/reference/configuration.md - Configuration system

When Adding Features

See AGENTS.md "Adding a New Command" and "Adding Storage Features" sections for step-by-step guidance.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.