Skip to content

capture

Copy page

Prints the last lines of the agent pane in a worktree, as plain text.

Terminal window
workrex capture <name> [--lines <n>]
  • <name>: Worktree name. Use project:handle to reach an agent in another project.
FlagDescription
-n, --lines <n>Number of lines to print. Default: 200.

capture strips ANSI escape codes and trailing blank lines before it keeps the last <n> lines.

For a workspace on a remote server, capture reads the remote agent’s pane.

Under Rex, capture reads the block’s full scrollback and keeps the last lines.

Terminal window
# Print the last 200 lines of an agent's output
workrex capture user-auth
# Print the last 50 lines
workrex capture user-auth -n 50
# Read an agent in another project
workrex capture myproject:docs-update
  • send to give the agent more instructions
  • status to check the agent’s status