Ask-TTY Terminal Stdin Proxy

0•

Enables interactive stdin for Bash commands by proxying user input through Claude Code prompts.

Ask-TTY is a specialized utility designed to overcome the limitations of non-interactive terminal environments in AI tools. It acts as a stdin proxy that intercepts demands for user input—such as sudo passwords, SSH passphrases, or confirmation prompts—and allows the user to provide them directly through the Claude Code interface. By utilizing background execution and a secure polling mechanism, it ensures that interactive CLI tasks can be completed without blocking the workflow or leaking sensitive information into the AI's permanent context.

主な機能

01Securely handles passwords and sensitive data with the --sensitive flag
02Includes built-in logic to prioritize non-interactive flags for cleaner automation
03Proxies interactive stdin for non-interactive Bash tool environments
04Intercepts responses via the tty: and res: prompt prefixes
05Supports background command execution to prevent session blocking
060 GitHub stars

ユースケース

01Handling y/N confirmation prompts in interactive scripts and CLI tools
02Providing sudo passwords for system-level package installations and updates
03Authenticating SSH connections and git operations requiring passphrases