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.
More from coding & agent
- Agent memory design question: what deserves a place in permanent memory? — Miserable-Shock3552 · 2026-09-22
- Dev demos near real-time editing with Gemini Flash Lite, plans open-source Chrome extension — Saboo_Shubham_ · 2026-09-22
- Local MLX vs hosted API: two AI agents battle in Chrome's T-Rex game — usamawahabkhan · 2026-09-22
- A silent watcher race dropped agent logs for a month: full post-mortem of a tailing bug — ClaudeCdGuy · 2026-09-22
- D-RAC cuts enterprise document chunking tokens by 95.7%, cost by up to 85.6% — Yellow-AI-NLP · 2026-09-22
- Did the Action Happen? Designing Confirmation Logic for Agent Tool Calls That Time Out — felix_baron · 2026-09-22