Skip to content

Taoidle/plan-cascade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

579 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Plan Cascade

AI-Powered Cascading Development Framework

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

License: MIT

Component Version Status Description
Plugin 4.4.0 Stable Claude Code integration
Desktop 0.1.0 Alpha Local-first AI workstation
CLI Dev Dev Command-line interface
MCP Server Stable Stable Model Context Protocol

Why Plan Cascade? β€’ Product Editions β€’ Quick Start β€’ Architecture


Why Plan Cascade?

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

Challenge Conventional AI Plan Cascade
Complexity Gets lost in large codebases Decomposes into manageable units
Parallelism Sequential, one-at-a-time Independent tasks run in parallel
Context Lost during long sessions Design docs + durable context survive compaction
Quality Manual verification needed Automated testing & linting at each step
Control Black box execution Transparent, 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:

Feature Plugin Desktop CLI
Target User Claude Code users Multi-model teams Automation/CI
LLM Backend Claude Code only 7+ providers (Claude, OpenAI, DeepSeek, Ollama...) 7+ providers
Offline Use ❌ βœ… (Ollama) βœ… (Ollama)
Installation claude plugins install Desktop app / pip install pip install
UI Slash commands Full GUI with 4 workflow modes Command-line
Quality Gates βœ… Standard βœ… Enterprise-grade with auto-retry βœ…
Security Model Basic 5-layer (Guardrail β†’ Gate β†’ Policy β†’ Sandbox β†’ Audit) Basic
Worktree Integration βœ… βœ… Visual diff viewer βœ…
Visual Workflow ❌ βœ… Real-time timeline + checkpoints ❌
MCP Stack Client only Full stack (Manager + Client + Server) Client only
Knowledge System ❌ βœ… Skills + Memory + RAG ❌
Remote Control ❌ βœ… A2A protocol + Telegram bot ❌
Maturity Stable Alpha Development

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

Document Description
Plugin Guide Claude Code plugin usage
CLI Guide Command-line interface
Mega Plan Guide Multi-feature orchestration
Desktop README Desktop application
PRD Template PRD 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

Component Current Next Milestone
Plugin 4.4.0 Stable 5.0.0 - Enhanced CLI integration
Desktop 0.1.0 Alpha 0.2.0 - Beta with full workflow
CLI Development 1.0.0 - Stable release
MCP Server Stable Enhanced tool support

Contributing

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


License

MIT License - see LICENSE for details.

About

AI-powered cascading development framework. Decompose complex projects into parallel executable tasks with auto-generated PRDs, design docs, and multi-agent collaboration (Claude Code, Codex, Aider).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors