Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
This is an old revision of the document!
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.
GitHub: smol-ai/developer
Smol Developer follows a deliberately simple three-function architecture:
plan() — Analyzes the user specification and generates a complete file plan (list of files to create)specify_file_paths() — Refines the file plan with proper paths and naming conventionsgenerate_code() — Generates each file sequentially, maintaining coherence across the codebase# 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') "
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.