Live data from Hacker News

Ask HN: How are you automating your coding work?

news.ycombinator.com

11–20 of 87 posts

Re: Ask HN: How are you automating your coding work?

#11
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 "run 'uv run pytest', then implement ..." - which is a shortcut for having it use TDD and write tests for the code it's building, which is essential for having coding agents produce working code that they've tested before they commit.

Once this is working well I can drop ideas directly into the Claude app on my iPhone and get 80% of the implementation of the idea done by the time I get back to a laptop to finish it off.

I wrote a bit about "uv run pytest" and dependency groups here: https://til.simonwillison.net/uv/dependency-groups

Re: Ask HN: How are you automating your coding work?

#13
post #11

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…

> and making sure my projects are setup to work with it.

MESA drivers are a godsend in Claude Code for web if working on non-web GUIs. It can take screenshots and otherwise interact with them.

Re: Ask HN: How are you automating your coding work?

#14

[flagged]

I have similar observations. The time saved is things like going to some library I wrote to find the exact order of parameters, or looking up some API on the internet and adjusting my code to it. Inevitably if I did that the old way, I would screw up something trivial and get annoyed.

I rarely let it run for over 10 minutes unattended, but the benefits are not just pure time.

Being able to change the code without getting bogged down allows you to try more things. If I have to wait half an hour between iterations, I'm going to run into bedtime quite fast.

On top of this, I'm finding that the thing that takes the deepest attention is often, amazingly, trivial things. Fiddling with a regex takes attention, but it doesn't often decide the success of the project.

By contrast, the actual work, which is making technical decisions, is something I can do without concentrating in the same way. It's strange that the higher value thing feels less stressful.

Put these together and I'm more productive. I can string together a bunch of little things, and not have to be at my sharpest. Work can be scheduled for whenever, which means days are more flexible. More gets done, with less attention.

Re: Ask HN: How are you automating your coding work?

#15
The most useful automation for me has been a few simple commands. Here are some examples I use for repos in GitHub to resolve issues and PRs.

/gh-issue [issue number]

/gh-pr [pr number]

Edit: replaced links to private github repo to pastebin.

https://pastebin.com/5Spg4jGu

https://pastebin.com/hubWMqGa

Re: Ask HN: How are you automating your coding work?

#16
ML Engineer here. For coding, I mostly use Cursor/Claude Code as a fast pair. I'll detail what I want at a high level, let it draft, then I incrementally make changes.

Where I've automated more aggressively is everywhere around the code. My main challenge was running experiments repeatedly across different systems and keeping track of the various models I ran and their metrics, etc. I started using Skyportal.ai as an ops-side agent. For me, it's mostly: take the training code I just iterated on, automatically install and configure the system with the right ML stack, run experiments via prompt, and see my model metrics from there.

Re: Ask HN: How are you automating your coding work?

#17
post #15

The most useful automation for me has been a few simple commands. Here are some examples I use for repos in GitHub to resolve issues and PRs. /gh-issue [issue number] /gh-pr [pr number] Edit: replaced links to private github repo to pastebin. https://pastebin.com/5Spg4jGu https://pastebin.com/hubWMqGa

Those both 404, private repo?

Re: Ask HN: How are you automating your coding work?

#18
I haven't automated anything to be honest, but LLMs are invaluable in connecting dots in repositories or exploring dependencies source codes.

The first saves me days of work/month by sparing me endless paper pages of notes trying to figure out why things work in a certain way in legacy work codebases. The second spares me from having to dig too much in partially outdated or lacking documentation or having to melt my brain understanding the architecture of every different dependency.

So I just put major deps in my projects in a `_vendor` directory that contains the source code of the dependencies and if I have doubts LLMs dig into it and their test to shed light.

What I haven't seen anybody yet accomplish is produce quality software by having AI write them. I'm not saying they can't help here, but the bottleneck is still reviewing and as soon as you get sloppy, codebase quality goes south, and the product quality follows soon after.

Re: Ask HN: How are you automating your coding work?

#19
post #15

The most useful automation for me has been a few simple commands. Here are some examples I use for repos in GitHub to resolve issues and PRs. /gh-issue [issue number] /gh-pr [pr number] Edit: replaced links to private github repo to pastebin. https://pastebin.com/5Spg4jGu https://pastebin.com/hubWMqGa

Those both 404, private repo?

Meh, fixed. Replaced with pastebin links in and kept the repo private.

Re: Ask HN: How are you automating your coding work?

#20
post #15

The most useful automation for me has been a few simple commands. Here are some examples I use for repos in GitHub to resolve issues and PRs. /gh-issue [issue number] /gh-pr [pr number] Edit: replaced links to private github repo to pastebin. https://pastebin.com/5Spg4jGu https://pastebin.com/hubWMqGa

Those both 404, private repo?

[deleted]
Post reply on HN