plandb
CLAUDE.md105 starsChanged 8 months agoApache-2.0View on GitHub
PlanDB is "the issue tracker your AI agents are missing" — a task graph database (CLI + MCP + HTTP) that agents use to decompose work, parallelize, adapt mid-flight, and persist knowledge. Single Rust binary, SQLite-backed. Rust 1.75+ required. No external dependencies — SQLite is bundled via rusqlite. These prefixes drive automatic PR labeling via release-drafter. Releases are intentional, not automatic. Every push to main runs CI but does NOT create a release. The release-drafter auto-suggests the next version based…
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
All changes go through PRs (admin can bypass for hotfixes)
- Distinctive: line 24
Delete branches after merge
- Distinctive: line 71
All PRs for this release are merged
- Very specific: line 110
When adding a feature, implement it in all three.
- Distinctive: line 118
Only reference features that actually exist in the current build
≈ “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.
Files
PlanDB — Project Instructions
What This Is
PlanDB is "the issue tracker your AI agents are missing" — a task graph database (CLI + MCP + HTTP) that agents use to decompose work, parallelize, adapt mid-flight, and persist knowledge. Single Rust binary, SQLite-backed.
Development
cargo build # build
cargo test # unit tests (8 tests)
bash tests/functional_test.sh # functional tests (7 scenarios)
cargo clippy # lints
cargo fmt --check # formattingRust 1.75+ required. No external dependencies — SQLite is bundled via rusqlite.
Branch Rules
mainis protected: CI must pass, no force push, no branch deletion- All changes go through PRs (admin can bypass for hotfixes)
- Branch naming:
feat/,fix/,docs/,refactor/,ci/ - Delete branches after merge
Commit Conventions
feat: new user-facing capability
fix: bug fix
refactor: code change that doesn't add features or fix bugs
docs: documentation only
ci: CI/CD changes
test: adding or fixing tests
chore: maintenance (deps, config, cleanup)These prefixes drive automatic PR labeling via release-drafter.
Release Flow
Releases are intentional, not automatic. Every push to main runs CI but does NOT create a release.
How it works
PR merges to main
→ ci.yml runs (build, test, functional tests)
→ release-drafter updates a DRAFT release on GitHub (accumulates changes)
Ready to ship:
→ git tag v0.X.Y -m "description"
→ git push origin v0.X.Y
→ release.yml triggers:
1. Runs full test suite
2. Builds cross-platform binaries (linux x86/arm, macOS x86/arm, windows)
3. Generates checksums
4. Publishes GitHub release with auto-generated notes from the draftVersion bumping
- Patch (v0.2.0 → v0.2.1): bug fixes, docs, refactors
- Minor (v0.2.x → v0.3.0): new features
- Major (v0.x → v1.0): breaking changes
The release-drafter auto-suggests the next version based on PR labels (feat: → minor, fix: → patch).
Checklist before tagging a release
- All PRs for this release are merged
- CI is green on main
- CHANGELOG.md updated with the new version section
git tag vX.Y.Z -m "PlanDB vX.Y.Z — summary"+git push origin vX.Y.Z
CI/CD Workflows
| Workflow | Trigger | What it does |
ci.yml | Push to main, PRs | Build, unit tests, functional tests, clippy, fmt |
release.yml | Push v* tag | Cross-platform build + GitHub release |
release-drafter.yml | Push to main, PRs | Auto-labels PRs, maintains draft release notes |
Project Structure
src/
cli/ # CLI commands (task/, mod.rs)
db/ # Database layer (tasks.rs, schema.rs, learnings.rs, templates.rs)
mcp/ # MCP server (tools.rs)
server/ # HTTP API (routes.rs)
models/ # Data models (task.rs)
main.rs # Entry point + prompt generation
tests/
functional_test.sh # End-to-end CLI tests
examples/ # Agent prompt examples
experiments/ # Real agent session outputs
assets/ # Images for README
docs/ # Architecture docsThree Interfaces — Keep in Sync
PlanDB has three interfaces that must stay consistent:
- CLI (
src/cli/) —plandb <command> - MCP (
src/mcp/tools.rs) —plandb mcpfor Claude Code / Cursor / Windsurf - HTTP (
src/server/routes.rs) —plandb serve
When adding a feature, implement it in all three. When updating prompts (src/main.rs), update all three prompt functions: print_prompt_cli, print_prompt_mcp, print_prompt_http.
Prompt Is Product
The agent-facing prompts in src/main.rs are the primary product surface. Changes to prompts should be:
- Tested with real agents (Codex, Gemini, Claude Code)
- Kept compact — every token costs the agent context window
- Example-first, not documentation-heavy
- Only reference features that actually exist in the current build
Key Design Decisions
- Agent-first: the primary user is an AI agent, not a human
- Zero infra: single binary, SQLite, no Docker/cloud/config
- Freeform over enums:
--kindis a freeform string, not a fixed enum - Lazy over explicit: auto-link context to running task, auto-recall on
plandb go - Advisory hooks:
--pre-hook/--post-hookwarn on failure but never block - Compound graph: containment (hierarchy) + dependencies (flow) are orthogonal
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
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.

