Meet My Mini Cursor: A Terminal AI Coding Agent That Codes FOR You! 🚀💻


Have you ever wished you had a little helper that writes code for you? Someone who listens to what you want to build and then creates files, folders, and runs commands — all automatically?
Sounds like magic, right? Well, I made something like that!
I built an AI Coding Agent — a smart program that lives in your terminal (the black window where you type commands) and helps you create full web projects just by telling it what to do.
---
What Is This AI Coding Agent?
Think of this agent as your coding assistant inside the terminal. Instead of writing every line of code yourself, you just tell it things like:
"Create a React app with a Flask backend."
"Add a login page now."
"Install Tailwind CSS."
And it will plan what to do, create folders and files, write code inside those files, and run commands to install libraries — all on its own!
---
Why Use a Terminal AI Assistant?
You might ask, “Why not just write the code myself?” Good question! Here’s why I built this:
Sometimes setting up a full project takes many steps and can get confusing.
The AI assistant remembers what you want and can keep adding features step by step.
It saves time by automating boring tasks like creating folders or running install commands.
And it all happens in your terminal — no fancy apps needed!
---
How Does It Work? Breaking It Down Simply
The AI assistant follows a simple loop for every task you give it:
1. Plan: It thinks about the steps needed. For example, if you say "Make a React + Flask app," it plans to make two folders — one for frontend (React) and one for backend (Flask).
2. Action: It runs commands to create folders, writes files, or installs packages.
3. Observe: It checks if the commands worked or if files were created successfully.
4. Output: It tells you what it did or asks what to do next.
Then, it repeats this loop until your project is ready or you say “stop.”
---
Some Magic Code Behind the Scenes
Here is a tiny example of how it creates folders:
{
"step": "plan",
"content": "I will create folders for frontend and backend."
}
{
"step": "action",
"function": "create_folder",
"input": "frontend"
}
{
"step": "action",
"function": "create_folder",
"input": "backend"
}
The AI first plans what to do, then tells the program to create two folders: frontend and backend.
---
What Can It Actually Do?
Create folders and files to organize your project
Write code inside files (like React components or Flask routes)
Run terminal commands like npm install or pip install for dependencies
Read files to understand your project and make smart changes
Add new features step-by-step based on your instructions
---
Example: Building a React + Flask Project
Say you want to start a new app with React for the frontend and Flask for the backend.
You tell the agent:
\> "Create a React frontend and Flask backend."
It will:
Make two folders: frontend and backend
Run npx create-react-app frontend to set up React
Run pip install flask to set up Flask
All automatically!
---
Adding Features Later — Easy as Talking
Later, if you say:
\> "Add a login page."
The agent will:
Look inside your React files to know where to add the login code
Create a new login component file
Change your main app file to include the login page
No manual coding required!
---
What Did I Learn Building This?
AI can understand instructions and turn them into real actions.
Breaking work into small clear steps (plan → act → observe) makes the process easy and safe.
Terminal tools like running commands or file editing can be combined with AI to automate development.
It’s important to keep conversations and code changes organized so the AI doesn’t get confused.
---
What’s Next for My AI Buddy?
I want to improve it by:
Teaching it to edit code smarter, like fixing bugs or adding new features automatically
Adding Git commands so it can save your work with commits
Supporting more programming frameworks
Maybe building a simple app with buttons so you don’t even need the terminal
---
Why This Matters
You don’t need to be a coding expert to start building apps with AI helpers. My project shows that even a simple terminal-based AI assistant can save tons of time and help you build real projects — step by step, with just your words.
---
If you’re curious to try it yourself or want me to share the code, just let me know! Together we can build smarter, faster ways to code.
#chaicode
Subscribe to my newsletter
Read articles from Keshav Tiwari directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
