
Security News
152 Chrome Live Wallpaper Extensions Hid Ad Tracking and Faked Google Search Traffic
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.
ai-phase-builder
Advanced tools
AI-powered project phase orchestration for Cursor IDE. Transform ideas into structured development phases with intelligent handovers, rollback support, and Context7 integration.
Fully automated AI-powered project phase orchestration for Cursor IDE. Transform your ideas into structured, executable development phases that run automatically via the Cursor CLI.
| Requirement | Version | Purpose |
|---|---|---|
| Node.js | 18+ | Runtime |
| Cursor IDE | Active subscription | AI models |
| Git | Any recent version | Version control |
GitHub CLI (gh) | Any recent version | Auto repo creation |
npm install -g ai-phase-builder
GitHub CLI is required for automatic repository creation. The setup wizard will prompt you to authenticate.
# Using winget (recommended)
winget install --id GitHub.cli
# Or download from: https://cli.github.com/
# Using Homebrew
brew install gh
# Ubuntu/Debian
sudo apt install gh
# Or using conda
conda install gh --channel conda-forge
Note: You don't need to run
gh auth loginmanually - the setup wizard will prompt you to authenticate.
The Cursor CLI (cursor-agent) requires a Unix-like environment. Follow the instructions for your operating system (Windows users: install inside WSL):
Windows users must use WSL (Windows Subsystem for Linux) to run cursor-agent.
Open PowerShell as Administrator and run:
wsl --install
This installs Ubuntu by default. Restart your computer when prompted.
After restart, open Ubuntu from Start menu. It will complete setup and ask you to create a username/password.
Then run these commands in the Ubuntu terminal:
# Update packages
sudo apt update && sudo apt upgrade -y
# Install curl (if not present)
sudo apt install curl -y
# Install Cursor CLI
curl https://cursor.com/install -fsS | bash
# Add to PATH (run this line exactly)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Verify installation
cursor-agent --version
You can now use ai-phases from any Windows terminal (CMD, PowerShell, or Git Bash). The tool automatically routes commands through WSL.
Open Terminal and run:
# Install Cursor CLI
curl https://cursor.com/install -fsS | bash
# Add to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# Verify installation
cursor-agent --version
Open terminal and run:
# Install Cursor CLI
curl https://cursor.com/install -fsS | bash
# Add to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Verify installation
cursor-agent --version
Note: You don't need to run
cursor-agent loginmanually - the setup wizard will prompt you to authenticate.
# Create project folder
mkdir my-project && cd my-project
# Initialize (runs setup wizard on first use)
ai-phases init
On first run, init will automatically run the setup wizard which:
All authentication happens during setup, before any AI generation starts!
After prerequisites are installed, it's just 3 commands:
# 1. Create project folder
mkdir my-project && cd my-project
# 2. Initialize (setup wizard runs automatically on first use)
ai-phases init
# 3. ONE COMMAND does everything:
ai-phases refine "build a crypto price dashboard with real-time updates"
That's it! The tool will:
# Generate plan without auto-running phases
ai-phases refine "your idea" --no-auto-run
# Then run phases individually
ai-phases run --phase 1
ai-phases run --phase 2
| Command | Description |
|---|---|
ai-phases init | Initialize AI Phase Builder in current project |
ai-phases refine <idea> | Transform idea into enhanced spec + phase plan (automated) |
ai-phases plan | Create or edit phase plan manually |
ai-phases run --phase N | Execute a specific phase (automated) |
ai-phases status | Show current project status |
ai-phases handover | Generate handover summary for current phase (automated) |
ai-phases rollback | Rollback a failed phase to retry |
ai-phases sync | Detect and reconcile manual changes |
ai-phases config | Manage configuration (use --setup to reconfigure) |
Your rough idea goes through a fully automated two-stage enhancement:
Your Idea → [Superprompt Enhancement] → [Phase Structuring] → Executable Plan
Claude Opus (auto) Claude Opus (auto)
No manual input required. The CLI runs both stages automatically via cursor-agent.
All models are accessed through your Cursor subscription via the CLI.
Each phase runs automatically:
ai-phases run --phase 1
# → cursor-agent executes the phase prompt
# → Changes are applied automatically
# → Handover is generated for next phase
# → Git checkpoint is created
# → Auto-continues to next phase (if enabled)
Phase N Context (ONLY these):
├── Phase description + tasks
├── Validation checklist
├── Handover from Phase N-1 (summarized)
├── Context7 docs (fetched fresh)
└── Failure report (if retrying)
NOT included (cleared):
├── Full project specification
├── Research findings
├── Context from Phase N-2 and earlier
└── Previous attempt details (except failures)
Global config stored at: ~/.ai-phase-builder/config.json
{
"cursor": {
"planning_model": "opus-4.5",
"execution_model": "gemini-3-flash",
"context7_enabled": true
},
"defaults": {
"ui_library": "shadcn",
"design_system": "vercel",
"auto_commit": true,
"auto_push": true,
"auto_run_phases": true,
"auto_create_repo": true,
"github_visibility": "private",
"max_retry_attempts": 3
}
}
| Option | Default | Description |
|---|---|---|
auto_run_phases | true | Automatically run all phases after refine |
auto_create_repo | true | Create GitHub repo automatically |
github_visibility | private | Repo visibility (private/public) |
auto_commit | true | Commit after each phase |
auto_push | true | Push to remote after each commit |
Context7 MCP provides up-to-date documentation directly in Cursor. Enable it:
When initialized, creates:
.ai-phases/
├── config.json # Project settings
├── state.json # Phase tracking state
├── context.md # Persistent project context
├── plan.md # Master phase plan
├── enhanced-spec.md # AI-enhanced specification
├── phases/
│ ├── phase-1/
│ │ ├── state.json
│ │ ├── prompt.md
│ │ ├── handover.md
│ │ └── attempt-1/
│ │ ├── output.md
│ │ └── error.md (if failed)
│ └── phase-2/
│ └── ...
├── logs/
│ └── drift.log
└── templates/
├── handover.md
├── failure-report.md
└── phase-prompt.md
The tool requires WSL with cursor-agent installed inside it.
Check WSL is installed:
wsl --list
Should show "Ubuntu" (or another distro).
Check cursor-agent is installed in WSL:
wsl -d Ubuntu -e bash -c "cursor-agent --version"
If not installed, follow the Windows installation steps above.
# Reinstall
curl https://cursor.com/install -fsS | bash
# Add to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc for macOS
source ~/.bashrc # or source ~/.zshrc
# Verify
cursor-agent --version
# Windows (run in any terminal)
wsl -d Ubuntu -e bash -c "cursor-agent login"
# macOS / Linux
cursor-agent login
# Run this and follow the prompts
gh auth login
# Verify authentication
gh auth status
gh --versiongh auth status.ai-phases/phases/phase-N/attempt-X/error.mdai-phases rollback --phase N to resetplan.md# Restart WSL
wsl --shutdown
wsl
# If that doesn't work, reset WSL
wsl --unregister Ubuntu
wsl --install -d Ubuntu
# Make cursor-agent executable
chmod +x ~/.local/bin/cursor-agent
# 1. Create project
mkdir my-dashboard && cd my-dashboard
ai-phases init
# 2. Start with an idea (runs automatically)
ai-phases refine "build a task management app with drag-and-drop"
# Output:
# ✓ Enhanced specification generated
# ✓ Phase plan generated (5 phases)
# ✓ GitHub repo created
# ✓ Running phase 1...
# ✓ Phase 1 complete
# ✓ Running phase 2...
# ... continues automatically ...
# 🎉 All phases complete!
# 3. Check status anytime
ai-phases status
Preview what will be executed without running:
ai-phases run --phase 1 --dry-run
Q: Does this work without Cursor subscription?
No. The tool uses cursor-agent which requires an active Cursor subscription.
Q: Why WSL on Windows?
The cursor-agent CLI doesn't have native Windows support. WSL provides a Linux environment that works seamlessly.
Q: Can I use this with other AI tools? Currently, this is designed specifically for Cursor IDE. The architecture could be extended for other tools in the future.
Q: How much does it cost? The tool itself is free. You only pay for your Cursor subscription (which provides access to Claude Opus and Gemini Flash).
MIT
FAQs
AI-powered project phase orchestration for Cursor IDE. Transform ideas into structured development phases with intelligent handovers, rollback support, and Context7 integration.
We found that ai-phase-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.