conflict-resolver

conflict-resolver is an agent for coding agents from lugassawan/swe-workbench. It costs 52 tokens per session (1,585 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

Part of the swe-workbench plugin — 1 skill, 24 commands, 32 agents, 4 hooks 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/lugassawan/swe-workbench/conflict-resolver
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Or install swe-workbench, the plugin that ships this one along with the rest of its 1 skill, 24 commands, 32 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 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,585 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 $0.00052 $0.01585
Opus 5 $0.00026 $0.00792
Sonnet 5 $0.00010 $0.00317
Haiku 4.5 $0.00005 $0.00159

Measured 3d ago against content hash ad64ed0d4145, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (2 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,585 once invoked, about $0.0003 per session on Opus 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.