Automatically presses 1 to accept changes. For the lazy and the brave.
Born from the Claude Code workflow where you mash 1 to accept every change — now automated.
npm install -g press-onepress-one [--delay <ms>] <command> [args...]| Flag | Description | Default |
|---|---|---|
--delay <ms> |
Delay between keypresses in milliseconds | 500 |
--help |
Show help | — |
# Just vibes
press-one claude
# With some breathing room
press-one --delay 2000 claude "fix all the bugs"
# Maximum trust
press-one --delay 100 claude "refactor everything"- Spawns your command in a pseudo-TTY (so it thinks it's a real terminal)
- Pipes
1into stdin on a loop - That's it. That's the whole thing.
- The 1s are always flowing. While the command is thinking, you'll see a gentle stream of
11111in the terminal. This is not a bug — it's a meditation on trust. You chose to press one. Now one presses itself. - You can't type. Stdin belongs to the machine now. If you need to intervene,
Ctrl+Cand start over like a person who reads diffs.
This will blindly accept everything. Use --delay to give yourself time to Ctrl+C before your repo becomes modern art.
- Node.js >= 16
- Python 3 (used internally for PTY allocation — preinstalled on macOS and most Linux)
MIT