The Core of a Coding Agent Is 128 Lines of Python. So I Built One From Scratch.
An AI engineer rebuilds the core of a coding agent (Claude Code / Cursor) from nothing — the loop, tools, permissions, and context — in ~1,300 lines of Python. Here's the whole loop, and what's actually under the hood.