Dual-agent AI code generation SaaS — Coder writes, Reviewer validates
Submit any coding task in plain English. Two AI agents collaborate to write and review production-ready code in under 60 seconds.
Live Demo: your-deployment-url.railway.app
| Plan | Price | Tasks/month |
|---|---|---|
| Starter | $99/mo | 20 |
| Professional | $199/mo | 100 |
| Team | $499/mo | Unlimited |
Target: 50 teams = $9,950 MRR
dual-agent-system/
├── api/
│ ├── main.py ← FastAPI backend + Stripe + job queue
│ └── requirements.txt
├── dashboard/
│ └── index.html ← Premium SaaS UI with real-time polling
├── agents/
│ ├── coder.py ← Coder AI agent (CrewAI)
│ └── reviewer.py ← Reviewer AI agent (CrewAI)
├── config/
│ └── llm_config.py ← Groq LLM configuration
├── main.py ← CLI entry point
├── railway.json ← Deploy config
├── Procfile ← Process config
└── .env.example ← Environment variables
git clone https://github.com/DrYounis/ai-code-agent
cd ai-code-agent
pip install -r api/requirements.txt
# Configure
cp .env.example .env
# Add GROQ_API_KEY and STRIPE keys
# Run
cd api && uvicorn main:app --reload --port 8001
# Open http://localhost:8001- Visit console.groq.com
- Sign up and get a free API key
- Add to
.env:GROQ_API_KEY=gsk_...
- Create 3 products (Starter $99, Pro $199, Team $499)
- Copy Price IDs to
.env - Set webhook:
POST /webhook
Submit a code generation task.
Headers: X-API-Key: your_api_key
Body:
{
"description": "Build a REST API with FastAPI for user authentication",
"language": "python",
"framework": "FastAPI"
}Response:
{
"job_id": "uuid",
"status": "queued",
"poll_url": "/jobs/uuid"
}Poll for job results.
List all your jobs.
- You submit a task description in plain English
- Coder Agent (Groq LLaMA) writes the complete implementation
- Reviewer Agent (Groq LLaMA) reviews for bugs, quality, security
- You receive production-ready, reviewed code
MIT — built by DrYounis