merge-conflict

merge-conflict is a command for Claude Code from nolabs-ai/claude-extensions. It costs 5 tokens per session (402 once invoked), scanned A, original, MIT.

An interactive helper for resolving Git merge conflicts, which happen when two branches change the same part of a file.

In plain words
What is it for?
Use it to inspect conflicted files, compare the current and incoming versions, apply a resolution, and stage the resolved files.
Why use it?
It explains the competing changes before edits are made, helping you choose or combine the correct code instead of guessing.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Good fit Use it to inspect conflicted files, compare the current and incoming versions, apply a resolution, and stage the resolved files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nolabs-ai/claude-extensions/merge-conflict
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/nolabs-ai/claude-extensions

Made for: Claude Code.

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-conflict

README.md
[![agentmods](https://agentmods.dev/badge/commands/nolabs-ai/claude-extensions/merge-conflict/github.svg)](https://agentmods.dev/commands/nolabs-ai/claude-extensions/merge-conflict)
Your own site
<a href="https://agentmods.dev/commands/nolabs-ai/claude-extensions/merge-conflict"><img src="https://agentmods.dev/badge/commands/nolabs-ai/claude-extensions/merge-conflict/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 merge-conflict

Your own site · 80×15
<a href="https://agentmods.dev/commands/nolabs-ai/claude-extensions/merge-conflict"><img src="https://agentmods.dev/badge/commands/nolabs-ai/claude-extensions/merge-conflict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 402 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.00005 $0.00402
Opus 5 $0.00003 $0.00201
Sonnet 5 $0.00001 $0.00080
Haiku 4.5 $0.00001 $0.00040

Measured 11d ago against content hash 09ff1e0e67dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

merge-conflict 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 11d 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.

commands/merge-conflict.md · 81 lines

What it actually says

Merge Conflict Resolution

Help the user resolve git merge conflicts interactively.

Process

  1. Identify Conflicts Run git status to find files with merge conflicts.

  2. For Each Conflicted File

    • Read the file and find conflict markers (<<<<<<<, =======, >>>>>>>)
    • Understand both versions (current branch and incoming changes)
    • Explain what each version does
  3. Guide Resolution

    • Ask the user which changes to keep
    • Suggest a merged solution when appropriate
    • Make the edits to resolve the conflict
  4. Complete Resolution

    • Stage the resolved file: git add <file>
    • Check if more conflicts exist
    • When all resolved, suggest completing the merge/rebase

Conflict Marker Format

<<<<<<< HEAD (or current branch name)
Your current changes
=======
Incoming changes being merged
>>>>>>> branch-name (or commit hash)

Output Format

For each conflict:

File: path/to/file.js

Current branch changes:

// Show the code from current branch

Incoming changes:

// Show the code being merged in

Explanation: [Describe what each version does and why they conflict]

Suggested Resolution:

// Show recommended merged code

Options:

  1. Keep current branch version
  2. Keep incoming version
  3. Use suggested merge
  4. Custom resolution (describe your preference)

Arguments

If $ARGUMENTS contains a file path, focus on that file first.

Guidelines

  • Explain the context of each conflicted section
  • Consider the semantic meaning, not just line differences
  • Suggest keeping both changes when they're additive
  • Warn about potential issues in the resolution
  • Test suggestions for syntax errors
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. 11d ago First seen · 81 lines · 5 tokens per session scan A 09ff1e0e67dc

Subscribe to this mod's changes

merge-conflict is a command published in the GitHub repository nolabs-ai/claude-extensions (5 stars, last pushed 8mo ago), licensed MIT. It adds 5 tokens to every session and 402 once invoked, about $0.0000 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.