Repository navigation
feat(send): agent picker lists Rex agents; an agent at a dialog gets no clipboard copy - #165
Merged
Merged
Conversation
Inside Rex (REX_SESSION set), the agent picker lists every block with an agent, built from Rex reads only: rex ls, rex window ls per session, and each terminal block's process, program_status and title methods. Rows show the agent with the block's label or the title the agent set, its folder, its state, and session › window · block. The review's own block is left out, the agents in its window come first, and a Pi the Pi link already lists is shown once. A Rex pick sends as a launcher's target does. A review launched from an agent still sends there without asking; P switches to another agent, in document and code reviews alike. Rows wider than the pane shorten the folder, then the name, so the state and place stay in view. Tests read recorded Rex replies (tests/fixtures/rex-agents) through a fake rex.
Choosing or targeting an agent that is blocked at a dialog no longer copies the feedback to the clipboard: nothing is sent, the notes stay pending, and the screen says the agent is at a dialog. A missing agent still copies. Applies to Herdr, Rex, herdr-core and delivery commands, in document and code reviews (decision 13, amended). In tests the clipboard only records what it would copy. Rex rows for an agent that has not reported its state now say "no state", and a Pi session running in a Rex pane shows the pane's place.
… agent target A PR review opened beside a Rex agent lists the other Rex agents under P and sends the PR feedback to the one picked. rex review 7 --block passes the block's agent to the split as its Send target. Adds the Rex finder to the PR review's Herdr picker test.
This was referenced Nov 20, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Inside Rex, the agent picker (
P, and Send when nothing names a target) now lists every agent Rex runs, in every session and window, so a review opened from one agent can go to another.rex open,rex last,rex review, includingrex review <PR>), Send still goes to that agent with no question.Pswitches.Captured in an 80-column split opened by
plannotator-tui rex open --block <claude>, afterP:Each row shows:
no state, and Send refuses it as the Rex launcher already does;session › window · pane.Agents in the review's own window come first, then agents in the review's folder, then by name. The review's own pane is never listed. A Pi session in a Rex pane is one row, sent over the Pi link and placed where Rex has it.
How Rex is read
Rex has no agent list, so the list is built from read-only calls:
rex ls --json: sessionsrex window ls -s <session> --json: windows, layers and blocksrex do com.superlogical.terminal.process,…program_statusand (agents only)…title, with-b <block> -s <session>. Up to 16 blocks are read at once.A pick sends the same way a Rex launcher's target does: it checks the agent's process still runs in the block and is not blocked, pastes with
block.event, and presses Enter.Also in this PR
Eretries. This applies to every agent target (Herdr, Rex, herdr-core, a delivery command's exit 75) in document and code reviews. A missing agent still copies. Decision 13 indocs/decisions.mdis amended, and the README and Herdr spec are updated.Clipboardrecords instead of writing OSC 52, so no test touches a terminal clipboard.Testing
cargo fmt --check,cargo clippy --locked --workspace --all-targets -- -D warningsandcargo test --locked --workspacepass on macOS. A check-onlycargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings, with a stub C compiler, passes too.rexand cover:Pfrom a document review, a code review and a PR review launched from an agent;no state;rex review 7 --blockpassing the block's agent to the split.claude,codexandpiprograms that report state and set a title:rex openfrom a Claude:P→ Codex received the note and the Claude got nothing;rex review(local changes):P→ a Claude in another Rex session received the code feedback;rex review <PR>in a live Rex (fixture and binary level only);Window 122adf3eare shown as Rex's server reports them.