Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 2.48 KB

File metadata and controls

52 lines (37 loc) · 2.48 KB

Build Your Own AI Coding Agent in Python (Mini Claude Code)

Companion repository for the Code with Antonio video course · Watch on YouTube.

Build Your Own AI Coding Agent in Python (Mini Claude Code): it reads your code, edits files, runs the tests and asks before it changes anything.

What you'll build

A terminal coding agent you point at a project: it explores the code, edits with diffs, runs the tests, asks before it changes anything, follows AGENTS.md and fixes a failing test on its own.

Lessons

# Lesson Video Folder
1 What's inside Claude Code? 0:00 lessons/01-what-s-inside-claude-code
2 Set up uv and write the loop 3:02 lessons/02-set-up-uv-and-write-the-loop
3 Eyes: list, read and search 5:58 lessons/03-eyes-list-read-and-search
4 Hands: edit files with diffs 8:52 lessons/04-hands-edit-files-with-diffs
5 Run commands: tests and git 10:55 lessons/05-run-commands-tests-and-git
6 Ask before acting: permissions 13:09 lessons/06-ask-before-acting-permissions
7 AGENTS.md and the final run 16:06 lessons/07-agents-md-and-the-final-run

Requirements

  • OpenAI Python SDK 3.24.0 · Responses API · gpt-6.1-sol · uv 0.12.22 · Python 3.12 · pytest 9.1 · Ubuntu (Linux)
  • Python 3.12+ and uv

Run the final project

cd app
uv sync
cp .env.example .env   # then put your OpenAI API key in .env
uv run --env-file .env minicode demo/bookshop
# at the > prompt, ask: Fix the failing test.

Repository structure

README.md          this file
lessons/           one folder per lesson: goal, timestamp, commands and files exactly as in the video
app/               the final working project
assets/            thumbnail

License

MIT — use it for anything, credit appreciated.


Generated on 2026-10-03 from the course scripts. Code with Antonio · AI tutor.