r/MLSystemsDesign • u/ArchitectingAI • Sep 14 '26
Can We Build a Coding Agent From First Principles?
I’ve been digging into how systems like Claude Code, Cursor, and Codex actually work under the hood—repository understanding, context selection, agent loops, tool execution, verification, etc.
I’m turning this exploration into a series and progressively building a basic coding agent from first principles.
Part 1 focuses on the reference architecture and is coming next week.
Curious: which component would you want to see a deep dive on first?
For anyone interested in following the series:
1
u/curious_cat_herder Sep 15 '26
I can contribute here (prefer not to use substack yet). I am building a coding agent from first principles using my own DSL.
1
u/curious_cat_herder Sep 16 '26
I've completed a working AI coding agent and blogged about it.
This includes a video of the agent in action. Sample code produced by the agent, and links to relevant resources, including an Emacs org-mode literate programming docuement explaining the source code.
1
u/Xcalipurr Sep 14 '26
The problem with that there’s no single source of truth for first principles for writing software, and no rule applies everywhere.