Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginCẩn thậnQuy trình & bộ nhớ agentNâng cao

ControlFlow

Smithbox-ai · Smithbox-ai/ControlFlow

Một hệ thống điều phối đa agent cho Claude Code, Cursor và Copilot, điều phối 13 agent chuyên biệt với các hợp đồng xác định.

Điều phối đa tác nhân cho VS Code Copilot, Claude Code, OpenAI Codex và Cursor

13 sao0Giấy phép: Không có giấy phépCập nhật 4 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Điều phối một đội gồm 13 AI agent chuyên biệt cho các tác vụ lập trình phức tạp trên các nền tảng khác nhau.
  • Thực hiện các quy trình làm việc xác định cho các AI agent bằng cách sử dụng hợp đồng P.A.R.T.
  • Quản lý tương tác của agent và phục hồi lỗi bằng một máy trạng thái có cấu trúc.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

ControlFlow

A multi-agent orchestration system for VS Code Copilot, plus maintained Codex, Claude, and Cursor plugins. ControlFlow coordinates 13 specialized agents under deterministic P.A.R.T contracts (Prompt → Archive → Resources → Tools), structured text outputs, and layered reliability gates.


Contents


Why ControlFlow?

Single AgentControlFlow (13 agents)
PlanningAgent guesses architecture on-the-flyPlanner runs structured idea interview, produces phased plan with Mermaid diagrams
Quality gatesNonePlanAuditor + AssumptionVerifier + ExecutabilityVerifier audit before implementation
ExecutionSequential, monolithicWave-based parallel execution with inter-phase contracts
FailuresSilent or catastrophicClassified (transient/fixable/needs_replan/escalate, plus model_unavailable) with bounded retry routing
Scope driftCommonLLM Behavior Guidelines enforce surgical changes
VerificationManualOffline eval suite + CodeReviewer gates every phase

Quick Start

# 1. Clone
git clone https://github.com/Smithbox-ai/ControlFlow.git

# 2. Copy to your VS Code prompts directory (or symlink)
#    Windows: %APPDATA%\Code\User\prompts
#    macOS:   ~/Library/Application Support/Code/User/prompts
#    Linux:   ~/.config/Code/User/prompts

# 3. Enable in VS Code settings:
#    { "chat.customAgentInSubagent.enabled": true,
#      "github.copilot.chat.responsesApiReasoningEffort": "high" }

# 4. Reload VS Code → type @Planner in Copilot Chat

# 5. Verify evals
cd evals && npm install && npm test

First task? Type @Planner "Add OAuth login with Google" — the system handles the rest.

Quick project status? Run cd evals && npm run health for an offline, read-only operator report (git status by surface, NOTES.md state, plans by status, latest session outcome, artifact coverage).


When to Use Which Agent

ScenarioAgentWhat happens
Abstract idea or vague goal@PlannerIdea interview → phased plan → Mermaid diagram
Detailed task, clear requirements@OrchestratorDispatches subagents → verification gates → phase-by-phase execution
Research question@ResearcherEvidence-based investigation with confidence scores
Quick codebase exploration@CodeMapperRead-only discovery — files, dependencies, entry points

Typical workflow: @Planner authors a plan → you approve → @Orchestrator executes it with full subagent coordination, review gates, and approvals.


Pipeline by Complexity

TierScopeReview AgentsMax Iterations
TRIVIAL1–2 files, single concernNone (CodeReviewer still runs per-phase)—
SMALL3–5 files, single domainPlanAuditor2
MEDIUM6–15 files, cross-domainPlanAuditor + AssumptionVerifier5
LARGE15+ files, system-widePlanAuditor + AssumptionVerifier + ExecutabilityVerifier5

Any plan with an unresolved HIGH-impact risk_review entry forces the full pipeline regardless of tier.

CodeReviewer still runs after each implementation, testing, documentation, or platform phase. Ordinary multi-phase waves use one user approval per wave; destructive/high-risk phases and phases that are FAILED or BLOCKED require per-phase approval. Todo completion remains per-phase.


Orchestration State Machine

stateDiagram-v2
    [*] --> PLANNING
    PLANNING --> WAITING_APPROVAL: plan ready
    WAITING_APPROVAL --> PLAN_REVIEW: user approved
    PLAN_REVIEW --> ACTING: audit passed
    PLAN_REVIEW --> PLANNING: needs revision
    WAITING_APPROVAL --> ACTING: trivial plan (skip review)
    ACTING --> REVIEWING: phase complete
    REVIEWING --> WAITING_APPROVAL: review / approval point
    WAITING_APPROVAL --> ACTING: next wave or phase approved
    WAITING_APPROVAL --> COMPLETE: all phases done
    COMPLETE --> [*]

Simplified — REJECTED transition, HIGH_RISK_APPROVAL_GATE, required PLAN_REVIEW ABSTAIN handling, and final review paths omitted for clarity. See Orchestrator.agent.md for the full state machine.


Failure Routing

ClassificationActionMax Retries
transientRetry same agent3
fixableRetry with fix hint1
needs_replanDelegate to Planner1
escalate
Xem mã nguồn trên GitHub