Repository navigation
Keep Antigravity within Google's terms for personal sign-ins - #154
Merged
Merged
Conversation
Adds a per-harness Allow cross-harness subagents switch, off by default for Antigravity, checked wherever a session reaches another harness. Antigravity's adapter refuses rewind, fork, text generation, m4code's compaction fallback and handoffs into it, allows handoffs out of it only when the user starts them, reads usage only on refresh, and keeps /swarm and /teamwork. Closes #152.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Its sessions don't get start_code_session or read_code_session, and m4code refuses either call from one. mcp_off now names single tools.
This branch was successfully 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.
Closes #152. Builds on #153.
m4code ran Antigravity in ways Google's Antigravity terms (Section 6) rule out for personal Google sign-ins: auto-handoff and rewind seeded it with other conversations, it answered m4code's own title and summary prompts, and its sessions could start other agents. This PR keeps Antigravity to sessions the user types in. Each rule is a declaration in Antigravity's adapter, using the capabilities from #153.
Allow cross-harness subagents
A new switch per harness in Settings → Harnesses. With it off, other harnesses can't run that harness as a subagent, and its sessions can't start subagents or sessions on other harnesses or switch to one with
set_model. A subagent on another harness needs the switch on for both. It starts on for every harness except Antigravity, whose adapter sets the default. The check runs everywhere a session crosses harnesses:spawn_subagenttargets and the spawn itself--acprunner, which reads the current settings so a switch turned off since launch holdssend_subagent_messageto a running oneset_modelandstart_code_session, and again when a queued switch runs at the end of the turn, so turning a switch off in between holdsAntigravity's rules
Handoff::UserOnly, so auto-handoff and agent-drivenset_modelare refused./compactruns, when agy lists it./swarmand/teamworkare no longer hidden. The MCP instructions in Antigravity sessions no longer tell it to prefer m4code's tools over them, through a newmcp::PREFER_OWN_TOOLSentry in the adapter's newmcp_off, which its sessions and the--acprunner both apply.start_code_sessionorread_code_session, so an Antigravity agent can't start a session with a prompt it wrote or pull another session into its context. The adapter's newmcp_offnow names single tools as well as features. m4code also refuses either call from an Antigravity session server-side, and the instructions say the tools are off.UsageSource::everyis now anOption, andNonemeans on request only.Auto-handoff now ranks a harness with no usage reading after every harness with one, where it used to count as 0% used. Agent-driven switches and auto-handoff now also need "Allow cross-harness subagents" on for both harnesses. The switch's default lives in each agent's subagent
Provider, so a build without that adapter still saves the right default. The README terms note and the Antigravity warning cover all of the above.Verification
cargo clippy --locked --all-targets -- -D warningsis clean.cargo test: 610 unit tests pass. New tests cover:Handoff::UserOnlycargo test -- --ignored --test-threads=1 app::headless): 33 passed, 5 failed.the_editors_text_eases_to_a_wheel_notch, is a timing test. It passed when rerun alone and in the two earlier full runs.just screenshot harness-dialog, a new scenario), attarget/screenshots/harness-dialog.png. Both switches are off, and the terms warning is below them. I shortened the cross-harness switch's description after this capture because it was cut off.send_subagent_message.--acprunner appliesPREFER_OWN_TOOLS.Provider.Left as is
Not verified
The issue asks to check two things with a Gemini API key rather than a personal sign-in: that a turn stuck on
RESOURCE_EXHAUSTEDfails cleanly, and whether agy lists/compactover ACP. I have no API key here, so neither was checked.Risk
Medium for Antigravity users: rewind, fork, handoffs into Antigravity and Antigravity text generation stop working, on purpose. For the other harnesses, the cross-harness switch starts on, so nothing changes until a user turns it off. Existing state files load the switch's default.