agentleFS
dzhioevdzhioev/bro/dev/AGENTS.md

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…

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
  1. Very specific:

    Every member builds through uv's own backend, which ships each declared module root whole, so a [tool.uv.build-backend] wheel-exclude glob …

    line 60
  2. Distinctive:

    Never hand-write or strip either.

    line 72

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

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

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.py discovers CLIs and regenerates a distribution's scripts table plus committed _entrypoints.py bridge
    • usage_report.py aggregates token-accounting footers over a git range
    • install.py installs the commit-footer hooks and the repo-local git golc alias
    • git_golc.py backs that alias with per-commit output-token credits
    • shell_policy.py, packaging_policy.py, markdown_policy.py, and sleep_policy.py expose reusable repository checks over an explicit root; markdown_policy.py also backs check-markdown, which holds a bulk prose reflow to whitespace and nothing else
    • affected_tests.py reads a diff and the import graph over a repository's source roots, answering which of its modules a change can reach
    • sharding.py is the --shard K/N pytest plugin, dealing a collection into shards by test class or standalone function
    • references.py declares the dev-style and rebase-conflicts sources and the guides pages, all over files in bro/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 remain bro.workflow.*; its CLIs are commit-footer, default-branch, fold-branch, and land-pr
  • bro/extra/github/ — poll_pr.py (the poll-pr review watcher) and pr_state.py (the pr-state reviewer-side read of a PR's review state). The GitHub client, App-auth source, and pull-request reads they consume remain in core at bro.extra.github.api, .app, and .pulls
  • bro/prompts/dev/style.md — the development style policy, tool-served by the Dev and Eyebro personas through dev-style-source::read
  • bro/prompts/dev/{concurrency,testing,markdown}.md — the guide pages the style policy points to, declared by the same personas into their man manual
  • bro/prompts/dev/rebase_conflicts.md — resolving a rebase that stops on a conflict, tool-served by the Dev persona through rebase-conflicts-source::read
  • bro/dev/spells/ — the spells more than one development persona offers, as SpellFile values in the bro.dev.spells package: audit, framework bump, design, task, task creation (open-task), reflection (reflect), PR, PR resume, and landing
  • bros/dev/ — generic developer with the files, unrestricted brash, web, and delegation tool groups, and those spells (the task ones gated on its brog feature). Its optional brog feature mounts tracker tooling; its provisioning declaration installs the commit hooks
  • bros/eyebro/ — code reviewer with the review-diff (revision/branch → findings list) and review-pr (drive a PR to a verdict through poll-pr) spells. It derives from Bro, not Dev, so the author-side spells stay out of its roster. Its optional github feature is the pull-request conversation's identity: review-pr runs under it and otherwise names what is missing and how to supply it, while review-diff needs none
  • bros/lead/ — coordinator persona and orchestrate spell
  • bros/terminal/ — standalone container developer, directly derived from BaseBro

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.

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.