Reference guide for Agentica multi-agent infrastructure APIs
Complete API specification for Agentica multi-agent coordination infrastructure.
| Pattern | Purpose | Key Method |
|---------|---------|------------|
| Swarm | Parallel perspectives | .execute(query) |
| Pipeline | Sequential stages | .run(initial_state) |
| Hierarchical | Coordinator + specialists | .execute(task) |
| Jury | Voting consensus | .decide(return_type, question) |
| GeneratorCritic | Iterative refinement | .run(task) |
| CircuitBreaker | Failure fallback | .execute(query) |
| Adversarial | Debate + judge | .resolve(question) |
| ChainOfResponsibility | Route to handler | .process(query) |
| MapReduce | Fan out + reduce | .execute(query, chunks) |
| Blackboard | Shared state | .solve(query) |
| EventDriven | Event bus | .publish(event) |
| Component | File | Purpose |
|-----------|------|---------|
| CoordinationDB | coordination.py | SQLite tracking |
| tracked_spawn | tracked_agent.py | Agent with tracking |
| HandoffAtom | handoff_atom.py | Universal handoff format |
| BlackboardCache | blackboard.py | Hot tier communication |
| MemoryService | memory_service.py | Core + Archival memory |
| create_claude_scope | claude_scope.py | Scope with file ops |
| Primitive | Purpose |
|-----------|---------|
| Consensus | Voting (MAJORITY, UNANIMOUS, THRESHOLD) |
| Aggregator | Combine results (MERGE, CONCAT, BEST) |
| HandoffState | Structured agent handoff |
| build_premise | Structured premise builder |
| gather_fail_fast | TaskGroup-based parallel execution |
See: API_SPEC.md in this skill directory
from scripts.agentica_patterns.patterns import Swarm, Jury
from scripts.agentica_patterns.primitives import ConsensusMode
from scripts.agentica_patterns.coordination import CoordinationDB
from scripts.agentica_patterns.tracked_agent import tracked_spawn
# Create tracking database
db = CoordinationDB(session_id="my-session")
# Swarm with tracking
swarm = Swarm(
perspectives=["Security expert", "Performance expert"],
db=db
)
result = await swarm.execute("Review this code")
# Jury with consensus
jury = Jury(
num_jurors=3,
consensus_mode=ConsensusMode.MAJORITY,
premise="You evaluate code quality",
db=db
)
verdict = await jury.decide(bool, "Is this code production ready?")
API spec: .claude/skills/agentica-infrastructure/API_SPEC.md
Source: scripts/agentica_patterns/
npx skills add parcadei/agentica-infrastructure下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawhub CLI.
Gemini CLI for one-shot Q&A, summaries, and generation.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Notion API for creating and managing pages, databases, and blocks.
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Capture and automate macOS UI with the Peekaboo CLI.
Category:developer