hub-init
What it does
This skill sets up a new session where several agents will attempt the same task. It is for people who want to begin a parallel agent competition with clear rules.
When to use it
- ✓When you want to start a new competition between several agents.
- ✓When you have a task and want to decide how many agents should try it.
- ✓When you want to set how results will be judged before the agents begin.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/hub-init/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Start an AgentHub session to refactor our auth module with two agents and no metric, so an LLM judge picks the winner.”
5 new skills a week. 1 minute to read.
How it works
The agent creates the session folders, generates a session ID and saves the task, agent count and evaluation settings. If you give no details, it asks for each one in turn.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/hub-init — Create New Session
Initialize an AgentHub collaboration session. Creates the .agenthub/ directory structure, generates a session ID, and configures evaluation criteria.
Usage
/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)
What It Does
If arguments provided
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}]
If no arguments (interactive mode)
Collect each parameter:
- Task — What should the agents do? (required)
- Agent count — How many parallel agents? (default: 3)
- Eval command — Command to measure results (optional — skip for LLM judge mode)
- Metric name — What metric to extract from eval output (required if eval command given)
- Direction — Is lower or higher better? (required if metric given)
- Base branch — Branch to fork from (default: current branch)
Output
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
Baseline Capture
If --eval was provided, capture a baseline measurement after session creation:
- Run the eval command in the current working directory
- Extract the metric value from stdout
- Append
baseline: {value}to.agenthub/sessions/{session-id}/config.yaml - Display:
Baseline 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.
After Init
Tell the user:
- Session created with ID
{session-id} - Baseline metric (if captured)
- Next step:
/agenthub:spawnto launch agents - Or
/agenthub:spawn {session-id}if multiple sessions exist
FAQ
What if I do not have an eval command?
You can skip it, and the session will use LLM judge mode to pick the winner.
What is the default number of agents?
Three, unless you choose a different number.
Which base branch does it use?
The current branch, unless you choose another.
Details
Original description by the author
Use for /hub-init, or to start an AgentHub competition: task, agent count and evaluation criteria.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9531
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.