Back to list
parcadei

agentica-infrastructure

by parcadei

Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.

3,352🍴 252📅 Jan 23, 2026

SKILL.md


name: agentica-infrastructure description: Reference guide for Agentica multi-agent infrastructure APIs allowed-tools: [Read] user-invocable: false

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/

Score

Total Score

95/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 1000以上

+15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon