Claude Code: Security First, But at What Cost?

2025-06-08

This post delves into the inner workings of Anthropic's Claude Code, a coding assistant. By intercepting communications between Claude Code and the Anthropic API using mitmproxy, the author reveals that it's slower and more expensive than alternatives like Cursor. This is due to its stringent security policies and multi-layered tool invocations. Claude Code meticulously assesses the security of every bash command and uses multiple tools (View, GlobTool, Bash, etc.) to process user requests, resulting in extra LLM calls and increased cost. While this approach prioritizes security, it compromises efficiency. Although Claude Code boasts a superior UX compared to other tools, its cost and speed require further optimization.

Development security policy