Building a Coding Agent: Python/Django Edition
We build a small project bootstrapper for Django: a coding agent that takes
a plain-language app request, copies a working Django template, reads and
writes files through tools, and iterates until the generated app runs. The
first implementation uses the OpenAI Responses API through ToyAIKit, then
we try the same idea with OpenAI Agents SDK, PydanticAI, Anthropic, and
Z.AI.
Links
The main resources:
- ToyAIKit
- Django template repo
- Todo app made with Z.AI
- Related course: AI Bootcamp: From RAG to Agents
- Related workshop: Hands-on with AI Agents and MCP
The app you will build
The coding agent is a notebook-based chat interface backed by an LLM and a
small set of filesystem tools. You give it a request like to-do list.
The agent edits a copied Django template and leaves you with a project you
can run.
Two screenshots show what the finished workshop output looks like. The first one shows the notebook chat after the agent plans and starts calling file tools:

The second one shows one of the generated Django todo apps:

Result
The simplest version is intentionally small. It runs in Jupyter, uses local filesystem tools, and edits one copied Django project folder. That is enough to understand how larger coding agents work under the hood: prepare a template, expose the right tools, give the model precise instructions, and iterate on the generated code.
Materials
Tutorial pages
Watch the recording
Full workshop video with timestamps and downloadable materials.
View code on GitHubRelated content
Skills.md from Scratch: Build a Skill-Driven Coding Agent
We start from the coding agent from the prerequisite workshop and turn it into a general-purpose coding agent with two reusable behavior layers: skills and slash commands. Skills …
January 16, 2026
Building Safe AI Agents with Guardrails
We start with a DataTalks.Club Data Engineering Zoomcamp FAQ assistant, then add checks that keep the agent on topic, block unsafe responses, and show how to cancel wasted work wh…
January 6, 2026
Building AI Agents with MCP, PydanticAI and OpenAI
We build a course FAQ assistant from the bottom up. First we expose a plain Python search(query) function to the OpenAI Responses API. Then we turn the same idea into a reusable a…
September 1, 2025