upvote
Then you add an agent that goes through the code and simplifies it. Before every sprint, you get the agent to simplify whatever it can without losing fidelity.

It's really that simple.

reply
I should probably know better than to interact with a 3 month account called "freediddy", but here we go.

> Then you add an agent that goes through the code and simplifies it

Can you? I just asked Opus to generate a sum function.

    def sum(a, b):
        return a + b
Then I asked if it could simplify it further. I would expect it to say this is simple enough, or just use the actual `sum` function, but it did this.

    add = lambda a, b: a + b
That is, at best, a useless but harmless change.

If you ask it to simplify something, it will make changes whether it needs to or not. Now imagine we were working with a function that is a couple hundred lines. What changes would it make?

The reason something superfluous was written to begin with is because an LLM does not always know what is superfluous. Producing and reading is really cheap for the LLM, so it doesn't have the same considerations we do in writing code. It's more willing to reinvent the wheel or write something that is way more verbose than it needs to be.

In practice, asking an LLM to simplify it just means it adds a different superfluous thing. Or it refactors things that didn't need to be refactored (because it can do it quickly). The result is LLM code, even if it's good, tends to bloat a bit. Multiply that across 100 people all vibe coding and not reading the code base, and soon you have an unreadable mess.

reply
"Just have a stochastic machine redo the code with no oversight"

This is an utterly terrible idea.

reply
There's always oversight, that's just something you wrongly assumed.
reply