zzzkl on X: requests from Antigravity in T3 Code weren't on Usage → Requests, while a plain agy's were. T3 Code (pingdotgg/t3code, read at 00c6adbd) runs agy for each Antigravity instance as an ACP server on the instance's own Google sign-in: `agy acp --gemini-dir <profile> --app-data-dir antigravity-acp` (antigravityAuthSupport.ts), the profile being <T3 Code's folder>/userdata/providers/antigravity/<sha256 of the instance id>, the folder $T3CODE_HOME or ~/.t3 (dev for its dev server). Those requests go to Google, never through the gateway, and magpie's agy reader looked only in ~/.gemini/antigravity-cli, so nothing counted them. agy writes the same transcript_full.jsonl there as in its own folder (agy 1.5.10 run that way in a sandbox against a fake Gemini endpoint; the fixture is its bytes). agyCallFiles now reads every T3 Code profile's antigravity-acp too, and Found lists agy for those folders, so the read consent covers them. T3 Code's folder is appdir.T3Code, shared with agent's t3Base. Siblings: `agy acp` from any other ACP client with the defaults writes to antigravity-cli, already read (agy acp --help). T3 Code's magpie instances (Claude, Codex) go through the gateway and are counted there. Run: TestAgyCallsInT3Code (default folder, T3CODE_HOME, ~/ form) red on the old calls_agy.go/access.go with 0 calls, and with Found() = [claude codex] when only access.go is old; green with the change. gofmt -l clean; go vet (darwin, GOOS=linux, GOOS=windows) of appdir, agent and sessions on mote. Full suite (go test -timeout 45m ./..., mica, at0e3d09361plus this): every package ok but agent, dirent, gateway, gui, library and profile; each red was run again at the base: TestWSLAgentFolderIsALink 2 of 12 red at the base too (filed #7150), the dirent watch tests and TestOpenCodeGoOwnFreeModelGetsNothingOfOpenCodes red at the base (#7031, #7117), TestGatewayModeListsNoOwnSessions (#7064) ok alone, library and profile hung in testenv.warmAt (#5267) and ok alone. After the rebase on14b6b9555(this commit's tree): appdir ok, agent ok but TestWSLAgentFolderIsALink (#7150), sessions ok (2335s). Rebased again onto9768b384e(its three commits touch none of sessions, agent or appdir): go build ./... and the TestAgy/T3 tests of sessions and agent ok at this commit. No GUI file is reached (no string, API or page change). Not tried: a real T3 Code signed in to Google (the profile layout is from T3's source, agy's files from a real agy acp); T3 Code in WSL; a plain agy with its own GEMINI_HOME/--gemini-dir. The calls count as agy (Antigravity CLI), not T3 Code, and the Sessions page doesn't list these conversations (agy --conversation would look in agy's own folder). T3's throwaway helper sessions delete their files, so their calls go too.
Subsystem design references
These pages describe current responsibilities, runtime paths, state, and contracts. Start with the subsystem relevant to your task, then follow its source links to verify the implementation you change.
| Subsystem | Reference |
|---|---|
| Built-in subscriptions moving to plugins | Provider and plugin ownership |
| Built-in plugins: registry, lifecycle, plugins.yml, presets, settings schemas, the window's kernel (slots, error boundary, kit) | Plugin runtime |
| Plugins that run on the gateway's requests and replies | Gateway middleware |
| Tools that plugins give, offered to every agent as an MCP server | Plugin tools |
| Plugins that await context recall and observe completed replies | Asynchronous gateway request hooks |
| Claude subscription turns across Claude Code runs | Claude subscription bridge |
| How the gateway picks a provider, key or account, and falls back | Gateway routing and fallback |
| Gateway Session Aggregation | Gateway Session Aggregation |
| Connecting an agent's config to the gateway, drift, disconnect, WSL twins | Agent wiring |
| Providers, keys, subscription accounts, refresh and allowance | Providers and accounts |
| Instructions, MCP servers, skills and RTK written into agents | Library |
| One MCP server, magpie, given to every agent in place of the Library's servers | MCP router |
| Memory shared by every agent: the memory MCP server, the digest in instructions, the Memory tab | Memory |
| One skill, magpie-skills, listing the Library's skills in place of each agent's own | Skill router |
Tray, panel, window, magpie web and the page's JSON API |
GUI app shell |
| Encrypted backups and setup synchronization over WebDAV, S3 or GitHub | Sync and backup |
A subsystem can span several packages or repositories. Its reference describes the behavior those parts provide together; it does not need to list every function.
Maintain a reference
Update the owning reference in the same PR when a change alters a documented responsibility, interface, state transition, runtime path, compatibility rule, or failure behavior. An internal refactor that preserves these contracts does not require a prose change.
Keep each fact in one reference and link to it from agent instructions or other pages. Link to source files and named symbols rather than copying implementation details that change frequently. Explain field meanings and constraints that signatures alone do not express.
For a new reference, include the responsibilities and boundaries, source of truth, main runtime paths, state transitions, important constraints, and existing verification commands. Include failure and compatibility behavior where relevant. Document current behavior separately from proposed changes; the proposal belongs in its issue or PR.
Describe a PR's semantic changes
For each affected subsystem, explain the observable change with its trigger and before/after behavior. Include changes to interfaces, state, compatibility, and failure behavior when relevant. Link the affected reference, implementation, and verification evidence. State when a refactor preserves the documented behavior.
For example, a change to plugin adoption should explain which migration state and account condition trigger it, which implementation handles requests before and after adoption, and which test exercises that transition.
This is an author-provided explanation that a reviewer verifies against the diff and surrounding code. It is not an automatically proven compatibility verdict.
Review a change
- Identify the affected subsystem and the actual runtime path, including plugin or built-in ownership.
- Compare the claimed before/after behavior with the base and head implementation. Trace relevant callers and state transitions beyond the changed lines.
- Check that changed contracts appear in the owning reference and that source links still resolve.
- Check that the cited tests or runtime evidence exercise the claimed behavior. Report checks that were not run.
A documentation update alone does not prove the implementation. Existing tests and runtime evidence remain necessary for behavior changes.