News for hackers. Stuff that matters.
Re:Auto-accept everything and nothing else by gnabgib on Tuesday March 10, 2026 @02:15PM (#47326877)
I hope you aren't using your @EmptyDrum (https://news.ycombinator.com/item?id=47320046) and @HalfEmptyDrum (https://news.ycombinator.com/item?id=47285062) accounts to upvote this. Please pick one account and stick to it, HN is a community—users should have an identity that others can relate to.
Re:Auto-accept everything and nothing else by Kai20211111 on Tuesday March 10, 2026 @01:40PM (#47326421)
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.