merge-reconciler

merge-reconciler is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 52 tokens per session (1,363 once invoked), scanned A, original, Apache-2.0.

A recovery workflow for combining changes when two parallel coding tasks edited the same file and one set of work was dropped.

In plain words
What is it for?
Use it after parallel agents conflict over a file and their changes need to be reconciled and validated.
Why use it?
It restores the useful work from both versions and checks the combined file instead of repeating the original tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after parallel agents conflict over a file and their changes need to be reconciled and validated.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miosa-osa/osa/merge-reconciler
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.

Any agent
npx skills add Miosa-osa/OSA --skill merge-reconciler
Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/merge-reconciler/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/merge-reconciler)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/merge-reconciler"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/merge-reconciler/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-reconciler

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/merge-reconciler"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/merge-reconciler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,363 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.00052 $0.01363
Opus 5.5 $0.00021 $0.00545
Sonnet 5.5 $0.00010 $0.00273
Haiku 4.5 $0.00005 $0.00136

Measured 3mo ago against content hash db04596e219b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

merge-reconciler 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 3mo 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.

priv/skills/merge-reconciler/SKILL.md · 142 lines

How it starts

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

Instructions

You are reconciling a fleet wave that partially voided itself.

Agent.Fleet.Finalizer guarantees it never clobbers: when two nodes changed the same file, that file is declared a conflict and skipped. Nothing is corrupted — but nothing is merged either, so every claimant's edits to that file are sitting unmerged in their worktrees while the branch has the original. Left alone, that silently discards real work, and the usual reaction (re-running the whole wave) discards it a second time and costs the same again.

Your job: turn each conflicted file into one correct reconciled file, then prove it with the same gate the finalizer would have run.

When to use this

Use it when a finalize/3 result has a non-empty conflicts list. The same result carries conflict_briefs, which is your entire input:

%{
  conflicts: ["lib/app/auth.ex"],
  conflict_briefs: [
    %{
      file: "lib/app/auth.ex",
      claimants: [
        %{node_id: "n1", worktree_ref: "wave/n1", gate: :pass, errored: false, summary: "..."},
        %{node_id: "n2", worktree_ref: "wave/n2", gate: :pass, errored: false, summary: "..."}
      ]
    }
  ]
}

Do not use it for ordinary git merge conflicts between branches, and do not use it to "fix" a wave that failed its gate — that is a different problem.

The invariant (never violate)

The branch copy is the base, and every claimant's version is a candidate — never a winner. You do not pick one node's file and move on; that is exactly the data loss you were called to undo. If you genuinely cannot combine two versions, you stop and report, you do not choose.

Procedure

  1. Read the base. git show HEAD:<file> — the version on the branch, which is what every claimant started from.

  2. Read each claimant's version. For each entry in claimants with a non-nil worktree_ref:

    git show <worktree_ref>:<file>
    

    A claimant with worktree_ref: nil edited the working tree directly — its version is whatever is on disk right now, so read the file itself, and read it first, before you overwrite anything.

Read the full file on GitHub · 142 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. 3mo ago First seen · 142 lines · 52 tokens per session scan A db04596e219b

Subscribe to this mod's changes

merge-reconciler is a skill published in the GitHub repository Miosa-osa/OSA (82 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 1,363 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-30.

Related

merge-reconciler compared with skills from other repositories

merge-reconciler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
merge-reconcilerMiosa-osa/OSASkill82yesterdayApache-2.0A52Claude Code, Codex
deployment-patternsaffaan-m/ECCSkill313k7d agoMITA41Claude Code, Kiro
mem0-test-integrationmem0ai/mem0Skill70k3d agoApache-2.0A207Claude Code, Codex
baby-sitlangchain-ai/open-sweSkill11ktodayMITA30Claude Code, Codex
merge-drivelangwatch/langwatchSkill5.1ktodayApache-2.0A154Claude Code
orchestratehumanlayer/humanlayerSkill13k7d agoApache-2.0A49Claude Code
meta-codereview-current-diffopensquilla/opensquillaSkill7.2k4d agoApache-2.0A73Claude Code, Codex