agenthub

agenthub is a skill for Codex from bestagentkits/agency-skills. It costs 81 tokens per session (1,936 once invoked), scanned A, a copy of agent-hub, MIT.

A collaboration tool that has several AI agents try the same task independently in isolated Git worktrees. It evaluates their results and merges the selected version.

In plain words
What is it for?
Use it for parallel code optimization, refactoring, bug fixing, or test writing, then rank and merge the best result.
Why use it?
It lets you compare competing implementations while keeping each agent’s code changes separate.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it for parallel code optimization, refactoring, bug fixing, or test writing, then rank and merge the best result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bestagentkits/agency-skills/agenthub
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bestagentkits/agency-skills --skill agenthub
Clone the repo
git clone --depth 1 https://github.com/bestagentkits/agency-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agenthub

README.md
[![agentmods](https://agentmods.dev/badge/skills/bestagentkits/agency-skills/agenthub/github.svg)](https://agentmods.dev/skills/bestagentkits/agency-skills/agenthub)
Your own site
<a href="https://agentmods.dev/skills/bestagentkits/agency-skills/agenthub"><img src="https://agentmods.dev/badge/skills/bestagentkits/agency-skills/agenthub/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agenthub

Your own site · 80×15
<a href="https://agentmods.dev/skills/bestagentkits/agency-skills/agenthub"><img src="https://agentmods.dev/badge/skills/bestagentkits/agency-skills/agenthub.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01936
Opus 5.5 $0.00032 $0.00774
Sonnet 5.5 $0.00016 $0.00387
Haiku 4.5 $0.00008 $0.00194

Measured 3mo ago against content hash 6ba7f22e2649, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agenthub scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/board_manager.py, scripts/dag_analyzer.py, scripts/dry_run.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to agent-hub — 74 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/claude-skills/agenthub/SKILL.md · 258 lines

How it starts

The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentHub — Multi-Agent Collaboration

Spawn N parallel AI agents that compete on the same task. Each agent works in an isolated git worktree. The coordinator evaluates results and merges the winner.

Slash Commands

Command Description
/hub:init Create a new collaboration session — task, agent count, eval criteria
/hub:spawn Launch N parallel subagents in isolated worktrees
/hub:status Show DAG state, agent progress, branch status
/hub:eval Rank agent results by metric or LLM judge
/hub:merge Merge winning branch, archive losers
/hub:board Read/write the agent message board
/hub:run One-shot lifecycle: init → baseline → spawn → eval → merge

Agent Templates

When spawning with --template, agents follow a predefined iteration pattern:

Template Pattern Use Case
optimizer Edit → eval → keep/discard → repeat x10 Performance, latency, size
refactorer Restructure → test → iterate until green Code quality, tech debt
test-writer Write tests → measure coverage → repeat Test coverage gaps
bug-fixer Reproduce → diagnose → fix → verify Bug fix approaches

Templates are defined in references/agent-templates.md.

When This Skill Activates

Trigger phrases:

  • "try multiple approaches"
  • "have agents compete"
  • "parallel optimization"
  • "spawn N agents"
  • "compare different solutions"
  • "fan-out" or "tournament"
  • "generate content variations"
  • "compare different drafts"
  • "A/B test copy"
  • "explore multiple strategies"

Coordinator Protocol

The main Claude Code session is the coordinator. It follows this lifecycle:

INIT → DISPATCH → MONITOR → EVALUATE → MERGE

1. Init

Run /hub:init to create a session. This generates:

  • .agenthub/sessions/{session-id}/config.yaml — task config
  • .agenthub/sessions/{session-id}/state.json — state machine
  • .agenthub/board/ — message board channels

Read the full file on GitHub · 258 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 258 lines · 81 tokens per session scan A 6ba7f22e2649

Subscribe to this mod's changes

agenthub is a skill published in the GitHub repository bestagentkits/agency-skills (28 stars, last pushed 5mo ago), licensed MIT. It adds 81 tokens to every session and 1,936 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to agent-hub, differing in 74 lines, and is treated as a copy.

Related

agenthub compared with skills from other repositories

agenthub next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agenthubbestagentkits/agency-skillsSkill285mo agoMITA81Codex
reproduce-and-fix-issuesbacknotprop/pstackSkill5.6ktodayMITA48Claude Code, Cursor
setup-pstackbacknotprop/pstackSkill5.6ktodayMITA62Cursor
poteto-modebacknotprop/pstackSkill5.6ktodayMITA49Claude Code, Codex, Cursor
no-commentsbacknotprop/pstackSkill5.6ktodayMITA20Claude Code, Codex, Cursor
swarmbacknotprop/pstackSkill5.6ktodayMITA41Claude Code, Codex, Cursor
tddbacknotprop/pstackSkill5.6ktodayMITA52Claude Code, Codex, Cursor