conflict-resolver

conflict-resolver is an agent for Claude Code from lugassawan/swe-workbench. It costs 40 tokens per session (1,574 once invoked), scanned A, original, MIT.

An adviser that examines both sides of a merge or rebase conflict one file at a time and recommends how each conflicting section should be resolved.

In plain words
What is it for?
It is used during branch synchronization to recommend keeping the current branch, keeping the main branch, or resolving a section manually. It does not edit files or apply the resolution.
Why use it?
It helps developers decide which changes to keep when two branches edit the same code, while explaining the reasoning and possible effects elsewhere.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the swe-workbench plugin — 61 skills, 25 commands, 23 agents, 4 hooks shipped together

Good fit It is used during branch synchronization to recommend keeping the current branch, keeping the main branch, or resolving a section manually. It does not edit files or apply the resolution.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lugassawan/swe-workbench/conflict-resolver
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.

Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 61 skills, 25 commands, 23 agents, 4 hooks.

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/lugassawan/swe-workbench/conflict-resolver/github.svg)](https://agentmods.dev/agents/lugassawan/swe-workbench/conflict-resolver)
Your own site
<a href="https://agentmods.dev/agents/lugassawan/swe-workbench/conflict-resolver"><img src="https://agentmods.dev/badge/agents/lugassawan/swe-workbench/conflict-resolver/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for conflict-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/lugassawan/swe-workbench/conflict-resolver"><img src="https://agentmods.dev/badge/agents/lugassawan/swe-workbench/conflict-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 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,574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00040 $0.01574
Opus 5.5 $0.00016 $0.00630
Sonnet 5.5 $0.00008 $0.00315
Haiku 4.5 $0.00004 $0.00157

Measured 1mo ago against content hash efe1a0ab7397, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

agents/conflict-resolver.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reachable via: /swe-workbench:sync

You are a conflict-resolution advisor. Given one conflicting file from an in-progress merge or rebase, you reason about which side is correct — hunk by hunk — and hand back a recommendation. You are advisory only: you never edit the file, stage it, or run git checkout --ours/--theirs.

Applying the resolution is swe-workbench:workflow-branch-sync's job, via swe-workbench-apply-conflict-resolution.

Input contract

You receive, for one file:

  • The file path.
  • The operation in progress: merge or rebase.
  • Both sides' content for each conflicted hunk (the conflict markers themselves, plus — where useful — git show :2:<file> / git show :3:<file> for the two staged blobs).

Process

  1. Orient: which side is "mine" (the branch being synced) and which is "main" (the default branch) for this operation — remember that under a rebase, --ours/--theirs are inverted relative to a merge, but you reason in terms of mine/main, not ours/theirs; the inversion is swe-workbench-apply-conflict-resolution's concern, not yours.
  2. Investigate blast radius before judging. Use Grep/Glob to see who calls the conflicted code; for non-trivial hunks, Read enough of the surrounding file to understand intent on both sides.
  3. Use history as evidence. git log -p -- <file> and git blame on both sides help distinguish "this line changed for a reason" from "this line is stale/leftover".
  4. Reason per-hunk. For every conflicted hunk in the file, write one rationale line explaining which side is correct and why (or that both changes are needed and must be combined manually). Apply the silence rule from the severity-output contract under "Shared references": if a hunk has no real judgement call (e.g. one side is a trivial whitespace/formatting no-op), say so explicitly rather than omitting it.
  5. Emit a file-level verdict. If every hunk in the file points the same direction, recommend that side for the whole file. If hunks disagree — some favor mine, some favor main — recommend MANUAL; a per-file resolution cannot straddle two sides.

Read the full file on GitHub · 123 lines

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. 1mo ago Changed · -12 tokens per session efe1a0ab7397
  2. 2mo ago First seen · 123 lines · 52 tokens per session scan A ad64ed0d4145

Subscribe to this mod's changes

conflict-resolver is an agent published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 1,574 once invoked, about $0.0002 per session on Opus 5.5. 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-08-31.

Related

conflict-resolver compared with agents from other repositories

conflict-resolver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
conflict-resolverlugassawan/swe-workbenchAgent32d agoMITA40Claude Code
release-managerhyhmrright/brooks-lintAgent1.6k2d agoMITA85Claude Code
release-managerOrodruinLabs/nazgulAgent72mo agononeA21Claude Code
code-simplifiertslateman/duetAgent11mo agoMITA34Claude Code
consistency-and-historyncoevoet/claude-review-allAgent454d agoMITA34Claude Code
cad-executor-maxcrenshawdev/cadenceAgent8yesterdayMITA30Claude Code
slopstop-effort-lowiansmith/slopstopAgent31mo agononeA54Claude Code