Langsung ke konten
Skillpedia
Agen29k ยท #9528

agenthub

Fungsinya

Skill ini membuat beberapa agent bersaing pada satu tugas, masing-masing bekerja di salinan kode yang terisolasi. Skill ini untuk orang yang ingin membandingkan pendekatan dan menyimpan hasil terbaik.

Kapan dipakai

  • โœ“Saat Anda ingin beberapa pendekatan berbeda dicoba sekaligus dan yang terbaik disimpan.
  • โœ“Saat Anda ingin mempercepat tugas dengan membagi pekerjaan ke beberapa agent paralel.
  • โœ“Saat Anda ingin membandingkan sudut pandang berbeda untuk salinan atau riset secara berdampingan.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/agenthub/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/agenthub/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œCoba tiga cara berbeda untuk mempercepat API kami sekaligus, dan simpan yang paling cepat.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Koordinator menyiapkan sesi dan menjalankan beberapa agent di git worktree terpisah. Hasil diurutkan berdasarkan metrik terukur atau oleh juri, lalu pemenang digabungkan dan yang lain diarsipkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
/agenthub:spawn Launch N parallel subagents in isolated worktrees
/hub-status Show DAG state, agent progress, branch status
/agenthub:eval Rank agent results by metric or LLM judge
/agenthub:merge Merge winning branch, archive losers
/agenthub: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

2. Dispatch

Run /agenthub:spawn to launch agents. For each agent 1..N:

  • Post task assignment to .agenthub/board/dispatch/
  • Spawn via Agent tool with isolation: "worktree"
  • All agents launched in a single message (parallel)

3. Monitor

Run /hub-status to check progress:

  • dag_analyzer.py --status --session {id} shows branch state
  • Board progress/ channel has agent updates

4. Evaluate

Run /agenthub:eval to rank results:

  • Metric mode: run eval command in each worktree, parse numeric result
  • Judge mode: read diffs, coordinator ranks by quality
  • Hybrid: metric first, LLM-judge for ties

5. Merge

Run /agenthub:merge to finalize:

  • git merge --no-ff winner into base branch
  • Tag losers: git tag hub/archive/{session}/agent-{i}
  • Clean up worktrees
  • Post merge summary to board

Agent Protocol

Each subagent receives this prompt pattern:

You are agent-{i} in hub session {session-id}.
Your task: {task description}

Instructions:
1. Read your assignment at .agenthub/board/dispatch/{seq}-agent-{i}.md
2. Work in your worktree โ€” make changes, run tests, iterate
3. Commit all changes with descriptive messages
4. Write your result summary to .agenthub/board/results/agent-{i}-result.md
5. Exit when done

Agents do NOT see each other's work. They do NOT communicate with each other. They only write to the board for the coordinator to read.

DAG Model

Branch Naming

hub/{session-id}/agent-{N}/attempt-{M}
  • Session ID: timestamp-based (YYYYMMDD-HHMMSS)
  • Agent N: sequential (1 to agent-count)
  • Attempt M: increments on retry (usually 1)

Frontier Detection

Frontier = branch tips with no child branches. Equivalent to AgentHub's "leaves" query.

python scripts/dag_analyzer.py --frontier --session {id}

Immutability

The DAG is append-only:

  • Never rebase or force-push agent branches
  • Never delete commits (only branch refs after archival)
  • Every approach preserved via git tags

Message Board

Location: .agenthub/board/

Channels

Channel Writer Reader Purpose
dispatch/ Coordinator Agents Task assignments
progress/ Agents Coordinator Status updates
results/ Agents + Coordinator All Final results + merge summary

Post Format

---
author: agent-1
timestamp: 2026-03-17T14:30:22Z
channel: results
parent: null
---

## Result Summary

-
Pertanyaan umum

Apakah agent bekerja langsung di kode utama saya?

Tidak. Setiap agent bekerja di git worktree yang terisolasi, sehingga cabang utama tidak berubah sebelum pemenang digabungkan.

Bagaimana pemenang dipilih?

Dengan metrik terukur dari perintah evaluasi, atau dengan juri LLM yang membandingkan diff untuk kebenaran dan kesederhanaan.

Untuk apa template itu?

Template memberi agent pola yang bisa diulang untuk pekerjaan seperti mengoptimalkan kecepatan, merefaktor, menulis tes, atau memperbaiki bug.

Detail

Deskripsi asli dari pembuat

Use when a task should be attempted by several agents in parallel and the best result kept (code speed, copy variants, research angles). Spawns N agents in git worktrees, ranks results by metric or judge with result_ranker.py and merges the winner.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9528
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa