Gemini CLI PR adds AST-aware ast_search tool for precise symbol navigation in agent workflows
dylanyunlon · ghdev · 2026-09-18
PR #29396 on google-gemini/gemini-cli adds an AST-aware astsearch tool so the agent can navigate code by symbol instead of guessing line ranges or reading whole files.
- astAnalysisService: a zero-dependency regex-heuristic parser supporting TypeScript, JavaScript, Python, Go, Rust and Java, using brace counting (indentation for Python) to find exact symbol bounds; designed as a fallback when ast-grep isn't installed.
- astsearch tool with three scopes: symbol returns exact start/end lines plus signature for any named class/function/interface; outline returns a compressed structural skeleton of a file in one call; map produces a repo-wide overview of top-level symbols.
- Integrations: the codebaseinvestigator subagent gets the tool and is prompted to read outlines before full files; readfile truncation messages now point to astsearch; the research-phase prompt recommends map/outline for initial discovery.
More from coding & agent
- Teknium: Jev can't compact context well — Hermes summarizes 95% of it away — Teknium · 2026-09-20
- HarnessRouter open-sources a unified API to run Codex, Claude Code and more as agent backends — daniel_mac8 · 2026-09-20
- HarnessRouter: routing agent harnesses instead of models, a fresh infra idea — daniel_mac8 · 2026-09-20
- GameToMac launched 10 days ago and already runs AoE IV, CS2 and Diablo IV on Apple Silicon — nickbaumann_ · 2026-09-20
- DialKit 2.0 ships: open-source real-time UI tuning tool with prompts for coding agents — LinusEkenstam · 2026-09-20
- Jev loses to Gemini on 1,565-email classification benchmark, but dev still wants it in production — socialwithaayan · 2026-09-20