Re:Does Code Cleanliness Affect Coding Agents?
by Yokolos on Monday July 06, 2026 @03:38AM
(#48801722)
This is the most frustrating part. You do everything you can to ensure there are clear instructions, you can keep the agent MD as concise and clear and short as possible. It still feels like it's all just a suggestion, and of course it is, because it's all just another part of the prompt.
[ Parent
| on HN ]
Re:Does Code Cleanliness Affect Coding Agents?
by maccard on Monday July 06, 2026 @04:08AM
(#48801925)
I’m in the “AI can be great, but it’s not right now” camp. I think that pulling the verification into the harness and having the harness execute it rather than the agent would genuinely make AI go to usable for me. But even prototyping a custom harness requires API billing which is just so expensive…
Re:Does Code Cleanliness Affect Coding Agents?
by DCKing on Monday July 06, 2026 @04:53AM
(#48802233)
You can put many agent constraints in precommit hooks if they're static checks. I ask agents to make commits, and e.g. in a Python project have the precommit hook fire off type checks, linting and even architectural things like import boundaries (using `tach`). When an agent is prepped to make commits themselves, it will catch pre-commit failing and correct itself. The existence of static checks themselves might also help agents gain awareness of the overall verification flow including larger things like tests, but that's hard to say for certain.
Putting structural code checks in a precommit hook is arguably better than pulling it into the harness, as it will enforce those constraints no matter whether an agent or human is making the commit.
Re:Does Code Cleanliness Affect Coding Agents?
by maccard on Monday July 06, 2026 @06:48AM
(#48802963)
> , as it will enforce those constraints no matter whether an agent or human is making the commit.
Unless the agent, or the human don't enable the precommit hooks in the first place.
Re:Does Code Cleanliness Affect Coding Agents?
by Muromec on Monday July 06, 2026 @06:20AM
(#48802759)
You don't need the pre commit hooks if you can make the harness hooks.
Re:Does Code Cleanliness Affect Coding Agents?
by QuercusMax on Monday July 06, 2026 @09:14AM
(#48804145)
Belt and suspenders. What if you make a manual code edit? What if your harness hook malfunctions?
Re:Does Code Cleanliness Affect Coding Agents?
by maccard on Monday July 06, 2026 @04:07PM
(#48809797)
What if you don’t enable pre commit hooks?
> what if your harness hook malfunctions?
That’s a bug in the harness and should be enforced
Re:Does Code Cleanliness Affect Coding Agents?
by Muromec on Monday July 06, 2026 @06:17AM
(#48802745)
Writing a custom harness was like 10 bucks of the communist model tokens last month and I ended up with an a actor library, a thing that has a stable identity, writes sutras and knows it wrote the harness itself. Weird.
Adding an auto runner of the unit tests is just... Boring?