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

  1. Sign up at theapexengine.net โ€” you get 100 free credits
  2. Choose a framework (React, Python, Node.js, etc.)
  3. Select generation type (Snippet, Component, API, etc.)
  4. Describe what you want in plain English
  5. Click Generate and watch the swarm work
  6. Review the preview (free tier shows 25-50 lines)
  7. Unlock full code by upgrading (if you like what you see)
๐Ÿ’ก Tip

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:

Swarm Architecture
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:

Generation Modes

Generate Mode (Default)

Describe what you want in plain English. APEX will generate code from scratch.

Example Prompt
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:

Version Branching

After generating code, you can create variations without starting over:

  1. Generate your initial code (v1)
  2. Type a modification in the branch input (e.g., "add TypeScript")
  3. Click "Branch" to create v2 with your modification
  4. Switch between versions anytime
๐Ÿ’ก Tip

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:

  1. Click the "๐Ÿ’ก Explain This Code" button
  2. Get a plain-English explanation of what the code does
  3. 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:

  1. Click the "Import" tab in the mode selector
  2. Paste your existing code in the left panel
  3. Describe what improvements you want in the right panel
  4. Click "Improve Code"
โš ๏ธ Note

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

โŒ Vague
Make a login form
โœ… Specific
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

Give Context

Good Context Example
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

๐Ÿš€ Ready to Start?

Get 100 free credits and start generating code: Create Free Account โ†’