Smart Cascade banner
shttty shttty

Smart Cascade

AI community

Description

把一队编码任务交给一条级联的 AI agent:Root 读取静态队列,派出隔离的 Leader,Leader 动态拆成隔离的 Executor 并行产出 patch。基于 OMP native subagent 的结构性隔离。

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

smart-cascade

把一队编码任务交给一条级联的 AI agent:当前 session 作为 Root 读取静态队列,为每个 slice 派出一个隔离的 Leader,Leader 读完真实代码后再动态拆成若干隔离的 Executor 并行产出 patch。

隔离是结构性的,不是靠提示词约定的:每个角色都是 OMP native 的独立 subagent,各自持有自己的 context 和工具面。Executor 写不到生产基线,只交出 patch;Leader 串行组装;Root 独立验证后才 commit。

flowchart TD
    QUEUE[".smart-cascade/queue.toml
静态 slice 定义"] --> ROOT subgraph ROOTLAYER["Root — 当前 session,唯一顶层协调者"] ROOT["读取 queue
按 depends_on
计算 ready frontier"] end ROOT -->|"native task, isolated=true"| LEADER subgraph LEADERLAYER["Leader — 隔离 candidate 的唯一 assembly writer"] LEADER["读真实代码
动态拆分 child patch"] end LEADER -->|"native task, isolated=true"| EX1 & EX2 & EX3 subgraph EXLAYER["Executor — 并行产出 patch,写不到生产基线"] EX1["child-a
独立 patch"] EX2["child-b
独立 patch"] EX3["child-n
独立 patch"] end EX1 & EX2 & EX3 -->|"strict settlement
retained patch"| ASSEMBLE ASSEMBLE(["Leader 按确定顺序
串行应用 patch"]) --> CANDIDATE CANDIDATE(["候选 + 证据
交回 Root"]) --> VERIFY subgraph VERIFYLAYER["Root 技术验收"] VERIFY{"验证 settlement、retained patch
changed paths、checks、postcondition"} end VERIFY -->|"PASS"| COMMIT["Git commit / integration
推进依赖"] VERIFY -->|"REWORK"| LEADER VERIFY -->|"能力不足"| ADVISOR["请求 Advisor"] ADVISOR --> LEADER COMMIT --> NEXT{"还有 ready slice?"} NEXT -->|"是"| ROOT NEXT -->|"否"| DONE(["Root 报告结果
由用户决定是否收货"]) classDef root fill:#2a1a1a,stroke:#f97316,color:#fed7aa classDef leader fill:#1a2a3a,stroke:#38bdf8,color:#7dd3fc classDef executor fill:#1a3a2a,stroke:#4ade80,color:#86efac classDef advisor fill:#2a1a3a,stroke:#a78bfa,color:#c4b5fd classDef terminal fill:#1e2130,stroke:#64748b,color:#94a3b8 classDef merge fill:#2a2a1a,stroke:#fbbf24,color:#fde68a class ROOT,VERIFY,COMMIT root class LEADER leader class EX1,EX2,EX3 executor class ADVISOR advisor class QUEUE,D