Skip to content

fix(agent): load the Antigravity profile from a fixed directory - #6921

Merged
M4n5ter merged 2 commits into
rust-previewfrom
codex/managed-antigravity-profile
Nov 15, 2026
Merged

M4n5ter merged 2 commits into
rust-previewfrom
codex/managed-antigravity-profile

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Maka prepares one static AGY agent definition at ~/.maka/external-agents/antigravity/agent/.agents/agents/maka.md and passes its root as a fixed --add-dir argument on every launch. The project remains the primary workspace. AGY uses the existing login and native session history, and receives the current Maka MCP endpoint through ACP.

Agent launch and disable leave the user's Antigravity configuration alone. Standalone agy discovers the Maka agent when launched with that same directory argument.

Migration

Download the one-time Python migration. Run python3 migrate_maka_antigravity.py to preview, then pass --apply to remove the identified old registration. The script identifies the previously generated Markdown and the draft's directory link by ownership or target, and preserves user-created settings and definitions. The updated Maka build prepares the new definition on first use. The first resume of a session that had no extra directory can miss part of its cached prefix.

Verification

  • macOS local checks passed for the two native AGY tests and both Antigravity Host integration tests, including restart, resume, and automation. Formatting and Biome also passed.
  • Windows VM as an ordinary user, with the real AGY 1.5.9 binary, the Rust profile materializer from this change, and a loopback Gemini-compatible test endpoint. Two ACP processes completed session/new and session/resume using the same native session and fixed directory. Both discovered the current MCP endpoint with rotated credentials. The resumed request contained the first reply and the Maka agent instructions. The user's agent file stayed byte-for-byte identical. Windows OAuth was outside this test.
  • The migration passed preview, repeated apply, owned-file and draft-link removal, and user-owned profile checks on macOS and Windows.
  • In the real Sonnet cache experiment, four interleaved resumes with and without the fixed directory had identical uncached input counts. One separate fixed-directory resume missed the cache. The first switch from the original launch to the added directory reduced cache reads for one turn, and the next resume recovered.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

OpenAI Codex implemented the launch and migration changes and verified them on macOS and Windows.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@M4n5ter M4n5ter changed the title fix(agent): keep Antigravity configuration under Maka fix(agent): load the Antigravity profile from a fixed directory Nov 15, 2026
@M4n5ter
M4n5ter marked this pull request as ready for review November 15, 2026 04:23
@M4n5ter
M4n5ter merged commit 17613b5 into rust-preview Nov 15, 2026
8 of 9 checks passed
@M4n5ter
M4n5ter deleted the codex/managed-antigravity-profile branch November 15, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant