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
- Open-source Nautilo lets your AI agent DM coworkers and fetch feedback for you — Dan_Jeffries1 · 2026-09-20
- Anthropic's Head of Product Drops a 28-Minute Masterclass on Agents in Production — ifioknkem · 2026-09-20
- Teknium: Jev can't compact context well — Hermes summarizes 95% of it away — Teknium · 2026-09-20
- HarnessRouter: routing agent harnesses instead of models, a fresh infra idea — daniel_mac8 · 2026-09-20
- MCP tool naming: short generic verbs vs explicit prefixes for LLM tool selection — skvark · 2026-09-20
- GameToMac launched 10 days ago and already runs AoE IV, CS2 and Diablo IV on Apple Silicon — nickbaumann_ · 2026-09-20