मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग260k · #438

agent-merge-conflict-arbiter

यह क्या करती है

यह एक निष्पक्ष एजेंट से दोनों तरफ़ के बदलाव और उनके घोषित लक्ष्य की समीक्षा करवाती है, ताकि एक merged नतीजा बने। यह उन टीमों के लिए है जो एक ही रिपॉज़िटरी पर कई AI एजेंट्स एक साथ चलाते हैं।

कब इस्तेमाल करें

  • ✓जब समानांतर अभियान के दौरान दो एजेंट branches में टकराव हो।
  • ✓जब git merge इसलिए रुक जाए कि दो एजेंट्स ने एक ही कोड बदला हो।
  • ✓जब कोई भी एजेंट अकेले conflict का नतीजा तय न करना चाहिए।

Skill का लिंक

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/agent-merge-conflict-arbiter/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/agent-merge-conflict-arbiter/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे दो एजेंट्स ने एक ही फ़ाइलें बदल दीं और merge रुक गया। conflict को निष्पक्ष रूप से सुलझाइए और काम merge कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट दोनों diffs और हर पक्ष के घोषित इरादे की समीक्षा करता है, फिर एक merged संस्करण बनाता है। अगर प्रोजेक्ट में build या टेस्ट हों, तो वह उन्हें चलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Agent Merge-Conflict Arbiter

Resolve a git merge conflict between two AGENTS' branches as an impartial third party. Agents resolving conflicts against a peer's work reliably either overwrite the peer or abandon their own change — they lack the peer's context and are biased toward their own side. This skill is the fix: a neutral reconciler that receives both diffs plus both sides' stated intents and produces a merged result, like a merge-queue arbiter.

When to Use

  • Two agent branches/worktrees collide during a parallel campaign (kanban engineering pipeline, parallel-PR wave, multi-worktree refactor).
  • git merge or git rebase halts on conflicts between two agents' work and neither original agent should self-adjudicate.
  • Do NOT use for conflicts within a single agent's own work, or for trivial lockfile/generated-file conflicts (regenerate those instead).

Prerequisites

  • A repo checkout containing the halted merge, or the two branch names plus permission to run the merge yourself.
  • Both sides' intent sources: kanban completion summaries (terminal running hermes kanban show <task-id>), PR bodies, or at minimum each branch's commit messages.
  • The project's build/test command, if one exists.

How to Run

Standalone — a human (or agent) invokes this skill inside the conflicted repo: load the skill, then follow the Procedure top to bottom.

Spawned neutral agent — the preferred shape in multi-agent campaigns:

  • delegate_task: spawn a subagent whose task message contains the repo path, both branch names, and both sides' intent summaries verbatim, plus an instruction to follow this skill.
  • Kanban-native: create a reconciliation card assigned to a third profile (not either worker's profile) with BOTH conflicted cards linked as parents — kanban_create(title="reconcile branch-a x branch-b", assignee="reconciler", parents=["t_a", "t_b"]). The parent links carry both sides' completion summaries into the reconciler's context automatically; the card body should name the repo path and the two branches.

Quick Reference

Hunk class Definition Resolution
disjoint-intent The two changes serve different goals and can coexist Combine both
same-question-different-answer Both sides answered one design question differently Pick ONE per stated intents; surface the decision
superseded One side's premise no longer holds after the other's change Keep the surviving side; note why

Impartiality contract: never favor the side that spawned you; touch ONLY conflicted regions (no drive-by edits); every design-question pick must appear explicitly in the hand-back summary.

Procedure

1. Gather both sides

  • Run via terminal: git status (confirm the conflicted state and list conflicted files), git merge-base <A> <B>, then for each side git log --oneline <base>..<side> and git diff <base>..<side> -- <file> for every conflicted file. In a halted merge, HEAD is one side and MERGE_HEAD is the other.
  • Collect each side's intent: hermes kanban show <task-id> for completion summaries/metadata, or the PR body, or the commit messages from the log above. Write down one sentence of intent per side before touching any file.
  • Done when: you can state both intents in your own words and have both diffs for every conflicted file.

2. Classify every conflicted hunk

  • Open each conflicted file with read_file and locate each <<<<<<</=======/>>>>>>> block.
  • Assign each hunk exactly one class from the Quick Reference table, judging by the stated intents — not by which change looks nicer.
  • If a single hunk contains multiple independent decisions (e.g., new logic that combines cleanly PLUS a styling/rounding choice both sides answered differently), decompose it into sub-decisions and classify each one.
  • A single file often mixes classes: one hunk may be a design collision while a neighboring hunk is disjoint. Classify per hunk, not per file.
  • Done when: every hunk has a written class and a one-line rationale.

3. Resolve under the impartiality contract

  • Edit each hunk with patch (or write_file for whole-file rewrites):
    • disjoint-intent → merge both changes so each intent is fully served.
    • same-question-different-answer → pick the answer that best serves the STATED intents (e.g., an intent of "strict validation" beats "quick default" if the task required correctness). Ne
अक्सर पूछे जाने वाले सवाल

मुझे इसे कब इस्तेमाल नहीं करना चाहिए?

एक ही एजेंट के अपने काम के भीतर के conflict के लिए, या lockfile जैसी मामूली जेनरेटेड फ़ाइलों के लिए, जिन्हें दोबारा बनाना चाहिए।

शुरू करने के लिए इसे क्या चाहिए?

रुका हुआ merge वाली रिपॉज़िटरी, या दोनों branch के नाम, साथ में commit संदेशों या pull request नोट्स से हर पक्ष का इरादा।

निष्पक्ष एजेंट क्यों?

स्किल कहती है कि जो एजेंट साथी के काम के विरुद्ध conflict सुलझाता है, वह अक्सर साथी के बदलाव को मिटा देता है या अपना बदलाव हटा देता है।

जानकारी

लेखक का मूल विवरण

Neutral arbiter for merge conflicts between two agents.

repo: NousResearch/hermes-agent

लोकप्रियता

GitHub स्टार
260k
रैंकिंग में स्थान
#438
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

antigravity-cli

260k

Antigravity कमांड-लाइन टूल को इंस्टॉल करने, अपडेट करने और उसकी दिक्कतें सुलझाने में मार्गदर्शन देती है, जिसमें प्लगइन, साइन-इन और sandbox शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

blackbox

260k

आपके एजेंट को कोडिंग काम Blackbox AI कमांड-लाइन टूल को सौंपने देती है, जो कई AI मॉडल चलाकर सबसे अच्छा नतीजा चुनता है।

कोडिंगसामान्य कोडिंग

dynamic-workflow

260k

आपके एजेंट को बड़े बैच के एक जैसे कामों को सेव की गई स्क्रिप्ट के रूप में चलाना सिखाती है, ताकि मुख्य बातचीत में केवल जांचे गए नतीजे लौटें।

AI और एजेंटएजेंट

grok

260k

आपके एजेंट को कोडिंग काम xAI के Grok Build CLI को सौंपने देती है, फ़ीचर बनाने, रीफ़ैक्टर करने, pull requests की समीक्षा करने या issues के बैच ठीक करने के लिए।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills