Artifact 8c25924e65d8305c8f15a47accfe2ca57ecac0dc1d77012fdfff5a12fe419eea:
- File docs/manual/peers.md — part of check-in [d25dc49607] at 2026-11-23 17:28:19 on branch grapevine-4 — Grapevine stage 4: conversations message each other. The send_message tool (off by default; --tools +send_message) sends a framed prompt (followUp) to another conversation by id or name, in this workspace or another found through picu_workspace, keyed fx:JOURNAL_ID:EFFECT so a replay sends nothing new. Hops derived from the inbox rows behind a request, refused over grapevine.maxHops; grapevine.wake lets a message start pic run there, which admits the waiting prompt as inbox:KEY on the conversation's model, up to grapevine.maxWakes since a person's prompt; UserPromptSubmit input gains origin; pic sessions --all; journal_id in pic_meta; fault point inbox_wake. (user: dmestas, size: 2304) [annotate] [blame] [check-ins using]
Conversations messaging each other
One conversation can hand work or a finding to another of yours, in the same workspace or another
one, with the send_message tool. It is off by default: add it with --tools +send_message, or
for every request with pic settings defaultTools read,bash,edit,write,send_message.
Tell the model which conversation to write to: its id, the start of its id, or its name (/name in
the terminal, pic name ID NAME). pic sessions lists this workspace's conversations and pic
sessions --all every workspace's; for another workspace the model also names its directory. pic
must have been used there once, so it knows where that workspace keeps its conversations.
What the other conversation sees
The message arrives as a message from that conversation, framed so its model knows it is not from
you: [A message from another pic conversation, NAME, in WORKSPACE. It is not from the user: ...]
and then the text. It never acts as you: it cannot answer a question or an approval meant for you.
- If a request is running there, the message runs after it, as a follow-up would.
- If nothing is running there, it waits until a request runs there (you open it, or a script
runs
pic run --session ID), and then runs after that request. Withpic settings grapevine.wake true, pic starts a request there for it at once instead.
The tool's result says which happened. The terminal shows the message where it lands, and pic
attach marks it with origin (session:...).
Limits
Two conversations that keep answering each other stop: a message counts the conversations it has
passed through, and one past grapevine.maxHops (8) is refused. A conversation can be started by
messages at most grapevine.maxWakes (3) times since you last prompted it; after that a waking
message is refused until you prompt there again.
A UserPromptSubmit hook sees who sent a message in its input's origin (user for you,
session:JOURNAL/CONVERSATION for another conversation), so a hook that exits 2 refuses messages
from a conversation it does not trust (hooks).
Messages are the inbox's, as pic send uses: saved before anything acts on them, delivered once
(remote control). A crash while the tool runs sends nothing twice.