Skip to main content

Plan Cascade - Three-layer parallel development framework for AI coding tools

Project description

Plan Cascade

三层级联的并行开发框架 — 从项目到功能到故事,层层分解、并行执行

License: MIT Claude Code Plugin MCP Server Version PyPI


概述

Plan Cascade 是一个三层级联的 AI 并行开发框架,专为大型软件项目设计。它将复杂项目逐层分解,通过多 Agent 协作实现高效的并行开发。

核心理念

  • 层层分解:项目 → 功能 → 故事,逐级细化任务粒度
  • 并行执行:无依赖的任务在同一批次中并行处理
  • 多 Agent 协作:根据任务特点自动选择最优 Agent
  • 质量保障:自动化质量门控 + 智能重试机制
  • 状态追踪:基于文件的状态共享,支持断点恢复

三层架构

层级 名称 职责 产物
Level 1 Mega Plan 项目级编排,管理多个 Feature mega-plan.json
Level 2 Hybrid Ralph 功能级开发,自动生成 PRD prd.json
Level 3 Stories 故事级执行,Agent 并行处理 代码变更

使用方式

方式 说明 适用场景 详细文档
Standalone CLI 独立命令行工具 任何终端环境 CLI Guide
Claude Code Plugin 原生集成,功能最完整 Claude Code 用户 Plugin Guide
Desktop App 图形化界面 偏好 GUI 的用户 Desktop Guide
MCP Server 通过 MCP 协议集成 Cursor, Windsurf 等 MCP Guide

快速开始

Standalone CLI

# 安装
pip install plan-cascade

# 配置
plan-cascade config --setup

# 简单模式 - 一键执行
plan-cascade run "实现用户登录功能"

# 专家模式 - 更多控制
plan-cascade run "实现用户登录功能" --expert

# 交互式聊天
plan-cascade chat

Claude Code Plugin

# 安装
claude plugins install Taoidle/plan-cascade

# 使用
/plan-cascade:hybrid-auto "添加搜索功能"
/plan-cascade:approve --auto-run

Desktop App

GitHub Releases 下载适合您平台的安装包。


核心功能

双模式设计

模式 适用场景 特点
简单模式 新手用户、快速任务 AI 自动判断策略并执行
专家模式 资深用户、精细控制 PRD 编辑、Agent 指定、质量门控配置

AI 自动策略判断

简单模式下,AI 根据需求自动选择执行策略:

输入类型 执行策略
小任务(如"添加按钮") 直接执行
中等功能(如"用户登录") Hybrid Auto
大型项目(如"电商平台") Mega Plan
需要隔离(如"实验性重构") Hybrid Worktree

多 LLM 后端

后端 需要 API Key 说明
Claude Code 默认,通过 Claude Code CLI
Claude Max 通过 Claude Code 获取 LLM
Claude API 直接调用 Anthropic API
OpenAI GPT-4o 等
DeepSeek DeepSeek Chat/Coder
Ollama 本地模型

多 Agent 协作

支持使用不同 Agent 执行 Story:

Agent 类型 说明
claude-code task-tool 内置,始终可用
codex cli OpenAI Codex
aider cli AI 结对编程
amp-code cli Amp Code
cursor-cli cli Cursor CLI

质量门控

每个 Story 完成后自动运行质量验证:

门控 工具
TypeCheck tsc, mypy, pyright
Test pytest, jest
Lint eslint, ruff
Custom 自定义脚本

命令快速参考

CLI

plan-cascade run <description>          # 执行任务
plan-cascade run <description> --expert # 专家模式
plan-cascade chat                       # 交互式聊天
plan-cascade config --setup             # 配置向导
plan-cascade status                     # 查看状态

Claude Code Plugin

# 项目级
/plan-cascade:mega-plan <描述>          # 生成项目计划
/plan-cascade:mega-approve              # 批准执行
/plan-cascade:mega-complete             # 完成合并

# 功能级
/plan-cascade:hybrid-auto <描述>        # 生成 PRD
/plan-cascade:approve --auto-run        # 批准并自动执行
/plan-cascade:hybrid-complete           # 完成

# 通用
/plan-cascade:edit                      # 编辑 PRD
/plan-cascade:status                    # 查看状态

项目结构

plan-cascade/
├── src/plan_cascade/       # Python 核心包
│   ├── core/               # 编排引擎
│   ├── backends/           # 后端抽象
│   ├── llm/                # LLM 提供者
│   ├── tools/              # 工具执行
│   ├── settings/           # 设置管理
│   └── cli/                # CLI 入口
├── .claude-plugin/         # Plugin 配置
├── commands/               # Plugin 命令
├── skills/                 # Plugin 技能
├── mcp_server/             # MCP 服务器
├── desktop/                # Desktop 应用
└── docs/                   # 文档
    ├── CLI-Guide.md
    ├── Plugin-Guide.md
    ├── Desktop-Guide.md
    └── MCP-SERVER-GUIDE.md

文档索引

文档 说明
CLI Guide CLI 详细使用指南
Plugin Guide Claude Code 插件详细指南
Desktop Guide Desktop 应用指南
MCP Server Guide MCP 服务器配置指南
System Architecture 系统架构与流程设计(含流程图)
Design Document 技术设计文档
PRD Document 产品需求文档

更新日志

v4.0.0

  • Standalone CLI 完成 - 独立命令行工具全功能可用
    • 简单模式/专家模式双模式支持
    • 交互式 REPL 聊天模式
    • AI 自动策略判断
  • 多 LLM 后端 - 支持 5 种 LLM 提供者
    • Claude Max(无需 API Key)
    • Claude API、OpenAI、DeepSeek、Ollama
  • 独立 ReAct 引擎 - 完整的 Think→Act→Observe 循环
  • 文档重构 - 拆分为独立的使用指南

v3.x

  • MCP 服务器 - 支持 Cursor、Windsurf 等
  • 多 Agent 协作 - Codex、Aider 等
  • 自动迭代循环 - 质量门控、智能重试
  • Mega Plan - 项目级多功能编排

完整更新日志见 CHANGELOG.md


项目起源

本项目 fork 自 OthmanAdi/planning-with-files(v2.7.1),在其 Manus 风格的文件规划基础上,大幅扩展了功能。


致谢


许可证

MIT License


项目地址: Taoidle/plan-cascade

Star History Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plan_cascade-4.0.1.tar.gz (140.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plan_cascade-4.0.1-py3-none-any.whl (167.2 kB view details)

Uploaded Python 3

File details

Details for the file plan_cascade-4.0.1.tar.gz.

File metadata

  • Download URL: plan_cascade-4.0.1.tar.gz
  • Upload date:
  • Size: 140.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plan_cascade-4.0.1.tar.gz
Algorithm Hash digest
SHA256 7cb6c72fe3abeb1d330f2940b33d9c4d4202b08662e59c05e92db18358bc6191
MD5 f889a21d03e4e8459792c4ee31d82332
BLAKE2b-256 aa46b7850dfe43ce0c841ad51040cb8709729fe808d31ba74d8f9f0358f6a3a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for plan_cascade-4.0.1.tar.gz:

Publisher: release-python.yml on Taoidle/plan-cascade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plan_cascade-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: plan_cascade-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 167.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plan_cascade-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93f2366ae1fbc28ffdbd1b9df243a45e23159a49cc6244931af8f975b8919122
MD5 169fbb3a0cf6c1fdf1d0393a5a165774
BLAKE2b-256 789015ece505e7bf58e18bcadf82305e8238efd0b6f2d726a638ef0f0bf61455

See more details on using hashes here.

Provenance

The following attestation bundles were made for plan_cascade-4.0.1-py3-none-any.whl:

Publisher: release-python.yml on Taoidle/plan-cascade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page