Sandbox
@Taoidle/plan-cascade

Cascading planning framework for Claude Code and MCP

Plan Cascade helps you decompose a project into planning steps, feature docs, and executable tasks, then run them through a controlled workflow. The repo provides plugin commands, skills, MCP integration, and supporting scripts so agents can move from plan to implementation with shared context.

140 stars11 forksRustUpdated 6mo ago
Who it's for

Builders who want their agent to plan, split, and execute larger projects with shared docs and checkpoints.

What it delivers

You can turn one large request into smaller tracked tasks with design docs and validation gates instead of re-explaining the project at every step.

What it does

Project and feature planning

Creates mega plans, PRDs, and design docs for a goal before execution starts.

Parallel task execution

Splits work into stories that can run in parallel instead of one long agent loop.

Quality gates

Checks readiness, tests, linting, and completion before moving forward.

Claude Code plugin commands

Provides slash commands such as `auto`, `mega-plan`, `spec-plan`, `resume`, and `worktree`.

MCP server and configs

Includes an MCP server plus ready-made configs for editors and clients like Cursor and Windsurf.

Skills and built-in workflows

Ships skills such as `hybrid-ralph`, `mega-plan`, and `planning-with-files` for reusable planning patterns.

How to get it

  1. 1Run
    # Install in Claude Code
    claude plugins install plan-cascade
    
    # Use slash commands
    /plan-cascade:auto "Implement user authentication"
  2. 2Run
    # Requires Python 3.10+ and uv
    git clone https://github.com/Taoidle/plan-cascade.git
    cd plan-cascade
    uv run pytest tests/  # Run tests
    
    # CLI entry point
    uv run plan-cascade --help

README

Plan Cascade

AI-Powered Cascading Development Framework

Transform complex projects into parallel executable tasks with intelligent decomposition and multi-provider execution

License: MIT

ComponentVersionStatusDescription
Plugin4.4.0StableClaude Code integration
Desktop0.1.0AlphaLocal-first AI workstation
CLIDevDevCommand-line interface
MCP ServerStableStableModel Context Protocol

Why Plan Cascade?Product EditionsQuick StartArchitecture


Why Plan Cascade?

Traditional AI coding assistants hit a wall with large, complex projects:

ChallengeConventional AIPlan Cascade
ComplexityGets lost in large codebasesDecomposes into manageable units
ParallelismSequential, one-at-a-timeIndependent tasks run in parallel
ContextLost during long sessionsDesign docs + durable context survive compaction
QualityManual verification neededAutomated testing & linting at each step
ControlBlack box executionTransparent, inspectable workflow

The Solution: Cascading Decomposition

┌─────────────────────────────────────────────────────────────────────┐
│                        Your Project Goal                            │
│            "Build a REST API with authentication"                   │
└─────────────────────────────────────────────────────────────────────┘
                                  │
                                  ▼
┌─────────────────────────────────────────────────────────────────────┐
│  Level 1: Mega Plan                                                 │
│  ─────────────────────                                              │
│  Project-level orchestration → Manages multiple features in batches │
│  Output: mega-plan.json + design_doc.json                          │
└─────────────────────────────────────────────────────────────────────┘
                                  │
              ┌───────────────────┼───────────────────┐
              ▼                   ▼                   ▼
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ Feature: Auth       │ │ Feature: API        │ │ Feature: Database   │
│ ───────────────     │ │ ───────────────     │ │ ───────────────     │
│ PRD + Design Doc    │ │ PRD + Design Doc    │ │ PRD + Design Doc    │
└─────────────────────┘ └─────────────────────┘ └─────────────────────┘
              │                   │                   │
              ▼                   ▼                   ▼
┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
│ Stories (Parallel)  │ │ Stories (Parallel)  │ │ Stories (Parallel)  │
│ ─────────────────   │ │ ─────────────────   │ │ ─────────────────   │
│ □ JWT Implementation│ │ □ CRUD Endpoints    │ │ □ Schema Design     │
│ □ Password Hashing  │ │ □ Rate Limiting     │ │ □ Migrations        │
│ □ Session Management│ │ □ Input Validation  │ │ □ Connection Pool   │
└─────────────────────┘ └─────────────────────┘ └─────────────────────┘
                                  │
                                  ▼
                        ┌─────────────────┐
                        │ Quality Gates   │
                        │ ─────────────   │
                        │ ✓ DoR / DoD     │
                        │ ✓ Test Coverage │
                        │ ✓ Lint / Format │
                        └─────────────────┘

Product Editions

Plan Cascade is available in three editions to suit different workflows:

FeaturePluginDesktopCLI
Target UserClaude Code usersMulti-model teamsAutomation/CI
LLM BackendClaude Code only7+ providers (Claude, OpenAI, DeepSeek, Ollama...)7+ providers
Offline Use✅ (Ollama)✅ (Ollama)
Installationclaude plugins installDesktop app / pip installpip install
UISlash commandsFull GUI with 4 workflow modesCommand-line
Quality Gates✅ Standard✅ Enterprise-grade with auto-retry
Security ModelBasic5-layer (Guardrail → Gate → Policy → Sandbox → Audit)Basic
Worktree Integration✅ Visual diff viewer
Visual Workflow✅ Real-time timeline + checkpoints
MCP StackClient onlyFull stack (Manager + Client + Server)Client only
Knowledge System✅ Skills + Memory + RAG
Remote Control✅ A2A protocol + Telegram bot
MaturityStableAlphaDevelopment

Which Edition Should I Choose?

  • Choose Plugin if you're a Claude Code power user who wants seamless integration
  • Choose Desktop if you need multi-model support, visual workflows, or offline capability
  • Choose CLI if you're building automation pipelines or CI/CD integration

Core Capabilities

Unified Workflow Kernel

All modes share a common foundation:

  • Unified lifecycle — Consistent state management across modes
  • Event streaming — Real-time progress updates via typed events
  • Mode handoff — Seamless switching between Chat → Plan → Task
  • Checkpointing — Recovery from interruptions

Quality Gates Pipeline

Every Story passes through validation:

┌─────────┐   ┌─────────┐   ┌─────────────┐   ┌─────────────┐   ┌─────────┐
│   DoR   │ → │  Code   │ → │     DoD     │ → │ AI Verify   │ → │ Review  │
│ (Ready) │   │ (Write) │   │   (Done)    │   │ (No Stubs)  │   │ (Score) │
└─────────┘   └─────────┘   └─────────────┘   └─────────────┘   └─────────┘
     │             │               │                 │               │
     ▼             ▼               ▼                 ▼               ▼
  Validate      Implement      Verify all        Detect stub     Code quality
  requirements   solution       criteria          code & TODOs      scoring

Design Document Hierarchy

Two-level architecture ensures consistency:

  • Project-level — Global patterns, shared decisions (ADR-001, ADR-002...)
  • Feature-level — Component-specific decisions (ADR-F001, ADR-F002...)

External Framework Skills

Auto-injected best practices from Git submodules:

  • React/Next.js — detected via package.json
  • Vue/Nuxt — detected via package.json
  • Rust — detected via Cargo.toml

Architecture

┌────────────────────────────────────────────────────────────────────────────┐
│                            Plan Cascade Core                               │
├────────────────────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐      │
│  │  Strategy   │  │    PRD      │  │  Parallel   │  │   Quality   │      │
│  │  Selector   │  │  Generator  │  │  Executor   │  │    Gates    │      │
│  └─────────────┘  └─────────────┘  └─────────────┘  └─────────────┘      │
├────────────────────────────────────────────────────────────────────────────┤
│                         Agent Backend Layer                                 │
│  ┌────────────────────────────┐  ┌────────────────────────────┐           │
│  │   ClaudeCodeBackend        │  │     BuiltinBackend         │           │
│  │   (subprocess, no API)     │  │   (direct API, ReAct loop) │           │
│  └────────────────────────────┘  └────────────────────────────┘           │
├────────────────────────────────────────────────────────────────────────────┤
│                           LLM Provider Layer                                │
│    Anthropic │ OpenAI │ DeepSeek │ Ollama │ GLM │ Qwen │ MiniMax          │
└────────────────────────────────────────────────────────────────────────────┘

Quick Start

Plugin (Stable)

# Install in Claude Code
claude plugins install plan-cascade

# Use slash commands
/plan-cascade:auto "Implement user authentication"

CLI (Development)

# Requires Python 3.10+ and uv
git clone https://github.com/Taoidle/plan-cascade.git
cd plan-cascade
uv run pytest tests/  # Run tests

# CLI entry point
uv run plan-cascade --help

Desktop (Alpha)

See desktop/README.md for the full-featured desktop application.


Documentation

DocumentDescription
Plugin GuideClaude Code plugin usage
CLI GuideCommand-line interface
Mega Plan GuideMulti-feature orchestration
Desktop READMEDesktop application
PRD TemplatePRD file format

Project Structure

plan-cascade/
├── src/plan_cascade/          # Core Python library
│   ├── core/                  # Orchestration engines
│   ├── backends/              # Agent abstraction layer
│   ├── state/                 # Thread-safe state management
│   ├── llm/                   # LLM provider abstraction
│   └── tools/                 # ReAct tool implementations
├── desktop/                   # Tauri desktop application
│   ├── src/                   # React frontend
│   └── src-tauri/             # Rust backend
├── skills/                    # Plugin skills
│   ├── hybrid-ralph/          # PRD-driven execution
│   ├── mega-plan/             # Multi-feature orchestration
│   └── planning-with-files/   # File-based planning
├── commands/                  # Slash command definitions
└── mcp_server/               # FastMCP server

Roadmap

ComponentCurrentNext Milestone
Plugin4.4.0 Stable5.0.0 - Enhanced CLI integration
Desktop0.1.0 Alpha0.2.0 - Beta with full workflow
CLIDevelopment1.0.0 - Stable release
MCP ServerStableEnhanced tool support

Contributing

We welcome contributions! Please see our contributing guidelines for details.


License

MIT License - see LICENSE for details.

Files in the repo

Repository payload27 top-level entries
  • .claude
  • .claude-plugin
  • .github
  • .plan-cascade
  • builtin-skills
  • commands
  • desktop
  • docs
  • external-skills
  • mcp_server
  • mcp-configs
  • scripts
  • server
  • skills
  • src
  • tests
  • .gitignore
  • .gitmodules
  • agents.json
  • CHANGELOG.md
  • CLAUDE.md
  • external-skills.json
  • LICENSE
  • pyproject.toml
  • README_zh.md
  • README.md
  • uv.lock

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k