Hacker News new | ask | show | jobs
by amdgg 10 days ago
I did my best to keep this concise.

With agents I’ve become even more of a zealot for consistency. High level approach:

1. Deterministic code generators (not just the api layer) 2. Custom linters (deterministic, of course) 3. Generative tests (property based tests, model based tests) with snapshot/goldens and runtime assertions 4. Templates - template repos, template patterns, bespoke templates for a particular project so I can generate more code 5. Observability and analysis - Leveraging observability tooling locally. LGTM stack locally by default. I can generate traffic and observe my system locally and debug before I even open a PR.

I find code gen particularly powerful. By actually automating (not agentic automation), I reduce the surface area required to review. Agentic review does not reduce the surface area required of a review, it just outsources it. I still use agentic review, but it doesn’t waste tokens looking at generated code.

I’ve been working like this before LLMs and now with LLMs amplifying this pattern has only been better. I’ve eliminated BS work either for myself or my coworkers (where they agreed to adopt).

For whatever reason, I’m consistently met with resistance to codegen but somehow AI adoption is more acceptable. I have resorted to pairing my codegen with a “skill” to make it palatable.

Unfortunately, none of this solves the biggest problem which is bad ideas, poor taste. Code gen can also make shitty patterns 100% consistent and amplify them. IMO it is easier to reauthor templates and regenerate code than it is to prompt your way out of it.