send
Copy pageSends text to the agent running in a worktree and presses Enter, as if you typed it into the agent’s pane.
workrex send <name> [text]workrex send <name> --file <file>Arguments
Section titled “Arguments”<name>: Worktree name. Useproject:handleto reach an agent in another project.[text]: The text to send. If you omit it,sendreads--file, then stdin.
Options
Section titled “Options”| Flag | Description |
|---|---|
-f, --file <file> | Read the text from a file. |
send removes trailing newlines from the text. It fails when the text is empty, and when you give no text and stdin is a terminal.
For a workspace on a remote server, send delivers the text to the remote agent. See commands on remote workspaces.
send types single-line text into the pane. Multiline text, and all text for Codex, goes in as a paste. Under Rex, a paste is a Rex paste event, which Rex brackets when the agent turned on bracketed paste.
Examples
Section titled “Examples”# Send an instruction to an agentworkrex send user-auth "run the tests and fix any failures"
# Send to an agent in another projectworkrex send myproject:docs-update "also add the API reference"
# Send the contents of a fileworkrex send user-auth --file followup.md
# Pipe text from another commandgit diff main | workrex send review-bot