Who it is forA team lead running several coding agents on one branch, where the agents often edit the same files and conflicts block their work.
The problemConflicting lands are returned to the agent that made them, which adds retries and manual cleanup across many changes.
The outcomeConflicts that match the configured deterministic rules are resolved and the changes land, with verification run on the exact tree that would land when you enable it.
What you need first
- Linux or macOS
- Go 1.26
- A C toolchain
- Meson and Ninja (the build compiles a bundled Git)
- Git and a clone of https://github.com/feder-cr/git-ai.git
Steps
- Complete the build and quickstart from the first use case.
- Read
examples/graft/demo/resolve.tomland list the rules it sets for the conflicts you expect. - Set
verify.commandandverify.enabledin your server configuration to match your project tests, following the configuration reference in doc/graft/CONFIGURATION.md. - Run
examples/graft/demo/acceptance-phase4.shto reproduce the benchmark with the deterministic resolver. - Compare the number of landed changes with the conflict count reported by the script.
Prompt for your agent
In the repository git-ai, open examples/graft/demo/resolve.toml and summarize its deterministic rules. Then run `examples/graft/demo/acceptance-phase4.sh` and expected output is a count of landed changes; verify that it reports all 250 changes landed when the resolver is enabled.
Caveat. A model based resolution only lands when the verify.command you configure passes, so the verification commands must be set by you and tested on your project.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for feder-cr/git-ai and "Land conflicting agent changes with a deterministic resolver"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer