Gemini CLI PR hardens workspace path boundaries and symlink checks across command safety
jesussamuel-byte · ghdev · 2026-09-03
A community PR (#29170) on google-gemini/gemini-cli systematically strengthens workspace boundary enforcement and symlink resolution across command safety heuristics, file discovery, and directory listing on POSIX and Windows.
- POSIX command safety: file-reading utilities (cat, grep, find, etc.) now check arguments with isPathEscapingWorkspace to block escapes outside the workspace root or via symlinks; unresolvable shell variables and expansions are treated as unsafe.
- Symlink commands: ln -s invocations now require confirmation before creating links.
- Windows: matching checks for dir, type, get-content, and more.
- Architecture: SandboxManager implementations propagate cwd alongside the workspace root so PolicyEngine.applyShellHeuristics gets effective directory context; FileDiscoveryService ignores links resolving outside the project root.
A useful reference implementation of path-boundary defenses for anyone building coding-agent sandboxes.
More from coding & agent
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05