Then I tested it.
It read my files, ran my tests, saw the failure, fixed the code, and re-ran them — picking each step itself.
Nobody wrote "if tests fail, edit the code." It falls out of the loop.
128 lines of Python.
That's the entire core loop behind a coding agent like Claude Code or Cursor.
I didn't believe it either — so I built one from scratch. 🧵