Python · AI-Native
AI-Native Python
Configuring agents, harnesses and feedback loops for this language. Updated as the tooling moves.
Set up the workspace
01
Setting up a coding agent for a Python project
The twenty minutes of setup that decide whether an agent is useful on your Python codebase or an expensive way to generate rework.
02
Writing an AGENTS.md for Python that agents actually follow
Most AGENTS.md files are 400 lines of advice the model already knew. Here is what earns its place in the context window, and a Python template you can copy.
Build the loop
01
The verification loop: giving an agent something it cannot fake
An agent is only as good as the signal it gets back. Here is how to build a Python feedback loop that is fast, honest, and hard to game.
02
Structuring a Python repo an agent can navigate
Codebase layout used to be a question of taste. It is now a performance parameter — for your agent and, it turns out, for the humans too.
03
MCP servers worth wiring into a Python project
MCP lets an agent reach outside your codebase. Most of what gets installed is noise; a few of them change what the agent can actually do.
Do the work
01
From issue to pull request: running a feature with an agent
The end-to-end workflow, including the two steps everybody skips and then pays for later.
02
When not to hand it to the agent
The cases where delegating costs more than doing it yourself — and the one that quietly costs the most.
03
Testing Python code that calls a language model
Your function is now non-deterministic, slow, costs money per call and fails in ways an assertion cannot express. Here is a test strategy that still works.
04
Tracking and cutting token costs in Python
Counting tokens before you send them, attributing every call to a feature, and the four changes that usually halve the bill.
Get the Python agent pack
A battle-tested AGENTS.md, the review checklist, and the failure-mode cheat sheet for Python. One email, then occasional updates when the tooling shifts. No course pitch.
AGENTS.md now — no email needed.