@@ -333,25 +333,25 @@ configured. Check before you send; do not assume it works.
333333 not start with "Sessions on machines other than" or "No sessions on other
334334 machines", the machine's pigeon predates remote discovery: treat
335335 cross-machine as unavailable.
336- - ** Send as usual.** Use the same ` swarm_send ` with the session's ` ses_ ` id.
337- ` msg_id ` , ` kind ` , ` priority ` and ` reply_to ` are carried across unchanged.
338- Normally it lands within seconds. If the target's machine is asleep (or
339- down), pigeon's worker holds the message for up to 24 hours. It is then
336+ - ** Send as usual.** Use the same ` swarm_send ` with the session's ` ses_ ` or
337+ ` gse_ ` id. ` msg_id ` , ` kind ` , ` priority ` and ` reply_to ` are carried across
338+ unchanged. Normally it lands within seconds. If the target's machine is asleep
339+ (or down), pigeon's worker holds the message for up to 24 hours. It is then
340340 delivered when the machine wakes, or you get a failure notice about a day
341- later. You are not told separately that it is being held. So silence proves nothing, and a payload whose meaning depends on time
342- should say when it was written.
343- - ** A goose session ( ` gse_… ` ) on another machine is reachable only once it
344- has reached out across machines itself ** : it launched you with
345- ` swarm_launch ` , or a message it sent to another machine was accepted. So a
346- session a goose session launched can always ` swarm_send ` its report back to
347- the ` gse_ ` id named in the launch framing. ** Stall-watch program
348- coordinators are the exception ** : they accept relayed messages without
349- having reached out, and ` swarm_list remote: true ` lists them ( and
350- ` coordinator <tag> ` finds them ). Any other ` gse_ ` on another machine is
351- refused at once with a 409. If the 409 says "no machine has registered it
352- with the relay" and that session contacted you just now, retry in a few
353- minutes. ` swarm_list remote: true ` lists no other goose sessions, so get
354- the id from the message or the launch that named it.
341+ later. You are not told separately that it is being held. So silence proves
342+ nothing, and a payload whose meaning depends on time should say when it was
343+ written.
344+ - ** A goose session ( ` gse_… ` ) on another machine is reachable only if ** it has
345+ reached out across machines itself ( it launched you with ` swarm_launch ` , or a
346+ message it sent to another machine was accepted), ** or ** it was started by
347+ ` swarm_launch ` (pigeon grants remote reachability at launch, so you can send
348+ follow-ups to the ` gse_ ` id named in ` launch.result ` ), ** or ** it is a
349+ ** stall-watch program coordinator ** (listed by ` swarm_list remote: true ` and
350+ found by ` coordinator <tag> ` ). Any other ` gse_ ` on another machine is refused
351+ at once with a 409. If the 409 says "no machine has registered it with the
352+ relay" and that session contacted you just now, retry in a few minutes.
353+ ` swarm_list remote: true ` lists no other goose sessions, so get the id from
354+ the message or the launch that named it.
355355- ** Read the failure notice's verb; it tells you what to do.** A cross-machine
356356 ` delivery.failed ` comes from the receiving machine or the worker:
357357 - "was NOT received … safe to resend": resend once (but see
@@ -388,22 +388,33 @@ configured. Check before you send; do not assume it works.
388388## Starting a session on another machine: ` swarm_launch `
389389
390390` swarm_launch {machine, directory, prompt, tag?} ` starts a ** fresh** headless
391- opencode session on another machine with your prompt. Use it when work has to
392- happen on that machine (a deploy, a rebuild check, something only it can
393- reach) instead of asking the human to paste commands, or borrowing an existing
394- session there that was doing something else.
395-
396- Goose sessions have the same tool (from honk's swarm extension, along with
397- ` swarm_schedule ` and ` swarm_scheduled ` ). The launched session is opencode
398- either way, and it reports back to the launching ` ses_ ` or ` gse_ ` id.
399-
391+ ** goose** session (` gse_… ` ) on another machine with your prompt. Use it when
392+ work has to happen on that machine (a deploy, a rebuild check, something only
393+ it can reach) instead of asking the human to paste commands, or borrowing an
394+ existing session there that was doing something else.
395+
396+ Both goose and opencode sessions have ` swarm_launch ` (in goose from honk's
397+ swarm extension, along with ` swarm_schedule ` and ` swarm_scheduled ` ). Since
398+ ` pigeon#272 ` (` workstation-i0hi.9 ` ), the launched session is ** goose** on every
399+ host, regardless of which harness called ` swarm_launch ` , and it reports back to
400+ the launching ` gse_ ` or ` ses_ ` id. ** Write the prompt in goose terms**
401+ (` delegate ` with ` source: ` , ` shell ` , ` load_skill ` — never opencode's ` Task `
402+ tool or ` -opus ` subagent handles).
403+
404+ - ** Never start another session to stand in for an in-session reviewer or
405+ oracle.** Reviewers and oracles run ** in-session** (` delegate ` with
406+ ` source: "adversarial-reviewer" ` or ` "oracle" ` in goose; the ` Task ` tool in
407+ opencode). If the reviewer tool is unavailable in your session, stop and
408+ report — never work around it by starting another session (whether via
409+ ` swarm_launch ` , ` opencode run ` , ` opencode-launch ` , ` honk launch ` , or
410+ ` goose run ` ).
400411- ** It is off unless both machines opt in.** Yours needs
401412 ` PIGEON_REMOTE_LAUNCH_SEND=1 ` (otherwise the tool errors with
402413 ` launch_send_disabled ` ), and the target must list your machine in
403414 ` PIGEON_REMOTE_LAUNCH_FROM ` (otherwise ` not_accepted ` ). Both are
404415 host-configuration changes for the human; do not attempt them. If the tool is
405416 missing from your tool list, your session predates it: it appears after the
406- serve pool restarts (the nightly reset at the latest).
417+ serve restarts (the nightly reset at the latest).
407418- ** Refusals at call time are final for now; do not retry in a loop.** The tool
408419 errors at once with the reason: ` launch_send_disabled ` and ` not_accepted ` (see
409420 above) and ` target_offline ` (that machine has not polled for over a minute,
@@ -426,16 +437,21 @@ either way, and it reports back to the launching `ses_` or `gse_` id.
426437 cannot chain.
427438- ** Call it once per launch.** The tool answers at once with ` accepted ` or
428439 ` pending ` . The outcome arrives later as a ` launch.result ` swarm message from
429- ` pigeon ` , saying the session started (with its ` ses_ ` id to ` swarm_send ` ), was
430- refused, or is unconfirmed. ` pending ` means the daemon may already have the
431- request, so ** do not call again** : a second call is a new launch and can start
432- a duplicate session. Read the result's verb as with relay failures: "Safe to
433- retry" means retry once; "UNCONFIRMED … Do NOT launch again" means message the
434- session it names, or check ` swarm_list remote: true ` first.
435- - ** A serve pool restart on the target kills the launched session** , because it
436- runs inside that pool. A launched session that upgrades pigeon may restart the
437- pigeon daemon, but must restart the pool last, from a delayed detached job,
438- after it has reported. See pigeon's ` cross-device-deployment ` skill.
440+ ` pigeon ` , saying the session started (with its ` gse_ ` id to ` swarm_send ` ),
441+ was refused, or is unconfirmed. ` pending ` means the daemon may already have
442+ the request, so ** do not call again** : a second call is a new launch and can
443+ start a duplicate session. Read the result's verb as with relay failures:
444+ "Safe to retry" means retry once; "UNCONFIRMED … Do NOT launch again" means
445+ message the session it names, or check ` swarm_list remote: true ` first.
446+ - ** Switching or restarting services on the target can cut the launched
447+ session's turn.** On macOS, ` home-switch ` restarts ` goose-serve ` whenever its
448+ plist changes and drops in-flight turns with no automatic resume. On cloudbox
449+ and devbox, ` goose-serve ` has ` restartIfChanged = false ` and
450+ ` goose-turn-resume ` recovers cut turns, while a home switch that adds,
451+ removes, or renames the ` goose-agent ` slice kills running tool commands. Check
452+ ` predicting-switch-restarts ` before switching, and run any disruptive restart
453+ last from a delayed detached job after reporting back. See pigeon's
454+ ` cross-device-deployment ` skill.
439455- ** Every launch is visible.** The target posts a ` 🚀 Remote launch from … `
440456 notice to the chat, and the launched session gets its own channel. There is no
441457 per-launch approval, so the human sees launches only after they start; launch
0 commit comments