HomeTutorials › Sessions & Daemon
Sessions & Daemon

Sending Input Remotely

#008 0:17 Part of the Rysh video series

Drive a session from the outside -- no attach required.

Sending Input Remotely — 0:17 walkthrough

What you'll see

  1. rysh send my-session "ls -la" -- run in the active pane without attaching.
  2. --pane abc123 -- target a specific pane by ID.
  3. --mode prompt -- send an AI prompt instead of a command.
  4. --mode shell -- force shell execution; omit --mode to 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.