Médula - Catches the conflicts git can't see between coding agents
by•
When several Claude Code agents work in one repo, git merges their work cleanly and the result can still be broken: one agent changes login(), another keeps calling the old one. Médula is a small open-source kernel that sits in Claude Code's hooks and, before every write, asks a fast model whether it collides with what the other agents are doing. It ships with the benchmark behind it: every run, decision and caveat published.

p/faraday-4
p/beamfy
p/google-cloud-platform
p/producthunt
p/kodlo
p/slay-3
p/hypersleep
p/meridian-16
p/reso
p/thebold
p/neoagent
p/murror
p/runevr
p/xtensio
p/many-displays
p/gatrends
p/wellows-3
p/product-hunt-wrapped-2025
p/lancetta
Replies
Hi Product Hunt 👋 I'm Joaquín. I run several Claude Code sessions on the same repository, and I kept hitting the same bug: each agent's work was fine, git merged everything without a single conflict, and the app was broken, because one agent had changed a function the other was still calling.
So I built a small lab to measure it, and Médula, a kernel that coordinates the agents through Claude Code's hooks. Before every write, it asks a fast decider (Jev, or Haiku/Sonnet) whether the change collides with what the others are doing. If it's unsure, Sonnet looks closer, and the agent either goes ahead, waits, or gets told what to change.
What the runs showed:
With git branches, the semantic conflict slipped through in every run (31/37 tests green).
With Médula and Jev, both real conflicts were caught in every run, with no unnecessary blocks (37/37).
And the honest part: on states taken from real runs, the deciders are less accurate than on synthetic tests (Jev 80 %, Haiku 47 %, Sonnet 83 %). That's the main open problem, and it's all in the repo.
Try it in any repo: medula init, then medula servir. Without an API key it falls back to per-file locks.
I'd love feedback on two things: how you coordinate parallel agents today, and which conflicts we should add to the benchmark.