One of my biggest unlocks has been embracing Claude Code for web - the cloud version - and making sure my projects are setup to work with it. I mainly work in Python, and I've been ensuring that all of my projects have a test suite which runs cleanly with "uv run pytest" - using a dev dependency group to ensure the right dependencies are installed. This means I can run Claude Code against any of my repos and tell it…
Half my visits to HN are to check out a comment that explains the right uv inline dep syntax #!/usr/bin/env -S uv run --script # /// script # dependencies = [ # "requests so i can tell claude to write a self contained script it can later use.
Ask HN: How are you automating your coding work?
41–50 of 87 posts
Re: Ask HN: How are you automating your coding work?
#42It doesn't write the code for me, but I talk to it like it is a personal technical consultant on this product and it has been very helpful.
Re: Ask HN: How are you automating your coding work?
#43If I know what I want to code and it's a purely mechanical exercise to code it, I'll just tell Claude what to do and it does it. Pretty neat. When I don't know what I want to do, I read existing code, think about it, and figure it out. Sometimes I'll sketch out ideas by writing code, then when I have something I like I'll get Claude to take my sketch as an example and having it go forward. The big mistake I see peopl…
I think these calculations are very different now that we have these very good LLMs, but they aren't irrelevant.
Re: Ask HN: How are you automating your coding work?
#44Re: Ask HN: How are you automating your coding work?
#45We're overlooking a critical metric in AI-assisted development: Token and Context Window to Utility Ratio . AI coding tools are burning massive token budgets on boilerplate thousands of tokens just to render simple interfaces. Consider the token cost of "Hello World": - Tkinter : `import tkinter as tk; tk.Button(text="Hello").pack()` - React : 500MB of node_modules, and dependencies Right now context windows token li…
But the model doesn't need to read the node_modules to write a React app, it just needs to write the React code (which it is heavily post-trained to be able to use). So the fair counter example is like: function Hello() { return Hello }
The more code, the more surface area the LLM needs to cover before understanding or implementing correctly.
Right now the solution to expensive token limits is the most token-efficient technology. let's reframe it better. Was react made to help humans organize code better or machines?
Is the High Code-to-Functionality Ratio 3 lines that do real work > 50 lines of setup really necessary?
Re: Ask HN: How are you automating your coding work?
#46Re: Ask HN: How are you automating your coding work?
#47The 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…
Re: Ask HN: How are you automating your coding work?
#48Re: Ask HN: How are you automating your coding work?
#49One of my biggest unlocks has been embracing Claude Code for web - the cloud version - and making sure my projects are setup to work with it. I mainly work in Python, and I've been ensuring that all of my projects have a test suite which runs cleanly with "uv run pytest" - using a dev dependency group to ensure the right dependencies are installed. This means I can run Claude Code against any of my repos and tell it…
Re: Ask HN: How are you automating your coding work?
#50I actually kind of do the opposite to most developers. Instead of having it write the code, I try to use it like a pair reviewer, critiquing as I go. I ask it questions like "is it safe to pass null here", "can this function panic?", etc. Or I'll ask it for opinions when I second guess my design choices. Sometimes I just want an authoritative answer to tell me my instincts are right. So it becomes more like an extra…