Claude Code experimental code mode bypasses hooks via MCP server execution
Security researchers tested how agent code mode—where AI agents write scripts to execute multiple tool calls at once—affects security and token usage. They found that server-side code mode limits what per-call hooks can see, allowing policy-breaking tool calls to slip through, but static analysis of the generated scripts before execution can effectively block unauthorized actions. Open article →