Artur Ciocanu’s Post

410 lines of "bash". That's how much code it takes to build a functional coding agent from scratch. Two files. Three tools. A while loop. I built a coding agent using "bash", "curl", and "jq" because I wanted to see the JSON. Not the SDK's abstraction of the JSON. Not the framework's state object. The actual bytes crossing the wire. The agentic loop that drives tools like Claude Code, Cursor, Copilot? It's roughly eight lines of logic: call the API, check the stop reason, execute a tool if needed, append the result, repeat. The model is doing the hard work. The loop is just plumbing. Most engineers building agents today can't describe this loop. The framework became the mental model. That works until something breaks and you're debugging a system you've never actually seen. Kelsey Hightower made a similar point about serverless back in 2018: when mythology outruns understanding, you lose the ability to reason about what the system is doing. Thorsten Ball showed that a coding agent is ~400 lines of Go. Geoffrey Huntley turned that into a free workshop: build the loop before you reach for a framework. I took their advice literally. "bash", "curl", "jq". Wrote about the experience and open-sourced the agent. How many of us are building on abstractions we've never looked inside? Link to the post and code in the comments. #AIAgents #SoftwareEngineering #Programming

  • diagram

This is a great breakdown of the underlying logic! It’s a good reminder that while frameworks are powerful, understanding the core loop is essential for effective debugging and system design.

Like
Reply

The marvelous thing about you was always your ability to look inside something that looks comlicated, throw out all the nonsense and refine it all into a slim, clear essense.

See more comments

To view or add a comment, sign in

Explore content categories