agent-intern
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGY_BIN | No | Full path to the agy binary if it is not reliably on PATH. | |
| AGY_BRIDGE_REPO | No | Custom owner/repo for the update check, e.g. 'SinanTufekci/antigravity-intern'. | |
| AGY_BRIDGE_DEBUG | No | Set to '1' to enable debug logging to stderr. | |
| AGY_WATCH_WINDOW_SIZE | No | Window size for watch mode in format 'width,height', e.g. '560,760'. | |
| AGY_BRIDGE_NO_UPDATE_CHECK | No | Set to '1' to skip the update check at startup. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server runs Antigravity (Gemini), OpenAI Codex, GitHub Copilot, Cursor, Claude Code, Grok Build (xAI, EXPERIMENTAL), opencode (any model, incl. FREE ones), Kimi Code (Moonshot, EXPERIMENTAL) and Muse Code (Meta, EXPERIMENTAL) as sub-agents on the USER'S OWN quota. Delegating here spends that quota instead of your tokens, gets a second model-family opinion, and can generate images.
OFFER IT — don't wait to be asked. When a task fits one of these, say so in ONE line before you start (backend and reason) and ask. Ask once per task; if the user declines, drop it for that task. Delegate without asking only for images, or where the user already said to:
an IMAGE: antigravity_image (antigravity_image_swarm for several).
many independent sub-tasks: agent_swarm runs them in parallel, mixing backends.
something to JUDGE, RESEARCH or ATTACK with several models: preset_swarm (jury, research, red-team, council; swarm_presets lists them).
bulk, mechanical work (a rename across 30 files, boilerplate, a first-pass port).
a heavier or different-family second opinion on a risky diff or design call. Don't offer for a couple of tool calls, for work that leans on context only this conversation has, or when the ~10-30 s round trip costs more than doing it.
Pick: antigravity_* for fast, cheap calls and images; codex_* for the hardest reasoning and a real OS sandbox; copilot_* on a Copilot plan; cursor_* on a Cursor plan (GPT/Claude/Grok models); claude_* for large refactors and careful reviews; grok_* on a SuperGrok plan; opencode_* when the user has no subscription (free models); kimi_* on a Kimi plan; muse_* on a Muse plan.
ALWAYS pass workspace=. It defaults to the server's cwd, so without it the sub-agent sees no repo: the most common mistake.
Backends:
antigravity_* (Gemini) — the only image model; no real sandbox.
codex_* (OpenAI) — a REAL OS sandbox: read-only by default, sandbox="workspace-write" to let it edit.
copilot_* (GitHub) — best-effort sandbox, not an OS boundary.
cursor_* (Cursor) — wide model menu via
model; agent-enforced sandbox (read-only = ask mode).claude_* (Claude Code) — agent-enforced sandbox; workspace-write edits files but runs no shell.
grok_* (Grok Build, EXPERIMENTAL, never live-verified) — needs SuperGrok or XAI_API_KEY; its OS sandbox works on Linux/macOS only.
opencode_* (opencode) — free
opencode/*models need no account and answer in seconds; add a key for Claude/GPT-class models. Agent-enforced sandbox.kimi_* (Kimi Code, EXPERIMENTAL, never live-verified) — NO sandbox; needs
kimi loginor an API key.muse_* (Muse Code, EXPERIMENTAL, real model unverified) — needs a Muse plan or META_API_KEY; read-only switches its write/shell/web tools off. Run an EXPERIMENTAL backend's *_status first, and tell the user plainly if it fails rather than retrying.
Mechanics:
*_continue resumes the thread rooted at that workspace; swarm workers are one-shot.
*_status spends no quota: run it when a call says "not found". Its
bridge versionrow says when a newer agent-intern release is out; if so, tell the user in one line, with the upgrade command it names. Nobody else will.watch=true opens a live browser view of the agent (same return value).
Security: every backend is an autonomous agent, and only a real OS sandbox is a hard boundary. Use trusted prompts on trusted content only.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| antigravity_askA | Best for fast, cheap tool-calling and short tasks on Gemini (agy CLI), in a NEW
conversation. Pass workspace=; without it the sub-agent sees no repo.
Follow up with antigravity_continue. Uses your AI Pro login; pick a bigger |
| antigravity_continueA | Continue the Antigravity conversation: resumes the thread rooted at this workspace,
so pass the same workspace= as the ask (without it the sub-agent sees
no repo). It resumes the exact conversation id the bridge recorded there, not agy's
global most recent, so a conversation started elsewhere in between cannot take its
place. |
| antigravity_imageA | Your only image generator: makes an image with Gemini (agy CLI) on the user's AI Pro
quota, saves it, and returns its absolute path, real format and byte size (read the
path to view it). agy picks the format, so the extension is corrected to the bytes
(out.png may come back as out.jpg). Relative paths land in |
| antigravity_image_swarmA | Best for several images at once: like antigravity_image, but one isolated worker per
prompt, run in parallel (capped at |
| antigravity_statusA | Check the agy (Antigravity) setup. Spends no quota; run it first when a call says
"not found". Its |
| agent_swarmA | Best for many independent sub-tasks: runs them IN PARALLEL across backends in one call. Each task names its backend (Antigravity, Codex, Copilot, Cursor, Claude Code, Grok, opencode, Muse), so one swarm can mix model families; every answer comes back in one labelled block, and a failed worker is reported in place. Give each task workspace=; without it that worker sees no repo. Workers are one-shot (no continue). N autonomous agents at once is N times the prompt-injection surface: trusted prompts only. |
| preset_swarmA | Best for getting something JUDGED, RESEARCHED or ATTACKED by several model families: runs a predefined panel (jury, research, red-team, council, or the user's own; swarm_presets lists them), each member in its own role on the same material, in parallel. The same panel every time, so two runs can be compared. Pass workspace=; without it the sub-agent sees no repo. Autonomous agents: trusted prompts only. |
| swarm_presetsA | List the predefined swarms preset_swarm can run, or show one in full. Spends no quota. Shows each preset's kind, members (role and backend), a jury's rubric, and where it comes from. Built-ins can be replaced or extended with JSON files in ~/.agent-intern/swarms/ (every project) or /.agent-intern/swarms/ (one project: its members run read-only and it cannot replace a built-in or user preset). Broken files are listed with the reason. |
| codex_askA | Best for the hardest reasoning and real code work, behind a REAL OS sandbox (OpenAI
Codex, |
| codex_continueA | Continue the Codex session: resumes the thread rooted at this workspace ( |
| codex_statusA | Check the Codex setup. Spends no quota; run it first when a call says "not found".
Its |
| copilot_askA | Best for agentic coding on a GitHub Copilot plan ( |
| copilot_continueA | Continue the Copilot session: resumes the thread rooted at this workspace (its
|
| copilot_statusA | Check the Copilot setup. Spends no quota; run it first when a call says "not found".
Its |
| cursor_askA | Best for agentic coding on a Cursor plan, with a wide model menu
(GPT/Claude/Grok/Composer via |
| cursor_continueA | Continue the Cursor chat: resumes the thread rooted at this workspace (its chat id),
so pass the same workspace= as the ask (without it the sub-agent sees
no repo). After a restart it resumes the newest on-disk chat for that directory.
|
| cursor_statusA | Check the Cursor setup. Spends no quota; run it first when a call says "not found".
Its |
| claude_askA | Best for large refactors and careful reviews: Claude Code ( |
| claude_continueA | Continue the Claude Code session, for hosts other than Claude Code: resumes the
thread rooted at this workspace, so pass the same workspace= as the ask
(without it the sub-agent sees no repo). After a restart it resumes the newest
Claude Code session there. |
| claude_statusA | Check the Claude Code setup, for hosts other than Claude Code. Spends no quota; run
it first when a call says "not found". Its |
| grok_askA | Best for agentic coding on a SuperGrok / X Premium+ plan ( |
| grok_continueA | Continue the Grok session (EXPERIMENTAL): resumes the thread rooted at this
workspace ( |
| grok_statusA | Check the Grok Build setup (EXPERIMENTAL). Spends no quota; run it first when a call
says "not found". Its |
| kimi_askA | Best for the Kimi K2 family (Moonshot's Kimi Code, |
| kimi_continueA | Continue the Kimi session (EXPERIMENTAL): resumes the thread rooted at this
workspace ( |
| kimi_statusA | Check the Kimi Code setup (EXPERIMENTAL). Spends no quota; run it first when a call
says "not found". Its |
| opencode_askA | Best for users with no subscription: opencode's free |
| opencode_continueA | Continue the opencode session: resumes the thread rooted at this workspace ( |
| opencode_statusA | Check the opencode setup. Spends no quota; run it first when a call says "not
found". Its |
| muse_askA | Best for Meta's Muse Spark models (Muse Code, |
| muse_continueA | Continue the Muse session (EXPERIMENTAL): resumes the thread rooted at this
workspace (after a restart, muse's own record of the newest one there), so pass the
same workspace= as the ask (without it the sub-agent sees no repo).
Errors rather than starting fresh when there is none. |
| muse_statusA | Check the Muse Code setup (EXPERIMENTAL). Spends no quota; run it first when a call
says "not found". Its |
| agent_statsA | Show how the delegation tools have been used, from a local file. Calls per backend (ok, errors, average seconds), per day and per week, backend health (error rate and the last error's category), recent swarms with where their saved answers are, token counts where a backend reports them, and Antigravity's remaining quota. Numbers only: no prompt, answer or raw error text is ever stored (turn recording off with AGENT_INTERN_NO_STATS=1). Spends no quota. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 33 tools
Within a backend the ask/continue/status split is crystal clear, but across backends the ask tools (codex_ask, claude_ask, cursor_ask, copilot_ask, grok_ask, kimi_ask, opencode_ask, muse_ask, antigravity_ask) all describe essentially the same action — delegate a prompt to an agentic coding CLI — differing only in provider, sandbox strength and cost. The 'Best for…' framing in each description helps an agent choose, but the swarm family (agent_swarm, preset_swarm, antigravity_image_swarm, swarm_presets) adds a second cluster of overlapping selection decisions.
The dominant pattern is a predictable backend_action scheme repeated across nine backends (X_ask, X_continue, X_status), which is easy to learn and generalize. Minor deviations exist in the cross-cutting tools (agent_swarm, preset_swarm, swarm_presets, agent_stats, antigravity_image), where noun-first forms are mixed with verb-first, but these are still readable and few.
At 33 tools the surface is heavy, driven largely by replicating a three-tool template across every supported backend plus image and swarm variants. Each tool is individually justified, but the multiplication produces a large selection space that a caller must scan on every delegation decision.
The delegation lifecycle is nearly fully covered: every backend has ask (new session), continue (resume by workspace-rooted thread) and status (auth/diagnosis), plus parallel swarm execution, presets, image generation and usage stats. Gaps remain around session management — no list/interrupt/cancel of in-flight work and no cleanup of stored sessions or swarm artifacts beyond the paths reported by agent_stats.