Hacker Newsnew | past | comments | ask | show | jobs | submit | EmptyDrum's commentslogin

I kept mashing 1 to accept changes in Claude Code, so I automated it. It spawns your command in a PTY and pipes "1" into stdin on a loop.

  npm install -g press-one
  press-one --delay 3000 claude "fix all the bugs"                                                                                                                                                                                                                                        
                  
  Known "features": a slow stream of 11111 appears while the model is thinking, and you can't type because stdin belongs to the machine now. Zero dependencies (just Node + Python for PTY allocation). MIT licensed.

Yes, I partially used their approach which I found very smart. Added a few improvements which you can find on the GitHub.

fyi - this was built inspired by how OpenClaw manages llm-keys. I liked their idea and improved on it. Feedback is welcome.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: