agentleFS
Arnav-0Arnav-0/claude-code-setup/skills/agenthub/CLAUDE.md

claude-code-setup / agenthub

CLAUDE.md0 starsChanged 8 months agoMITView on GitHub

This plugin enables multi-agent collaboration. Spawn N parallel subagents that compete on the same task, evaluate results, and merge the winner. Use the /hub: namespace for all commands: You (the coordinator) orchestrate N subagents working in parallel: Parallel competition. Immutable history. Best result wins. Agents never see each other's work. Every approach is preserved in the git DAG. The coordinator evaluates objectively and merges only the winner. Agents communicate via .agenthub/board/ markdown files: - dispatch/ — task assignments from coordinator…

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the /hub: namespace for all commands:

    line 7

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

AgentHub — Claude Code Instructions

This plugin enables multi-agent collaboration. Spawn N parallel subagents that compete on the same task, evaluate results, and merge the winner.

Commands

Use the /hub: namespace for all commands:

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

How It Works

You (the coordinator) orchestrate N subagents working in parallel:

  1. /hub:init — define the task, number of agents, and evaluation criteria
  2. /hub:spawn — launch all agents simultaneously via the Agent tool with isolation: "worktree"
  3. Each agent works independently in its own git worktree, commits results, writes to the board
  4. /hub:eval — compare results (run eval command per worktree, or LLM-judge diffs)
  5. /hub:merge — merge the best branch into base, tag and archive the rest

Key Principle

Parallel competition. Immutable history. Best result wins.

Agents never see each other's work. Every approach is preserved in the git DAG. The coordinator evaluates objectively and merges only the winner.

Agents

  • hub-coordinator — Dispatches tasks, monitors progress, evaluates results, merges winner. This is YOUR role as the main Claude Code session.

Branch Naming

hub/{session-id}/agent-{N}/attempt-{M}

Message Board

Agents communicate via .agenthub/board/ markdown files:

  • dispatch/ — task assignments from coordinator
  • progress/ — status updates from agents
  • results/ — final result summaries from agents

When to Use

  • User says "try multiple approaches" or "have agents compete"
  • Optimization tasks where different strategies might win
  • Code generation where diversity of solutions helps
  • Competing content drafts — 3 agents write blog posts or landing page copy, LLM judge picks best
  • Research synthesis — agents explore different source sets or analytical frameworks
  • Process optimization — agents propose competing workflow improvements
  • Feature prioritization — agents build different RICE/ICE scoring models
  • Any task that benefits from parallel exploration

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.