Skip to content

v0.19.0

Latest

Choose a tag to compare

@nicobailon nicobailon released this 24 Nov 03:53

pi-intercom 0.19.0 lets your Pi sessions talk across machines over plain SSH, with no Herdr setup required. It also works in the Herdr desktop app, where it can open a project beside you or in its own space. You can now send "no reply needed" updates that wait quietly instead of waking an idle session and costing it a model request. Under the hood, sessions stay connected through long-running tools, the broker starts reliably after a reboot, and late or undeliverable messages are no longer silently lost.

Highlights

  • Message sessions on other machines over plain SSH, with or without Herdr.
  • pi-intercom now works in the Herdr desktop app, and can open a project in its own space.
  • Send "no reply needed" updates without waking an idle session or costing it a model request.
  • Sessions no longer vanish while a long tool runs, and the broker starts reliably after a reboot.
  • Replies that arrive late are delivered instead of lost, and messages a busy session can't take are reported as not delivered.

Full changelog

Highlights

  • Message sessions on other machines over plain SSH, with or without Herdr.
  • pi-intercom now works in the Herdr desktop app, and can open a project in its own space.
  • Send "no reply needed" updates without waking an idle session or costing it a model request.
  • Sessions no longer vanish while a long tool runs, and the broker starts reliably after a reboot.
  • Replies that arrive late are delivered instead of lost, and messages a busy session can't take are reported as not delivered.

Added

  • Sending to name@machine no longer requires Herdr. pi-intercom connects to that machine over SSH (~/.ssh/config aliases work), finds the session there, and delivers the message. This also reaches Pi sessions running outside Herdr on a machine you saved in Herdr. SSH must connect without a password or host-key prompt. Thanks to @mblarsen for issue #194.
  • pi-intercom works in the Herdr desktop app. Opening a project pane and handing over to a project folder start Pi in a new terminal beside yours and focus it, and list shows the space, tab and pane of each session. The Herdr terminal app works as before, and finding sessions on other machines still uses its saved machines. This fixes project panes in the desktop app, which failed with Unknown option: --version. Pi now starts with your PATH, so a Pi installed with mise or nvm is found. Thanks to @llehouerou for #204 and @myohei for issue #217.
  • In the Herdr desktop app, herdr.projectPlacement: "space" in config.json opens a project in its own space instead of a pane beside you: a new tab in a space already in that folder, or a new space named after it. The default stays "pane". Thanks to @llehouerou for #205.
  • Messages can be marked as information only. With noWake: true on send (or pi-intercom send --no-wake), an idle session gets the message without starting a turn and reads it the next time it runs, so a "no reply needed" update no longer costs the receiver a model request. Asks and replies always wake the receiver. Thanks to @erikdarlingdata for issue #195.
  • toolExposure: "deferred" in config.json keeps the intercom tool out of the model's tool list, which saves about 4.2 KB on every request. Codemode scripts still call it as tools.intercom({...}), and reply hints and errors name that call. Incoming messages, /intercom and /handover work as before, and the default stays "direct". Thanks to @jalaxy33 for #224.
  • list can show only the sessions in one Herdr workspace or tab: pass workspaceId or tabId with an ID from the list output. Thanks to @odfalik for #212.
  • A file attachment sent with an absolute path is checked when it arrives on the same machine. If the file changed or was deleted in between, its header says (changed on disk since it was sent) or (no longer on disk). Thanks to @tryingET for #218.
  • Extensions can leave a channel namespace with unregister(). This frees one of the session's 32 extension slots, and if the session owned the namespace, ownership passes to the next eligible member. Thanks to @wayne930242 for #184.

Changed

  • The bundled pi-intercom skill is a quarter of its old size and no longer says intercom is same-machine only, which made agents refuse to message sessions on other machines. It now covers sending and handing over to name@machine, asking a waiting subagent a follow-up question inside your reply, and steering a subagent after a progress update.
  • Intercom errors now say what to do next: a failed reply points to pending or send, an ask to another machine says to use send, an ask to a subagent that is waiting on you says to answer with reply, and a message to a folder with no session asks the agent to open a new Pi pane only when you want one.
  • Tool rows, confirmations and results show the recipient's session name when you address it by ID or ID prefix. Thanks to @igt-sferk for #210.
  • Long sessions with many intercom messages redraw faster, because messages no longer redo their layout on every redraw. Thanks to @chpock for #203.
  • The README now explains ask timeouts (10 minutes for the Pi tool, 120 seconds for the CLI, and the broker's own PI_INTERCOM_ASK_TIMEOUT_MS limit) and the mailbox for disconnected sessions: who gets queued mail, when it expires, and what a broker restart loses. Thanks to @mimadiule for issues #188 and #189.

Fixed

  • Sessions on the same machine no longer disappear from intercom after 90 seconds while a long tool runs. A session now stays registered as long as its connection is open. Thanks to @odfalik for #211 and #213.
  • After a reboot, the broker could refuse to start, sometimes for hours, because its old pid file now pointed at another program. It now counts that process as a running broker only if it also answers on the broker's socket, and a running broker is still never replaced. Thanks to @mimadiule for issue #186 and @wayne930242 for #198.
  • A second broker could delete a running broker's socket when it couldn't see that broker's process, for example from inside a container sharing the intercom folder. It now refuses to start while another broker holds the socket. Thanks to @rubaiz-fd for #216.
  • A reply sent after its ask had timed out, been cancelled, or already been answered was rejected and its content lost. It now reaches the asker as a regular message marked as a late reply. If the asker has disconnected or the broker restarted, the reply fails and the agent is told to use send instead. Thanks to @mimadiule for issue #187.
  • A send or reply to a busy non-interactive session (such as pi --print) was reported as delivered, although the session dropped it, and a plain send also drew a canned "cannot respond" reply that could start reply loops between agents. The sender is now told the message was not delivered, and only an ask gets the canned reply. Thanks to @skeaney1 for #208 and @teal-bauer for #206.
  • A message sent to the exact ID of a disconnected session could reach a different, connected session with a similar name or ID. It now waits in the mailbox for the right session, and an ask fails because that session is disconnected. Thanks to @olccamy for #202.
  • A cross-machine send from a shell could name the wrong session as its sender when several local sessions shared that name. It now keeps the name without guessing the session. Thanks to @olccamy for #202.
  • A cross-machine send no longer crashes Pi when the SSH connection closes before the message has been fully written, and a partial write is no longer reported as success. Thanks to @Oscar-Williams for #185.
  • The message compose box lets you move the cursor and edit mid-message, and scrolls so long messages stay visible. Thanks to @nimanzik for #207.
  • A missing field in send or ask now names the field that is missing and lists the ones that arrived. Thanks to @drye for #215.
  • Session events that arrive after a session is replaced no longer throw a "ctx is stale" error. Thanks to @Alfabete-spec for #214 and @lemonkiller for reporting #209.