Table of Contents

Smol Developer

Smol Developer is an embeddable AI developer agent that generates entire codebases from a single natural language prompt. Created by Shawn Wang (swyx) in May 2023, it was one of the first viral AI coding projects and pioneered the concept of an embeddable developer agent library. With over 12,200 GitHub stars, it demonstrated that a “junior developer” agent could scaffold complete applications from a specification.1))

GitHub: smol-ai/developer

Key Features

Architecture

Smol Developer follows a deliberately simple three-function architecture:

Usage Example

# Clone the repository
git clone https://github.com/smol-ai/developer.git
cd developer
 
# Install dependencies
pip install -r requirements.txt
 
# Set your API key
export OPENAI_API_KEY="your-key-here"
 
# Generate a codebase from a prompt
python3 main.py "Build a Flask REST API with user authentication,
    SQLAlchemy ORM, JWT tokens, and a React frontend with login/signup pages"
 
# Use as a library in your own app
python3 -c "
from smol_dev import plan, specify_file_paths, generate_code
spec = open('my_spec.md').read()
files = plan(spec)
for f in files:
    code = generate_code(spec, f, files)
    print(f'{f}: {len(code)} chars')
"

How It Works

graph TD A[User Specification] --> B[plan Function] B --> C[LLM Analyzes Requirements] C --> D[File Plan Generated] D --> E[specify_file_paths Function] E --> F[Refined File List with Paths] F --> G[generate_code Function] G --> H{For Each File} H --> I[Send Spec + File Context to LLM] I --> J[Generate File Content] J --> K[Write to Disk] K --> H H -->|All Files Done| L[Complete Codebase] L --> M{User Review} M -->|Issues Found| N[Feedback Loop] N --> O[Regenerate Specific Files] O --> M M -->|Approved| P[Final Output]

Philosophy

Smol Developer embodies several key principles:

The project inspired a wave of “smol” AI tools including smol-podcaster, smol-course, and smol-tools, establishing a pattern for minimal, focused AI developer agents.2))3)))

See Also

References