/agenthub:hub-initfrom agenthub
Initializes an AgentHub collaboration session for running multi-agent competitions. Creates directory structure, session ID, and optional evaluation criteria.
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.
Initialize an AgentHub collaboration session. Creates the .agenthub/ directory structure, generates a session ID, and configures evaluation criteria.
/hub-init # Interactive mode
/hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower
/hub-init --task "Refactor auth" --agents 2 # No eval (LLM judge mode)
Pass them to the init script:
python {skill_path}/scripts/hub_init.py \
--task "{task}" --agents {N} \
[--eval "{eval_cmd}"] [--metric {metric}] [--direction {direction}] \
[--base-branch {branch}]
Collect each parameter:
AgentHub session initialized
Session ID: 20260317-143022
Task: Optimize API response time below 100ms
Agents: 3
Eval: pytest bench.py --json
Metric: p50_ms (lower is better)
Base branch: dev
State: init
Next step: Run /agenthub:spawn to launch 3 agents
For content or research tasks (no eval command → LLM judge mode):
AgentHub session initialized
Session ID: 20260317-151200
Task: Draft 3 competing taglines for product launch
Agents: 3
Eval: LLM judge (no eval command)
Base branch: dev
State: init
Next step: Run /agenthub:spawn to launch 3 agents
If --eval was provided, capture a baseline measurement after session creation:
baseline: {value} to .agenthub/sessions/{session-id}/config.yamlBaseline captured: {metric} = {value}This baseline is used by result_ranker.py --baseline during evaluation to show deltas. If the eval command fails at this stage, warn the user but continue — baseline is optional.
Tell the user:
{session-id}/agenthub:spawn to launch agents/agenthub:spawn {session-id} if multiple sessions existWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alirezarezvani/claude-skills --plugin agenthub8 skills in this plugin
/agenthubRun several agents on one task in parallel and keep the best result: faster code, copy variants, research angles. Use whenever the user wants multiple attempts compared or best of N; spawns agents in git worktrees, ranks and merges the winner./boardUse to post or read messages on the AgentHub coordination board between competing agents./evalRank finished AgentHub agents by metric or judge. Use when asked which agent won./hub-runUse for /hub-run, or to run a whole AgentHub competition end to end: init, baseline, spawn, eval and merge./hub-statusUse for /hub-status, or to check AgentHub agent progress, branches and DAG state./mergeUse to land the winning AgentHub branch, archive the others and clean up worktrees.Other plugins' skills for the same job