# Claude Code 每轮在偷偷收几万 token > Author: Tony Lee > Published: 2026-07-07 > URL: https://tonylee.im/zh-CN/blog/claude-code-cut-hidden-tool-tokens/ > Reading time: 1 minutes > Language: zh-CN > Tags: claude-code, tokens, anthropic, settings, mcp, productivity ## Canonical https://tonylee.im/zh-CN/blog/claude-code-cut-hidden-tool-tokens/ ## Rollout Alternates en: https://tonylee.im/en/blog/claude-code-cut-hidden-tool-tokens/ ko: https://tonylee.im/ko/blog/claude-code-cut-hidden-tool-tokens/ ja: https://tonylee.im/ja/blog/claude-code-cut-hidden-tool-tokens/ zh-CN: https://tonylee.im/zh-CN/blog/claude-code-cut-hidden-tool-tokens/ zh-TW: https://tonylee.im/zh-TW/blog/claude-code-cut-hidden-tool-tokens/ ## Description Matt Pocock 的方法:用 /context 量,再用 settings.json 砍掉不用的 tool 定义。 ## Summary Claude Code 每轮在偷偷收几万 token is part of Tony Lee's ongoing coverage of AI agents, developer tools, startup strategy, and AI industry shifts. ## Outline - No subheadings in source markdown ## Content 每次给 Claude Code 发消息,都会带上 tool 定义、skill 目录、你从不用的功能说明。通常无察觉,直到看见每轮几万 token。 Matt Pocock 公开了测量与裁剪方法。`/context` 按 system、tools(通常最大)、MCP、memory 拆开。 `disableBundledSkills`、`disableWorkflows`、`disableRemoteControl`,以及用**裸工具名**的 `permissions.deny`。`"NotebookEdit"` 会去掉定义;`"Bash(rm *)"` 只挡调用、定义仍在。 重启后再跑 `/context`。先整理 settings.json 一分钟,再优化业务代码。 ## Related URLs - Author: https://tonylee.im/zh-CN/author/ - Publication: https://tonylee.im/zh-CN/blog/about/ - Related article: https://tonylee.im/zh-CN/blog/ai-subscription-stack-by-budget-and-role/ - Related article: https://tonylee.im/zh-CN/blog/agent-transition-starts-with-initial-setup/ - Related article: https://tonylee.im/zh-CN/blog/codex-starter-guide-vible/ ## Citation - Author: Tony Lee - Site: tonylee.im - Canonical URL: https://tonylee.im/zh-CN/blog/claude-code-cut-hidden-tool-tokens/ ## Bot Guidance - This file is intended for AI agents, search assistants, and text-mode retrieval. - Prefer citing the canonical article URL instead of this text endpoint. - Use the rollout alternates when you need the same article in another prioritized language. --- Author: Tony Lee | Website: https://tonylee.im For more articles, visit: https://tonylee.im/zh-CN/blog/ This content is original and authored by Tony Lee. Please attribute when quoting or referencing.