Skip to content

feat(send): pick any agent; Send asks which one when nothing names a target - #159

Merged
backnotprop merged 2 commits into
mainfrom
feat/agent-picker
Nov 20, 2026
Merged

backnotprop merged 2 commits into
mainfrom
feat/agent-picker

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

Document review and code review now work the same way:

  • Launched from an agent (Herdr, Rex, hc, --deliver-to): unchanged, Send goes to that agent.
  • P lists every reachable agent: running Pi sessions, plus every Herdr pane with an agent (herdr agent list, labelled with workspace › tab · pane). The review's own pane is left out, a Pi that Herdr also lists shows once, and the order stays put: agents in the review's folder first, then by name.
  • Launched on its own, with no delivery command: when an agent is reachable, Send opens the picker with "Copy to clipboard" on top. The button reads Send N new ▸ choose agent (E). With no agents, Send copies as before, and a delivery command still wins.

Rex and hc agents aren't listed yet: their targets are tied to the process a launcher named.

ui/pi_picker.rs becomes ui/agent_picker.rs. New herdr/agents.rs runs the read-only herdr agent list, workspace list and tab list.

Tested: unit and flow tests against a fake herdr (753 pass). Also tested end to end on an isolated Herdr 0.9.5: plannotator-tui review in one pane showed choose agent, the picker listed the claude in the other pane, and Enter delivered through herdr agent prompt. Herdr accepted it and the agent received it.

…en nothing names one

P now lists every agent Send can reach: running Pi sessions and, inside Herdr,
every pane with an agent (herdr agent list, labelled by workspace and tab),
never the review's own pane. Agents in the review's folder come first, then by
name, then by pid or pane id.

A review launched on its own, with no delivery command, opens the same picker
on Send when an agent is within reach, with a Copy to clipboard row above the
agents. With none within reach Send copies as before. Document and code reviews
behave the same.
The FallbackCopy struct was gated on unix but its Delivery impl was not,
so the Windows test build failed with E0425. The tests drive a fake herdr
that is a POSIX shell script, which Windows cannot run, so they stay
Unix-only; one cfg on a module now covers the fixture, its impl and the
tests together.
@backnotprop
backnotprop added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 06dee85 Nov 20, 2026
3 checks passed
@backnotprop
backnotprop deleted the feat/agent-picker branch November 20, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant