polyceph
Copilot instructions4 starsChanged 13 months agoMITView on GitHub
beads (command: bd) is a Git-backed issue tracker designed for AI-supervised coding workflows. We dogfood our own tool for all task tracking. Key Features: - Dependency-aware issue tracking - Auto-sync with Git via JSONL - AI-optimized CLI with JSON output - Built-in daemon for background operations - MCP server integration for Claude and other AI assistants CRITICAL: This project uses bd for ALL task tracking. Do NOT create markdown TODO lists. Run bd <command> --help to see all available flags…
- Installs packages
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 26
Always write tests for new features
- Very specific: line 27
Use BEADS_DB=/tmp/test.db to avoid polluting production database
- Very specific: line 28
Run go test -short ./... before committing
- Distinctive: line 29
Never create test issues in production DB (use temporary DB)
- Very specific: line 33
Follow existing patterns in cmd/bd/ for new commands
- Very specific: line 34
Add --json flag to all commands for programmatic use
- Distinctive: line 35
Update docs when changing behavior
- Very specific: line 38
Always commit .beads/issues.jsonl with code changes
- Very specific: line 39
Run bd sync at end of work sessions
- Distinctive: line 105
Use the beads MCP server for native function calls instead of shell commands:
- Very specific: line 123
Run bd <command> --help to see all available flags for any command.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
GitHub Copilot Instructions for Beads
Project Overview
beads (command: bd) is a Git-backed issue tracker designed for AI-supervised coding workflows. We dogfood our own tool for all task tracking.
Key Features:
- Dependency-aware issue tracking
- Auto-sync with Git via JSONL
- AI-optimized CLI with JSON output
- Built-in daemon for background operations
- MCP server integration for Claude and other AI assistants
Tech Stack
- Language: Go 1.21+
- Storage: SQLite (internal/storage/sqlite/)
- CLI Framework: Cobra
- Testing: Go standard testing + table-driven tests
- CI/CD: GitHub Actions
- MCP Server: Python (integrations/beads-mcp/)
Coding Guidelines
Testing
- Always write tests for new features
- Use
BEADS_DB=/tmp/test.dbto avoid polluting production database - Run
go test -short ./...before committing - Never create test issues in production DB (use temporary DB)
Code Style
- Run
golangci-lint run ./...before committing - Follow existing patterns in
cmd/bd/for new commands - Add
--jsonflag to all commands for programmatic use - Update docs when changing behavior
Git Workflow
- Always commit
.beads/issues.jsonlwith code changes - Run
bd syncat end of work sessions - Install git hooks:
bd hooks install(ensures DB ↔ JSONL consistency)
Issue Tracking with bd
CRITICAL: This project uses bd for ALL task tracking. Do NOT create markdown TODO lists.
Essential Commands
# Find work
bd ready --json # Unblocked issues
bd stale --days 30 --json # Forgotten issues
# Create and manage
bd create "Title" -t bug|feature|task -p 0-4 --json
bd create "Subtask" --parent <epic-id> --json # Hierarchical subtask
bd update <id> --status in_progress --json
bd close <id> --reason "Done" --json
# Search
bd list --status open --priority 1 --json
bd show <id> --json
# Sync (CRITICAL at end of session!)
bd sync # Force immediate export/commit/pushWorkflow
- Check ready work:
bd ready --json - Claim task:
bd update <id> --status in_progress - Work on it: Implement, test, document
- Discover new work?
bd create "Found bug" -p 1 --deps discovered-from:<parent-id> --json - Complete:
bd close <id> --reason "Done" --json - Sync:
bd sync(flushes changes to git immediately)
Priorities
0- Critical (security, data loss, broken builds)1- High (major features, important bugs)2- Medium (default, nice-to-have)3- Low (polish, optimization)4- Backlog (future ideas)
Project Structure
beads/
├── cmd/bd/ # CLI commands (add new commands here)
├── internal/
│ ├── types/ # Core data types
│ └── storage/ # Storage layer
│ └── sqlite/ # SQLite implementation
├── integrations/
│ └── beads-mcp/ # MCP server (Python)
├── examples/ # Integration examples
├── docs/ # Documentation
└── .beads/
├── beads.db # SQLite database (DO NOT COMMIT)
└── issues.jsonl # Git-synced issue storageAvailable Resources
MCP Server (Recommended)
Use the beads MCP server for native function calls instead of shell commands:
- Install:
pip install beads-mcp - Functions:
mcp__beads__ready(),mcp__beads__create(), etc. - See
integrations/beads-mcp/README.md
Scripts
./scripts/bump-version.sh <version> --commit- Update all version files atomically./scripts/release.sh <version>- Complete release workflow./scripts/update-homebrew.sh <version>- Update Homebrew formula
Key Documentation
- AGENTS.md - Comprehensive AI agent guide (detailed workflows, advanced features)
- AGENT_INSTRUCTIONS.md - Development procedures, testing, releases
- README.md - User-facing documentation
- docs/CLI_REFERENCE.md - Complete command reference
CLI Help
Run bd <command> --help to see all available flags for any command.
For example: bd create --help shows --parent, --deps, --assignee, etc.
Important Rules
- ✅ Use bd for ALL task tracking
- ✅ Always use
--jsonflag for programmatic use - ✅ Run
bd syncat end of sessions - ✅ Test with
BEADS_DB=/tmp/test.db - ✅ Run
bd <cmd> --helpto discover available flags - ❌ Do NOT create markdown TODO lists
- ❌ Do NOT create test issues in production DB
- ❌ Do NOT commit
.beads/beads.db(JSONL only)
For detailed workflows and advanced features, see AGENTS.md
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.

