gitmyhub

developer

Python ★ 12k updated 2y ago

the first library to let you embed a developer agent in your own app!

A Python tool that turns a plain-English description of what you want to build into a complete working codebase, describe your app, run the tool, and it writes all the files using GPT-4.

PythonGPT-4setup: moderatecomplexity 2/5

Smol developer is a Python tool that turns a written description of software into a working codebase. You describe what you want in plain text (for example, "a Tic Tac Toe game in HTML, JS, and CSS"), run the tool, and it uses a language model to generate all the files needed to build that thing.

The intended workflow is human-in-the-loop. You write a prompt describing the app, the tool generates code, you run and review it, then paste any error messages or missing details back into the prompt and generate again. The README calls this "engineering with prompts, rather than prompt engineering." Once the output is close enough, you can take over the codebase yourself.

The tool works in three modes. In Git Repo mode, you run it from the command line, passing your description as a string or from a markdown file. In Library mode, you install it as a Python package and call individual functions inside your own application: one function returns a coding plan, another returns a list of files to create, and a third generates the source code for each file. This lets you build smol developer into your own product. In API mode, the tool exposes an HTTP server that accepts tasks and executes them step by step following the Agent Protocol specification.

By default the tool uses GPT-4 to generate code, though GPT-3.5-turbo is available as a faster and cheaper alternative. The README includes worked examples showing the tool generating a Chrome browser extension, a ChatGPT plugin, and a command-line Python application from short text prompts.

Where it fits