ยท Jonathan Mondaut

My AI agents' rules were drifting across my repos

When I configure a set of microservices, I can end up in ten repos in the same week. Then I don't touch them again until next quarter. Each visit is a small change: bump a value, fix a key, open a pull request.

In those repos, the coding agent is a stranger. I never wrote custom instructions for them, because it never seemed worth it for a five-minute change. So the agent doesn't know the conventions I use everywhere else. It doesn't have the skill my agent wrote yesterday in another project. I either spend ten minutes re-teaching it, or I let it guess and clean up after it.

None of this is the model's fault. The model is fine. The setup around it is missing, or stale.

The setup is the product

I've used AI for code since the first GitHub Copilot release, and I was pasting code from ChatGPT the week it came out. I even built a small game with a very early version of ChatGPT and wrote about it on Medium. After all those years, I've come to think the thing that makes an agent good in your codebase isn't mainly the model. It's what you hand it: the rules, the conventions, the skills, the checks.

Today that setup is scattered:

And in the repos you rarely open, there's often no copy at all, because setting one up isn't worth it for one small change. Every copy that does exist starts drifting the day you paste it. And the worst part goes the other way: when your agent figures something out and writes a good skill, that skill stays in the one repo where it was born. Your other repos never hear about it.

Why the obvious fixes fall short

A user-level file like ~/.claude/CLAUDE.md follows you everywhere, but only for one agent and only on your machine. It also can't tell a backend repo from a frontend one, so it ends up generic.

Symlinks or git submodules to a shared rules folder work until someone clones the repo fresh, or a teammate doesn't have the same folder layout.

A copy script fixes the drift for a day. It doesn't bring back what the agent learned locally, so you're still the one merging changes by hand.

What I wanted was simple to say: write the setup once, keep it in Git where it can be reviewed, and have every repo and every agent pick up the current version on its own.

What I built: one harness, served to every repo

So I built Baudrier. Baudrier is French for a climbing harness: the agent does the climbing, and the harness equips, guides and catches it.

The idea is small. Your agent setup lives in one GitHub repo you own, which I call a harness: a harness.yaml, your instructions, your skills and your subagents. Baudrier serves that harness to Claude Code and Codex through MCP, in every project you connect.

Three things follow from that:

  1. Write it once. Fix a rule in the harness and every repo gets it at the next session. No more copies to chase.
  2. Nothing your agents learn is lost. When an agent writes a useful skill, it proposes it back as a pull request on the harness. You review and merge it once, and every repo has it.
  3. Your content stays yours. The files stay in your GitHub and every change goes through a PR. Baudrier keeps state, not your files.

What it looks like in practice

Start from what you already have. import reads a repo's CLAUDE.md, AGENTS.md, skills and subagents and writes them into a separate harness repo. It never touches your original files, and it stops if it sees anything that looks like a secret.

uv tool install baudrier
baudrier import --name my-harness --out ~/my-harness --write

Push ~/my-harness as a private GitHub repo. Then, in any other repo:

baudrier use <you>/my-harness

That one command signs you in if needed, connects the repo and configures Claude Code and Codex. A teammate on a fresh clone runs just baudrier use.

Now back to my microservice config repos. They all look alike, so one rule covers the whole family:

baudrier rule add 'acme/api-service-config-*' --context '{1}'
baudrier use --global   # once per machine

After that, a fresh clone of any matching repo needs no command at all. I open it, the agent starts with the current harness, and git status stays clean.

When the agent improves a skill along the way, one command proposes it back:

baudrier sync --review-all --yes

That opens a single pull request on the harness. I merge it, and next quarter's repo already knows.

What it doesn't do (yet)

I'd rather be clear about the limits:

Try it

Baudrier is in closed Alpha. I'm looking for engineers who use more than one coding agent, or keep the same rules in several repos, to try it on one real project for a week and tell me where it falls short.

Request an invite and tell me your use case. I read every request.

And if you've solved this some other way, I'd like to hear how. Where do your agent rules live today?