r/GoogleAntigravityCLI • u/PretendMoment8073 • 2h ago
Tools agy and MCP tool schemas: declarations dropped over about 1.5 KB, and RE2 rejecting a lookahead
I run agy as a background lane in Ptah, an open source (MIT) desktop app I built, much of it written by AI agents. Three things agy did to my MCP tool schemas:
1. Size. agy drops tool declarations over about 1.5 KB of its cached Go-escaped JSON, and my agy lane lost 11 Ptah tools that way. Since 2.1.0 schemas are compacted for agy only (1,400 B budget): annotations go first, then opaque nested values, arrays keep items.
2. RE2. A lane failed at start with 0 tool calls: a schema pattern had a negative lookahead and agy's RE2 engine rejects it. Fixed in 2.1.0:
removed: (?!-)
kept: ^[A-Za-z0-9._/][A-Za-z0-9._/-]{0,199}$
A test now flags lookaround and backreferences in every tool schema.
3. Quota (on main, not in a release yet). On agy 1.5.22 a third-party quota stop arrives as one text chunk plus end_turn, exit 0, so it looks like a finished turn. Ptah now classes a notice that opens the turn as a usage-limit failure, per pool (gemini vs claude-gpt). Known limit: one stop blocks the whole agy lane for review selection until reset.
Is the ~1.5 KB limit documented anywhere, or does it move between agy versions?
Repo: https://github.com/Hive-Academy/PtahCode
