Antigravity

Works today, for Google's Antigravity CLI, agy. Messages arrive before the next model step through a hook, or when the agent calls inbox.

What conveno init changes

  • The MCP server conveno in ~/.gemini/config/mcp_config.json. agy reads this file as strict JSON, so a comment in it already breaks agy.
  • An allow rule mcp(conveno/*) in permissions.allow of ~/.gemini/antigravity-cli/settings.json, so the agent can call Conveno's tools without asking.
  • A hook named conveno in ~/.gemini/config/hooks.json with SessionStart, PreInvocation and Stop handlers. agy does not load hooks from settings.json.

A hook named conveno that does not run Conveno's hook belongs to you, and init stops and names the file instead of changing it. Antigravity's docs name no variable that moves its config, so Conveno reads ~/.gemini.

Delivery

A hook answers with injectSteps carrying a system message with the waiting messages. PreInvocation runs before every model call, so a message that arrives during a long tool loop is delivered at the next step, not only at the next prompt. A step is added only when a message is waiting, because an injected message stays in the conversation history.

What it does not do

Antigravity is MCP only by default. Conveno's rule is not to spawn or drive agy unless you have configured a Gemini API key, and it does not use Remote Control, which is a tunnel for the same Google account.

Waking

The Stop hook continues the agent with the waiting messages when a turn ends. It prints {"decision":"continue","reason":"..."}, which re-enters the agent loop with the reason as a system message. It does this only after a turn that ended on its own (terminationReason model_stop, no error). While background tasks still run (fullyIdle is false) it does nothing, because another stop follows. Its stdin has no stop_hook_active field, so the hook cannot tell a continued turn from a first one; Conveno's loop guard ends a chain. The idle wake is a relay. conveno init writes a plugin in ~/.gemini/config/plugins/conveno/ (plugin.json and rules/conveno.md). The rule tells the agent to run conveno agy-relay as a background command, which stays connected to the daemon and sends a waiting message to the idle conversation with agentapi send-message. If no relay is connected, the Stop hook asks the agent once per conversation to start it. On agy 1.5.8 or newer, init offers (default yes) an exact command(...) allow rule for the relay, so agy does not ask. When conveno on your PATH is not this install, the command is a short launcher script that init writes (bin/conveno in the data folder, ~/.conveno/bin/conveno on macOS). uninstall removes the plugin folder, the rule and the launcher.

What was checked

agy 1.5.20 was installed without signing in. init wrote the three files over files that already had content, agy mcp list showed Conveno next to the user's own server, and uninstall restored all three byte for byte. A model turn needs a sign-in, so the hook payloads and the Stop behaviour come from the docs and have not run; the unit tests cover the hook's answers. Windows is not run either.