interactivelisted
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