← ClaudeAtlas

interactivelisted

Run a command that needs a real TTY or human input — sudo password, ssh passphrase, installer questions, TUI — somewhere the user can actually type. Agent subprocesses have no TTY, so such commands fail ('sudo: a terminal is required to read the password'). For a plain sudo command it uses `sudo -A` with a GUI password dialog and needs no terminal at all; for anything else it opens a real pane, preferring the tmux the user is already in and falling back to spawning a terminal window. Triggers: sudo needs password, interactive prompt, terminal required error, ssh passphrase, installer asks y/n, 'braucht ein Terminal', 'sudo geht nicht', 'da muss ich mein Passwort eingeben'.
juliuswiener/nord-kit · ★ 0 · AI & Automation · score 65
Install: claude install-skill juliuswiener/nord-kit
# interactive — commands that need a human at a keyboard Agent Bash has no TTY, so interactive prompts cannot read input. This gets the command somewhere a TTY exists and the user can type. **The secret never passes through you.** Not via `send-keys`, not as an argument, not in a variable you construct. The user types it into a dialog or a pane. If a design would require a secret to travel through your context, stop and hand the whole command over. ## Pick the lowest rung that applies | # | when | what happens | |---|---|---| | **0** | the command is `sudo <something>` **and** a GUI is present | `sudo -A` with a password dialog. **No terminal, no tmux**, and stdout/stderr come back to you normally | | 1 | `$TMUX` is set — you are inside the user's tmux | split a pane in their current window | | 2 | `$HERDR_PANE_ID` is set | a herdr pane | | 3 | a tmux server is running, you are outside it | new window in the first session, and say which | | 4 | none of the above, but `$DISPLAY` or `$WAYLAND_DISPLAY` is set | create a detached tmux session **and spawn a terminal attached to it**, so it appears on screen | | 5 | no GUI at all (headless, ssh without X) | detached tmux session; tell the user to run `tmux attach -t nord-run` | Rungs 1–5 all end with a tmux pane, so the send/poll procedure below is identical for each — only how the pane becomes visible differs. ## Rung 0 — `sudo -A`, the zero-window path This is the canonical answer to "no TTY, needs a sudo password", and fo