antigravity-ask
v0.3.2
Published
CLI and shared client utilities for Antigravity chat automation
Downloads
191
Maintainers
Readme
antigravity-ask
antigravity-ask is a CLI for controlling the Antigravity Ask Bridge HTTP server from the terminal.
With this CLI, you can create headless conversations in Antigravity, wait for a final response, and inspect conversations or artifacts.
Quick start
You do not need to install the CLI globally to use it.
npx antigravity-ask pingIf you prefer a global install, you can still use:
npm install -g antigravity-askAfter installation, you can verify it immediately in an environment where the bridge is running.
npx antigravity-ask pingWithout an explicit override, the CLI resolves the bridge from the current working directory, opens that folder as a workspace if needed, and waits for the matching bridge to become ready.
Auto-discovery supports single-folder workspaces only. Opening the same folder in multiple windows is unsupported and returns an ambiguity error.
Golden path
# Check bridge status
npx antigravity-ask ping
# Create a headless conversation and wait for the final response
npx antigravity-ask ask "Summarize the current bridge architecture."
# Create a headless conversation asynchronously and inspect it later
npx antigravity-ask send "Open a new chat and say hello"
# → returns { "success": true, "job_id": "xxx" }
# Poll status: GET /conversations/jobs/:jobIdURL overrides
The CLI resolves the target bridge in the following order.
--url <baseUrl>--http-port <port>AG_BRIDGE_URL- current working directory workspace discovery
Examples:
npx antigravity-ask --url http://127.0.0.1:5820 ping
npx antigravity-ask --http-port 5820 ping
npx antigravity-ask ask "Summarize the current bridge architecture."
npx antigravity-ask send "Review the failing tests"
AG_BRIDGE_URL=http://127.0.0.1:5820 npx antigravity-ask pingCommands
npx antigravity-ask ask <text>
npx antigravity-ask send <text>
npx antigravity-ask ping
npx antigravity-ask action <type>
npx antigravity-ask artifacts
npx antigravity-ask conversation <id>
npx antigravity-ask artifact <id> <path>ask creates a headless conversation and waits for the final answer.
send creates a headless conversation and returns a job_id so you can poll GET /conversations/jobs/:jobId yourself.
Legacy aliases:
npx antigravity-ask status
npx antigravity-ask new-chat
npx antigravity-ask conversationsCommon actions
npx antigravity-ask action start_new_chat
npx antigravity-ask action focus_chat
npx antigravity-ask action allow
npx antigravity-ask action reject_step
npx antigravity-ask action terminal_runCanonical action/path contracts live in src/contracts/bridge.ts.
Workspace discovery
- the CLI canonicalizes
process.cwd()and looks for a matching live bridge instance - if no bridge is found, it opens the current folder with
antigravity --new-window <cwd> - it waits for both
/pingdiscovery metadata and/lsstatusreadiness before creating headless conversations - same-folder multi-window is unsupported; close duplicates or use
--url
From source
pnpm install
pnpm --filter antigravity-ask build
pnpm exec antigravity-ask --helpRelated docs
- Root project overview: https://github.com/ddarkr/antigravity-ask#readme
- Agent-friendly CLI guide: https://github.com/ddarkr/antigravity-ask/blob/main/docs/cli-for-agents.md
- Bridge extension docs: https://github.com/ddarkr/antigravity-ask/blob/main/packages/extension/README.md
