Skip to content

[3843 by Claude Opus 5.5] Extensions: Antigravity (agy) runtime (MCP servers, skills, ProPR MCP) - #3851

Merged
integry merged 1 commit into
3841-epic-extension-library-r77from
3843/claude-opus-5-5-extensions-antigravity-ag-20261127-1634-6kf
Nov 27, 2026
Merged

integry merged 1 commit into
3841-epic-extension-library-r77from
3843/claude-opus-5-5-extensions-antigravity-ag-20261127-1634-6kf

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3843

Branch: 3843/claude-opus-5-5-extensions-antigravity-ag-20261127-1634-6kf
Commits: ✅ Changes committed (f41a4fb)


AI Processing Completed

Execution Details:

Summary:
Antigravity is now turned on in the capability map for extensions, ProPR MCP and skills. The new tests and the updated capability tests pass, and lint and typecheck of the changed core files are clean.

One test still fails: "catalog stdio is callable…" in packages/core/test/extensionProfiles.test.ts, with stdio fixture closed. The unmodified HEAD copy of the test fails the same way in this container, so this change didn't cause it.

What the run does now

  • Launch: AntigravityAgent.executeTask already went through executeWithExtensions. The Docker call now also sets extensionAgentLaunch and passes the tokens and stdio secrets by variable name only. The container now joins the run's Docker network instead of always using bridge, so it can reach http://api:4000.
  • MCP config: the worker sends a config template with no tokens in it (new builder in packages/core/src/agents/mcpLaunch/antigravityMcpLaunch.ts). Because agy doesn't expand ${VAR}, the entrypoint writes the real token into <runtime HOME>/.gemini/config/mcp_config.json. The file is container-only, owned by node, mode 0600, deleted when agy exits and never synced back to the host ~/.gemini. agy itself is started without the token variables.
  • exclusiveMcp: the run's file replaces any existing mcp_config.json. Without it, the files are merged and the run's servers win on a name clash.
  • 401 handling: before starting agy, the entrypoint sends one initialize to each remote server with the run token. A 401 stops the run straight away with exit 3 and PROPR_MCP_AUTH_FAILED: MCP server "<name>" refused the run credential (HTTP 401)…, instead of agy waiting in OAuth discovery.
  • Skills: staged bundles are copied to <runtime HOME>/.gemini/skills/<name>/, starting from an empty folder when exclusiveMcp is set. This needed one new optional field, toolPolicy.skills (bundle id and name), filled in by extensionLaunch.
  • Docs and existing tests: agent-extensions.md has a new "Antigravity configuration" section, which covers the workspace .agents/, .claude/, .gemini/ and .cursor/skills folders. Tests that used Antigravity as the example of an unsupported runtime now use Vibe. The refusal message now reads "Claude, Codex or Antigravity".

Tests: test/antigravityExtensionLaunch.test.ts checks that the token is absent from the Docker args and the template. It also runs the real entrypoint with a stub agy, a local HTTP server and a stub stdio server. That covers the token being only in the 0600 file, the agent env lacking it, the file being deleted and never reaching the host dir, the exclusive replace versus the merge, the skills copy, and the 401 stop.

I also ran the installed agy 1.5.15 (not logged in) through the entrypoint against a local stub server. It read the rendered file and sent the substituted header. I couldn't reproduce the full 240 s hang without a login.

Limits you should know about

  • Mid-run 401s still hang: the check runs only at launch. The gateway also returns 401 when a grant's budget runs out, or when more than 4 requests are in flight at once. agy connects to all servers at the same time when it starts, so a run with 5 or more gateway servers could hit that limit and hang anyway.
  • Gateway budget:
    • agy sends server/discover first. The gateway rejects that method with a 403, and a failed request uses the full 1 MiB response allowance from the run's 16 MiB budget, once per server per launch.
    • The launch check also uses one of the run's 256 calls per server.
    • A gateway change that answers server/discover cheaply would be worth doing.
  • GET to the gateway answers 401: agy also sends a GET to each server URL. That route isn't registered, so ProPR's general API login check answers it with 401. In my test agy behaved the same whether that GET got a 401 or a 405, so I left the API alone.
  • Display: MCP tool steps in the logs and live view depend on # Antigravity task runs show only the final summary: no execution events, no live activity #3830, which is still open. I didn't take on any of its parsing work.

There are no preview images: no UI code changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (9 files)
    • packages/core/src/agents/agentToolPolicy.ts (+1/−1)
    • packages/core/src/agents/impl/AntigravityAgent.ts (+7/−6)
    • packages/core/src/agents/impl/utils/antigravityDockerArgsBuilder.ts (+14/−3)
    • packages/core/src/agents/mcpLaunch/antigravityMcpLaunch.ts (added, +65/−0)
    • packages/core/src/agents/mcpLaunch/index.ts (+3/−0)
    • packages/core/src/agents/types.ts (+5/−0)
    • packages/core/src/extensions/extensionLaunch.ts (+1/−1)
    • packages/shared/src/agentRuntimeCapabilities.ts (+4/−3)
    • scripts/antigravity-entrypoint.sh (+146/−5)
  • Low risk (7 files)
    • docs/docs/features/agent-extensions.md (+36/−7)
    • packages/api/test/taskSubmissionRoutes.test.ts (+2/−2)
    • packages/core/test/extensionProfiles.test.ts (+6/−4)
    • test/agentDefinitionsContract.test.ts (+2/−2)
    • test/agentRunTrigger.test.ts (+10/−10)
    • test/agentRuntimeCapabilityGates.test.ts (+3/−3)
    • test/antigravityExtensionLaunch.test.ts (added, +208/−0)

Diff size: 16 files changed, +513/−47 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3843.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

Antigravity is now turned on in the capability map for extensions, ProPR MCP and skills. The new tests and the updated capability tests pass, and lint and typecheck of the changed core files are clean.

One test still fails: "catalog stdio is callable…" in `packages/core/test/extensionProfiles.test.ts`, with `stdio fixture closed`. The unmodified HEAD copy of the test fails the same way in this container, so this change didn't cause it.

What the run does now
- Launch: `AntigravityAgent.executeTask` already went through `executeWithExtensions`. The Docker call now also sets `extensionAgentLaunch` and passes the tokens and stdio secrets by variable name only. The container now joins the run's Docker network instead of always using `bridge`, so it can reach `http://api:4000`.
- MCP config: the worker sends a config template with no tokens in it (new builder in `packages/core/src/agents/mcpLaunch/antigravityMcpLaunch.ts`). Because agy doesn't expand `${VAR}`, the entrypoint writes the real token into `<runtime HOME>/.gemini/config/mcp_config.json`. The file is container-only, owned by node, mode 0600, deleted when agy exits and never synced back to the host `~/.gemini`. agy itself is started without the token variables.
- `exclusiveMcp`: the run's file replaces any existing `mcp_config.json`. Without it, the files are merged and the run's servers win on a name clash.
- 401 handling: before starting agy, the entrypoint sends one `initialize` to each remote server with the run token. A 401 stops the run straight away with exit 3 and `PROPR_MCP_AUTH_FAILED: MCP server "<name>" refused the run credential (HTTP 401)…`, instead of agy waiting in OAuth discovery.
- Skills: staged bundles are copied to `<runtime HOME>/.gemini/skills/<name>/`, starting from an empty folder when `exclusiveMcp` is set. This needed one new optional field, `toolPolicy.skills` (bundle id and name), filled in by `extensionLaunch`.
- Docs and existing tests: `agent-extensions.md` has a new "Antigravity configuration" section, which covers the workspace `.agents/`, `.claude/`, `.gemini/` and `.cursor/skills` folders. Tests that used Antigravity as the example of an unsupported runtime now use Vibe. The refusal message now reads "Claude, Codex or Antigravity".

Tests: `test/antigravityExtensionLaunch.test.ts` checks that the token is absent from the Docker args and the template. It also runs the real entrypoint with a stub agy, a local HTTP server and a stub stdio server. That covers the token being only in the 0600 file, the agent env lacking it, the file being deleted and never reaching the host dir, the exclusive replace versus the merge, the skills copy, and the 401 stop.

I also ran the installed agy 1.5.15 (not logged in) through the entrypoint against a local stub server. It read the rendered file and sent the substituted header. I couldn't reproduce the full 240 s hang without a login.

Limits you should know about
- Mid-run 401s still hang: the check runs only at launch. The gateway also returns 401 when a grant's budget runs out, or when more than 4 requests are in flight at once. agy connects to all servers at the same time when it starts, so a run with 5 or more gateway servers could hit that limit and hang anyway.
- Gateway budget:
  - agy sends `server/discover` first. The gateway rejects that method with a 403, and a failed request uses the full 1 MiB response allowance from the run's 16 MiB budget, once per server per launch.
  - The launch check also uses one of the run's 256 calls per server.
  - A gateway change that answers `server/discover` cheaply would be worth doing.
- GET to the gateway answers 401: agy also sends a `GET` to each server URL. That route isn't registered, so ProPR's general API login check answers it with 401. In my test agy behaved the same whether that GET got a 401 or a 405, so I left the API alone.
- Display: MCP tool steps in the logs and live view depend on #3830, which is still open. I didn't take on any of its parsing work.

There are no preview images: no UI code changed.

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=8
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 27, 2026
@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 8)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR enables Antigravity extensions through the shared capability map, Docker launch policy, and disposable runtime configuration. The change is appropriately scoped and appears merge-ready, conditional on the pending checks completing successfully.

✅ Credential handling — Remote tokens travel through named environment variables, are rendered into a mode-0600 runtime file, and are removed from the agent’s environment.

✅ Launch integration — The task launcher now forwards extension mounts, credentials, and the selected Docker network through the existing execution infrastructure.

✅ Focused coverage — The added tests exercise the real entrypoint with fixtures covering configuration replacement, merging, skills, cleanup, stdio credentials, and launch-time 401 refusal.

This assessment uses static analysis of the supplied diff and context; no commands were run. Current checks report 19 passed, five pending, and no failures.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise actual client startup

The entrypoint tests use a stub agent that reads the generated configuration directly. A follow-up integration test using the supported agy version against the real gateway would help validate discovery requests, simultaneous server connections, and authentication failures after preflight. These are useful compatibility checks beyond the configuration and launch behavior demonstrated by the current tests; the supplied code does not establish a concrete additional blocker.

S2: 🟢 Clarify exclusive configuration scope

The new documentation correctly notes that workspace MCP configuration remains available even during exclusive extension runs. Consider explicitly stating that exclusiveMcp replaces the runtime-home configuration only, so operators do not interpret it as excluding repository-defined servers. This is an optional clarification of the documented behavior.

Score

The implementation is cohesive and includes targeted regression coverage, with no verified merge blocker in the supplied code. Final confidence remains conditional on the pending checks and actual-client compatibility coverage.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 43s
  • Tokens: 66,744 (65,908 in / 836 out)
  • Cost: $0.57

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 27, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3843 by Claude Opus 5.5] Extensions: Antigravity (agy) runtime (MCP servers, skills, ProPR MCP) ✅❽ [3843 by Claude Opus 5.5] Extensions: Antigravity (agy) runtime (MCP servers, skills, ProPR MCP) Nov 27, 2026
@integry
integry merged commit ae97230 into 3841-epic-extension-library-r77 Nov 27, 2026
60 checks passed
@propr-dev propr-dev Bot changed the title ✅❽ [3843 by Claude Opus 5.5] Extensions: Antigravity (agy) runtime (MCP servers, skills, ProPR MCP) [3843 by Claude Opus 5.5] Extensions: Antigravity (agy) runtime (MCP servers, skills, ProPR MCP) Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant