Coding agent in 94 lines of Ruby | Radan Skorić's website
16-May-2025 11
An article floated into my reading list: How to Build an Agent, or: The Emperor Has No Clothes. The author, Thorsten Ball, claims building a coding agent isn’t hard, then builds one in ~400 lines of Go. While reading the code, I kept thinking that a lot of it is boilerplate. My keen suspicion received confirmation when the author wrote: “… most of which is boilerplate”.
Boilerplate? Ruby excels at eliminating boilerplate, leaving just the essence. I thought: creating this in Ruby must be even more straightforward. So I tried it. And straightforward it was!
Doing the exercise in Ruby gave me two interesting realisations which I’ll share at the end of the article.
The good news is that the end of this article really isn’t far because of how straightforward the agent was! This is some top notch drama here.
Coding agent in 94 lines of Ruby | Radan Skorić's website #ruby #rubydeveloper #rubyonrails #Coding #agent #lines #Radan #Skorić's #website #website https://rubyonrails.ba/link/coding-agent-in-94-lines-of-ruby-radan-skoric-s-website