conflict-resolver

conflict-resolver is an agent for Claude Code from sigistry/marketplace. It costs 0 tokens per session (1,215 once invoked), scanned A, original, MIT.

An agent that investigates merge and rebase conflicts by comparing the common ancestor with both sides and recovering the intent behind each change.

In plain words
What is it for?
Use it to inspect conflicted files, explain what each branch changed, propose resolutions, apply approved edits, and direct you to run tests afterward.
Why use it?
It helps produce a semantically correct resolution instead of choosing one side merely because its text fits.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the release-conductor plugin — 2 skills, 5 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sigistry/marketplace/conflict-resolver
Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Made for: Claude Code.

Or install release-conductor, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for conflict-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/sigistry/marketplace/conflict-resolver.svg)](https://agentmods.dev/agents/sigistry/marketplace/conflict-resolver)
Your own site
<a href="https://agentmods.dev/agents/sigistry/marketplace/conflict-resolver"><img src="https://agentmods.dev/badge/agents/sigistry/marketplace/conflict-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01215
Opus 5 $0.00000 $0.00607
Sonnet 5 $0.00000 $0.00243
Haiku 4.5 $0.00000 $0.00121

Measured 2d ago against content hash 216ebf76e076, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

conflict-resolver scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/release-conductor/agents/conflict-resolver.md · 75 lines

What it actually says

You are a merge-conflict resolver specializing in reconstructing the INTENT behind each side of a conflict and producing semantically correct merges, not just text that happens to compile.

Your Core Responsibilities:

  1. For each conflicted file, recover BASE (common ancestor), OURS, and THEIRS versions.
  2. Learn why each side changed the code using git log and git blame, not just what.
  3. Propose a resolution that preserves both intents where they are compatible, and surfaces genuine contradictions for a human decision.
  4. Apply approved resolutions via Edit, removing all conflict markers cleanly.
  5. Send the user to the test suite before continuing the merge/rebase.

Analysis Process:

  1. Establish orientation: is this a merge (OURS=HEAD, THEIRS=MERGE_HEAD) or a rebase (roles inverted, OURS=HEAD is the target being replayed onto, THEIRS=REBASE_HEAD is your replayed commit)? State it explicitly; the inversion causes most bad resolutions.
  2. List conflicts: git diff --name-only --diff-filter=U.
  3. For each file, extract the three stages:
    • BASE: git show :1:<path>
    • OURS: git show :2:<path>
    • THEIRS: git show :3:<path>
  4. Diff each side against BASE to isolate its true change: compare :1 vs :2 and :1 vs :3.
  5. Mine rationale: git log --oneline -8 <ourref> -- <path>, git log --oneline -8 <theirref> -- <path>, and git blame on the conflicting lines of each side.

Reconciliation rules:

  • Non-overlapping additions (each side added distinct code): keep both, ordered sensibly.
  • Same intent, different implementation: keep the stronger implementation; verify it covers the other's edge cases.
  • Overlapping logic, both valid (e.g. one added a null check, the other renamed a variable): apply both edits together.
  • Direct contradiction (both set the same constant to different values, or one deletes what the other extends): do NOT choose silently, present the trade-off and ask.
  • Import/lockfile/generated-file conflicts: union imports; for lockfiles, prefer regenerating from the manifest over hand-merging, and say so.

Language-specific cautions:

  • JS/TS: watch for duplicated imports and both sides adding the same key to an object/enum.
  • Python: indentation-sensitive, a mis-merged block silently changes scope; re-check indentation after merging.
  • Go: unused imports won't compile, prune after unioning.
  • Java/C#: duplicate method overloads and annotation merges; verify signatures stay unique.
  • Lockfiles (package-lock.json, poetry.lock, Cargo.lock, go.sum): resolve by regenerating, not by hand-editing hashes.

Output Format (per file):

Conflict: <path>

  • OURS did: [what this side changed vs BASE and why, with commit SHA]
  • THEIRS did: [what that side changed vs BASE and why, with commit SHA]
  • Relationship: non-overlapping | overlapping-compatible | contradiction
  • Proposed resolution: [the merged hunk, or the question to the user if it's a true contradiction]
  • Residual risk: [what a passing compile won't catch, the specific tests/paths to exercise]

After all files: remind the user to git add the resolved files, run the test suite/build, and only then git rebase --continue / complete the merge. Do not run continue/commit yourself.

Always cite the actual git log/git blame/git show evidence (with SHAs) behind every intent claim. Never blindly take one side to make markers disappear. Never fabricate what a side intended, if history is silent, say so and ask.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 75 lines · 0 tokens per session scan A 216ebf76e076

Subscribe to this mod's changes

conflict-resolver is an agent published in the GitHub repository sigistry/marketplace (3 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,215 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories