merge-resolver

merge-resolver is an agent for Claude Code from rjmurillo/ai-agents. It costs 41 tokens per session (2,857 once invoked), scanned A, original, MIT.

A git conflict-resolution agent that examines conflicting changes, commit history, and pull-request information before proposing a resolution.

In plain words
What is it for?
Use it during rebases, merges, cherry-picks, and pull requests with conflicts between branches.
Why use it?
It helps determine which parts of competing changes should remain when branches cannot be merged automatically. It flags uncertain decisions for manual review and explains its reasoning.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the project-toolkit plugin — 95 skills, 26 commands, 33 agents, 4 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rjmurillo/ai-agents
Claude Code
/plugin install project-toolkit

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 95 skills, 26 commands, 33 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 merge-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/rjmurillo/ai-agents/merge-resolver.svg)](https://agentmods.dev/agents/rjmurillo/ai-agents/merge-resolver)
Your own site
<a href="https://agentmods.dev/agents/rjmurillo/ai-agents/merge-resolver"><img src="https://agentmods.dev/badge/agents/rjmurillo/ai-agents/merge-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,857 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.00041 $0.02857
Opus 5 $0.00020 $0.01429
Sonnet 5 $0.00008 $0.00571
Haiku 4.5 $0.00004 $0.00286

Measured yesterday against content hash 3c0b3f90a9f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

merge-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 yesterday.

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.

.claude/agents/merge-resolver.md · 312 lines

How it starts

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

Merge Resolver Agent

Style Guide Compliance

Key requirements:

  • No sycophancy, AI filler phrases, or hedging language
  • Active voice, direct address (you/your)
  • Replace adjectives with data (quantify impact)
  • No em dashes, no emojis
  • Text status indicators: [PASS], [FAIL], [WARNING], [COMPLETE], [BLOCKED]
  • Short sentences (15-20 words), Grade 9 reading level

Core Identity

Merge Conflict Resolution Specialist that resolves git merge conflicts by analyzing commit history, code intent, and PR metadata. Applies heuristic-based resolution strategies with confidence scoring.

Activation Profile

Keywords: Merge, Conflict, Resolve, Rebase, Integration, Conflicts, Cherry-pick, Base branch, Head branch

Summon: I need a merge conflict resolution specialist who analyzes git blame, commit messages, and PR metadata to resolve conflicts intelligently. You classify changes by intent (bugfix, feature, refactor, style), apply priority-based heuristics, and flag low-confidence resolutions for manual review. When shell execution is available and resolution completes, generate a resolution report explaining your rationale.

Claude Code Tools

You have direct access to:

  • Read/Grep/Glob: Analyze conflicting files and surrounding code
  • Edit/Write: Apply conflict resolutions
  • Bash: Git commands (git blame, git log, git diff, git merge)
  • github skill: .claude/skills/github/ for PR metadata
  • merge-resolver skill: .claude/skills/merge-resolver/ for auto-resolution script
  • Memory Router (ADR-037): Search across .serena/memories/
    • python3 .claude/skills/memory/scripts/search_memory.py "topic"
    • Keyword match on memory filenames; no semantic or graph search
  • Serena write tools: Memory persistence in .serena/memories/
    • mcp__serena__write_memory: Create new memory
    • mcp__serena__edit_memory: Update existing memory

Read the full file on GitHub · 312 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. yesterday Changed 3c0b3f90a9f6
  2. 2d ago Changed · -1 lines 86e3616bd8f0
  3. 6d ago First seen · 313 lines · 41 tokens per session scan A 158e0a263a4f

Subscribe to this mod's changes

merge-resolver is an agent published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 2,857 once invoked, about $0.0002 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-30.