agentica-infrastructure by parcadei/continuous-claude-v3
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill agentica-infrastructureAgentica 多智能体协调基础设施的完整 API 规范。
| 模式 | 用途 | 关键方法 |
|---|---|---|
Swarm | 并行视角 | .execute(query) |
Pipeline | 顺序阶段 | .run(initial_state) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Hierarchical| 协调器 + 专家 |
.execute(task) |
Jury | 投票共识 | .decide(return_type, question) |
GeneratorCritic | 迭代优化 | .run(task) |
CircuitBreaker | 故障回退 | .execute(query) |
Adversarial | 辩论 + 裁决 | .resolve(question) |
ChainOfResponsibility | 路由到处理器 | .process(query) |
MapReduce | 分散 + 聚合 | .execute(query, chunks) |
Blackboard | 共享状态 | .solve(query) |
EventDriven | 事件总线 | .publish(event) |
| 组件 | 文件 | 用途 |
|---|---|---|
CoordinationDB | coordination.py | SQLite 跟踪 |
tracked_spawn | tracked_agent.py | 带跟踪的智能体 |
HandoffAtom | handoff_atom.py | 通用交接格式 |
BlackboardCache | blackboard.py | 热层通信 |
MemoryService | memory_service.py | 核心 + 归档记忆 |
create_claude_scope | claude_scope.py | 带文件操作的 Scope |
| 原语 | 用途 |
|---|---|
Consensus | 投票 (MAJORITY, UNANIMOUS, THRESHOLD) |
Aggregator | 合并结果 (MERGE, CONCAT, BEST) |
HandoffState | 结构化的智能体交接 |
build_premise | 结构化的前提构建器 |
gather_fail_fast | 基于 TaskGroup 的并行执行 |
参见:此技能目录中的 API_SPEC.md
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
# 创建跟踪数据库
db = CoordinationDB(session_id="my-session")
# 带跟踪的 Swarm
swarm = Swarm(
perspectives=["Security expert", "Performance expert"],
db=db
)
result = await swarm.execute("Review this code")
# 带共识的 Jury
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 规范:.claude/skills/agentica-infrastructure/API_SPEC.md 源代码:scripts/agentica_patterns/
每周安装量
196
代码仓库
GitHub 星标数
3.6K
首次出现
2026 年 1 月 22 日
安全审计
安装于
opencode190
codex190
gemini-cli187
cursor187
github-copilot184
amp180
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 |
| 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/
Weekly Installs
196
Repository
GitHub Stars
3.6K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode190
codex190
gemini-cli187
cursor187
github-copilot184
amp180
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
62,200 周安装
blackboard.py |
| Hot tier communication |
MemoryService | memory_service.py | Core + Archival memory |
create_claude_scope | claude_scope.py | Scope with file ops |