Some repos come in families. One config repo per environment. One service per country. One fork per client. They share a layout, a build, and a set of conventions, and they differ in a handful of values.
They're also the repos where coding agents do worst. You open them rarely, often for a small change, so nobody ever sets up instructions for them. The agent starts every visit knowing nothing.
Here's how I handle a family now, from setup to a fresh clone.
The problem with one setup per repo
The usual approach is per repo: add an AGENTS.md, maybe a CLAUDE.md, copy some skills. For one repo, fine. For a family of twenty, it's twenty copies of the same thing, and you'll update three of them.
There's also a subtler problem. The repos in a family aren't identical. The French config and the US config share rules but differ in context: which region, which compliance notes, which endpoints. A copied file either ignores that or gets hand-edited twenty times.
One rule for the whole family
In Baudrier, a repo-family rule matches the git remote and decides what the agent gets:
baudrier rule add 'acme/api-service-config-*' --harness backend --context '{1}'
The pattern matches every repo named api-service-config- something under acme. Every match gets the backend harness. And {1} is the part matched by the *, so api-service-config-fr gets the fr context and api-service-config-us gets us.
A context is a piece of the harness that only applies to one project or market. Shared rules stay shared, and each repo still gets what's specific to it.
When several rules match, the most specific one wins. If two are equally specific, Baudrier refuses instead of guessing.
A fresh clone that needs nothing
With a rule in place, a fresh clone of any matching repo only needs:
baudrier use
You can go one step further. Run this once per machine:
baudrier use --global
It adds Baudrier at user level for Claude Code and Codex. After that, opening an agent in any fresh clone that matches a rule just works. The harness and context are picked, skills are synced, and git status stays clean, because Baudrier's local state goes in .git/info/exclude.
Repos that don't match any rule are left alone. A repo that already has its own committed Baudrier setup keeps it.
What this changes in practice
The family gets better over time instead of drifting. When I fix a convention, I fix it once in the harness, and every repo in the family has it at the next session. When an agent learns something useful in one of them, it comes back as a pull request on the harness, and after I merge it, the whole family has it.
And the rarely opened repos stop being the worst ones. The repo I open once a quarter gets the same current setup as the one I open every day.
One caveat for teams
--global is per machine. A teammate without Baudrier who clones one of these repos gets a plain repo with no agent setup. If a team works in a repo every day, commit the files baudrier use writes, so a teammate only needs baudrier use to get going.
Try it
Baudrier is in closed Alpha, for Claude Code and Codex. If you have a family of look-alike repos, request an invite and tell me how many there are. That's the setup I built this for.