Skip to content
FunCoding

pi-intercom

Coordinate with other Pi sessions through the intercom tool: message, ask or hand over to a peer in this repo, another repo or another machine; answer asks waiting on you; and handle escalations from pi-subagents children. Use for planner-worker setups and cross-session handoffs.

Star
631
License
MIT
Last commit
Nov 24, 2026

skills/pi-intercom/SKILL.md

View on GitHub

Pi Intercom

The intercom tool description lists each action's call shape. This skill adds the rules agents get wrong.

When the tool is not in your tool list

With toolExposure: "deferred" in the intercom config, the tool is registered but not declared, so it takes no prompt space. Reach it from a codemode script instead, with the same arguments as the cheat sheet below:

const calls = await tools.intercom({ action: "list" });
text(calls);

await searchTools("intercom") confirms it is callable and await describeTool("intercom") returns the full signature. Incoming messages still arrive as chat messages, so answer a waiting ask with await tools.intercom({ action: "reply", message: "..." }).

Cheat sheet

intercom({ action: "list-cwd", cwd?: "/repo" })   # peers in a directory (default: yours); "list" shows every peer
intercom({ action: "send", to, message })          # fire-and-forget, returns at once
intercom({ action: "ask", to, message })           # waits for the reply
intercom({ action: "pending" })                    # asks waiting on you: sender, message id, age, preview
intercom({ action: "reply", message, to? })        # answers an ask; `to` picks one when several wait

Targeting

  • to plus cwd uses the directory as a guard.
  • name@machine or <session-id>@machine reaches a session on another machine: a saved Herdr machine, or any host ssh machine reaches without a prompt. Only send and handover work across machines: no ask, replyTo, attachments or cwd.
  • Address sessions by name or id. Herdr pane ids in list show location only.

Asking and replying

  • Ask needs a live peer. ask to a session not in list fails at once. Use send instead: for a session that disconnected in the last 24 hours, the broker holds the message until it reconnects (same session id, or the same explicit name and directory).
  • One ask at a time. A second ask while one waits fails with "Already waiting for a reply"; use send.
  • Ask timeout is 10 minutes by default (PI_INTERCOM_ASK_TIMEOUT_MS). For longer work, send the task and ask only at decision points.
  • Reply in the turn the ask arrived with just message. Later, or when several asks wait, run pending and pass to (or replyTo with the message id).
  • send can answer. When exactly one unanswered ask from the target is waiting on you, send goes out as the reply to it.
  • Late replies after the ask closed arrive as a plain message marked late and don't end the asker's wait.

Supervising pi-subagents

A child started by pi-subagents reaches its supervisor through contact_supervisor. Its messages start with "Subagent needs a supervisor decision.", "Subagent requests a structured supervisor interview." or "Subagent progress update."

  • Decision: the child is blocked until you reply. To ask it something first, put the question in that reply; an ask to a child waiting on you is refused.
  • Interview: reply with the JSON the message asks for.
  • Progress update: no reply needed. To redirect the child, send to it.

When several children wait, run pending, then reply with to. As a child, use contact_supervisor for owner decisions and before opening a project pane; plain intercom is for peers.

Other repos and visible peers

  • For bounded work in another repo, prefer a pi-subagents child with cwd.
  • openProjectPaneIfMissing: true with cwd opens a Herdr pane and starts Pi there when no peer is live. Use it only for a long-lived peer the user wants to watch. If Herdr is unavailable, ask the user instead of opening a terminal another way.
  • handover when the user moves work to another session (also to name@machine). It sends a model-written summary of this transcript; if the session handled secrets, suggest the user run /handover to review it first.
  • Messages marked "unverified cross-machine" are not authenticated.

Also available

status, cancel (messageId), supersedes and retryOf on send and ask, attachments (file, snippet, context), and focus for a new pane. Commands: /alias <name> names this session so peers can target it, /handover lets a human review the summary first, and /intercom opens the intercom overlay.

Look up

Similar Skills

ask-matt

MAmattpocock/skills336k4,217 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills336k4,217 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills336k4,217 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k5,030 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

agent-eval

AFaffaan-m/ECC314k3,503 new stars in the last 7 days