bzs_1 on X (on 0.1.58): with an agent's system prompt the request is
answered 429; with agy's own prompt alone it works. The bridge sent the
client's system prompt as session _meta.antigravity.systemPrompt.append,
which reaches Google inside the system instruction, and Antigravity turns
away a growing set of identity lines there (#1151): reworded ones too
("You're an interactive agent ..."). The user-turn cloak's own record
shows only Codex GPT-5 lines refused in a user turn.
Now the prompt goes in the first user turn as
<external_system_instructions>, through the same outgoing rewording and
user cloak as the rest of that turn, and agy's system instruction stays
its own. AGY_BRIDGE_SYSTEM_APPEND=1 brings the append back. A parked
session records instructionsInSession, and one parked under the other
route (or before this field) is not resumed, so a session never ends up
with the prompt in both places or in neither. 0.1.59's 400 for a
turned-away prompt (84c2a479) still applies when one gets through.
Cost, in both READMEs: the prompt now shares the 112 KiB first-prompt
budget, and agy's compaction can summarise it.
Run at this head (rebased on 84c2a479), on mica,
HOME=$(mktemp -d):
- packages/agy-cli smoke (AGY_BRIDGE_STORED_SIGNIN=skip): ALL OK (353 checks)
- packages/agy-cli bun test: 24 pass, 0 fail
- root bun test: 8753 pass, 0 fail (8773 tests, 611 files)
Red on the old code: origin/main's index.mjs with the new smoke.mjs,
8 FAILURES of 351 (the prompt appended, not in the turn; the four
"where client tools run" checks and the trailing-message cwd check, which
now read the first turn; a session parked with appended instructions
resumed).
Broken by hand: park() without instructionsInSession made three
conversation-key tests fail (the field must survive JSON).
Also asked on X (MndiLysses): agy compacting at ~256K for 1M models.
Not changed: agy 1.5.9 clamps the auto-compact threshold at 256,000 in
utils.GetCheckpointConfig (min(x, 0x3E800)), so
AGY_CLI_AUTO_COMPACT_OVERRIDE can't go above it, and the larger tiers are
held to Gemini 4 Argon. Waits on upstream #1432 (dup of #878, #1245).
Not tried: a real Antigravity request (the owner's agy account is
disabled for ToS; mote, mica and xiaomi-gpu have no agy), so neither
whether Google accepts the prompt in the user turn for every agent nor
whether compaction keeps it.