agentleFS
BlockKnown publisherblock/proto-fleet/AGENTS.md

proto-fleet

AGENTS.md56 starsChanged 59 days agoApache-2.0View on GitHub

Proto Fleet is a monorepo for bitcoin-miner fleet management: Go/Connect/sqlc server, React/TypeScript clients (ProtoOS and ProtoFleet), Go/Rust/Python device plugins, and protobuf contracts. Human contributor workflows live in CONTRIBUTING.md. Read the guidance relevant to the requested change; a small edit does not require reading the full repo map or every skill. Before debugging or changing a documented fragile subsystem, search docs/solutions/ by relevant module:, tags:, or problem_type: and read matching learnings. Use CONTRIBUTING.md's cross-component workflows for new API endpoints, schema changes,…

The file

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

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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:

    Read the guidance relevant to the requested change.

    line 10
  2. Very specific:

    Before debugging or changing a documented fragile subsystem, search docs/solutions/ by relevant module:, tags:, or problem_type: and read …

    line 24
  3. Very specific:

    Do not hand-edit /generated/, *.pb.go, *.pb.ts, or client/src/protoOS/api/generatedApi.ts.

    line 46
  4. Distinctive:

    Visual snapshot baselines are approval-gated: Do not run the ProtoFleet visual snapshot refresh/overwrite flow unless the developer …

    line 53
  5. Distinctive:

    Do not add backwards-compatibility shims in unmerged feature branches.

    line 58
  6. Distinctive:

    Do not introduce new tooling (linters, formatters, build systems) without asking.

    line 60
  7. Very specific:

    Do not commit planning documents (implementation plans, TDDs, PRDs, or task scratchpads).

    line 66
  8. Very specific:

    Do not bypass hooks with --no-verify, -n, or local hook overrides.

    line 75
  9. Distinctive:

    Verify versions and upstream behavior against live sources.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

AGENTS.md

Proto Fleet is a monorepo for bitcoin-miner fleet management: Go/Connect/sqlc server, React/TypeScript clients (ProtoOS and ProtoFleet), Go/Rust/Python device plugins, and protobuf contracts. Human contributor workflows live in CONTRIBUTING.md.

Task-specific guidance

Read the guidance relevant to the requested change; a small edit does not require reading the full repo map or every skill.

When working onGuidance
Client features, routes, or E2Eclient/AGENTS.md, client README
Server logic, SQL, or monitoringserver/AGENTS.md, server README
Proto contracts, including SDK protosproto/AGENTS.md
Proto, SQL, or generator configuration changesCode generation skill
Python generator source or bundled scripts/pip-config.shPackaging skill, generator README
Miner drivers, fake rigs, or ASIC-rs inputsRelevant repo skill for contract tests, fixtures, or ASIC-rs builds
Go dependencies or missing toolsDependency guidance
PR descriptions or readinessPR standard, readiness skill

Before debugging or changing a documented fragile subsystem, search docs/solutions/ by relevant module:, tags:, or problem_type: and read matching learnings. Use CONTRIBUTING.md's cross-component workflows for new API endpoints, schema changes, client features, or server business logic.

Canonical commands

The root and per-area justfiles are the source of truth. just --list shows the full surface; setup options are in CONTRIBUTING.md.

GoalCommand
Setup / local appjust setup / just dev
Generate / lint / formatjust gen / just lint / just format
Check changed areasjust check-changed
Rebuild a plugin for Dockerjust rebuild-plugin <proto|antminer|virtual|asicrs>
Plugin contractsjust test-contract
ProtoFleet / ProtoOS E2Ejust test-e2e-fleet / just test-e2e-protoos
Python generator tarballcd packages/proto-python-gen && just package

Invariants

  • Do not hand-edit **/generated/**, *.pb.go, *.pb.ts, or client/src/protoOS/api/generatedApi.ts. Edit sources and run the appropriate command from the generation skill; commit source and generated output together.
  • Deployed migrations are immutable. Use a new migration with both up and down files. See the migration skill when deciding whether an existing migration can change.
  • Visual snapshot baselines are approval-gated. Do not run the ProtoFleet visual snapshot refresh/overwrite flow unless the developer explicitly confirms they understand the checked-in expected screenshots will be replaced. After refreshing snapshots, remind the developer to review every updated image before committing or pushing.
  • Do not add backwards-compatibility shims in unmerged feature branches; rebase the source instead.
  • Do not introduce new tooling (linters, formatters, build systems) without asking. Do not mock the database where real Postgres/Timescale is available via docker-compose.

Git and completion

  • Do not commit planning documents (implementation plans, TDDs, PRDs, or task scratchpads). Keep them in the conversation, an issue/PR, an external document, or ignored local docs/plans/ files. Commit maintained documentation of current behavior, architecture, and operations instead. RFCs remain tracked under docs/rfcs/; follow the RFC guidance.
  • Work on a feature branch. Never commit on main, master, or detached HEAD; verify git branch --show-current before each commit. After a PR merges, start a fresh branch from updated main.
  • Do not bypass hooks with --no-verify, -n, or local hook overrides. Fix the underlying failure; diagnose missing tools via the dependency guide.
  • For implementation requests, complete the change and applicable validation. Fix failures caused by the change and rerun affected checks without asking at each step. Stop when those checks pass or a concrete blocker remains; report unrelated failures without expanding scope. Read-only reviews stay read-only. Commit, push, and PR creation follow the user's requested scope.
  • Choose checks for the affected behavior; broaden only for a relevant risk or failure. Run targeted tests while editing. For an authorized push, let pre-push run the final just check-changed; do not duplicate it manually immediately before pushing. For local-only completion, run it manually. Repeat passing checks only after relevant inputs change or a new concern appears; keep hooks enabled on every push. Report what ran, what passed, and what remains unverified.
  • Verify versions and upstream behavior against live sources. For setup instructions, read the actual scripts; mark unverifiable claims explicitly.

Agent tooling

Canonical repository skills live in .agents/skills/; their descriptions identify when to load them. .claude/skills/ exposes those same definitions to Claude through per-skill links. Do not copy or fork instructions between discovery directories. CLAUDE.md is a thin entry point. Keep .claude/settings.local.json private. Claude invokes these workflows as /regen, /pr-ready, /pr-describe, /triage-pr, /release-notes, and /plan; Codex uses the corresponding $name.

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.