chenhg5/cc-connect · error
antigravity: %q CLI not found in PATH, install from: https:/
Error message
antigravity: %q CLI not found in PATH, install from: https://antigravity.google/docs/cli-overview
What it means
Pre-flight validation in the antigravity agent factory (New): exec.LookPath could not find the configured antigravity CLI binary anywhere in the supervisor's PATH. Agent creation aborts because every later operation needs that binary. The %q names the command that was looked up.
Source
Thrown at agent/antigravity/antigravity.go:75
switch v := opts["timeout_mins"].(type) {
case int64:
timeoutMins = v
case int:
timeoutMins = int64(v)
case float64:
timeoutMins = int64(v)
default:
if v != nil {
slog.Debug("antigravity: timeout_mins has unexpected type", "type", fmt.Sprintf("%T", v))
}
}
var timeout time.Duration
if timeoutMins > 0 {
timeout = time.Duration(timeoutMins) * time.Minute
}
if _, err := exec.LookPath(cmd); err != nil {
return nil, fmt.Errorf("antigravity: %q CLI not found in PATH, install from: https://antigravity.google/docs/cli-overview", cmd)
}
return &Agent{
workDir: workDir,
model: model,
mode: mode,
cmd: cmd,
cliExtraArgs: extraArgs,
configEnv: core.ParseConfigEnv(opts),
timeout: timeout,
activeIdx: -1,
}, nil
}
func normalizeMode(raw string) string {
switch strings.ToLower(strings.TrimSpace(raw)) {
case "yolo", "auto", "force", "bypasspermissions":
return "yolo"View on GitHub (pinned to 4000b2338a)
Solutions
- Install the Antigravity CLI following the linked docs
- Ensure the binary directory is on the PATH of the cc-connect daemon user
- Or set the agent cmd option in config.toml to the absolute binary path
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at agent/antigravity/antigravity.go:75 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of chenhg5/cc-connect@4000b2338a (2026-09-06).
Data as JSON: /api/errors/5d5ae871c0e4c51b.
Report an issue: GitHub.