Sending Input Remotely
Drive a session from the outside -- no attach required.
What you'll see
rysh send my-session "ls -la"-- run in the active pane without attaching.--pane abc123-- target a specific pane by ID.--mode prompt-- send an AI prompt instead of a command.--mode shell-- force shell execution; omit--modeto use the pane's current mode.
Commands shown
rysh send my-session 'ls -la'
rysh send my-session 'go test ./...' --pane abc123
rysh send my-session 'summarize the codebase' --mode prompt
rysh send my-session 'make build' --mode shell
Keys used
Enter
Transcript
0:00Drive a running session from the outside -- no attach required.
0:05rysh send delivers input to a session's active pane. Here we run ls -la in my-session without attaching.
0:15Add --pane with a pane ID to target one exact pane.
0:24Use --mode prompt to send an AI prompt instead of a command -- the agent in that pane handles it.
0:34Or --mode shell to run a command explicitly. Omit --mode and Rysh uses the pane's current mode.
Key takeaway
rysh send injects commands or prompts into any pane of a running session without opening its TUI.