agentleFS
tobiasosbornetobiasosborne/polyceph/.github/copilot-instructions.md

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.

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
  1. Distinctive:

    Always write tests for new features

    line 26
  2. Very specific:

    Use BEADS_DB=/tmp/test.db to avoid polluting production database

    line 27
  3. Very specific:

    Run go test -short ./... before committing

    line 28
  4. Distinctive:

    Never create test issues in production DB (use temporary DB)

    line 29
  5. Very specific:

    Follow existing patterns in cmd/bd/ for new commands

    line 33
  6. Very specific:

    Add --json flag to all commands for programmatic use

    line 34
  7. Distinctive:

    Update docs when changing behavior

    line 35
  8. Very specific:

    Always commit .beads/issues.jsonl with code changes

    line 38
  9. Very specific:

    Run bd sync at end of work sessions

    line 39
  10. Distinctive:

    Use the beads MCP server for native function calls instead of shell commands:

    line 105
  11. Very specific:

    Run bd <command> --help to see all available flags for any command.

    line 123

≈ “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.

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

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.db to 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 --json flag to all commands for programmatic use
  • Update docs when changing behavior

Git Workflow

  • Always commit .beads/issues.jsonl with code changes
  • Run bd sync at 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/push

Workflow

  1. Check ready work: bd ready --json
  2. Claim task: bd update <id> --status in_progress
  3. Work on it: Implement, test, document
  4. Discover new work? bd create "Found bug" -p 1 --deps discovered-from:<parent-id> --json
  5. Complete: bd close <id> --reason "Done" --json
  6. 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 storage

Available 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 --json flag for programmatic use
  • ✅ Run bd sync at end of sessions
  • ✅ Test with BEADS_DB=/tmp/test.db
  • ✅ Run bd <cmd> --help to 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

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.