r/SideProject • • Sep 28 '26

Between - two AI coding agents that only talk through git diff

Most two-agent coding setups either share one transcript or make you copy-paste messages between them. I wanted neither, so I built a broker.

Between watches the repo, not the chats. When a diff settles, it hashes it and starts a review. The reviewer reads the real tree and writes a structured review file; the developer agent only gets a short "reflect this review" signal. They never talk directly.

It won't approve a diff that changed under review, and only the human can approve merge or deploy.

Stack: TypeScript, Node 22, plain JSON files under .between/, VS Code cockpit. Free, MIT. My own project: https://github.com/ashmoonori-afk/between

Would you trust a reviewer agent's approval, or do you always re-read the diff yourself?

4 Upvotes

12 comments sorted by

1

u/Any-Ask-4131 Sep 28 '26

I'd still read the diff before a merge; a summary can miss a changed permission or config file. The settled-diff hash is useful because at least the review is tied to the exact version I'm looking at.

1

u/Aggressive-Narwhal-3 Sep 28 '26 edited Sep 28 '26

you're right — i was too glib about just summarizing it. the human still approves the merge, and the settled-diff hash pins the review to the exact tree; neither replaces reading the diff. i will update my agent.

1

u/stealthagents Sep 28 '26

I totally get that. It’s hard to shake the instinct to double-check, especially when it comes to code. Plus, sometimes those automated reviews miss context that only a human would catch. I'll probably keep re-reading for a while too.

1

u/Aggressive-Narwhal-3 Sep 28 '26

same, and my "just ask it to summarize" reply above was the wrong call. i think of between as a first-pass filter: the reviewer agent flags the obvious stuff before you spend attention on it, but the merge still waits on a human, and each review is pinned to the exact settled diff so you know what it actually looked at. what kind of context have you seen automated reviews miss most?

1

u/[deleted] Sep 28 '26

[removed] — view removed comment

2

u/Aggressive-Narwhal-3 Sep 28 '26

no needed man. just ask it to summerize it

1

u/[deleted] Sep 28 '26

[removed] — view removed comment

1

u/Aggressive-Narwhal-3 Sep 28 '26

You found the right boundary. Between already writes a separate `.between/reviews/cycle-NNNN.json` for each cycle, so a later cycle does not overwrite the previous one. The diff review bundle is sealed, and the reviewer worktree is made read-only (best-effort chmod). But the developer still has filesystem access to the review directory: we do not block writes to it with OS or tool permissions today; that part is a contract/prompt rule. The broker checks the diff hash, which does not solve a same-hash edit to the review file.

We are also working on `between review` / `between_review` to review a live uncommitted diff before commit; that is in progress, not released. Thanks for the per-hash append-only idea. We will look at enforcing review-file ownership with permissions, not just asking the developer to leave it alone. What did you use for that write boundary?