FR
Agents

Antigravity

Configure Antigravity CLI in Palabre with the experimental PTY adapter.

Antigravity CLI can be used as a Palabre agent through the agy command. This integration lets Antigravity join a debate with Codex, Claude Code, OpenCode, Mistral Vibe, or Ollama.

Palabre launches Antigravity through its cli-pty adapter. This mode matters: agy --print answers in a real console but may exit without capturable output when launched with plain Node pipes.

Install Antigravity CLI

Install Antigravity CLI from Google's official documentation, then verify that the command is available:

agy --help

If Antigravity was installed after your first Palabre configuration, open palabre again or synchronize known agents explicitly:

palabre config --sync-agents
palabre doctor

The palabre doctor command then confirms whether Palabre can find agy and expose the agent as available.

Why Palabre uses a pseudo-terminal

Regular CLI adapters capture stdout and stderr through pipes. Antigravity expects a real console before it produces a usable response. The cli-pty adapter provides that pseudo-terminal, removes terminal control sequences, and returns the final text to the orchestrator.

This difference explains why replacing cli-pty with cli can produce empty output even when agy exits with code zero.

Configure --print-timeout

Antigravity receives the prompt as an argument after --print. Palabre also adds --print-timeout 5m0s in its default configuration:

agy --print-timeout 5m0s --print "Review this architecture"

--print-timeout limits Antigravity's internal wait. The Palabre timeoutMs field separately protects the complete process. Keep the two values consistent: the Palabre timeout should not expire before the timeout passed to agy.

For a long run, adjust both values in palabre.config.json and keep enough margin for process startup and shutdown.

JSON configuration

The configuration generated by Palabre looks like this:

"antigravity": {
  "type": "cli-pty",
  "command": "agy",
  "args": ["--print-timeout", "5m0s", "--print"],
  "promptMode": "argument",
  "role": "reviewer",
  "tier": "primary",
  "timeoutMs": 300000
}

Keep promptMode: "argument": Antigravity expects the prompt after --print, not on standard input.

Troubleshoot common errors

If Antigravity does not answer through Palabre:

  1. run agy --help to confirm that the CLI is reachable;
  2. run palabre config --sync-agents, followed by palabre doctor;
  3. make sure the agent uses type: "cli-pty" and promptMode: "argument";
  4. check that --print-timeout and timeoutMs are not too short;
  5. run agy --print-timeout 5m0s --print "Reply with OK" directly to isolate an Antigravity issue.

A short message reporting an exhausted individual quota is classified by Palabre as a usage limit. Increasing the timeout does not fix that condition.

Migrating from Gemini CLI

Google says Gemini CLI will stop serving requests for free individual users and Google AI Pro/Ultra users on June 18, 2026, while Enterprise customers keep access according to their licenses.

Official reference: Transitioning Gemini CLI to Antigravity CLI

Palabre no longer generates Gemini CLI in new configurations and no longer exposes it in presets. The old Gemini notes are kept in docs/archive/gemini-en.md for context.

Palabre examples

palabre codex-antigravity "Compare this architecture approach" -t 4
palabre antigravity-ollama "Critique this migration plan" -t 3

See also the agent overview, available presets, and troubleshooting guide.