Smol AI tutorial in 5 mins | Build ENTIRE codebase with a single prompt

AI Jason · Intermediate ·🛠️ AI Tools & Apps ·3y ago

Key Takeaways

The video demonstrates Smol AI, a GitHub repository that uses ChatGPT to generate entire codebases for projects, and provides a step-by-step guide on how to set it up and use it to build a snake game.

Full Transcript

ah what is this ah tight tight tight yeah ah blue yellow pink whatever man just keep bringing me that every once in a while there's a project that made me feel we're just scrapping the surface with generative Ai and small AI is definitely one of those projects it got more than 8 000 stars on GitHub in just five days and it is one of the fattest growing open source AI purchase so what is small AI it is basically an AI that right codes for you it's different from asking chat topt to write some simple code snip it actually built out entire code base for even very complicated apps it's almost like having the whole engineer team in your pocket and here's quick example I ask gpd4 to write a product requirement DOC for a classic snake game and then pass on those requirements to the small Ai and ask it to build this app and boom I just got a snake game that is fully functional from small AI if I have more requirements I can just come back and add more stuff and I can ask it to build multiple things for example a simple calculator apps and it will also automatically build a app for me so so how does this small AI work when looking through the code base it's actually very straightforward first they pass the product requirement into a prompt they will generate architecture of the apps to what are different files we need to create and then it will pass this list of files as well as original product requirement to another prompt that will generate a list of dependencies so that GPD can understand what are the different functions and variables in different files and in the end it will run this for Loop where it will pass on both the product requirements architecture and the dependency to a new prompt that will actually write the code for each individual file that's pretty much it but to be honest at this moment it's still quite buggy most of the time you will have some bugs or generate some code that require modification to actually run properly and I'm going to show you how can you run small AI without those box step by step firstly let's set it up we can go to small AI GitHub which I post Link in the description and your first idea clone this Ripple on your local machine and then your open folder in your visual studio and there should be a DOT example.env file you'll rename this to VMV exporting your open AI API key here and before you actually run small AI this is one last step you should do is install model modal is basically a cloud computing platform where it's gonna run small AI once that's done it's pretty much all set you can open the terminal and run this command line model and prop after that you can add your own prompt like write a web app for to do but on the other side what I would recommend you to do is actually create an MD file which is basically a documentation and put all the product requirements here so that it'll be easier for you to update the requirement and you can just run prd.md if you just start using small AI like this quite often you will see some arrows and those arrows are meaning due to the rate limit of open AI I think that's because when small AI is running it will call open AI API multiple times simultaneously that's why it exceeds the rate limit but thanks to another YouTuber called Anubis AI he actually modified the main.p code and add some delay between every API call so it won't trigger this Arrow I'll put a modified code in the description below so that you can copy and paste in here just override the whole main.py file now we finish the setup the next step is get the product requirement you can write simple product requirement by yourself but to make sure small AI actually produce the results you want you actually need to add a lot more details to it what I normally do is I will go to chatgpt and ask gpd4 to help me write down the whole product requirement doc which including the core functionalities interface descriptions as well as the file structure and I can just copy those requirements put into this MD file that we just created and then run this model around ming.py prompt prd.md you can see here it already identified what kind of files they need to create as well as break down all the shared dependencies including the variables data schema Dom element and function names this whole process is going to take a while for some complicated apps it can take like 15 to even 40 minutes but here is also another tips I want to share what I noticed that at this stage is still pretty buggy in terms of making sure the function writing in the file a is also compatible with file B so for 90 of time for the whole code base it generated it didn't work out a box however if I asked it to write everything into just one file then it'll work magically like 80 to 90 of time the code I generate it just work out of box so in the requirement I will often say that it should only have one file that include everything and that's exactly what I did here so now since it is finished the file is generated will be under this generated folder if we run this it is a snake game out of box it has all the features that keep a snake move and it has a function to generate food and also have a way to keep a score and the last thing I want to mention is that they not only provides a way to generate a code they actually provide a way to debug the code as well so if I add another window here I can run that command line called Moto run debugger.py at the prompt here's where I can add any Arrow I saw when I'm running the code and the same thing I can put the arrows here in prompt directly but I can also create debug.md and then you can add the arrows you saw and we can run this model.round debugger py prompt debug.md thank you and then you can see it will start giving me analysis of the potential arrows and how can I fix it so it's like having both Engineers who generate code and also a debugger at the same time that's pretty cool and this is small AI developer as I mentioned it is a little bit buggy it's not capable to produce a very complicated apps out of box yet so I don't think it's going to replace a real engineer with its current format however as a product designer and product manager I'm really excited about this because if I want to user test a certain product ideas I can ask it to build a prototype very very quickly and tasks with real users for almost zero cost but on the other side you can think about how this whole ecosystem start composed on top of each other we already see AI that can design the user interface and it's very easy for AI to produce product requirement Doc and do research so I think it's very possible that in future we can have the whole AI product team that including both product manager product designer engineer QA out of box and care around lots of different experiments for you autonomously so I'm very excited to see what other interesting apps that you asked small AI to do and comment below for any ideas you have thank you and see you next time

Original Description

Smol AI Developer is a popular GitHub repo promising to be an automated Jr. Developer. It's the most complete AI coding solution I've seen to date, using ChatGPT to write entires coding projects for you, not just one file or single methods. We'll review it and then I'll show you how to use smol AI 🔗 Links - Join my community: https://www.skool.com/ai-builder-club/about - Smol AI GitHub: https://github.com/smol-ai/developer - Follow me on twitter: https://twitter.com/jasonzhou1993 - Join my AI email list: https://www.ai-jason.com/ ⏱️ Timestamps 0:00 Meme 0:19 What is smol AI 0:47 Demo 1:11 How does smol AI work 1:58 #1 Setup 3:20 #2 Create product requirements 4:43 #3 Let Smol AI generate code 4:59 #4 Debug 👋🏻 About Me My name is Jason Zhou, a product designer who share interesting AI experiments & products. Email me if you need help building AI apps! ask@ai-jason.com #langchain #autogpt #ai #nocode #tutorial #stepbystep #langflow #flowise #gpt #smolai
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AI Jason · AI Jason · 6 of 60

1 Build Your Own Auto-GPT Apps without coding Step by Step (Dust.tt Tutorial)
Build Your Own Auto-GPT Apps without coding Step by Step (Dust.tt Tutorial)
AI Jason
2 AutoGPT tutorial: Build your personal assistant WITHOUT code (Via Relevance AI)
AutoGPT tutorial: Build your personal assistant WITHOUT code (Via Relevance AI)
AI Jason
3 Create your own AI girlfriend that talks ❤️
Create your own AI girlfriend that talks ❤️
AI Jason
4 How to build with Langchain 10x easier | ⛓️ LangFlow & Flowise
How to build with Langchain 10x easier | ⛓️ LangFlow & Flowise
AI Jason
5 I build an autonomous researcher via GPT | Langchain ⛓️ Tutorial
I build an autonomous researcher via GPT | Langchain ⛓️ Tutorial
AI Jason
Smol AI tutorial in 5 mins | Build ENTIRE codebase with a single prompt
Smol AI tutorial in 5 mins | Build ENTIRE codebase with a single prompt
AI Jason
7 Hugging Face + Langchain in 5 mins | Access 200k+ FREE AI models for your AI apps
Hugging Face + Langchain in 5 mins | Access 200k+ FREE AI models for your AI apps
AI Jason
8 How to let GPT control anything & 10x powerful | 8 mins tutorial about GPT funtion calling
How to let GPT control anything & 10x powerful | 8 mins tutorial about GPT funtion calling
AI Jason
9 Extract data & automate EVERYTHING | 10x GPT function calling power
Extract data & automate EVERYTHING | 10x GPT function calling power
AI Jason
10 Finally, an AI agent that actually works
Finally, an AI agent that actually works
AI Jason
11 "okay, but I want GPT to perform 10x for my specific use case" - Here is how
"okay, but I want GPT to perform 10x for my specific use case" - Here is how
AI Jason
12 "Wait..this AI Agent does research for you 24hrs without hallucination?!" - Here is how
"Wait..this AI Agent does research for you 24hrs without hallucination?!" - Here is how
AI Jason
13 "How to give GPT my business knowledge?" - Knowledge embedding 101
"How to give GPT my business knowledge?" - Knowledge embedding 101
AI Jason
14 “Automation 2.0 coming…No more boring data entry job”
“Automation 2.0 coming…No more boring data entry job”
AI Jason
15 "How to 10x chatbot UX? 🤖 🖼️ " - Add Image Responses to GPT knowledge retrieval apps
"How to 10x chatbot UX? 🤖 🖼️ " - Add Image Responses to GPT knowledge retrieval apps
AI Jason
16 “LLAMA2 supercharged with vision & hearing?!” | Multimodal 101 tutorial
“LLAMA2 supercharged with vision & hearing?!” | Multimodal 101 tutorial
AI Jason
17 "Next Level Prompts?" - 10 mins into advanced prompting
"Next Level Prompts?" - 10 mins into advanced prompting
AI Jason
18 Build AI agent workforce - Multi agent framework with MetaGPT & chatDev
Build AI agent workforce - Multi agent framework with MetaGPT & chatDev
AI Jason
19 How to scale your AI automation pipeline
How to scale your AI automation pipeline
AI Jason
20 AI agent manages community 24/7 - Build Agent workforce ep#1
AI agent manages community 24/7 - Build Agent workforce ep#1
AI Jason
21 Autogen - Microsoft's best AI Agent framework that is controllable?
Autogen - Microsoft's best AI Agent framework that is controllable?
AI Jason
22 StreamingLLM - Extend Llama2 to 4 million token & 22x faster inference?
StreamingLLM - Extend Llama2 to 4 million token & 22x faster inference?
AI Jason
23 AI agent + Vision = Incredible
AI agent + Vision = Incredible
AI Jason
24 After 7 days letting AI agents control my email inbox... 📮
After 7 days letting AI agents control my email inbox... 📮
AI Jason
25 How to use New OpenAI DevDay features - GPT4V x TTS demo tutorial
How to use New OpenAI DevDay features - GPT4V x TTS demo tutorial
AI Jason
26 What is Q* | Reinforcement learning 101 & Hypothesis
What is Q* | Reinforcement learning 101 & Hypothesis
AI Jason
27 "Research agent 3.0 - Build a group of AI researchers" - Here is how
"Research agent 3.0 - Build a group of AI researchers" - Here is how
AI Jason
28 GPT4V + Puppeteer = AI agent browse web like human? 🤖
GPT4V + Puppeteer = AI agent browse web like human? 🤖
AI Jason
29 Real Gemini demo? Rebuild with GPT4V + Whisper + TTS
Real Gemini demo? Rebuild with GPT4V + Whisper + TTS
AI Jason
30 AI Robot's ChatGPT moment at 2024?
AI Robot's ChatGPT moment at 2024?
AI Jason
31 GPT5 unlocks LLM System 2 Thinking?
GPT5 unlocks LLM System 2 Thinking?
AI Jason
32 The REAL cost of LLM (And How to reduce 78%+ of Cost)
The REAL cost of LLM (And How to reduce 78%+ of Cost)
AI Jason
33 OpenAI's Agent 2.0: Excited or Scared?
OpenAI's Agent 2.0: Excited or Scared?
AI Jason
34 Real time AI Conversation Co-pilot on your phone, Crazy or Creepy?
Real time AI Conversation Co-pilot on your phone, Crazy or Creepy?
AI Jason
35 INSANELY Fast AI Cold Call Agent- built w/ Groq
INSANELY Fast AI Cold Call Agent- built w/ Groq
AI Jason
36 AI Employees Outperform Human Employees?! Build a real Sales Agent
AI Employees Outperform Human Employees?! Build a real Sales Agent
AI Jason
37 Future of E-commerce?! Virtual clothing try-on agent
Future of E-commerce?! Virtual clothing try-on agent
AI Jason
38 Unlock AI Agent real power?! Long term memory & Self improving
Unlock AI Agent real power?! Long term memory & Self improving
AI Jason
39 "I want Llama3 to perform 10x with my private knowledge" - Local Agentic RAG w/ llama3
"I want Llama3 to perform 10x with my private knowledge" - Local Agentic RAG w/ llama3
AI Jason
40 “Wait, this Agent can Scrape ANYTHING?!” - Build universal web scraping agent
“Wait, this Agent can Scrape ANYTHING?!” - Build universal web scraping agent
AI Jason
41 "Make Agent 10x cheaper, faster & better?" -  LLM System Evaluation 101
"Make Agent 10x cheaper, faster & better?" - LLM System Evaluation 101
AI Jason
42 Claude 3.5 struggle too?! The $Million dollar challenge
Claude 3.5 struggle too?! The $Million dollar challenge
AI Jason
43 Make your agents 10x more reliable? Flow engineer 101
Make your agents 10x more reliable? Flow engineer 101
AI Jason
44 "I want Llama3.1 to perform 10x with my private knowledge" - Self learning Local Llama3.1 405B
"I want Llama3.1 to perform 10x with my private knowledge" - Self learning Local Llama3.1 405B
AI Jason
45 AI process thousands of videos?! - SAM2 deep dive 101
AI process thousands of videos?! - SAM2 deep dive 101
AI Jason
46 "Wait, I'm using OpenAI Structured Output wrong ?!" - Advanced Structured Output tutorial
"Wait, I'm using OpenAI Structured Output wrong ?!" - Advanced Structured Output tutorial
AI Jason
47 How to use Cursor AI build & deploy production app in 20 mins
How to use Cursor AI build & deploy production app in 20 mins
AI Jason
48 Best Cursor Workflow that no one talks about...
Best Cursor Workflow that no one talks about...
AI Jason
49 This is how I scrape 99% websites via LLM
This is how I scrape 99% websites via LLM
AI Jason
50 Better than Cursor? Future Agentic Coding available today
Better than Cursor? Future Agentic Coding available today
AI Jason
51 EASIEST Way to Train LLM Train w/ unsloth (2x faster with 70% less GPU memory required)
EASIEST Way to Train LLM Train w/ unsloth (2x faster with 70% less GPU memory required)
AI Jason
52 1000x Cursor workflow for building apps
1000x Cursor workflow for building apps
AI Jason
53 Easiest way to build fancy UI with Cursor/Windsurf/Bolt/Lovable
Easiest way to build fancy UI with Cursor/Windsurf/Bolt/Lovable
AI Jason
54 From $0 to $4m with just 2 people (ComfyUI Crash-course for E-commerce)
From $0 to $4m with just 2 people (ComfyUI Crash-course for E-commerce)
AI Jason
55 Deepseek R1 - The Era of Reasoning models
Deepseek R1 - The Era of Reasoning models
AI Jason
56 Yep, o3-mini is WORTH the money - Build your own reasoning agent
Yep, o3-mini is WORTH the money - Build your own reasoning agent
AI Jason
57 The ONLY way to run your own Deepseek on mobile...
The ONLY way to run your own Deepseek on mobile...
AI Jason
58 Those MCP totally 10x my Cursor workflow…
Those MCP totally 10x my Cursor workflow…
AI Jason
59 MCP = Next Big Opportunity? EASIST way to build your own MCP business
MCP = Next Big Opportunity? EASIST way to build your own MCP business
AI Jason
60 Gemini 2.0 blew me away - The future of Multimodal Model
Gemini 2.0 blew me away - The future of Multimodal Model
AI Jason

Smol AI is a powerful tool for automated coding, but it requires careful setup and configuration. This video provides a step-by-step guide on how to use Smol AI to build a snake game, including setting up the GitHub repository, generating product requirements, and debugging the code.

Key Takeaways
  1. Clone the Smol AI GitHub repository
  2. Set up the environment variables
  3. Install Model Modal
  4. Create a product requirement doc
  5. Run the Smol AI command
  6. Debug the code using the debugger.py script
💡 Smol AI has the potential to revolutionize the way we approach software development, but it is still a relatively new and buggy technology that requires careful evaluation and testing.

Related AI Lessons

Chapters (8)

Meme
0:19 What is smol AI
0:47 Demo
1:11 How does smol AI work
1:58 #1 Setup
3:20 #2 Create product requirements
4:43 #3 Let Smol AI generate code
4:59 #4 Debug
Up next
Salesforce Flow New Features (Summer '26) | Open Record, URL & Show Toast Messages
AITECHONE
Watch →