Get the FREE Ultimate OpenClaw Setup Guide →

agentica-infrastructure

npx machina-cli add skill parcadei/Continuous-Claude-v3/agentica-infrastructure --openclaw
Files (1)
SKILL.md
3.0 KB

Agentica Infrastructure Reference

Complete API specification for Agentica multi-agent coordination infrastructure.

When to Use

  • Building multi-agent workflows with Agentica patterns
  • Need exact constructor signatures for pattern classes
  • Want to understand coordination database schema
  • Implementing custom patterns using primitives
  • Debugging agent tracking or orphan detection

Quick Reference

11 Pattern Classes

PatternPurposeKey Method
SwarmParallel perspectives.execute(query)
PipelineSequential stages.run(initial_state)
HierarchicalCoordinator + specialists.execute(task)
JuryVoting consensus.decide(return_type, question)
GeneratorCriticIterative refinement.run(task)
CircuitBreakerFailure fallback.execute(query)
AdversarialDebate + judge.resolve(question)
ChainOfResponsibilityRoute to handler.process(query)
MapReduceFan out + reduce.execute(query, chunks)
BlackboardShared state.solve(query)
EventDrivenEvent bus.publish(event)

Core Infrastructure

ComponentFilePurpose
CoordinationDBcoordination.pySQLite tracking
tracked_spawntracked_agent.pyAgent with tracking
HandoffAtomhandoff_atom.pyUniversal handoff format
BlackboardCacheblackboard.pyHot tier communication
MemoryServicememory_service.pyCore + Archival memory
create_claude_scopeclaude_scope.pyScope with file ops

Primitives

PrimitivePurpose
ConsensusVoting (MAJORITY, UNANIMOUS, THRESHOLD)
AggregatorCombine results (MERGE, CONCAT, BEST)
HandoffStateStructured agent handoff
build_premiseStructured premise builder
gather_fail_fastTaskGroup-based parallel execution

Full API Spec

See: API_SPEC.md in this skill directory

Usage Example

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?")

Location

API spec: .claude/skills/agentica-infrastructure/API_SPEC.md Source: scripts/agentica_patterns/

Source

git clone https://github.com/parcadei/Continuous-Claude-v3/blob/main/.claude/skills/agentica-infrastructure/SKILL.mdView on GitHub

Overview

This skill provides a complete API specification for the Agentica multi-agent coordination infrastructure. It covers pattern classes, core infrastructure components, and primitives used to build, orchestrate, and debug agent systems. It also points to the official API_SPEC for deeper technical details.

How This Skill Works

Each pattern class is documented with its purpose and a key method (e.g., Swarm .execute, Jury .decide). Core infrastructure components and primitives are listed with their associated files and roles to help you implement and extend patterns. The guide links to API_SPEC.md for the full technical spec.

When to Use It

  • Building multi-agent workflows with Agentica patterns
  • Need exact constructor signatures for pattern classes
  • Understand the coordination database schema
  • Implementing custom patterns using primitives
  • Debugging agent tracking or orphan detection

Quick Start

  1. Step 1: Create CoordinationDB(session_id=\"my-session\")
  2. Step 2: Instantiate a pattern (e.g., Swarm) with db and perspectives
  3. Step 3: Invoke the pattern method (.execute or .run) and read results

Best Practices

  • Start by selecting a pattern class that matches your workflow (Swarm for parallel, Pipeline for sequential)
  • Consult CoordinationDB and coordination.py to understand state tracking
  • Use HandoffAtom and tracked_spawn for reliable handoffs and auditing
  • Leverage primitives like Consensus and Aggregator to combine results
  • Enable observability with MemoryService and BlackboardCache

Example Use Cases

  • Create a CoordinationDB and run a Swarm with multiple perspectives
  • Execute a Jury consensus to validate a decision on code quality
  • Coordinate tasks using MapReduce with query chunks
  • Debug orphan agents via tracked_spawn and coordination records
  • Share state across agents with a Blackboard and event-driven patterns

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers