bro / dev
AGENTS.md12 starsChanged 13 days agoApache-2.0View on GitHub
Development tooling for repositories built on the bro framework, distributed separately from the core. The distribution is bro-dev; it contributes portions of the bro and bros namespaces and depends on bro. Core never imports it. Nothing here is specific to this checkout — checkout-only policy and the bro-dev persona live in the bro-local member (local/). This workspace member owns pyproject.toml — its distribution metadata, dependencies, console scripts, persona entry points, and wheel roots. Formatting, linting, typing, and the test roster…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bench/AGENTS.mdAGENTS.md
- benchmark/AGENTS.mdAGENTS.md
- bro/AGENTS.mdAGENTS.md
- browser/AGENTS.mdAGENTS.md
- filetypes/AGENTS.mdAGENTS.md
- local/AGENTS.mdAGENTS.md
- oops/AGENTS.mdAGENTS.md
- ride/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 60
Every member builds through uv's own backend, which ships each declared module root whole, so a [tool.uv.build-backend] wheel-exclude glob …
- Distinctive: line 72
Never hand-write or strip either.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Development domain
Development tooling for repositories built on the bro framework, distributed separately from the core.
The distribution is bro-dev;
it contributes portions of the bro and bros namespaces and depends on bro.
Core never imports it.
Nothing here is specific to this checkout
— checkout-only policy and the bro-dev persona live in the bro-local member (local/).
Development
This workspace member owns pyproject.toml
— its distribution metadata, dependencies, console scripts, persona entry points, and wheel roots.
Formatting, linting, typing, and the test roster are the repository root's (AGENTS.md, "Development"), which covers this directory too;
build the wheel with uv build --package bro-dev.
Components
bro/dev/— reusable repository-development utilities:sync_scripts.pydiscovers CLIs and regenerates a distribution's scripts table plus committed_entrypoints.pybridgeusage_report.pyaggregates token-accounting footers over a git rangeinstall.pyinstalls the commit-footer hooks and the repo-localgit golcaliasgit_golc.pybacks that alias with per-commit output-token creditsshell_policy.py,packaging_policy.py,markdown_policy.py, andsleep_policy.pyexpose reusable repository checks over an explicit root;markdown_policy.pyalso backscheck-markdown, which holds a bulk prose reflow to whitespace and nothing elseaffected_tests.pyreads a diff and the import graph over a repository's source roots, answering which of its modules a change can reachsharding.pyis the--shard K/Npytest plugin, dealing a collection into shards by test class or standalone functionreferences.pydeclares thedev-styleandrebase-conflictssources and theguidespages, all over files inbro/prompts/dev/
bro/workflow/— development delivery mechanics: co-author and token-accounting commit metadata, the read of origin's default branch, branch folding, PR landing, and the packaged git hooks. Its public import paths remainbro.workflow.*; its CLIs arecommit-footer,default-branch,fold-branch, andland-prbro/extra/github/—poll_pr.py(thepoll-prreview watcher) andpr_state.py(thepr-statereviewer-side read of a PR's review state). The GitHub client, App-auth source, and pull-request reads they consume remain in core atbro.extra.github.api,.app, and.pullsbro/prompts/dev/style.md— the development style policy, tool-served by the Dev and Eyebro personas throughdev-style-source::readbro/prompts/dev/{concurrency,testing,markdown}.md— the guide pages the style policy points to, declared by the same personas into theirmanmanualbro/prompts/dev/rebase_conflicts.md— resolving a rebase that stops on a conflict, tool-served by the Dev persona throughrebase-conflicts-source::readbro/dev/spells/— the spells more than one development persona offers, asSpellFilevalues in thebro.dev.spellspackage: audit, framework bump, design, task, task creation (open-task), reflection (reflect), PR, PR resume, and landingbros/dev/— generic developer with thefiles, unrestrictedbrash,web, anddelegationtool groups, and those spells (the task ones gated on itsbrogfeature). Its optionalbrogfeature mounts tracker tooling; its provisioning declaration installs the commit hooksbros/eyebro/— code reviewer with thereview-diff(revision/branch → findings list) andreview-pr(drive a PR to a verdict throughpoll-pr) spells. It derives fromBro, notDev, so the author-side spells stay out of its roster. Its optionalgithubfeature is the pull-request conversation's identity:review-prruns under it and otherwise names what is missing and how to supply it, whilereview-diffneeds nonebros/lead/— coordinator persona andorchestratespellbros/terminal/— standalone container developer, directly derived fromBaseBro
The bro, bro.extra, bro.prompts, and bros package trees are shared with other distributions.
Declare every shipped leaf in [tool.uv.build-backend].module-name;
do not build one of those parent trees wholesale.
Wheel contents
Every member builds through uv's own backend, which ships each declared module root whole, so a [tool.uv.build-backend] wheel-exclude glob is what keeps a file out of the wheel
— the test modules (*_test.py, *_test_helper.py, conftest.py, and a Claude Code plugin's *.test.ts) among them,
held against the built wheels by dev/bro/dev/packaging_policy.py and enforced repository-wide by its sibling packaging_policy_test.py.
That module derives the distributions from the root's members, so the projects shipped from outside the workspace are named to it explicitly;
local/ holds their names, next to the gate's other checkout-specific facts
— the modules and file-type manuals a wheel must carry among them.
Commit metadata
Agent commits carry the token-accounting footer automatically
— the installed commit-msg hook appends it whenever the environment carries an agent usage source, and human commits stay footerless (bro.workflow.commit_footer);
an interactive session's commits carry a Co-Authored-By trailer for the human it works for beneath it (bro.workflow.co_author).
Never hand-write or strip either.
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.

