News for hackers. Stuff that matters.
Re:Ask HN: How are you automating your coding work? by cadamsdotcom on Wednesday January 21, 2026 @03:39PM (#46711233)
The biggest principle is codification. Codify everything.

For instance, this skill of web development: https://raw.githubusercontent.com/vercel-labs/web-interface-...

That’s too much for a model to carry in its context while it’s trying to do actual work.

Far better is to give that skill.md to a model and have it produce several hundred lines of code with a shebang at the top. Now you haven’t got a skill, you’ve got a script. And it’s a script the model can run any time to check its work, without knowing what the script does, how, or why - it just sees the errors. Now all your principles of web dev can be checked across your codebase in a few hundred milliseconds while burning zero tokens.

TDD is codification too: codifying in executable form the precise way you want your logic to work. Enforce a 10ms timeout on every unit test and as a side effect your model won’t be able to introduce I/O or anything else that prevents parallel, randomized execution of your test suite. It’s awesome to be able to run ALL the tests hundreds of times per day.

Constantly checking your UI matches your design system? Have the model write a script that looks at your frontend codebase and refuses to let the model commit anything that doesn’t match the design system.

Codification is an insanely powerful thing to build into your mindset.

Re:Ask HN: How are you automating your coding work? by wrs on Wednesday January 21, 2026 @04:21PM (#46711737)
As one often finds with “effective LLM usage” advice, all of those things would help humans on the team as well! As would other advice like keeping the architecture docs up to date, writing down important design decisions with rationale, breaking big features down into steps, etc.

Maybe one should just search for advice from the last 20 years on how to make a human development team more effective, and do that stuff.

It’s funny how this advice has always been around, but we needed to invent this new kind of idiot savant developer to get the human developers to want to do it…

Re:Ask HN: How are you automating your coding work? by g-b-r on Wednesday January 21, 2026 @08:12PM (#46713931)
So depressing that this got downvoted
Re:Ask HN: How are you automating your coding work? by fclairamb on Thursday January 22, 2026 @01:15AM (#46715893)
Up voted it. It's very true, especially regarding docs (short, effective, with examples), proper cli commands, and... testability.
Re:Ask HN: How are you automating your coding work? by ozim on Wednesday January 21, 2026 @04:31PM (#46711851)
Watch out for Waste of context, whatever can be checked by existing linting/testing tooling and returned as an exact message to the model/agent the better.
Re:Ask HN: How are you automating your coding work? by jason_s on Wednesday January 21, 2026 @07:32PM (#46713684)
> have it produce several hundred lines of code with a shebang at the top.

Am I the only one who worries about agents creating malicious/unsafe code to execute?

Re:Ask HN: How are you automating your coding work? by cadamsdotcom on Wednesday January 21, 2026 @08:08PM (#46713897)
My friend, let me introduce you to a very simple technique, it’s called .. reading the code.
Re:Ask HN: How are you automating your coding work? by adrianwaj on Wednesday January 21, 2026 @08:41PM (#46714138)
If all you're doing is checking for blackhatting, shouldn't you run like a Dr.Web or McAfee for code... if it existed?
Re:Ask HN: How are you automating your coding work? by topologie on Friday January 30, 2026 @01:06PM (#46827723)
English is not my first language, what do you mean by Codification?
Re:Ask HN: How are you automating your coding work? by cadamsdotcom on Saturday January 31, 2026 @04:44PM (#46841188)
Look up the word codify to get an idea.

You can think of it literally as turning prompts that are non-deterministic into code. But it is also the idea of documenting all the things you learned while doing something. It’s what companies do when they invent process for humans (eg. “expense reports must be approved by your manager and finance before you get reimbursed”)

AI is a great to for exploring and experimenting with ways to do things- but once you know how you want it done, AI is just a liability because it might randomly decide to do things some other way, and it might do the thing differently tomorrow even though that’s not what you want.