Repository navigation
Antigravity in T3: hook injectSteps context and GEMINI.md/AGENTS.md never reach the model #41131
Replies: 1 comment
|
Adding a narrower use case here: I want interactive Antigravity threads to inherit global Right now Antigravity is the odd one out across T3 providers. Interactive Claude Code and Codex threads run user hooks normally, and T3 disables hooks only on background text-generation helpers ( My concrete use case is keeping shared Open PR #43075 looks like the right prerequisite for isolating background helpers into their own hook-free profile so interactive threads can load |
Uh oh!
There was an error while loading. Please reload this page.
Environment: T3 Code v0.1.7 on Linux x64 (Ubuntu), Antigravity provider (managed
antigravity-acpruntime,oauth-personal), modelsgemini-4-hydrogenandgemini-4-neon.What works:
GEMINI_HOME(~/.t3/userdata/providers/antigravity/<hash>). Symlinkingconfig/hooks.json,config/mcp_config.jsonandconfig/skillsfrom~/.gemini/configmakes them load:PreToolUse,PreInvocationandStophooks fire, and the skills list shows up in the model context.What does not work:
SessionStartnever fires.PreInvocationpayloads have nolastUserInput(onlyinvocationNum,initialNumSteps,conversationId,workspacePaths,transcriptPathandartifactDirectoryPath).injectStepsreturned byPreInvocation(~23 KB) are never visible to the model. We tried{"systemMessage": "..."},{"systemMessage": {"systemMessage": "..."}}and{"ephemeralMessage": "..."}from https://antigravity.google/docs/hooks.md. The hook log confirms they were returned.GEMINI.md(at the root ofGEMINI_HOMEor inconfig/),config/AGENTS.md, the workspaceGEMINI.md, the workspaceAGENTS.mdnor.agents/rules/*.mdreach the model context. We checked with marker strings.Workaround we use: a skill whose description tells the agent to read the instruction files at the start of every conversation.
Request: an option to share the user's
~/.geminiconfig (instructions, hooks and MCP) with T3's Antigravity runtime, and to forward hookinjectStepsand workspace rules to the model, as the Antigravity CLI and App do. Related: #37423 and #37934 (closed as feature requests) and #40284.All reactions