Smart Cascade — AI skill for Claude Code
把一队编码任务交给一条级联的 AI agent:Root 读取静态队列,派出隔离的 Leader,Leader 动态拆成隔离的 Executor 并行产出 patch.
How to install Smart Cascade
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open shttty/smart-cascade and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Smart Cascade does
把一队编码任务交给一条级联的 AI agent:Root 读取静态队列,派出隔离的 Leader,Leader 动态拆成隔离的 Executor 并行产出 patch。基于 OMP native subagent 的结构性隔离。
Alternatives in AI
- Oh My Claudecode — 32 specialized agents and 7 execution modes for Claude Code, with smart model routing and automatic paralleliz 10.9k ★
- The Pair — Open-source AI pair programming for desktop: a Mentor + Executor agent cross-check each other's code to catch 358 ★
- Klaatcode — Open-source AI coding agent for the terminal 357 ★
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
Related Skills
Smart Switch
Multi-app model provider switcher: manage OpenAI/Anthropic-protocol providers (base URL + API key + models) an
Toon Bend
Byte-for-byte port of the toon CLI (toon_rust: JSON <-> TOON, the token-efficient format for LLM context) to B
Patch Cc
Interactive patcher for the Claude Code native binary. Live inline thinking, detailed tool calls, subagent mod
Nova Agent
AI agent on Android — 27 native phone tools (camera, GPS, SMS, sensors, files), 3 AI providers (OpenAI · Anthr
Octoroute
Smart HTTP router for local LLMs (Ollama, LM Studio, llama.cpp). Rule-based + LLM-powered routing, health chec
RustyClaw
Rust-native Claude Code CLI — RAG indexing, smart model routing, parallel agents, voice cloning, browser autom
Related Agents
Luogotenente
CONFINED operational executor for azienda mode. The Leader/CTO persona (main session) delegates HERE the heavy
Gen Alpha Reviewer
Review a PR diff, branch, or patch in the gen-alpha register (internet-native ironic Gen-Alpha slang), with su
PR Delivery Agent
Pre-PR secrets scanner, conventional-commit git stager, and GitHub PR publisher (or offline .patch generator w