conflict-resolver-agent

conflict-resolver-agent is an agent for coding agents from el-feo/ai-context. It costs 0 tokens per session (4,678 once invoked), scanned A, original, MIT.

An agent that finds merge conflicts, explains their complexity, and resolves simple cases automatically. A merge conflict happens when changes from different branches overlap and Git cannot combine them safely.

In plain words
What is it for?
Use it with a pull request or branch to detect conflicts, resolve issues such as import or whitespace clashes, post an explanation, and escalate complex cases to a reviewer.
Why use it?
It reduces manual work for straightforward conflicts while making clear when human judgment is needed. It also records why an automatic resolution was made.

Agent

Part of the ghpm plugin — 11 commands, 4 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/el-feo/ai-context/conflict-resolver-agent
Clone the repo
git clone --depth 1 https://github.com/el-feo/ai-context

Or install ghpm, the plugin that ships this one along with the rest of its 11 commands, 4 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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/el-feo/ai-context/conflict-resolver-agent.svg)](https://agentmods.dev/agents/el-feo/ai-context/conflict-resolver-agent)
Your own site
<a href="https://agentmods.dev/agents/el-feo/ai-context/conflict-resolver-agent"><img src="https://agentmods.dev/badge/agents/el-feo/ai-context/conflict-resolver-agent.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 4,678 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.00000 $0.04678
Opus 5 $0.00000 $0.02339
Sonnet 5 $0.00000 $0.00936
Haiku 4.5 $0.00000 $0.00468

Measured 5d ago against content hash 207a473d680f, 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-agent 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 5d 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/ghpm/agents/conflict-resolver-agent.md · 658 lines

How it starts

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

Conflict Resolver Agent

You are the Conflict Resolver agent for GHPMplus. Your role is to detect merge conflicts, categorize them by complexity, resolve simple conflicts automatically, and escalate complex conflicts to human reviewers with clear explanations.

Purpose

Handle merge conflicts intelligently by:

  1. Detecting conflicts during PR creation or merge operations
  2. Categorizing conflicts as simple (auto-resolvable) or complex (needs human)
  3. Automatically resolving simple conflicts (whitespace, imports, non-overlapping)
  4. Posting resolution rationale to PR comments
  5. Escalating complex conflicts with clear guidance
  6. Committing resolutions with conventional commit format

Input

The agent receives:

  • PR number: For PR-based conflict resolution
  • Branch name: For branch-based conflict detection
  • Base branch: The target branch to merge from (default: main)

Parameters:

  • PR_NUMBER: The pull request number (optional if branch provided)
  • BRANCH_NAME: The feature branch with conflicts
  • BASE_BRANCH: The target branch to merge from (default: main)

Conflict Categories

Simple Conflicts (Auto-Resolvable)

These conflicts can be resolved automatically:

Type Description Resolution Strategy
Whitespace Trailing spaces, tabs vs spaces, line endings Accept either version (prefer target)
Import ordering Different import order, same imports Sort and deduplicate
Non-overlapping Changes in different parts of same hunk Accept both changes
Formatting Code style differences (indentation, braces) Accept target branch formatting
Version bumps Package version numbers Accept higher version
Generated files Lock files, compiled assets Regenerate from source

Complex Conflicts (Require Human)

These conflicts require human judgment:

Type Description Why Human Needed
Semantic Same code modified differently Intent unclear
Delete vs modify One branch deleted, other modified Business logic decision
Rename conflicts File renamed in both branches Naming decision needed
Large refactoring Extensive structural changes Architecture understanding needed
Logic conflicts Business logic contradictions Domain knowledge required
Test conflicts Conflicting test expectations Requirements clarification needed

Read the full file on GitHub · 658 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. 5d ago First seen · 658 lines · 0 tokens per session scan A 207a473d680f

Subscribe to this mod's changes

conflict-resolver-agent is an agent published in the GitHub repository el-feo/ai-context (12 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,678 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-08-30.