Using Zaprex
Send tasks to other agentsBeta
Rex hands a task to the coding agent in another IDE, shows each step while it works, and brings the result back into your chat.
What it does
From the Rex chat you can hand a task to the coding agent in Antigravity, Cursor or Ingot. Rex shows the task in the chat as a card that moves through Sent → Picked up → Working → Result, with the agent's latest note while it works. When the agent finishes, its result appears in the same card, and Ask Rex about this gives it to Rex to review or plan the next step.
Connect an agent
Open ⋯ › Agents in the app and pick Antigravity, Cursor or Ingot. Rex creates a connection and shows its setup once. The setup adds Rex as an MCP server named rex to that IDE, with a token for this connection only:
- Cursor: click Add to Cursor, or paste the JSON into
~/.cursor/mcp.json. - Antigravity: run the
antigravity-ide --add-mcp …command Rex gives you, or add the JSON in Antigravity's MCP servers settings. - Ingot: paste the JSON into your user
mcp.jsonor.ingot/mcp.jsonin the project. Ingot keeps the token in your keychain and asks you to trust the server once.
The token only lets that agent read the tasks you send it and report back. Disconnect revokes it at once and cancels its open tasks. You can connect up to 6 agents.
Send a task
Click @ next to the message box and pick the agent, or start your message with @cursor, @antigravity (or @agy) or @ingot. The box shows To Cursor, and Send hands the message over as a task instead of asking Rex.
Then start it in the IDE:
- Cursor: Open in Cursor opens Cursor's agent with the task, or copy the
cursor-agent -p …command for the CLI. - Antigravity: copy the
antigravity-ide chat …command and run it. - Ingot: copy the prompt into the Ingot agent.
The prompt tells the agent to take the task with the rex_get_task tool, report short notes with rex_update_task, and finish with rex_finish_task. You can also just ask the agent "check Rex for tasks".
Status and results
The card and the status line under the chat follow the task live: waiting for the agent, picked up, its latest note and progress, then the result. A result that says the agent couldn't finish shows as Failed with its reason. Cancel stops a task that hasn't finished; the agent is told the next time it reports.
Tasks stay with the chat you sent them from. ⋯ › Agents also lists recent tasks and shows which agents are online (they count as online for 2 minutes after they last called Rex).
For scripts
Anything that can make HTTP calls can act as an agent with the connection's token (Authorization: Bearer …):
GET /api/rex/agents/inboxtakes the oldest waiting task.POST /api/rex/agents/inbox/{id}with{ "type": "progress", "message": "…" }or{ "type": "finish", "ok": true, "text": "…" }reports back.
The MCP endpoint is /api/rex/agents/mcp (streamable HTTP).
Limits
Up to 20 tasks a minute and 200 a day, 4,000 characters per task and 20,000 per result. Tasks are kept for 14 days. Agents work on your computer with their own permissions: Rex only passes the task and the result, so review what they changed as usual.