Repository navigation
Conversation
Register `antigravity` in LOCAL_HARNESSES/LOCAL_HARNESS_SPECS and add a LocalHarnessAdapter that runs `agy acp --stdio` over JSON-RPC 2.0: - Discover models, per-model thinking levels, and approval modes via ACP - Hand over Cohub history via `_meta.antigravity.systemPrompt.append` and resume natively with `session/resume` - Map approval modes (inherit/auto/full_access/read_only) and translate ACP `session/request_permission` into Cohub approval cards (denying all in read_only) - Stream thinking, text, tool calls/results, usage, and `session/cancel` aborts - Sync native terminal/IDE transcripts read-only via `conversation_summaries.db` (node:sqlite) and `transcript.jsonl` (with `transcript_full.jsonl` fallback) - Add web harness icon, tests with ACP fixture, and bilingual runtime docs
…e WAL busy_timeout
Replace the ACP adapter with agy's own headless interface, as every other local harness uses its native protocol. - One `agy --input-format stream-json` process per Turn; the conversation id arrives before the prompt, later Turns continue with --conversation, and a missing conversation gets Cohub history in the first prompt. - Models come from `agy models`; effort variants become thinking levels. - Read-only adds deny rules through --settings and keeps the user's own, since plan mode is not read-only and --settings replaces the deny list. - Cohub's Turn is identified by the step index the run reports. - Per-Turn usage sums step usage; result usage covers the whole conversation. - Drop invented env vars, multi-root ownership and the shared ingest change. - Use the LobeHub Antigravity logo. Cohub Session: https://cohub.live/spaces/5089f055-9dbb-4fcd-b98c-fb232353281a/sessions/21ef84da-5192-4188-8aaf-067c085d07a2
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
antigravitylocal harness for the Antigravity CLI (agy). It drives agy's own headless interface, not ACP, the same way Claude Code / WorkBuddy / Cursor use their native protocols.--helpmust list the flags a Turn uses;agy modelslists the models (a signed-out CLI is skipped with its own message). Effort variants (gemini-4-neon-high) collapse into one model with thinking levels →--effort--conversationsilently starts a new one): Cohub history goes into a<cohub_session_history>block in the first prompt, which the transcript reader strips--dangerously-skip-permissions· read-only →--settingsdeny rules for writes / commands / MCP / web, merged with the user's own deny rules.planmode is not read-only: it only prepends/planread_filesends them to the model inlineresult.usagecovers the whole conversation)~/.gemini/antigravity-cli/brain/…/transcript.jsonl(and the desktop app's~/.gemini/antigravity); project and sub-agents fromconversation_summaries.db(primary workspace only)Evidence
Real
agy1.5.14 against a mock endpoint set throughGOOGLE_GEMINI_BASE_URL(agy's supported custom-endpoint route), driven throughNativeRuntime/executeTurn:--conversationresume on the same id → tool call (run_command) with full accesscommand(...)andwrite_file(...)rejected with "Matches user-configured deny rule", even with a user allow rule; no file writtenstopReason: error, "Antigravity denied Bash: headless mode cannot ask…"aborted; deleted conversation →handoffinto a new conversation with historyinlineDatathroughread_file; per-Turn usage 100 / 200, no longer cumulativeinitarrives before stdin is read;--settingsreplacespermissions.deny(so it is merged)Tests:
runtime-antigravity.test.ts6/6; CLI suite 282/282;@cohub/protocol202/202;runtime-status-view6/6; svelte-check 0/0. Mutation checks: reverting the own-Turn match, the deny merge, the missing-conversation handoff, the usage sum or--dangerously-skip-permissionsin read-only each fails the suite.Not verified: a signed-in account (models/quota come from Google, not the mock), the desktop app's
~/.gemini/antigravitylayout, and Windows.Merge Danger
Door: two-way. Only an additive registry entry; existing harnesses and shared ingest are unchanged relative to
main.Blast Radius: Antigravity users. Deploy API / Gateway / Agent / Web with the updated
LOCAL_HARNESSESbefore publishing the CLI. Known gap: a terminal Turn that ends on an error or interrupt leaves only itsUSER_INPUTin agy's transcript, so it stays open until the next prompt.