Yo Dev! Here’s How I Use AI Tools Like Codex CLI and Aider to Speed Up My Coding
Hey there 👋
If you’re anything like me, you’ve probably been drowning in code at some point, thinking,
“Man, I wish I had a junior dev I could just tell what I want done…”
Well — good news — you kinda do now.
Let me show you how I use Codex CLI and Aider (plus a cool mode called --architect) to make coding way easier, especially if you’re into using AI locally (LM Studio, Ollama, you name it).
🔧 What These Tools Actually Do
Here’s the quick version:
| Tool | What it’s for |
|---|---|
| Codex CLI | You type a prompt in terminal, it analyzes code and gives ideas or code snippets — like “Explain this class” or “Refactor this function” |
| Aider | You chat with your code — and it edits your real files based on what you say. Super clean with Git support |
| Architect Mode (in Aider) | You describe the app you want to build → it gives you file/folder structure and even fills in basic code to get you started |
🧪 Codex CLI — My Quick Code Sidekick
Install it:
pip install codex-cli
Now try:
codex "Explain what the login function does in auth.py"
or:
codex "Generate a test for the payment() function"
It won’t edit your code — it’s more like asking an AI senior dev:
“Hey, can you help me understand or draft something?”
Perfect for:
- Code reviews
- First drafts
- Brainstorming ideas fast
If you use local models, just point it to LM Studio or Ollama by setting endpoint in your ~/.codex/config.yaml.
🤖 Aider — When You Want the Code Actually Changed
Okay this one’s nuts.
Run this in your project folder:
aider main.py
Now chat like this:
“Make all functions in this file async”
“Replace requests with httpx”
“Add error handling to database calls”
It’ll show you a diff. You say yes or no. Done.
And if you’re using Git (you should), it’s super safe and easy to revert anything.
Great for:
- Refactors
- Bug fixing
- Feature updates
🏗️ Aider --architect — Start a Project from Thin Air
Let’s say you’re building something from scratch.
Run:
aider --architect
Then say something like:
“A FastAPI app with login/signup and todo item CRUD.”
Aider will:
- Propose a file layout
- Fill in skeletons for
main.py,models.py, etc. - Ask if you want to edit/approve/add/remove
- Then write the files for you 🎉
This is awesome when you:
- Don’t want to write boilerplate by hand
- Want to try ideas quickly
- Need a jumpstart on a side project
👀 Which One Should You Use?
| If you want to... | Use this |
|---|---|
| Understand or explore code | codex |
| Change real files live | aider |
| Build a project scaffold fast | aider --architect |
🧠 Local Models? Yup, They Work Too
All of these tools can talk to local models if they support OpenAI’s API format (like LM Studio or Ollama).
Just set this in your config:
llm:
provider: openai
endpoint: http://localhost:1234/v1
api_key: sk-no-need
Try with:
qwen1.5-7bdeepseek-coderphi-3-minicodellama-instruct
💡 Real Examples I Use
| Task | Prompt | Tool |
|---|---|---|
| Build new app | “A CLI app that tracks expenses to a CSV file” | aider --architect |
| Cleanup | “Refactor this view to use class-based API” | aider |
| Review code | “What does the class TokenManager do?” | codex |
| Generate test | “Write a pytest for update_item()” | aider |
🔄 Typical Flow I Use
flowchart TD
A["🧠 I get an idea"] --> B["🏗️ aider --architect creates the base"]
B --> C["📂 Project structure + code stubs"]
C --> D["🤖 aider edits & refactors my files"]
D --> E["🧪 codex gives me analysis & extra ideas"]
🎯 Final Thoughts
Honestly, these tools feel like a cheat code for solo devs and small teams.
You get:
- Less boilerplate
- Fewer bugs
- A teammate who never sleeps 😎
If you haven’t tried them yet — go play! You’ll thank yourself later.
🔗 Links to Check Out
- 💬 Codex CLI GitHub
- 🤖 Aider
- 🧠 LM Studio
- 🖥️ OpenWebUI
Get in Touch with us
Related Posts
- NVIDIA、Microsoft、OpenAI、Google、Oracle 以及 AMD:正在共同推动 AI 泡沫如何形成?
- The Real AI Bubble: How NVIDIA, Microsoft, OpenAI, Google, Oracle — and Now AMD — Shape the Future of Compute
- 深度学习在房地产开发中的应用
- Deep Learning in Property Development
- 代码修复与遗留系统维护服务 —— Simplico 助力企业保持系统稳定、安全、高效
- Code Fixing & Legacy System Maintenance — Keep Your Business Running Smoothly with Simplico
- Python 深度学习在工厂自动化中的应用:2025 全面指南
- Python Deep Learning in Factory Automation: A Complete Guide (2025)
- 工厂 / 制造业专用 Python 开发与培训服务
- Python Development & Industrial Automation Training Services
- 为什么 Python + Django 是现代电商系统的最佳技术栈(完整指南 + 定价方案)
- Why Python + Django Is the Best Tech Stack for Building Modern eCommerce Platforms (Complete Guide + Pricing Plans)
- 三十六计现代商业版:理解中国企业竞争、谈判与战略思维的终极指南
- The 36 Chinese Business Stratagems: A Modern Guide to Understanding How Chinese Companies Compete and Win
- 理解机器学习中的 Training、Validation、Testing
- Understanding Training, Validation, and Testing in Machine Learning
- 深入理解神经网络
- Understanding Neural Networks Deeply
- AI 商品真伪鉴定系统:为现代零售品牌打造的智能解决方案
- AI-Powered Product Authenticity Verification for Modern Retail Brands













