An intelligent Agent PRD generation tool that transforms natural language descriptions into structured technical documentation optimized for Vibe coding.
Overview • Web UI • MCP Integration • Quick Start • Configuration • Project Structure • Prefab Ecosystem • Contributing • License
Languages: English • 简体中文 • 日本語
- First, define the task: What are the inputs? What are the specific steps? What are the outputs? How do you define success? These are typically called SOPs. Work that can be SOPed can be automated by AI.
- Second, provide the right tools for your agent. Humans use Office suites, browse the web, manage files and data, etc. If you want agents to work, they need these tools too.
- Finally, specify how the agent should organize its outputs.
In the Agent context, there's a more appropriate term for this: context engineering. Specifically, before starting Code Agents (Claude Code/Cursor/Augment/Devin/...), we want to clearly define through documentation:
- design.md: Define what the work is.
- prefab.md: Define available tools and how to use them. We call these Prefabs.
- starter-kit: Define development frameworks and available environments (this part is mostly consistent across projects).
This is what GTPlanner does—simplifying the process of building Agents.
GTPlanner helps you easily generate an Agent PRD—a standard operating procedure (SOP) that AI can understand—to quickly automate your tasks. GTPlanner's design philosophy:
- Determinism: Eliminate AI ambiguity through clear SOPs (Agent PRDs), ensuring highly controllable and predictable execution paths and results.
- Composability: Break SOPs into reusable "Prefabs" and task modules, combining them like building blocks to create more complex workflows.
- Freedom: We don't lock you into execution platforms (like n8n), but instead use minimal AI frameworks and native Python code for maximum flexibility and freedom.
For the best experience, we strongly recommend using the Web UI. It provides a streamlined AI planning workflow tailored for modern developers.
Key Advantages:
- Intelligent Planning Assistant: AI-assisted rapid generation of system architecture and project plans
- Instant Documentation: Automatically create comprehensive technical documentation
- Perfectly Suited for Vibe Coding: Optimized output for Cursor, Windsurf, GitHub Copilot
- Team Collaboration: Multi-format export for easy sharing
Click to expand MCP integration instructions
GTPlanner supports the Model Context Protocol (MCP) for direct use in AI programming tools.
Detailed configuration guide → MCP Documentation
Try Web UI - WYSIWYG planning and documentation generation
- Python ≥ 3.10 (3.11+ recommended)
- Package Manager: uv (recommended)
- LLM API Key: OpenAI / Anthropic / Azure OpenAI / Self-hosted compatible endpoint
git clone https://github.com/OpenSQZ/GTPlanner.git
cd GTPlanner
# Install dependencies with uv
uv syncCopy the configuration template and set your API Key:
cp .env.example .env
# Edit .env file and set required environment variablesRequired Configuration:
LLM_API_KEY="your-api-key-here"
LLM_BASE_URL="https://api.openai.com/v1"
LLM_MODEL="gpt-5"Detailed configuration guide (including common providers, Langfuse, etc.) → Configuration Documentation
python gtplanner.pyAfter starting, simply input your requirements, for example:
Create a video analysis assistant that can automatically extract video subtitles, generate summaries and key points.
python gtplanner.py "Design a document analysis assistant that supports PDF, Word document parsing and intelligent Q&A"CLI detailed documentation (session management, parameter explanations, etc.) → CLI Documentation
Start the FastAPI service:
uv run fastapi_main.py
# Runs on http://0.0.0.0:11211 by defaultVisit http://0.0.0.0:11211/docs to view API documentation
API detailed documentation (endpoint descriptions, usage examples, etc.) → API Documentation
cd mcp
uv sync
uv run python mcp_service.pyMCP detailed documentation (client configuration, available tools, etc.) → MCP Documentation
GTPlanner supports multiple configuration methods:
- Environment Variables (.env file): API Key, Base URL, Model, etc.
- Configuration File (settings.toml): Language, tracing, vector services, etc.
- Langfuse Tracing (optional): Execution process tracing and performance analysis
Complete configuration guide → Configuration Documentation
GTPlanner/
├── README.md # Main documentation
├── gtplanner.py # CLI entry point
├── fastapi_main.py # API service entry
├── settings.toml # Configuration file
│
├── gtplanner/ # Core code
│ ├── agent/ # Agent system
│ │ ├── cli/ # → [CLI Documentation](./gtplanner/agent/cli/README.md)
│ │ ├── api/ # → [API Documentation](./gtplanner/agent/api/README.md)
│ │ ├── flows/ # Control flows
│ │ ├── subflows/ # Specialized subflows
│ │ └── ...
│ └── utils/ # Utilities
│
├── prefabs/ # Prefab ecosystem
│ ├── README.md # → [Prefab Documentation](./prefabs/README.md)
│ └── releases/ # Release management
│ ├── community-prefabs.json # Prefab registry
│ └── CONTRIBUTING.md # → [Prefab Contributing Guide](./prefabs/releases/CONTRIBUTING.md)
│
├── mcp/ # MCP service
│ └── README.md # → [MCP Documentation](./mcp/README.md)
│
├── docs/ # Documentation
│ ├── zh/ # Chinese documentation
│ ├── ja/ # Japanese documentation
│ ├── configuration.md # Configuration guide
│ └── architecture/ # Architecture documentation
│
├── workspace/ # Runtime directory
│ ├── logs/ # Logs
│ └── output/ # Output documents
│
└── tests/ # Tests
System architecture documentation → Architecture Documentation
GTPlanner extends capabilities through the Prefab ecosystem. Each Prefab is a standardized, reusable AI functional component.
Prefabs are ready-to-use AI functional modules that can be:
- Discovered: GTPlanner automatically recognizes available Prefabs
- Deployed: Automatically deployed to the platform after PR merge
- Integrated: Called through standard APIs
- Version Managed: Semantic versioning
When you contribute a Prefab to community-prefabs.json:
- Expand Planning Capabilities: GTPlanner learns about a new solution
- Smart Recommendations: GTPlanner recommends appropriate Prefabs when generating plans
- Automatic Integration: Planning documents include Prefab usage instructions
Example Prefabs:
- Media Processing: Video Processing Prefab - Video to audio, subtitle extraction
- Data Services: Amap Weather Prefab - Weather queries
- Document Processing: PDF parsing, Excel processing
- AI Services: Speech recognition, image recognition
Using Prefabs:
Call any published Prefab through the Prefab Gateway:
# 1. Create API Key on AgentBuilder platform
# 2. Call Prefab through gateway
curl -X POST "https://gateway.agentbuilder.com/v1/prefabs/{prefab-id}/execute" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"function": "function_name", "parameters": {...}}'Browse Available Prefabs:
cat prefabs/releases/community-prefabs.json | jq '.'Create Your Own Prefab:
git clone https://github.com/The-Agent-Builder/Prefab-Template.git my-prefab
cd my-prefab
uv sync --dev
# Develop, test, publishComplete Prefab documentation → Prefab Guide
Gateway calling details → Prefab Usage Guide
We believe that an excellent tool requires community wisdom and collaboration. GTPlanner welcomes your participation!
Why Contribute Prefabs?
Each Prefab will:
- Extend GTPlanner's planning capabilities
- Help other developers solve problems
- Be automatically included in the recommendation system
- Gain community recognition
How to Contribute?
- Create a Prefab using the template → Prefab-Template
- Develop and test your functionality
- Publish a GitHub Release and upload the
.whlfile - Submit a PR to
prefabs/releases/community-prefabs.json
Prefab Impact:
- Enter Recommendation System: Prefabs in
community-prefabs.jsonare recognized by GTPlanner - Smart Matching: Automatically recommended for appropriate scenarios during planning
- Auto Deployment: Automatically deployed to Prefab platform after PR merge
Detailed contribution guide → Prefab Contributing Documentation
Improve GTPlanner's planning quality and system performance through evaluation-driven development.
Core code contribution → Contributing Guide
Share your experience to help the community discover GTPlanner's full potential:
- Use Cases: Applications in real projects
- GTPlanner-Generated PRDs: Showcase planning quality
- Tutorials and Best Practices: Help new users get started
Submit cases → Create PR in docs/examples/community-cases/
This project is licensed under the MIT License. See LICENSE for details.
- Built on PocketFlow async workflow engine
- Configuration management powered by Dynaconf
- Designed for seamless integration with AI assistants through MCP protocol
GTPlanner - Transform your ideas into structured blueprints with the power of AI.



