/agenthub:mergefrom agenthub
Merges the winning agent's branch into the base branch, archives losing branches via git tags, and cleans up worktrees after a hub session.
Ships in agenthub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Merge the best agent's branch into the base branch, archive losing branches via git tags, and clean up worktrees.
/hub:merge # Merge winner of latest session
/hub:merge 20260317-143022 # Merge winner of specific session
/hub:merge 20260317-143022 --agent agent-2 # Explicitly choose winner
If --agent specified, use that. Otherwise, use the #1 ranked agent from the most recent /hub:eval.
git checkout {base_branch}
git merge --no-ff hub/{session-id}/{winner}/attempt-1 \
-m "hub: merge {winner} from session {session-id}
Task: {task}
Winner: {winner}
Session: {session-id}"
For each non-winning agent:
# Create archive tag (preserves commits forever)
git tag hub/archive/{session-id}/{agent-id} hub/{session-id}/{agent-id}/attempt-1
# Delete branch ref (commits preserved via tag)
git branch -D hub/{session-id}/{agent-id}/attempt-1
python {skill_path}/scripts/session_manager.py --cleanup {session-id}
Write .agenthub/board/results/merge-summary.md:
---
author: coordinator
timestamp: {now}
channel: results
---
## Merge Summary
- **Session**: {session-id}
- **Winner**: {winner}
- **Merged into**: {base_branch}
- **Archived**: {loser-1}, {loser-2}, ...
- **Worktrees cleaned**: {count}
python {skill_path}/scripts/session_manager.py --update {session-id} --state merged
--no-ff for clear historyTell the user:
{base_branch}hub/archive/{session-id}/agent-{N}mergedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arogyareddy/alirezarezvani-claude-skills --plugin agenthub8 skills in this plugin
/agenthubMulti-agent collaboration plugin that spawns N parallel subagents competing on the same task via git worktree isolation. Agents work independently, results are evaluated by metric or LLM judge, and the best branch is merged. Use when: user wants multiple approaches tried in parallel — code optimization, content variation, research exploration, or any task that benefits from parallel competition. Requires: a git repo./boardRead, write, and browse the AgentHub message board for agent coordination./evalEvaluate and rank agent results by metric or LLM judge for an AgentHub session./initCreate a new AgentHub collaboration session with task, agent count, and evaluation criteria./runOne-shot lifecycle command that chains init → baseline → spawn → eval → merge in a single invocation./spawnLaunch N parallel subagents in isolated git worktrees to compete on the session task.9 plugins ship this exact skill · first indexed Jun 3, 2026
Showing 6 of 9 plugins, one per repository first
Other plugins' skills for the same job