{"record":{"id":"5d5ae871c0e4c51b","repo":"chenhg5/cc-connect","slug":"antigravity-q-cli-not-found-in-path-install-fro","errorCode":null,"errorMessage":"antigravity: %q CLI not found in PATH, install from: https://antigravity.google/docs/cli-overview","messagePattern":"antigravity: %q CLI not found in PATH, install from: https://antigravity\\.google/docs/cli-overview","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"agent/antigravity/antigravity.go","lineNumber":75,"sourceCode":"\tswitch v := opts[\"timeout_mins\"].(type) {\n\tcase int64:\n\t\ttimeoutMins = v\n\tcase int:\n\t\ttimeoutMins = int64(v)\n\tcase float64:\n\t\ttimeoutMins = int64(v)\n\tdefault:\n\t\tif v != nil {\n\t\t\tslog.Debug(\"antigravity: timeout_mins has unexpected type\", \"type\", fmt.Sprintf(\"%T\", v))\n\t\t}\n\t}\n\tvar timeout time.Duration\n\tif timeoutMins > 0 {\n\t\ttimeout = time.Duration(timeoutMins) * time.Minute\n\t}\n\n\tif _, err := exec.LookPath(cmd); err != nil {\n\t\treturn nil, fmt.Errorf(\"antigravity: %q CLI not found in PATH, install from: https://antigravity.google/docs/cli-overview\", cmd)\n\t}\n\n\treturn &Agent{\n\t\tworkDir:      workDir,\n\t\tmodel:        model,\n\t\tmode:         mode,\n\t\tcmd:          cmd,\n\t\tcliExtraArgs: extraArgs,\n\t\tconfigEnv:    core.ParseConfigEnv(opts),\n\t\ttimeout:      timeout,\n\t\tactiveIdx:    -1,\n\t}, nil\n}\n\nfunc normalizeMode(raw string) string {\n\tswitch strings.ToLower(strings.TrimSpace(raw)) {\n\tcase \"yolo\", \"auto\", \"force\", \"bypasspermissions\":\n\t\treturn \"yolo\"","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/agent/antigravity/antigravity.go#L57-L93","documentation":"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.","triggerScenarios":"Thrown at agent/antigravity/antigravity.go:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}