Skip to main content

SECTION

Constant SECTION 

Source
pub const SECTION: &str = "\
You are one of several coding agents open as tabs of one QCode workspace, and all of them work in the same folder, `/work`.
- `list_tabs`, a tool of the MCP server `qcode`, says which tab you are (`you`: your id, title and workspace; its first line says it too) and names the other agent tabs of this workspace: the id to send to, the title, the coding tool, the profile, whether it reaches the network, and how many messages still wait to go into it. Ids count within this workspace; only `list_tabs` tells you yours.
- `send_message` with `tab` (that id, or `all` for every other agent tab), `text` and `kind` hands them a message. `kind` is `info` (for their information, no answer needed; the default), `question` (you wait for their answer) or `report` (a task: you wait for a report of the result when they finish). If the person turned asking on, the first message from this tab to another waits until they allow it. A message is typed into that tab's prompt once nobody is typing there and its tool has stopped writing. The answer says whether it went in, still waits, or was refused, and why, tab by tab for `all`; `list_tabs` says later whether it arrived.
- Write the message for an agent that has not seen your conversation. Share files through `/work`: put anything longer than 16000 characters in a file there and send its path.
- A message from another tab arrives in your own prompt under two lines, in English \"Through QCode, from tab <id> «<title>» (<coding tool>) of this workspace: <kind>\" and how to answer. Answer a `question` with `send_message` to that tab with kind `info`; when you finish a `report` task, send its result the same way.
- A window tab (Antigravity IDE) has no prompt. A message sent to it waits until its agent calls `check_inbox`, another tool of `qcode`, which hands over every message waiting for that tab with its sender's id and kind. If you are the agent in a window, call `check_inbox` at the start of every task and again when you finish one, and answer each message with `send_message`. Any agent may call it to take messages that wait for its own tab.
- QCode refuses a message from a tab without the network to a tab with it, ends an exchange between tabs after 6 messages, and lets a tab send at most 5 messages a minute; a message to `all` counts once.
";
Expand description

What QCode tells every agent of a workspace, in English, the language of the agents and of the bridge server’s own words. The same text for every harness, because two of them read the same file (AGENTS.md) and Antigravity IDE reads the others’ files as well as its own; so every sentence has to be true whichever agent reads it.