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,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository20 other files it gives its agents.
- client/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- asicrs-buildSkill
- code-generationSkill
- docker-compose-devSkill
- fake-rig-fixturesSkill
- hermit-toolingSkill
- migration-immutabilitySkill
- planSkill
- plugin-contract-testsSkill
- pr-describeSkill
- proto-fleet-playwright-e2eSkill
- pr-readySkill
- python-gen-tarballSkill
- regenSkill
- release-notesSkill
- triage-prSkill
- code-reviewSkill
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
- Distinctive: line 10
Read the guidance relevant to the requested change.
- Very specific: line 24
Before debugging or changing a documented fragile subsystem, search docs/solutions/ by relevant module:, tags:, or problem_type: and read …
- Very specific: line 46
Do not hand-edit /generated/, *.pb.go, *.pb.ts, or client/src/protoOS/api/generatedApi.ts.
- Distinctive: line 53
Visual snapshot baselines are approval-gated: Do not run the ProtoFleet visual snapshot refresh/overwrite flow unless the developer …
- Distinctive: line 58
Do not add backwards-compatibility shims in unmerged feature branches.
- Distinctive: line 60
Do not introduce new tooling (linters, formatters, build systems) without asking.
- Very specific: line 66
Do not commit planning documents (implementation plans, TDDs, PRDs, or task scratchpads).
- Very specific: line 75
Do not bypass hooks with --no-verify, -n, or local hook overrides.
- Distinctive: line 89
Verify versions and upstream behavior against live sources.
≈ “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.
Files
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 on | Guidance |
| Client features, routes, or E2E | client/AGENTS.md, client README |
| Server logic, SQL, or monitoring | server/AGENTS.md, server README |
| Proto contracts, including SDK protos | proto/AGENTS.md |
| Proto, SQL, or generator configuration changes | Code generation skill |
Python generator source or bundled scripts/pip-config.sh | Packaging skill, generator README |
| Miner drivers, fake rigs, or ASIC-rs inputs | Relevant repo skill for contract tests, fixtures, or ASIC-rs builds |
| Go dependencies or missing tools | Dependency guidance |
| PR descriptions or readiness | PR 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.
| Goal | Command |
| Setup / local app | just setup / just dev |
| Generate / lint / format | just gen / just lint / just format |
| Check changed areas | just check-changed |
| Rebuild a plugin for Docker | just rebuild-plugin <proto|antminer|virtual|asicrs> |
| Plugin contracts | just test-contract |
| ProtoFleet / ProtoOS E2E | just test-e2e-fleet / just test-e2e-protoos |
| Python generator tarball | cd packages/proto-python-gen && just package |
Invariants
- Do not hand-edit
**/generated/**,*.pb.go,*.pb.ts, orclient/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 underdocs/rfcs/; follow the RFC guidance. - Work on a feature branch. Never commit on
main,master, or detached HEAD; verifygit branch --show-currentbefore each commit. After a PR merges, start a fresh branch from updatedmain. - 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.
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.

