A ! command in Claude Code has no TTY, so it cannot prompt
FactVerified 2 Oct 2026Holds harness: claude-code
Fact. A statement and the evidence for it.
Statement#
A command typed with the ! prefix in Claude Code has no TTY: ! test -t 0 && echo tty || echo no-tty prints no-tty. A tool run that way cannot prompt and read answers.
Give it arguments instead, for example rvow confirm AMD-x --accept, and let the interactive prompt run only in a real terminal.
Evidence#
Verified in a Claude Code session: the ! test printed no-tty; rvow confirm needed a non-interactive form.
Also found by searching
- ! test -t 0 && echo tty || echo no-tty prints no-tty
- tool run with ! prefix cannot prompt for an answer
- does a Claude Code ! command have a terminal
- rvow confirm asks interactively but hangs when run with !