logoalt Hacker News

somesortofthingtoday at 1:12 AM1 replyview on HN

I've found that Good Code is actually actively detrimental to agent performance. I suspect agent-written code is very comprehensible to agents(for example, agents love to define single-use variables because it lets them document the code without adding comments, having to read whole files, or understand novel code patterns(complex pipeline statements, for example) but is a nightmare to read. You have to keep the meanings of all the small variables in your head, so your short term memory gets overloaded with small pieces of info. I tried making the agent refactor to reduce these, but noticed a substantial increase in how often it misunderstands what the code does.


Replies

love2readtoday at 1:16 AM

I think what you are finding is that people's definition of "Good Code" differs the same way two people's definition of "good food" differs.