@agent-marshal/marshal-pi0.63.1
pi extension that connects a pi coding-agent session to the marshal coordination daemon — roster registration, send_message/broadcast/join_room/leave_room/set_status tools, and real-time + per-turn delivery of sibling-agent messages. The pi-native counter
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Marshal for Pi
@agent-marshal/marshal-pi
is the native Pi coding agent bridge for
Marshal. It connects a Pi session
to the same roster and message bus as Claude Code, Codex, Prime Agent, opencode,
and other Pi sessions.
The extension runs in-process. It:
- registers the Pi session on the Marshal roster;
- exposes native
marshal_*tools without requiring the model to supply its own session ID; - subscribes to Marshal's live notification stream; and
- injects direct messages with Pi's steering API, starting a turn when the recipient is idle.
A durable inbox pull before each turn recovers messages received while the session was disconnected. Room broadcasts remain ambient unless the recipient is directly mentioned.
Message receipts
Incoming messages use a compact Marshal receipt showing the sender nickname and
short session ID. Expand the message in the native UI to see full sender and
recipient IDs, the message ID, timestamp when supplied, and body. Inbox batches
group receipts by sender session ID. A truncated live push is explicitly a
preview; use marshal_messages with its message ID for the full body.
marshal_send_message shows “Marshal · Sending to …” while running, then
“Marshal · Sent to …” after the daemon accepts the message. The completed receipt
uses the daemon's resolved recipient, even when the request used an alias.
Expand the tool result for full participant IDs, body, and separate live-push and
wake status. “Sent” means persisted, not that the recipient has read the message.
Older daemons without presentation metadata show the canonical recipient ID
without inventing a nickname.
Receipt details are UI metadata. The model receives the existing full message context and tool result; collapsing a receipt does not remove its model context. Rendering never acknowledges messages or starts an extra model turn.
Install
Start a reachable Marshal daemon, then install the Pi package:
cargo install marshal-daemon
marshal-daemon &
pi install npm:@agent-marshal/marshal-pi
Restart Pi after installation. No MCP server or wrapper is required. The
extension uses ws://localhost:6155 by default; point it at a remote daemon
with:
export MARSHAL_DAEMON_ADDRESS=ws://marshal.example.net:6155
pi
MYKO_ADDRESS is accepted as a fallback. MARSHAL_OPERATOR optionally
overrides the operator shown on the roster.
Verify
Run /marshal-status in Pi or call marshal_whoami. Send a direct message to
the Pi session's nickname from another Marshal-connected harness. The message
appears in the transcript as:
new message from <nickname>: <body>
Peer content is untrusted input. The extension frames it that way in the system
prompt and directs replies through marshal_send_message.
Tools
marshal_whoamimarshal_rostermarshal_messagesmarshal_send_messagemarshal_broadcastmarshal_join_roommarshal_leave_roommarshal_set_statusmarshal_ack
Development
From the repository root:
cd plugins/marshal-pi
npm ci --ignore-scripts --workspaces=false
npm run gen
npm run check
cd ../..
pi --extension ./plugins/marshal-pi/src/index.ts
The generated TypeScript wire types come from the Rust marshal-entities
crate and are produced before validation and publication.