A merge conflict resolver for the agentic-coding era. Local CLI + MCP server; resolves N-way merges with a deterministic floor (text + Mergiraf) and an AI ceiling (host-provided sampling, or BYO-key OpenAI / Anthropic / Gemini / Ollama).
Three install paths, same binary. Pick whichever fits your setup.
brew install ameyypawar/gfix/gfixcurl -fsSL https://gitfix.pro/install | shnpm install -g @gitfix/cliVerify:
gfix --versionWire gfix into Claude Code as an MCP server (cross-directory, user-scope):
claude mcp add --scope user -- gfix /opt/homebrew/bin/gfix mcpThen from any chat in any repo:
Use gfix to merge feat/auth and feat/billing into main.
The agent calls gitfix_merge_preview, gets back the conflict list, walks each one with gitfix_conflict_get + gitfix_conflict_resolve, then gitfix_merge_apply finalizes. Every accepted resolution lands in refs/gitfix/rerere/<hash> so the same conflict on the next branch resolves locally without an AI call.
Prefer the shell? Standalone CLI dispatch (gfix merge feat/a feat/b) lands in v0.1.0-alpha.2. Today's supported entry point is the MCP server.
Full walkthrough: setup.md.
gfix is a one-developer indie product in alpha. Closed source during the brand-formation window protects against fork-and-flip while the design surface is still moving fast. The 5-line EULA in LICENSE.txt lets you install on any number of machines for any purpose including commercial use; you just can't redistribute the binary or reverse-engineer it. Pricing is free during alpha; the pricing decision is deferred to v1.0.
If "closed-source binary" is a deal-breaker for your environment (compliance review, security audit, regulated industry), source access on request to ameyap007aaa@gmail.com with a one-paragraph use case. For most users, the audit refs (see below) are the trust-substitute for source visibility.
- Every merge leaves a pushable, immutable audit ref.
refs/gitfix/audit/<merge_id>is a synthetic git commit whose tree holdsaudit.jsonwith the full final merge state. Inspect withgit show. Share withgit push origin refs/gitfix/audit/*. gfix never pushes — you do. - Accepted resolutions cached + replayed across machines.
refs/gitfix/rerere/<blake3>stores every accepted resolution as a content-addressed synthetic commit. Push to any git remote (GitHub, bare, self-hosted). Your teammate'sgfixon the same conflict triple replays your answer in <100ms with zero AI calls. - Deterministic floor that never regresses. Text merge -> Mergiraf subprocess -> AI. Mergiraf handles structural merges (TypeScript signature changes, Java method bodies, etc.) before AI is ever asked. The deterministic floor is the product; the AI is an accelerant.
- Honest about the AI ceiling. Independent research (merde.ai) puts LLM resolution of complex semantic conflicts around ~50%. gfix never pretends otherwise. Suggestions come with rationale and confidence scores; nothing is auto-applied. Low-confidence suggestions are surfaced as low-confidence, not laundered into certainty.
- Untrusted-content safe. Conflict bodies are wrapped and defanged before being concatenated into the AI prompt. A jailbroken model can produce file bytes — never actions. The red-team corpus that found and fixed this bug is part of the M2 release.
- MCP-native, host-agnostic. Works with Claude Code today. Cursor, Codex, Aider, opencode, Continue, Gemini CLI — anything that speaks MCP — get the same tool surface for free.
- This repo (
gitfix-docs) — user-facing docs, setup guide, capability matrix, FAQ, changelog, launch posts. The repo you're in. ameyypawar/gfix— binary distribution surface. GitHub Releases host the actual tarballs. Install bugs go here.ameyypawar/gitfixsource — PRIVATE. Closed during alpha. Source access on request (see above).
v0.1.0-alpha — closed-source binary alpha. Free during alpha. Pricing decision deferred to v1.0.
Supported platforms: macOS arm64 (verified by developer dogfood across two sessions). macOS x86_64, Linux x86_64, Linux arm64 — binaries shipped, unverified by the developer's own daily use.
Supported MCP host: Claude Code (canary). Cursor, Codex, Aider, opencode, Continue, Gemini CLI — should work, not actively tested against in alpha.1.
- Install or binary bugs -> github.com/ameyypawar/gfix/issues
- Docs typos, missing platform notes, capability matrix fixes -> this repo's Issues
- Security reports -> ameyap007aaa@gmail.com (do not file public — coordinated disclosure preferred)
Proprietary alpha. The full 5-line EULA lives in LICENSE.txt. Short version: install on any number of machines for any purpose including commercial use; don't redistribute the binary or reverse-engineer it. A formal EULA supersedes this notice before v1.0.
gfix end-user license — v0.1.0-alpha
Copyright © 2026 Amey Pawar. All rights reserved.
You may install and use this binary on any number of machines for any
purpose, including commercial use. You may not (a) reverse-engineer or
attempt to extract source code from the binary, (b) redistribute the
binary or any portion of it, (c) remove this notice, or (d) use it to
develop a competing product. This software is provided as-is, with no
warranty. A formal EULA will supersede this notice before v1.0.
For licensing questions: ameyap007aaa@gmail.com