Post

When Vibing Brings No Joy

I love vibe coding until I read the code

During my (rather short) time in an engineering school, I was often met with bewilderment: “You majored in Literature before coming here? Why? And how?”. True, the French Literature Baccalaureate is known to be a “wretched hive of languages and artistry” where we don’t learn much mathematics beyond basic trigonometry1, so my presence in “tech” felt strange. To which my reply was always the same:

Aren’t we dealing with programming languages?
And what do you call the beauty of code, if not art?

XKCD 1205

I’m not a fan of huge prompts, long-ass AGENTS.md, a profusion of skills,… I like to keep context short2 and give instructions myself. Which led me to multiple issues: two projects started by agents would end up with very different base blocks, different syntaxes, different ways of organizing code,… I often ended up having to go over those parts again, or copying over the same lint rules and the same resolution to old-age debates and flame wars.

Thankfully, once those base blocks were written, the agents would pick up on my own coding habits, and beyond some issues with separation of concerns, they would write code I could accept in my commits.

Designing starterpack

To that end, I began designing starterpack: a simple CLI tool to vendor in code snippets and easily set up projects, and even update them as needed. Because quite frankly, I always write my JWT Auth the same way, and if I ever change something in that snippet, I’d like to simply change it across all repositories using it.

I wrote scenarios, I wrote design docs, I discussed ideas and features with an LLM to find weak spots, or use cases I hadn’t thought of. I ended up with new features and rules: snippets (“packs”) could declare templating variables, updates would ALWAYS overwrite the user’s code, and the user would be responsible for dealing with the code’s dirty git state, and whether or not to commit the changes.

I had twelve tickets, written by my LLM: it was time to give them to an agent to implement them.

Vibe coding your tools

Contrary to what my initial stance might imply, I don’t have anything against “vibe coding” or even “AI code”.

I accept it, I make use of it myself, I often have an LLM on hand when writing my own lines, there are times when I stay in control and times when I completely let go3,… It’s a tool, and I’m responsible for when (and how) to wield it. Here, I believed starterpack was simple enough that designing it was the hard part, and writing the code would be the simple part an agent could do. I even had a second agent double-check the written code.

Which worked splendidly well. Much to my dismay.

Plausible code and unlikeable code

My favorite piece of writing on agentic coding can be summed up by its title: Your LLM Doesn’t Write Correct Code. It Writes Plausible Code.4.

I know it, I often repeat it, I throw it back at managers who turn my code into a mess of Frankencode by breaking architectural constraints that were put in place for a reason, and yet, it had come to bite me in the ass: I had the exact tool I had asked for, a quick glance at the code confirmed that it was (indeed!) doing everything I wanted it to,…

And yet, in my heart, it just felt too ugly to even allow it to run on my system.

I wasn’t sure what to do with the code, so I published it. It’s an exercise for the reader to decide what to do with it and see the problems:

  • the CLI declaration has a syntax I don’t like5 and mixes both declaration and action.
  • the files API is spread across three functions (a module or a class would have been nice) that even IMPORT EXTERNAL MODULES during code execution!?
  • the manifest is a bunch of disparate functions with a single interface: again, a class would have made sense here.

Going further was just more of the same everywhere: the agent had written ONE class, and it was to handle the errors enum!

Owning my biases

Of course, there’s a phrase about beauty, eyes, and beholders: I know that it’s on me, and I accept it.

I know code can function without being pretty to read6, and yet, I still want to draw a line. It’s hard to define the line when I already have agents running scripts on my system to write code, I probably run a few vibe coded tools, I delegate the entire design of this blog to agents, and I run my vibe coded game on my iPhone with no remorse.

But still, there’s something in me that strives for quality: I still want to read my code, I still want to think about ways to improve it, I will always want to build something BETTER.

To that end, I took a more hands-on approach, and rewrote starterpack in Rust with the help of an agent. Step by step, checking what the agent was doing, overseeing key decisions,… I finally got to a point where I could even dogfood7.

Going forward

I don’t see a future in which LLMs go away, and no genie has ever been put back in the bottle8. But I don’t believe developers will disappear either: we’ve had Cup Noodles supremacy since 1971, and yet, the ramen I yearn for is still the one I had in a greasy and cramped restaurant next to Shinjuku Park that’s actually part of a country-wide franchise and where nobody spoke a word of english to me9.

In a sense, even that is a “vibe code”: I’ve never had ramen prepared by a “chef”. And yet, I’ve learned to appreciate this tool-assisted food as much as the food I cook for myself. Some people will never share that sentiment, and will hate on fast food forever. In a world of technological advancement, the line between “human-made” and “machine-made” begins to blur. I don’t believe that line is fixed, nor do I believe it will ever be. Plus, the point of programming has ALWAYS been to make the machine do the tedious work10.

But frankly, what are the vibes good for if they don’t bring me joy?


  1. To me, Matrix will always refer to a movie: the mathematical variant is just a fancy way to say “multi-level arrays”! ↩︎

  2. Just as I’ve learned to always keep available RAM in mind, I’ve learned to manage context carefully to avoid hallucinations. ↩︎

  3. For instance, in a game I’m making: I decided ONLY agents were allowed to write its code, and I would only work as a manager. ↩︎

  4. Damn, I wish I could sum up my articles just as much. ↩︎

  5. Sorry to commander.js, but something just irks me about that DSL. ↩︎

  6. I spent enough time in Ghidra reading assembly… ↩︎

  7. As explained by Wikipedia, “dogfooding” is the practice of using your own product. ↩︎

  8. Discounting the German environmentalists completely abandoning civil nuclear power, which isn’t about genies and bottles, but about sheer stupidity and cargo cultism. ↩︎

  9. If you’re ever in Tokyo: here’s the address. Ask for “Tonkotsu ramen”, and if you still have soup but are out of noodles, ask them for “Kaedama” to have a (free!) noodle refill. Don’t forget to add “Kudasai” when asking! ↩︎

  10. And if it refuses to, we can always make the Chinese one do it. ↩︎

This post is licensed under CC BY 4.0 by the author.