agy Tab
Situation when you type /agy |
What happens |
|---|---|
The project already has a terminal worker that runs agy |
Its tab opens, or gets the focus if it is open |
agy is on PATH, no worker yet |
An agy worker is added to .mbm/workers.json and its tab opens; toast added agy to workers.json |
agy is not on PATH |
Toast "agy is not on PATH: install it with agy install (see the agy documentation)"; nothing is written |
A worker named agy runs another command |
Toast a worker named "agy" already runs another command; rename one of them |
/agy runs the agy CLI in a terminal tab of this project and joins it to the team bus exactly as
/claude does: it can list the workers, message main and the others, and use the shared
board (Teamwork). The command is also in the palette as Open an agy tab. mbm2
never reads, copies or stores agy's sign-in, and never runs the real CLI except in your tab.
Open It
- In the project, type
/agyand pressreturn. - The new tab takes the focus. Answer agy's own first-run questions (trust, sign-in) in the tab yourself: team messages are pasted, and an unanswered dialog would swallow them.
- Switch back with
alt+1; the tab is restored on the next start if it was open.
The same tab opens from /worker → Add agy (shown only when agy is on PATH; otherwise the page
lists Add agy (not found) with the install hint), from the palette, or from a workers.json entry.
What Is Written
{ "workers": [ { "name": "agy", "kind": "terminal", "command": "agy" } ] }
Any terminal worker whose command is agy (or agy.exe, or a path ending in it) gets the same team
wiring, whatever its name. Pass agy's own flags in args, and a model in model:
{ "name": "agy", "kind": "terminal", "command": "agy", "args": ["--mode", "plan"], "model": "gemini-3-pro" }
Model Choice
| Where | Effect |
|---|---|
The worker's model |
Passed as --model <id>; the id is agy's own (agy --help), not provider/model |
A team role's card whose agent line is agy <model>, or has a Model: line |
The role's tab runs agy --model <model> |
| Neither | agy's own default |
agy On The Team
mbm2 registers the team's MCP server with agy before the tab starts and removes it when the tab
closes (checked with agy 1.5.17, 2026-11-26):
- In the worker's folder it runs
agy mcp add --type http --header "Authorization: Bearer <token>" mbm2_team_<worker> <url>. The name carries the worker, so two agy tabs open at once (a reviewer and an auditor) keep their own entries and closing one never removes the other's. - agy saves it in
~/.gemini/config/mcp_config.json, which it writes readable by everyone (0644);mbm2makes the file private (0600) because it holds the run's token while the tab is open. - The tab starts with
--settings <file>: a private (0600) file for this run only, which agy never saves, holdingpermissions.allowfor the team tools (mcp__mbm2_team_<worker>__<tool>:list_workers,send_message,list_tasks,add_task,update_task, and the report and lead tools), and--modelfollows when the worker has amodel. - When the tab closes
mbm2runsagy mcp remove mbm2_team_<worker>.
Check once, inside the agy tab: agy mcp list shows mbm2_team_<worker>; ask agy to list its tools to
see whether the permission spelling lets a message through without a prompt (not yet confirmed on a
real host). Each agy mcp run is bounded to five seconds. A crash of mbm2 can leave the entry
behind; agy mcp remove mbm2_team_<worker> clears it, and the next start of that worker replaces it.
agy_mcp
| Value | How the tab gets the server |
|---|---|
persist (default) |
agy mcp add before the tab starts and agy mcp remove when it closes, as above |
settings |
An mcpServers block in the run's --settings. agy 1.5.17 refuses it (--settings: unknown setting "mcpServers") and the tab does not start; it is kept for a later agy that reads servers from a run's settings |
Set it in mbm2.json (global or project, see Config): { "agy_mcp": "persist" }.
Hand Text To agy
- In
main, select the paragraph (or nothing for the last reply), press<leader>f, pickagy. - The text is pasted into agy's input. Go to the tab and press Enter to submit this manual hand-off.
Team messages use guarded delivery, which can attempt Enter automatically.
A Team Role That Runs agy
A role card whose agent line names agy is a terminal tab, not a session:
- **Agent:** agy gemini-4-hydrogen-high
mbm2 team start acme/acme-dev then opens mbm2 in the role's folder with that tab focused
(mbm2 --dir <folder> --open acme-dev), and /worker lists the role as role · agy · <folder>.
The tab starts without a prompt: the start block mbm2 team setup keeps in AGENTS.local.md and
CLAUDE.local.md is what tells the role to read its card and inbox.
With --attach
With a remote runtime the tab runs agy on the server, which needs it installed and signed in, and
the team bus is off, so agy runs without the team tools.
Pitfalls
| Symptom | Cause and fix |
|---|---|
agy has no mbm2_team_<worker> tools |
agy mcp list in the tab; if the entry is missing, agy mcp add failed (see mbm2's log) or agy_mcp is settings, which agy 1.5.17 refuses |
The tab exits at once with unknown setting "mcpServers" |
agy_mcp is settings; remove it or set persist |
| agy asks before each team tool | The rule spelling in permissions.allow differs in your agy: allow the tools once in the tab |
mbm2_team listed in agy mcp list outside mbm2 |
A persist run was cut short: agy mcp remove mbm2_team |
| A team message is still in agy's input | Check Needs You and inspect the draft before submitting it. See Teamwork. |
could not add agy: workers file has comments; edit it raw to keep them |
Add the worker to workers.jsonc by hand |
Published from revision f88fc66f 2026-11-30