ai-workflow-kit: Agent for Claude Code

.claude/agents/conflict-resolver.md

conflict-resolver is an agent for Claude Code from silver2dream/ai-workflow-kit. It costs 32 tokens per session (1,113 once invoked), scanned A, original, Apache-2.0.

An automated helper for resolving Git merge conflicts in a worktree, a separate working copy of a repository, during a rebase.

In plain words
What is it for?
Use it when a dispatched worker reports that conflict resolution is needed, with the worktree, issue, and pull request details.
Why use it?
It helps remove conflict markers, choose or combine the two competing code versions, stage the corrected files, and continue the rebase.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is silver2dream/ai-workflow-kit's own configuration. It tells Claude Code how to work on ai-workflow-kit 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 ai-workflow-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to silver2dream/ai-workflow-kit. 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/silver2dream/ai-workflow-kit/main/.claude/agents/conflict-resolver.md
Clone the repo
git clone --depth 1 https://github.com/silver2dream/ai-workflow-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/silver2dream/ai-workflow-kit/conflict-resolver/github.svg)](https://agentmods.dev/agents/silver2dream/ai-workflow-kit/conflict-resolver)
Your own site
<a href="https://agentmods.dev/agents/silver2dream/ai-workflow-kit/conflict-resolver"><img src="https://agentmods.dev/badge/agents/silver2dream/ai-workflow-kit/conflict-resolver/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 conflict-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/silver2dream/ai-workflow-kit/conflict-resolver"><img src="https://agentmods.dev/badge/agents/silver2dream/ai-workflow-kit/conflict-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,113 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.00032 $0.01113
Opus 5.5 $0.00013 $0.00445
Sonnet 5.5 $0.00006 $0.00223
Haiku 4.5 $0.00003 $0.00111

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

Security

Grade A, and why

conflict-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 2mo 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/agents/conflict-resolver.md · 218 lines

How it starts

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

You are the AWK Merge Conflict Resolver. You are responsible for resolving git merge conflicts.

Input

You will receive:

  • WORKTREE_PATH: Absolute path to the worktree
  • ISSUE_NUMBER: Issue number
  • PR_NUMBER: PR number

Execution Flow

Step 1: Navigate to Worktree

cd $WORKTREE_PATH

Verify the worktree is in rebase state:

ls -la .git/rebase-merge/

Step 2: List Conflicted Files

git diff --name-only --diff-filter=U

Record all conflicted file paths.

Step 3: For Each Conflicted File

  1. Read the file - Use Read tool to see the full content
  2. Identify conflicts - Find <<<<<<< HEAD, =======, and >>>>>>> markers
  3. Understand both sides:
    • <<<<<<< HEAD to =======: Our changes (current branch)
    • ======= to >>>>>>>: Their changes (rebasing onto)
  4. Resolve the conflict - Use Edit tool to:
    • Keep the correct code (may be our side, their side, or a merge of both)
    • Remove ALL conflict markers (<<<<<<<, =======, >>>>>>>)
  5. Stage the fix:
    git add <filename>
    

Step 4: Continue Rebase

After resolving all conflicts:

git rebase --continue

If more conflicts appear, repeat Steps 2-4.

Step 5: Push Changes

git push --force-with-lease origin HEAD

If push is rejected (e.g. [rejected], stale info, or failed to push), retry up to 2 times:

  1. Fetch latest remote state:
    git fetch origin
    
  2. Re-rebase onto the updated branch:
    git rebase origin/<base-branch>
    
    If new conflicts appear, resolve them (repeat Steps 2-4).
  3. Push again:
    git push --force-with-lease origin HEAD
    

If push still fails after 2 retries, return FAILED.

Step 6: Return Result

Output one of these results on the final line:

Result When to use
RESOLVED Conflicts resolved, rebased, and pushed successfully
TOO_COMPLEX Conflicts require business decisions or are too complex for automated resolution
FAILED Technical failure during resolution

Read the full file on GitHub · 218 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. 2mo ago First seen · 218 lines · 32 tokens per session scan A 15ad67b47e75

Subscribe to this mod's changes

conflict-resolver is an agent published in the GitHub repository silver2dream/ai-workflow-kit (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,113 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-08-31.

Related

Other agents, from other repositories

learnship-executor

Executes a single learnship PLAN.md atomically — one task at a time with per-task commits, deviation handling, and SUMMARY.md creation. Spawned by execute-phase on platforms with subagent support.

FavioVazquez/learnship · 46 tokens

workflow-engineer

GitHub workflow engineer for issue-driven delivery, PR follow-through, CI failure triage, review readiness, host drift, and task-memory closeout.

45ck/skill-harness · 34 tokens

devops

DevOps — Manages Git workflows, release branching, CI pipeline configuration, and PR creation for the project.

zebbern/termstack · 25 tokens

task-validator

Validates task files against task template and task-creator rules. Reads sources of truth, checks structure, content quality, and consistency. Triggers: after task-creator generates files, on re-validation after fixes. Not for: security (security-auditor), spec coverage (completeness-validator).

stepanenkoviktor0110-boop/ai-dev-methodology-codex · 63 tokens

task-creator

Creates task files from tech-spec Implementation Tasks section. Reads actual code files listed in tech-spec, discovers project knowledge, generates tasks by updated template with TDD Anchor, reviewers, skills. Use when: generating task/.md files after tech-spec is approved, during /decompose-tech-spec or manual task…

stepanenkoviktor0110-boop/ai-dev-methodology-codex · 96 tokens

userspec-quality-validator

Validates user-spec quality and completeness — document structure, content coverage, acceptance criteria testability, edge cases, contradictions, and interview coverage. Scope: document quality only. Solution adequacy (feasibility, overengineering, alternatives, stack compatibility) is handled by…

stepanenkoviktor0110-boop/ai-dev-methodology-codex · 92 tokens