schedule · 7 min read
Build Your Own Claude Code in Python: Project Setup and First LLM Call
Start a Python coding agent from zero — uv project, .env, a single chat completion through OpenRouter, and an argparse CLI you can pipe prompts into.
A hands-on series that walks through building a Claude Code-style coding agent from scratch in Python — one module at a time. Covers LLM plumbing, streaming, tool use, the agent loop, file-system tools, and an interactive REPL.