Build a Minimal Coding Agent in 9 Lines of Python (No Dependencies)

__tosh · reddit · 2026-08-08

A developer explored the absolute minimum implementation for an AI coding agent and open-sourced the project smol. It strips out all non-essential features to provide a base experience similar to Claude Code or Codex.

Key highlights:

The author also provided a 20 line version in Go, with a Clojure version coming soon. This is a great educational resource for understanding how agents work under the hood.

Original post →

More from coding & agent

coding & agent channel →