Skip to content

feat(antigravity): full agent parity (context links, canvas control, models, permissions, usage, chat, handoff, recent) - #1215

Merged
eneskirca merged 1 commit into
eneskirca:mainfrom
FabricioCasali:feat/antigravity-parity
Oct 18, 2026
Merged

eneskirca merged 1 commit into
eneskirca:mainfrom
FabricioCasali:feat/antigravity-parity

Conversation

@FabricioCasali

Copy link
Copy Markdown
Contributor

Summary

Brings Google Antigravity CLI (agy) up to full agent parity in NodeTerm, measured against real agy 1.2.7 / 1.3.5 sessions and transcripts (~/.gemini/antigravity-cli/brain/<conversationId>/.system_generated/logs/transcript_full.jsonl and ~/.gemini/antigravity-cli/history.jsonl):

  • Capabilities (src/shared/agents/config.ts):
    • Adds antigravity to CONTEXT_LINK_CAPABLE, CANVAS_CONTROL_CAPABLE, PERMISSION_MODE_CAPABLE, MODEL_SWITCH_CAPABLE, USAGE_CAPABLE, CHAT_CAPABLE + CHAT_LOCAL_ONLY, and TRANSFER_SOURCE_CAPABLE (while keeping CLAUDE_TRANSCRIPT_READABLE strictly ['claude']).
  • Approval / Permission Modes (src/shared/agents/approval-mode.ts):
    • Maps plan -> --mode plan, acceptEdits -> --mode accept-edits, auto -> --mode auto, and bypassPermissions -> --dangerously-skip-permissions (manualIsDefault: true).
  • Model Discovery & Switching (src/shared/agents/model-gateway.ts, src/main/index.ts, src/server/agent-status.ts):
    • Parses TSV output from agy models (<id>\t<Display Name>, including Gemini 4 Argon High/Medium, Gemini 3.1 Pro, Claude 4.6, GPT-OSS) via antigravityModelsFrom and routes modelsForAgent to Antigravity's own catalogue.
  • Transcript Locator & Path Validation (src/core/handoff/locate.ts, src/core/claude-accounts-core.ts):
    • Implements locateAntigravity(sessionId) strictly keyed by sessionId under ~/.gemini/antigravity-cli/brain/<sessionId>/.system_generated/logs/ and allows ~/.gemini/antigravity-cli/brain in isSafeLocalTranscriptPath.
  • Context Links (src/core/context-link-core.ts, src/core/context-link.ts, src/core/context-link-render.ts):
    • Parses USER_INPUT (<USER_REQUEST>), PLANNER_RESPONSE (assistant text + tool_calls), GENERIC (tool outputs), and ERROR_MESSAGE while ignoring SYSTEM_MESSAGE / CHECKPOINT.
  • Context Window Meter (src/core/model-window.ts, src/core/antigravity-session.ts, src/core/context-ensure.ts, src/main/index.ts, src/server/agent-status.ts):
    • Computes live context usage from the latest PLANNER_RESPONSE (input_tokens + cache_read_tokens) and resolves model context windows via antigravityWindowFor (from <USER_SETTINGS_CHANGE> in turn 0 or hook modelName), wired in lockstep across desktop and Server Edition.
  • Chat Panel (⌘M), Cross-Agent Handoff & Open Recent (src/core/antigravity-chat.ts, src/core/transcript-ipc.ts, src/main/handoff/render-antigravity.ts, src/core/recent-conversations.ts):
    • Adds paged/unpaged chat transcript reader, markdown handoff renderer, and recent conversations discovery combining brain/<id> with history.jsonl workspace paths.

Test Plan

  • npm run typecheck
  • npx vitest run src/core/antigravity.test.ts src/shared/agents/config.capabilities.test.ts src/shared/agents/approval-mode.test.ts src/shared/agents/model-gateway.test.ts src/shared/agents/launch.test.ts src/core/context-ensure.test.ts
  • Validated end-to-end in a live packaged Windows build (0.4.2-antigravity) with two linked Antigravity 1.3.5 (Gemini 4 Argon) nodes exchanging messages (nodeterm.sh send / reply) and reading each other's transcripts via context.sh summary / terminal.

@FabricioCasali
FabricioCasali force-pushed the feat/antigravity-parity branch 2 times, most recently from 7b3f9d4 to f9195e4 Compare October 16, 2026 12:34
…models, permissions, usage, chat, handoff, recent)
@FabricioCasali
FabricioCasali force-pushed the feat/antigravity-parity branch from f9195e4 to 92cca13 Compare October 17, 2026 13:13
@eneskirca
eneskirca merged commit e08fc14 into eneskirca:main Oct 18, 2026
5 checks passed
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.

2 participants