Sends a message, with files if needed, into another Agent session on this machine, where it lands in that session's conversation and wakes it. Use when work, a question or a result has to reach another session, or when a message asks you to reply.
---
name: bot
description: "Sends a message, with files if needed, into another Agent session on this machine, where it lands in that session's conversation and wakes it. Use when work, a question or a result has to reach another session, or when a message asks you to reply."
---
# Tent bot
Every Agent session on this machine is a bot. The user sees the bots of a project at the top right of its Tent page, and their comments on the graph go to one of them. A bot messages another to hand over work, ask a question or return a result.
`bot` stands for the cross-agent CLI that comes with Tent:
```text
node "<this Skill's directory>/../../cross-agent.mjs" <command> <arguments>
```
| To | Run |
| --- | --- |
| See the bots working in a folder | `bot list --folder <path>`. Without `--folder` it lists every session on the machine |
| Send a message | `bot send <id> [--file <path>]... -`, with the message on stdin |
`list` prints each session's id, host, state, last activity, title and folder. A session missing from the list cannot be reached now. `send` prints how the session takes the message: it starts a turn on it, reads it during or after its current turn, or gets it from the program that has it open.
## Writing a message
Bots in one project read the same graph. Name the Nodes the work is about by id, as `[Sign-in](node-k2m9qa)`, and the receiver opens them with `tent load <node-id>`. Say what you need back. The message ends with a line that tells the receiver how to reply; when it asks for a result, send the result when the work is done.