"Don't read .env" in CLAUDE.md isn't enforcement: out-of-scope reads hit 27.7%
Worried-Addition-836 · reddit · 2026-12-03
An analysis of how coding agents (Claude Code, Codex) pull files into context shows that prompt-based rules like "don't read .env" are not enforcement: agents still grep live tokens, .claudeignore is bypassed, and MCP servers provide a second door that path-based deny rules don't cover. A May paper across 7,500 agent sessions found out-of-scope actions in 5.4%–27.7% of normal tasks, with stronger models reading more. The author proposes per-session read logging (observe, not block) as a mitigation.
More from coding & agent
- Agent-native GTM teams need full-stack plus agent engineering, LangChain job post shows — BraceSproul · 2026-12-06
- Cohere Team to Host NeurIPS Panel on Shipping Frontier Research into Regulated Industries — Julianfmack · 2026-12-06
- Agentic commerce in action: snap a QR code and your agent pays for parking and donations — jeff_weinstein · 2026-12-06
- Voice agent dev: even fastest LLM API leaves laggy responses, users hang up — FalseSort5750 · 2026-12-06
- Liquid Glass UI: open-source WebGL2 React components that bend the page — GCWebDesigner · 2026-12-06
- OpenCode's Tinsel Alpha goes free: 1M-context multimodal coding model, rumored to be Muse Spark 1.4 underneath — talkaboutdesign · 2026-12-06