smol developer is a "junior developer" agent (also known as smol dev), whose core goal is to achieve human-centered and coherent whole-program synthesis. It mainly provides two capabilities: first, generating the scaffolding of an entire codebase in one go based on the product specification given by the user; second, providing basic building blocks so that developers can embed smol developer into their own applications. Unlike fixed, one-off starters such as create-react-app or create-nextjs-app, smol developer helps developers create "create-anything-app", that is, developing scaffolding prompts together with smol dev through a tight loop.
In Git repository mode, the workflow emphasizes "engineering with prompts, not prompt engineering". A human writes the basic prompt for the app they want to build, main.py generates code, the human runs or reads the code, and can then manually supplement the parts not specified in the prompt, run the code and identify errors, paste the errors into the prompt (just like submitting a GitHub issue), or use debugger.py to read the entire codebase to propose specific code modification suggestions. Loop until satisfied. AI is used only when it adds value, and once it gets in the way, developers can seamlessly take over the codebase.
In library mode, smol developer v1 allows smol developer to be added to one's own project. Developers can view the contents of main.py as "documentation" to learn how to use these functions and prompts in their own applications.
In API mode (via Agent Protocol), you can start the server and then use commands to call the API. After creating a task, you get a response; after copying the task_id, you can execute one step of the task, or you can use the Python client library.
The project provides multiple examples, including generating a complete Chrome extension from a prompt, smol-plugin (prompt to ChatGPT plugin), Prompt to Pokemon App, a political campaign CRM program, and more. There are also video demonstrations showing the generation of a complete OpenAI CLI Python application from a prompt, and building a complex React/Node/MongoDB full-stack application in 40 minutes and for $9.
The main innovations and insights include: Markdown is the perfect way to prompt whole-program synthesis because it is easy to mix English and code; you can teach the program to understand new APIs by copy-pasting programming; you can get specific fix suggestions by catting the entire codebase together with the error message; you can keep the overall program consistent by having GPT think about shared_dependencies.md in intermediate steps; you can lower the activation energy for unfamiliar APIs; and you can use Modal to solve problems such as Python dependencies, parallel code generation, and fault-tolerant OpenAI API calls.
Future directions include: specifying a .md file for each generated file to fine-tune the output; bootstrapping the generation of prompt.md for an existing codebase; letting the agent install its own dependencies; self-repairing by running the code; using Anthropic as the coding layer; creating agents that autonomously run code, and more.
In terms of limitations: the feedback loop is currently slow (GPT4 takes about 2-4 minutes to generate a program); shared_dependencies.md is sometimes not comprehensive enough; Anthropic does not follow instructions for generating file code very well; and it is difficult to obtain errors from the Chrome extension environment.