APEX Engine Documentation
Learn how to generate production-ready code with the 100-phase autonomous swarm.
Introduction
APEX Engine is an AI-powered code generator that uses 7 specialized agents working through 100 phases to produce production-ready code. Unlike other AI tools, APEX lets you preview code before paying.
See Before You Pay
Preview 25-50 lines of real code on the free tier
100-Phase Swarm
7 agents: Planner, Coder, Reviewer, Tester, Documenter, Security, Optimizer
Free Explanations
Understand every line with free code explanations
Version Branching
Create variations: "add types" โ new branch
Quick Start
- Sign up at theapexengine.net โ you get 100 free credits
- Choose a framework (React, Python, Node.js, etc.)
- Select generation type (Snippet, Component, API, etc.)
- Describe what you want in plain English
- Click Generate and watch the swarm work
- Review the preview (free tier shows 25-50 lines)
- Unlock full code by upgrading (if you like what you see)
Use keyboard shortcuts: Cmd/Ctrl + Enter to generate, Cmd/Ctrl + E to explain code.
Understanding Credits
APEX uses a credit system. Different actions cost different amounts based on complexity:
| Generation Type | Credits | Output |
|---|---|---|
| โก Code Snippet | 3 credits | Single utility function (~25 lines) |
| ๐งฉ Component | 5 credits | React/Vue component (~35 lines) |
| ๐ง Function/Module | 8 credits | Complete module with types (~50 lines) |
| ๐ API Endpoint | 12 credits | REST endpoint with validation (~40 lines) |
| ๐๏ธ Database Schema | 10 credits | SQL schema with indexes (~30 lines) |
| ๐๏ธ Full-Stack App | 35 credits | Multiple files (6+ files) |
The 100-Phase Swarm
APEX uses 7 specialized AI agents that work through 100 phases:
Phase 1-20: ๐ง PLANNER โ Analyzes prompt, plans structure Phase 21-70: ๐ป CODER โ Writes the actual code Phase 71-80: ๐ REVIEWER โ Reviews for best practices Phase 81-88: ๐งช TESTER โ Adds error handling Phase 89-95: ๐ DOCUMENTER โ Adds comments & docs Phase 96-98: ๐ก๏ธ SECURITY โ Checks for vulnerabilities Phase 99-100: โก OPTIMIZER โ Performance optimization
You can watch this process in real-time in the left sidebar of the app.
Framework Presets
APEX supports multiple frameworks. Choose one before generating to get optimized output:
- โ๏ธ React โ JSX, hooks, functional components
- โฒ Next.js โ App Router, Server Components
- ๐ Vue โ Composition API, SFCs
- ๐ Python โ Type hints, modern syntax
- ๐ข Node.js โ ES modules, async/await
- ๐ FastAPI โ Pydantic models, async
- ๐ TypeScript โ Strict types, interfaces
- ๐ Any โ Auto-detect from prompt
Generation Modes
Generate Mode (Default)
Describe what you want in plain English. APEX will generate code from scratch.
Create a React hook for infinite scroll pagination with loading states, error handling, and automatic data fetching when user reaches bottom of page.
Import & Improve Mode
Paste existing code and tell APEX what to improve. Great for:
- Adding TypeScript types to JavaScript code
- Improving error handling
- Refactoring for readability
- Adding documentation
- Performance optimization
Version Branching
After generating code, you can create variations without starting over:
- Generate your initial code (v1)
- Type a modification in the branch input (e.g., "add TypeScript")
- Click "Branch" to create v2 with your modification
- Switch between versions anytime
Branching is great for exploring different approaches: "make it async", "add caching", "use classes instead".
Code Explainer (Free!)
The Code Explainer is free for all users, including free tier. After generating code:
- Click the "๐ก Explain This Code" button
- Get a plain-English explanation of what the code does
- Learn key concepts and how to use the code
This is perfect for learning and understanding AI-generated code before using it.
Import & Improve
Have existing code that needs work? Use Import & Improve mode:
- Click the "Import" tab in the mode selector
- Paste your existing code in the left panel
- Describe what improvements you want in the right panel
- Click "Improve Code"
Import & Improve costs 8 credits (same as Function/Module) regardless of input size.
Writing Good Prompts
Better prompts = better code. Here's how to write effective prompts:
Be Specific
Make a login form
Create a React login form with email/password fields, validation (email format, password min 8 chars), loading state during submit, and error display.
Include Requirements
- Mention specific libraries you want to use
- Specify error handling requirements
- Include edge cases to handle
- Mention any performance requirements
Give Context
Create an API endpoint for user registration. - POST /api/users/register - Accepts: email, password, name - Validate email format and password strength - Check if email already exists - Hash password with bcrypt - Return user object without password - Handle all errors with proper status codes
Pro Tips
- Start small โ Generate snippets first, then build up
- Use branching โ Explore variations without losing work
- Read explanations โ Free feature that helps you understand
- Check the quality score โ See security and best practice ratings
- Import existing code โ Let APEX improve your messy code
- Use keyboard shortcuts โ Cmd+Enter to generate faster
Get 100 free credits and start generating code: Create Free Account โ