IrredenEngine: Command for Claude Code

.claude/commands/role-merger.md

role-merger is a command for Claude Code from jakildev/IrredenEngine. It costs 22 tokens per session (3,430 once invoked), scanned A, original, MIT.

A command that manages open pull requests, which are proposed code changes, across two related repositories. It rebases outdated requests and resolves simple conflicts, leaving decisions about meaning to a person.

In plain words
What is it for?
Use it to process conflicting pull requests in the engine and game worktrees and maintain the required branch and fleet workflow.
Why use it?
It reduces routine merge-conflict work while keeping ambiguous conflicts for human judgment.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is jakildev/IrredenEngine's own configuration. It tells Claude Code how to work on IrredenEngine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything IrredenEngine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jakildev/IrredenEngine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jakildev/IrredenEngine/master/.claude/commands/role-merger.md
Clone the repo
git clone --depth 1 https://github.com/jakildev/IrredenEngine

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 role-merger

README.md
[![agentmods](https://agentmods.dev/badge/commands/jakildev/irredenengine/role-merger/github.svg)](https://agentmods.dev/commands/jakildev/irredenengine/role-merger)
Your own site
<a href="https://agentmods.dev/commands/jakildev/irredenengine/role-merger"><img src="https://agentmods.dev/badge/commands/jakildev/irredenengine/role-merger/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 role-merger

Your own site · 80×15
<a href="https://agentmods.dev/commands/jakildev/irredenengine/role-merger"><img src="https://agentmods.dev/badge/commands/jakildev/irredenengine/role-merger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,430 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.00022 $0.03430
Opus 5.5 $0.00009 $0.01372
Sonnet 5.5 $0.00004 $0.00686
Haiku 4.5 $0.00002 $0.00343

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

Security

Grade A, and why

role-merger 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 2d 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.

.claude/commands/role-merger.md · 206 lines

How it starts

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

You are the merger orchestrator for the Irreden Engine fleet, dispatched into a shared pool worktree ~/src/IrredenEngine/.claude/worktrees/pool-* (WSL2 Ubuntu or macOS); basename $PWD (pool-<N>) is your agent name for heartbeats, summaries, and scratch branches. You rebase stale open PRs and auto-resolve mechanical conflicts on both repos — the engine pass in your engine worktree, then a game pass in its twin ~/src/IrredenEngine/creations/game/.claude/worktrees/pool-<N> — so the human only sees conflicts that need judgement.

Mode (optional argument): $ARGUMENTS

Shared protocol

What you do

For each open PR in CONFLICTING state you either rebase and push or label it for a human. You never merge — this pass has no merge verb, and nothing in the fleet does: every merge is the human's click (FLEET.md, "Who merges"). Auto-resolution scope, exactly two classes: a plain rebase with no conflicts (push the rebased branch) and whitespace-only conflicts (prefer master's whitespace). Anything else is semantic: label fleet:semantic-conflict, comment, abort, move on. You do not acquire fleet-claim locks; persistent PR ownership is a skip gate, --force-with-lease is the concurrency control and fleet:merger-cooldown prevents an immediate retry.

Read the full file on GitHub · 206 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. 2d ago First seen · 206 lines · 22 tokens per session scan A a8fe0f6fe7c9

Subscribe to this mod's changes

role-merger is a command published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 3,430 once invoked, about $0.0001 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-11-07.

Related

role-merger compared with commands from other repositories

role-merger next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
role-mergerjakildev/IrredenEngineCommand10todayMITA22Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
release-notesOpenHands/extensionsCommand179yesterdayMITA44Claude Code
repo-audittractorjuice/arc-kitCommand2.3k2d agononeA29Claude Code
commitechoVic/blade-codeCommand18127d agoMITA8Claude Code
propsmill/infrahub-mcpCommand10yesterdayApache-2.0A18Claude Code
codex-reviewoalders/kitchen-sinkCommand5yesterdayMITA41Claude Code