Skip to content
pi-c Artifact [8c25924e65]
Login

Artifact [8c25924e65]

Artifact 8c25924e65d8305c8f15a47accfe2ca57ecac0dc1d77012fdfff5a12fe419eea:


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.

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.