Skip to content

Kasi Cascade

Oak Dev-inter edited this page Apr 23, 2026 · 1 revision

/kasi-cascade

Tier cascade orchestration β€” Opus plans, Sonnet writes, Haiku greps. For missions too large for a single tier.

Usage

/kasi-cascade "<mission>"
./orchestration/tier_cascade.sh "<mission>"
python orchestration/python/orchestrator.py "<mission>"

What it does

  • Decomposes a mission into subtasks at the Opus tier (plan phase).
  • Routes each subtask to the cheapest tier that can handle it: grep/read β†’ Haiku, work β†’ Sonnet, nested plan β†’ Opus.
  • Verifies outputs at Opus before merge.
  • Produces a plan JSON, per-subtask outputs, final git diff, and a verifier verdict.

Flow

  1. Opus decomposes the mission into typed subtasks (plan JSON, no prose).
  2. Dispatch workers by type: grep β†’ Haiku, read β†’ Haiku, work β†’ Sonnet, nested plan β†’ Opus.
  3. Opus verifies every worker output.
  4. Verifier emits verdict JSON: PASS / FAIL / UNSURE.
  5. Main merges (PASS) or escalates (FAIL / UNSURE).

When to use

  • Mission spans more than 3 files.
  • Mission has more than 5 distinct subtasks.
  • Cross-file refactor.
  • Multi-module bug fix.

When NOT to use

  • Single-file edit β€” use Kasi-Fix.
  • One-line change.
  • Trivial task β€” cascade overhead outweighs savings.

Execution paths

  • A. In Claude Code (simulated) β€” Opus explains the cascade plan; user runs subtasks manually via claude --model X.
  • B. Bash orchestrator β€” ./orchestration/tier_cascade.sh "mission".
  • C. Python API β€” python orchestration/python/orchestrator.py "mission" (needs ANTHROPIC_API_KEY).

Cost (Path B/C)

  • Typical mission: $0.20–0.50.
  • All-Opus comparison: 5–10Γ— more expensive for equivalent output.

Exit codes

  • 0 β€” PASS, merge recommended.
  • 2 β€” FAIL, review + retry.
  • 3 β€” UNSURE, user review required.

Anti-patterns

  • ❌ Planner producing prose instead of valid JSON β€” workers cannot route.
  • ❌ Workers exceeding their tier budget (Haiku running a nested plan).
  • ❌ Skipping the verifier to save cost β€” verifier is the last gate.
  • ❌ Using cascade for a one-line fix.

Since

Introduced in v0.8.0.

See also

Kasidit

Core

Version History

Concepts

Commands

Agents

Deprecated v0.10 (stubs β†’ audit-specialist --focus=..., removed in v0.11)

Clone this wiki locally