Loading...
Loading...
Run and control interactive CLI sessions for AI agents. Handles TUI prompts (select lists, checkboxes, confirms), persistent shell state, and long-running processes. Use when you need to execute terminal commands, respond to interactive prompts, navigate scaffolding wizards like create-vue or create-vite, or manage dev servers.
npx skill4agent add cybertheory/clrun clrun--yesclrunnpm install -g clrun| Action | Command |
|---|---|
| Run a command | |
| Send text + Enter | |
| Send keystrokes | |
| Toggle checkbox | |
| Accept default | |
| View output | |
| Check sessions | |
| Kill session | |
| Interrupt | |
clrun <id> "my-project-name" # Type and press Enter
clrun <id> "" # Just press Enterclrun key <id> down down enter # Select 3rd item in list
clrun key <id> space down space enter # Toggle checkboxes 1 and 2
clrun key <id> enter # Accept defaultupdownleftrightentertabescapespacebackspacedeletehomeendpageuppagedownctrl-cctrl-dctrl-zctrl-lctrl-actrl-eyntail| You see | Type | Action |
|---|---|---|
| Text input | |
| Single-select | |
| Multi-select | |
| Confirm | |
| Simple confirm | |
| Readline | |
downenter◆ Select a framework:
│ ● Vanilla ← 0 downs
│ ○ Vue ← 1 down
│ ○ React ← 2 downs
│ ○ Svelte ← 3 downsclrun key <id> down down enter # Selects Reactspacedownenter# Select items 1, 3, and 4 from a list of 5:
clrun key <id> space down down space down space enter
# item1 skip skip item3 item4 confirmterminal_idoutputstatusrunningsuspendedexitedkilleddetachedhintswarnings1. START → clrun <command> → get terminal_id
2. OBSERVE → clrun tail <id> → read output, identify prompt
3. INTERACT → clrun <id> "text" / clrun key → respond to prompt
4. REPEAT → steps 2-3 until done
5. CLEANUP → clrun kill <id> → if needed$clrun <id> 'echo $MY_VAR' # Correct
clrun <id> "echo $MY_VAR" # Wrong — expanded before clrun sees it