Repository navigation
Add Antigravity subagents, compact per-provider limits, and one card and dialog per subagent provider - #130
Merged
Merged
Conversation
…rovider its own card and dialog Antigravity (`agy acp`) is a third custom-subagent provider beside Codex and OpenCode. Claudiu sets its model and thinking level through ACP config options, capped at the highest level the model offers. With Allow edits on it runs in accept-edits mode. Read-only runs use a Gemini folder in Claudiu's data, whose PreToolUse hook allows only reading and searching tools and denies when Claudiu can't be started. While its subagents are on, the sidebar shows Antigravity's limits for each group of models, from `agy -p /usage`, which costs no tokens and is asked every five minutes. Each provider is now one `Provider` value in subagents.rs, and per-provider data is an `AgentMap`, so adding one doesn't mean touching every match. State files keep their flat keys. The mod reads each provider's display name from CLAUDIU_SUBAGENTS. Settings > Custom subagents shows one card per provider, with its switch and a summary of what Claude gets. The card opens that provider's dialog: its switch, Allow edits and a searchable model list.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
With Claude, Codex and three Antigravity pools on, the footer stacked a label line, a bar and a caption line per limit and grew very tall. Each limit is now one bar with its percent and reset countdown written inside, under "5 HOUR" and "7 DAY" shown once. Every source gets a labelled row with the same two columns, so a pool with only a weekly limit keeps its bar under the other weekly bars, and a thin line separates providers. A reading older than 15 minutes shows its age in place of the countdown. "Gemini 4 Argon" is labelled "ARGON".
Claude's and Codex's rows show only their logo, tinted like their bars. Antigravity's pools share its logo, so they keep their names beside it. The logos are Lobe Icons' mono SVGs (MIT); Simple Icons has no OpenAI or Antigravity logo.
The Antigravity rows read GEMINI, CLAUDE/GPT and ARGON beside one shared logo. Each pool now shows the logos of the models it holds, tinted Antigravity's colour: Gemini's, Claude's and OpenAI's side by side, and Gemini's with "Ar" for Gemini 4 Argon, a named Gemini model with limits of its own. A pool Claudiu doesn't know keeps Antigravity's logo and its shortened name.
Claude Code shows a Codex, OpenCode or Antigravity subagent as having made 0 tool uses, since its steps run outside Claude Code. A parent Claude that read that count once asked a reviewer to do its whole review again, spending two more turns of the person's Claude usage. The steps heading now says the count is expected.
…ding at launch Codex's limits appeared at launch because Claudiu reads them from Codex's own logs, while Antigravity's waited about five seconds for agy to answer. Each provider now says in its Provider value how to read its limits, how often, and which colour and logos its rows use. Claudiu keeps the last reading of each in state.json, so every provider's rows show at launch and refresh in the background, and a failed read keeps the last one. The sidebar draws every provider through the same rows, with a narrower logo column so the bars start closer to the logos.
A reading older than 15 minutes showed its age instead of its reset countdown, so readings saved before launch, and Claude's own after a quiet spell, never said when their limit resets. The reset time stays true, so it now shows whenever it is still ahead.
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.
Summary
Claude could hand tasks to Codex and OpenCode but not to Google Antigravity. Adding a provider meant editing a
matchin a dozen places. The Custom subagents page was also one long stack of every provider's switches, models and edit settings, which was hard to read.agy acpis a third provider. Claudiu sets the model and thinking level with ACP'ssession/set_config_option. The level is capped at the highest one the chosen model offers, since Gemini 3.8 Flash, for one, has noxhigh. With Allow edits on, it runs in accept-edits mode. On Windows, Claudiu also findsagyin%LOCALAPPDATA%\agy\binwhen it isn't on the PATH.agy acptakes no settings. Read-only runs instead start agy with--gemini-dirpointing to a folder in Claudiu's data. That folder'sconfig/hooks.jsonholds a PreToolUse hook that runsclaudiu --acp --read-only-hook, which allows only reading and searching tools. agy runs a tool whose hook gives no answer, so the hook script answersdenyitself when Claudiu can't start. Its files are written only when they change, and moved into place whole, so a run in progress never reads a half-written hook. Sign-in lives in the system keyring and carries over. The user's own Antigravity rules, skills and MCP servers don't load in read-only runs, and the settings text says so.agy -p /usage --output-format json. agy answers that itself from 1.1.11 on, at no token cost, and Claudiu checksagy --versionbefore asking, so an older agy never spends a model turn on it. It asks every five minutes, and a failed ask keeps the last reading.assets/LICENSE-LOBE-ICONS), because Simple Icons has no OpenAI or Antigravity logo. Each provider now declares in itsProviderhow to read its limits, how often, and its colour and logos, so one ingest step and one set of sidebar rows serve them all. The last reading of each is kept in state.json, so Antigravity's rows show at launch the way Codex's did, instead of after agy's five seconds.Providervalue insubagents.rs, holding its names, program, texts and the few ways its ACP conversation differs. Per-provider data usesAgentMap<T>. Adding a provider takes a variant, its place inAgent::ALL, and aProvider. State files keep their flatcodex_*/opencode_*keys, so older builds still read them. The mod now takes each provider's display name fromCLAUDIU_SUBAGENTSinstead of a table of its own.Evidence
cargo test --lockedpasses (534, 7 ignored),cargo clippy --locked --all-targets -- -D warningsis clean, andclaude plugin test modpasses 28.Live, against agy 1.5.12 signed in with Google AI Pro, through
claudiu --acp:Cargo.toml, writeprobe.txtand runecho ran > ran.txt: it reported the version, and both the write and the command were refused, with neither file created. Before the hook, the same run createdprobe.txt;probe.txt;effort: maxon Gemini 3.8 Flash first failed withThinking level "xhigh" is not offered; it now runs athigh;New tests cover the hook's allowlist, the hook script denying when Claudiu is missing (it runs the real
cmdscript), hook files left alone when unchanged, the version gate,/usageparsing, the thinking-level cap, the state file round trip, the cards and dialog flow, the sidebar meters, and the dialog fitting a 720×420 window.GPT Sol reviewed the diff over two rounds. It found that concurrent runs could rewrite the hook mid-read, that an old agy would spend a turn on every poll, and that the dialog could overflow small windows. All three are fixed.
After the limits rework, one more GPT Sol review round found that a reading older than 15 minutes hid its reset countdown, which would have hit every reading saved before launch. Fixed and tested. Its other finding, that logos should turn yellow or red with a bar near its limit, was declined: the logos tell providers apart, and the bar already shows the warning.
540 Rust tests pass, clippy is clean, and the 28 mod tests pass.
Risk
read_file,grep_search, …). A tool agy adds later is denied until it is listed.--gemini-dir, the.shhook) are tested by unit tests only.