Smol Developer: Generating a Small Python Project From a Prompt

Matthew Berman walks through a 2023 project generator, from a simple Ruby example to a multi-file ChatGPT API program.

MBMatthew BermanIntervenant · Forward Future
Chaîne
Matthew Berman
Publié
25 mai 2023
Vidéo
7:37
Lecture
3 min
Diapositives
5
Original
anglais
Ouvrir sur YouTube
En faisant défiler, la vidéo se réduit en bas à droite et continue. Les sous-titres suivent votre langue de lecture.
Langue de lectureDisponible en 2 langues
Cet article n’est pas encore disponible en français ; il s’affiche dans l’original en anglais.
RÉSUMÉ

En 30 secondes

Matthew Berman demonstrates smol developer, a tool that generates project files from a natural-language specification. He shows a historical setup using Modal, a Ruby counting script and a Python command-line program that calls the ChatGPT API. The examples demonstrate small successful runs, not a guarantee of correctness for arbitrary projects; commands and APIs reflect May 2023.

  1. 1A multi-file promptBerman specifies a Python loop that reads an API key from an environment file, calls a model endpoint and includes dependencies.
  2. 2Repository and setupHe clones smol-ai/developer, configures an environment file and discusses a Modal-based workflow and a local alternative.
  3. 3A Ruby testA basic prompt produces a Ruby file intended to count to 100, which he inspects in the generated directory.
  4. 4Detailed specificationsLonger requirements can be supplied in a Markdown prompt file. The historical README warns that regeneration rewrites generated files.
  5. 5Running the generated projectThe generated Python program accepts a prompt and returns a response in this limited demonstration.

À retenir

  1. Smol developer turns a natural-language project specification into a set of generated files.
  2. The Python demo includes a main script, environment configuration and requirements file, and successfully responds to a simple prompt.
  3. The 2023 walkthrough uses Modal for one execution path and describes a separate local path.
  4. The displayed historical README says normal regeneration rewrites the generated directory, so preserve work before rerunning.
  5. Generated code, dependencies and secrets require review even when a simple demonstration works.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

A project generated from a prompt

Berman introduces the tool and demonstrates a small Python client. He shows that the generated program can answer sample questions.

Smol developer is a project generator that I think of as a junior developer: give it a specification and it writes files for an application. I show a small project and then walk through the setup. This is a May 2023 demonstration; repository commands, dependencies and API interfaces may have changed since then.

My prompt asks for a Python program that reads an API key from an environment file, prompts the user, sends a request to the ChatGPT 3.5 Turbo API and displays the response before asking again. I also request a requirements.txt file and provide an example API call. The tool creates the project structure rather than merely returning a code snippet.

I run the generated client and ask for a joke and a historical fact. It returns responses and accepts another prompt. That shows the example worked in this limited run, not that all generated code is correct, secure or ready for production.

02

Historical setup and execution

He walks through cloning the repository, configuring credentials and running with Modal or a local alternative. The tutorial reflects the 2023 version.

The smol-ai/developer repository
DIAPOSITIVE 1 / 5The smol-ai/developer repositoryThe repository page shows the project structure and historical setup files.

The GitHub project is smol-ai/developer. I compare a detailed prompt to a specification handed to a junior developer: the more clearly the intended files and behavior are described, the more context the generator has. I clone the repository, open its folder in VS Code and configure an environment file for an API key.

The version shown uses Modal as one way to run the generator. I install the Modal client and authenticate when prompted; the repository also describes installing requirements and running main_no_modal.py without Modal. These are historical instructions, so check the current project documentation and provider terms before attempting to reproduce them.

03

Ruby and Python examples

A simple prompt generates a Ruby file, then a longer specification produces a multi-file Python project. Berman tests the latter with a prompt.

Prompt and regeneration options
DIAPOSITIVE 2 / 5Prompt and regeneration optionsThe README shows a Markdown prompt-file option and warns that a normal run rewrites the generated directory.

For a simple first test, I run the generator with a prompt asking for a Ruby script that counts to 100. It reports a file to create, uses Modal containers and writes the result into the generated directory. I inspect the produced file and find that it matches the simple task.

Generating a Ruby file
DIAPOSITIVE 3 / 5Generating a Ruby fileThe terminal displays the planned file and generation process for the simple counting example.

For longer specifications, the displayed README allows a Markdown prompt file instead of placing the entire description in the terminal. The README also says an ordinary run deletes and rewrites the generated directory, except for images, while a file-specific option can target a file. Preserve any work you need before rerunning and verify the behavior of the version you use.

An example project specification
DIAPOSITIVE 4 / 5An example project specificationA Markdown specification describes components of a browser extension, illustrating how prompts can include detailed requirements.

I show an example detailed specification for a browser extension that summarizes pages using Claude. The point is that the prompt can describe files, interface elements and behavior in more detail, much like a handoff to another developer. The demonstration does not establish that the extension works without testing.

For the Python example, I inspect the generated environment file, main script and requirements file, configure a key and run the program. It answers a joke prompt and waits for the next request. Keep credentials private and out of shared repositories, and review generated code and dependencies before running or distributing it.

A generated Python program running
DIAPOSITIVE 5 / 5A generated Python program runningThe terminal shows the program responding to a prompt and waiting for another.

Sur la même chaîne

12 diapositives34:21EN
Matthew Berman· 27 oct. 2026Matthew Berman Examines Anthropic’s IPO Filing, AI Growth and GovernanceMatthew Berman, Sam Altman · Forward FutureThe presenter reviews the S-1’s financial metrics, compute strategy and voting structure while questioning the tension between rapid AI development and safety.AnthropicAI SafetyIA en entreprise+2
6 diapositives25:50EN
Matthew Berman· 24 oct. 2026Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
2 diapositives32:20EN
Matthew Berman· 23 oct. 2026Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1
6 diapositives1:03:37EN
Matthew Berman· 23 oct. 2026Matthew Berman’s Team Tests Kimi K3.1 on Animation, Games, and ChartsMatthew Berman, Alex, Brian · Forward FutureA live team AMA turns into an informal test of Kimi K3.1, from personal-agent workflows to motion graphics, a browser game, and a benchmark chart.Agents de codeGenerative mediaÉvaluations+2
0:53EN
Matthew Berman· 22 oct. 2026Sam Altman on AI and the Discovery of New KnowledgeSam Altman · OpenAIAltman expects progress in mathematical discovery to extend to biology, materials and energy.AI for scienceMathematicsComputational Biology+1
Diapositives0:22EN
Matthew Berman· 21 oct. 2026A Robot Bodyguard Video Shows Dramatic Rescue ScenariosMatthew Berman · Forward FutureMatthew Berman reacts to a short robot demonstration depicting fighting and vehicle-rescue scenarios.RoboticsÉvaluations