Create a new AgentHub collaboration session with task
/hub:hub-init — Create New Session

Create a new AgentHub collaboration session with task, agent count, and evaluation criteria. Use when the user runs /hub:hub-init or asks to start a multi-agent competition on a task.
--- name: "hub-init" description: "Create a new AgentHub collaboration session with task, agent count, and evaluation criteria. Use when the user runs /hub:hub-init or asks to start a multi-agent competition on a task." command: /hub:hub-init --- # /hub: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:hub-init # Interactive mode /hub:hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower /hub:hub-init --task "Refactor auth" --agents 2 # No eval (LLM judge mode) ```
Overview
Initialize an AgentHub collaboration session. Creates the .agenthub/ directory structure, generates a session ID, and configures evaluation criteria.
Manual install (npx, ZIP)
npx skills add alirezarezvani/claude-skills --skill hub-init -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \
| tar -xz -C ~/.claude/skills --strip-components=4 claude-skills-19392f7a0826/engineering/agenthub/skills/hub-initNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/ebaf3a6c3c9db9c11026/hub-init.zip" -OutFile "$env:TEMP\hub-init.zip"; Expand-Archive "$env:TEMP\hub-init.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md2.8 KB
Read the files here
alirezarezvani/
Shared references1SKILL.md reads these from elsewhere in the repo. Not in the ZIP.
Get them on GitHub ↗Show the full text90 lines
/hub: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:hub-init # Interactive mode
/hub:hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower
/hub: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 /hub: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 /hub: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:
/hub:spawnto launch agents - Or
/hub:spawn {session-id}if multiple sessions exist
| 1 | |
| 2 | name "hub-init" |
| 3 | description "Create a new AgentHub collaboration session with task, agent count, and evaluation criteria. Use when the user runs /hub:hub-init or asks to start a multi-agent competition on a task." |
| 4 | command /hub:hub-init |
| 5 | |
| 6 | |
| 7 | # /hub:hub-init — Create New Session |
| 8 | |
| 9 | Initialize an AgentHub collaboration session. Creates the `.agenthub/` directory structure, generates a session ID, and configures evaluation criteria. |
| 10 | |
| 11 | ## Usage |
| 12 | |
| 13 | |
| 14 | /hub:hub-init # Interactive mode |
| 15 | /hub:hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower |
| 16 | /hub:hub-init --task "Refactor auth" --agents 2 # No eval (LLM judge mode) |
| 17 | |
| 18 | |
| 19 | ## What It Does |
| 20 | |
| 21 | ### If arguments provided |
| 22 | |
| 23 | Pass them to the init script: |
| 24 | |
| 25 | |
| 26 | python {skill_path}/scripts/hub_init.py \ |
| 27 | --task "{task}" --agents {N} \ |
| 28 | [--eval "{eval_cmd}"] [--metric {metric}] [--direction {direction}] \ |
| 29 | [--base-branch {branch}] |
| 30 | |
| 31 | |
| 32 | ### If no arguments (interactive mode) |
| 33 | |
| 34 | Collect each parameter: |
| 35 | |
| 36 | **Task** — What should the agents do? (required) |
| 37 | **Agent count** — How many parallel agents? (default: 3) |
| 38 | **Eval command** — Command to measure results (optional — skip for LLM judge mode) |
| 39 | **Metric name** — What metric to extract from eval output (required if eval command given) |
| 40 | **Direction** — Is lower or higher better? (required if metric given) |
| 41 | **Base branch** — Branch to fork from (default: current branch) |
| 42 | |
| 43 | ### Output |
| 44 | |
| 45 | |
| 46 | AgentHub session initialized |
| 47 | Session ID: 20260317-143022 |
| 48 | Task: Optimize API response time below 100ms |
| 49 | Agents: 3 |
| 50 | Eval: pytest bench.py --json |
| 51 | Metric: p50_ms (lower is better) |
| 52 | Base branch: dev |
| 53 | State: init |
| 54 | |
| 55 | Next step: Run /hub:spawn to launch 3 agents |
| 56 | |
| 57 | |
| 58 | For content or research tasks (no eval command → LLM judge mode): |
| 59 | |
| 60 | |
| 61 | AgentHub session initialized |
| 62 | Session ID: 20260317-151200 |
| 63 | Task: Draft 3 competing taglines for product launch |
| 64 | Agents: 3 |
| 65 | Eval: LLM judge (no eval command) |
| 66 | Base branch: dev |
| 67 | State: init |
| 68 | |
| 69 | Next step: Run /hub:spawn to launch 3 agents |
| 70 | |
| 71 | |
| 72 | ## Baseline Capture |
| 73 | |
| 74 | If `--eval` was provided, capture a baseline measurement after session creation: |
| 75 | |
| 76 | Run the eval command in the current working directory |
| 77 | Extract the metric value from stdout |
| 78 | Append `baseline: {value}` to `.agenthub/sessions/{session-id}/config.yaml` |
| 79 | Display: `Baseline captured: {metric} = {value}` |
| 80 | |
| 81 | 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. |
| 82 | |
| 83 | ## After Init |
| 84 | |
| 85 | Tell the user: |
| 86 | Session created with ID `{session-id}` |
| 87 | Baseline metric (if captured) |
| 88 | Next step: `/hub:spawn` to launch agents |
| 89 | Or `/hub:spawn {session-id}` if multiple sessions exist |
| 90 |
Details
- Updated
- Aug 30, 2026
- License
- MIT
- Stars on the repo
- ★ 26,349
- Checked
- Source
- alirezarezvani/claude-skills ↗
- Creator
- alirezarezvani · 363 listings
Similar skills
See all →
SkillExtract text, tables, metadataXberg Document Extraction
SkillMove code from one implementation to another functionCode migration
SkillManages Ahrefs API usage in Python using ahrefs-python
MCPDocx LLM translatoradeu
SkillCreate an Amazon-compliant white-background main imageAmazon White-Background Main Image · 亚马逊白底主图
MCPOfficial monorepo of SDKs, CLISendmux sdkMore from alirezarezvani
SkillResume a paused experiment/ar:ar-resume — Resume Experiment
SkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboard
SkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loop
SkillRun a single experiment iteration/ar:run — Single Experiment Iteration
SkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experiment
Skill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberation