herdr_agent_read
Read recent agent terminal output to detect TASK_COMPLETE, blocked questions, or responses. For warm-up, scan ~400 lines from the 'recent' buffer for PONG.
Instructions
Read recent output from an agent's terminal. Used to check for TASK_COMPLETE, blocked questions, or any agent output. For warm-up: read ~400 lines from 'recent' looking for PONG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Maximum number of lines to read. | |
| format | No | text or ansi (keeps ANSI codes). | |
| source | Yes | Buffer to read: visible, recent, recent_unwrapped or detection. | |
| target | Yes | Agent target (pane id). | |
| strip_ansi | No | Strip ANSI escape sequences (default true). |