New π§βπ» Smol AI Developer - Build ENTIRE Codebases With A Single Prompt (ChatGPT)
Introduction to Small Developer
In this section, the speaker introduces Small Developer, a tool that creates an entire project for you based on a few lines of prompt.
What is Small Developer?
- Small Developer is a tool that creates an entire project for you based on a few lines of prompt.
- It goes beyond putting a prompt into chat GPT and having it help you code.
- The speaker demonstrates how he created an entire project from just a few lines of prompt.
How to Install Small Developer
- Go to the GitHub page small-AI/developer and copy the git clone command.
- Open up VS Code and open the terminal. Paste the git clone command in the terminal and hit enter.
- Rename DOT example.m to .end and enter your OpenAI API key in it.
- Install modal.com by going to modal.com and signing up for a new account. Then run pip install modal-Dash-client in the terminal.
Benefits of Using Small Developer
- It creates an entire project for you based on just a few lines of prompt.
- You can get extremely detailed with your prompts, making it like writing a spec for your own personal junior developer.
- It uses modal.com which takes away all complexities of managing module versions python versions.
Using Modal to Create a Ruby Script
In this section, the speaker demonstrates how to use Modal to create a Ruby script.
Creating a Basic Ruby Script
- To create a Ruby script using Modal, run
main.pi --prompt.
- Authenticate when prompted by clicking the link and logging in.
- The generated file will be named
count_to_100.rb.
- The prompt can also be saved in a separate
.mdfile.
Example of Detailed Spec for Chrome Extension
In this section, the speaker shows an example of a detailed spec for a Chrome extension created using Modal.
Detailed Spec for Chrome Extension
- A detailed spec can be passed on to junior developers.
- The example shown is for Chachi PT.
Generating Project with Prompt and API Key
In this section, the speaker demonstrates how to generate an entire project using Modal with prompts and an API key.
Generating Project with Prompt and API Key
- Run
main.pi --promptwith the prompt saved in a separate.mdfile.
- The generated project includes all necessary files and code.
- An API key can be added by double-clicking on the requirements.txt file and pasting it in.