ยท Jonathan Mondaut

One harness per kind of work

My first shared instruction file tried to cover everything. Backend conventions, frontend conventions, how I like reviews done, how to write migrations, how to name branches. It grew past a few hundred lines, and the agent got worse, not better.

That makes sense when you think about it. Everything in the instruction file is loaded at the start of every session. A frontend fix doesn't need the migration checklist, but the agent reads it anyway, and it competes for attention with the rules that matter for the task at hand.

Split by kind of work, not by repo

The fix I landed on is to split the setup by kind of work:

Each one is small and focused. Each one has the skills that kind of work needs, and nothing else.

A harness here means a folder in a GitHub repo you own, with a harness.yaml that lists its instructions, skills and subagents. The format is the open Harness Protocol, so it's plain files you can read and review.

Switching is one command

In Baudrier, a project can have several harnesses attached. To change which one the agent gets:

baudrier use frontend

The switch applies from the next session. Baudrier never reloads a conversation that's already running, so you won't get rules changing under you halfway through a task.

The agent can do it too. Baudrier's MCP server exposes list_harnesses and switch_harness, so when a task clearly calls for a different setup, the agent can see what's available and ask for it.

Keep the shared core tiny

A few rules belong in every harness: how you write commits, never committing secrets, asking before destructive commands. Splitting means those few lines appear in each harness. That's fine as long as the list stays short, a handful of lines you can check at a glance.

If the shared part keeps growing, that's a sign it isn't really shared. Most of it usually belongs to one kind of work.

How I decide what goes where

A simple test: would this rule help or distract in a session about something else?

When I'm unsure, I start narrow. A rule that turns out to be needed elsewhere is easy to move up. A rule loaded everywhere by mistake is hard to notice.

The result

Sessions start with less to read and more of it relevant. The agent stops applying backend habits to frontend code. And each harness is short enough that I actually read it when I review a change to it.

Try it

Baudrier is in closed Alpha, for Claude Code and Codex. Request an invite and tell me how you'd split your own setup.