Messaging Between Worktrees
What you can do
Section titled “What you can do”When you ask the Agent, it can send a message to the Agent of another worktree and read its answer. Sending returns without waiting for the other Agent’s answer, and the answer is read later.
The other Agent cannot see the history of your conversation.
When to use it
Section titled “When to use it”Use it when you want to ask the Agent working in another worktree to investigate or check something, or to ask about the work in that worktree.
Ask the Agent to send a message
Section titled “Ask the Agent to send a message”-
Make a request that clearly names the destination workspace (the name shown in the sidebar) and worktree (the branch name).
Example request:
Send a message to the Agent of the worktree “feature/login” in the workspace “web-app”, asking it to explain the changes it made to the login screen.
-
A confirmation dialog appears before sending. Check the details and press “Allow”.
-
When you ask the Agent to read the other Agent’s answer, it reads the answer and tells you in the chat.
- The message is sent only when exactly one destination matches both the workspace name and the worktree. If none is found or more than one matches, it is not sent, and a list of candidates is returned to the Agent.
- If the other Agent has not been started, it is started before the message is sent. If the other Agent is running, the message is not sent.
Answer the confirmation dialog
Section titled “Answer the confirmation dialog”- The dialog title is “Allow <tool name>?”. Press “Allow” to send, or “Deny” not to send.
- If you do not respond within 120 seconds, it is treated as denied.
- When Tool Permission under Agent in Settings is set to “Auto Allow”, the confirmation dialog does not appear.
- No confirmation dialog appears for reading the answer.
Limits
Section titled “Limits”- Messages cannot be sent while answering a message received from another Agent.
- Messaging between worktrees cannot be used from a Bot’s dedicated chat.
- Your own worktree cannot be the destination.