Free 25+ page guide: build your own coding agent with Python and Django

Al_Grigor · x · 2026-09-22

Alexey Grigorev released a free 25+ page guide on building a coding agent from scratch with Python, Jupyter, and Django. It covers distinguishing chatbots from agents (loops with tool calls + stateful history), defining tool schemas in JSON (readfile, writefile, executebashcommand, etc.), implementing the tool-call dispatch loop, sandboxing tools to a projectdir while blocking dangerous commands and skipping .venv/nodemodules, and scaffolding from a minimal Django template for the agent to refactor and extend.

Original post →

More from coding & agent

coding & agent channel →