gemini-cli PR grounds cli_help agent with runtime reference to stop flag hallucinations
dylanyunlon · ghdev · 2026-09-18
A PR (google-gemini/gemini-cli #29382) fixes hallucinations in the clihelp subagent, which suggested deprecated flags like --yolo, forgot hotkeys, and invented slash commands because it relied solely on possibly-stale static markdown docs.
The fix introduces a structured runtime reference service exporting three authoritative datasets—28 CLI flags, 33 keyboard shortcuts, 41 slash commands—synced with yargs config, keyBindings.ts, and BuiltinCommandLoader. A new getclireference tool (no filesystem access) is registered in both tool sets, and the agent's system prompt now mandates calling it first for any flag/hotkey/command question. Includes 41 new tests and 2 behavioral evals.
More from coding & agent
- Butterfly traces multi-agent failures with graphs, 62.5% accuracy vs 53.8% for log prompting — JeremyCMorgan · 2026-11-04
- Free course covers the 4 hard problems of production generative media agents — Al_Grigor · 2026-11-04
- Quota reset night: Codex back to 100% while Claude shows just 10% left — rudrank · 2026-11-04
- Self-improving software is inevitable: closing the agent-observability loop — bibryam · 2026-11-04
- Building a 7-GPU 132GB VRAM local inference rig: consolidate on EPYC or split across two systems? — infectiousstupidity · 2026-11-04
- Founder of 50-person, 12-country team says he talks to AI agents more than humans — Scobleizer · 2026-11-04