← All experiments

No. 062 · Week 48 · Kieran Klaassen · Exploring

Agents Welcome

Agents

The problem

Agents make it cheap to work on almost any repository. The hard part is knowing what that repository wants.

I open a pull request in a repo that isn't mine, and it can wait three weeks. Or the answer is "no thanks", with no reason I could have known up front. It feels personal, and the tokens are already spent.

It goes wrong on the other side too. Agents are welcome in my repositories, but I have no good way to tell them what I'm looking for.

I used to think the missing piece was orchestration. I now think you can use any orchestrator. The missing piece is alignment: what are we trying to achieve, what counts as done, and who says yes?

What we're trying

A contract that lives in the repository. The owner writes down what work is welcome, what a change has to show, and what happens next. It should be super clear, so a yes or a no comes from the rules and isn't personal.

The most important part: if a change passes what was agreed, does it merge automatically, or does a human need to look at it? And if a human looks, it has to be super clear to them what was done.

It's a new flow I'm working on in Compound Engineering, for our own repos and for open source.

  • You opt in. The owner opens each kind of work separately, such as speed or dependency updates. Anything not listed is a no.
  • You choose who it's for. Each kind can be open to the team, to named people, or to anyone. It matters whether the work comes from inside or outside.
  • You make a promise. Each kind either auto-merges when it meets the rules, or a human looks at it within a set time.
  • Any agent can use it. The whole strength is that it works with any harness. Compound Engineering's /afg should be the easy way in, but nobody should need it.
  • A badge shows it. The README says agents are welcome and links to the contract.

An example

A repo says it wants faster pages. The proof is a page load under 50 ms with the tests passing. For the team, it auto-merges.

An agent makes a change. The repo measures it. At 44 ms it merges and nobody has to be asked. At 61 ms it's refused, and the reason is the target.

The pictures below are mock-ups from an earlier round, when we still said "lands" and "answer in 2 days". Every value in them is an example.

See the rest of the write-up and 4 more images.A free Every account opens this. Nothing to buy.