agentica-spawn について
agentica-spawnは、Agenticaのパターン選択後にマルチエージェント方式を起動するスキルです。調査、実装、反復的な改善、検証に利用できます。
主な機能
- 01複数視点で調査するSwarm
- 02タスクを調整するHierarchical
- 03Generator/Criticによる反復改善
- 04Juryによる多数決検証
- 05パターン別のエージェント環境変数
活用シーン
- 01複数の視点からテーマを調査
- 02実装で複数の専門役を調整
- 03批評を重ねて解決策を改善
- 04陪審方式で結果を検証
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ parcadei/ continuous-claude-v3 --skill agentica-spawnインストール後、Claude Code で/agentica-spawnを入力して読み込まれたか確認します。
詳細
Agentica のスポーンスキル
ユーザーが Agentica のパターンを選択した後に、このスキルを使用します。
使用するタイミング
- agentica-orchestrator がユーザーにパターンの選択を促した後
- ユーザーがマルチエージェントのパターン(スウォーム、階層型など)を明示的にリクエストした場合
- エージェントを並列実行すると効果的な複雑なタスクを実装する場合
- 複数の視点が必要な調査タスクの場合(Swarm を使用)
- 調整が必要な実装タスクの場合(Hierarchical を使用)
- 反復的な改善の場合(Generator/Critic を使用)
- 重要度の高い検証の場合(Jury を使用)
パターンの選択とスポーン方法
Swarm(調査/探索)
swarm = Swarm(
perspectives=[
"Security expert analyzing for vulnerabilities",
"Performance expert optimizing for speed",
"Architecture expert reviewing design"
],
aggregate_mode=AggregateMode.MERGE,
)
result = await swarm.execute(task_description)
Hierarchical(構築/実装)
hierarchical = Hierarchical(
coordinator_premise="You break tasks into subtasks",
specialist_premises={
"planner": "You create implementation plans",
"implementer": "You write code",
"reviewer": "You review code for issues"
},
)
result = await hierarchical.execute(task_description)
Generator/Critic(反復/改善)
gc = GeneratorCritic(
generator_premise="You generate solutions",
critic_premise="You critique and suggest improvements",
max_rounds=3,
)
result = await gc.run(task_description)
Jury(検証/確認)
jury = Jury(
num_jurors=5,
consensus_mode=ConsensusMode.MAJORITY,
premise="You evaluate the solution"
)
verdict = await jury.decide(bool, question)
環境変数
スポーンされたすべてのエージェントに以下が渡されます:
SWARM_ID:このスウォーム実行の一意な識別子AGENT_ROLE:パターン内での役割(コーディネーター、スペシャリストなど)PATTERN_TYPE:実行中のパターン
コメント
Markdown 対応