Reduce useless context by 60% with Claude Code '/doctor'

Haram

@haram

For those using Claude Code, have you tried entering the /doctor or /checkup commands in your terminal session after the recent update? With the base model upgraded to Claude Sonnet 3.5, you now have access to a massive 1 million token context window. As context expands, managing unnecessarily wasted tokens in a timely manner has become crucial for both cost and speed.

Anthropic has responded by completely revamping the /doctor command from a simple installation check tool into a highly useful 'context audit (optimization) tool.' Now, when you run this command within an interactive session, it automatically checks 10 items, including unused tools (MCP), redundant or overly long CLAUDE.md files, and heavy hooks that slow down execution. Just check the warning messages on the screen and lightly press the f key to have it automatically optimize everything for you. It's surprisingly intuitive and convenient ๐Ÿ˜„

bash
# Claude Code ํ„ฐ๋ฏธ๋„ ์„ธ์…˜ ์•ˆ์—์„œ ์‹คํ–‰
/doctor

# ์ผ๋ฐ˜ ์‰˜์—์„œ ์„ค์น˜ ์ƒํƒœ์™€ ๊ฒฝ๋กœ๋งŒ ๋น ๋ฅด๊ฒŒ ๋ณด๋ ค๋ฉด
claude doctor

If you just want to quickly check your local state, it's fine to run claude doctor directly from your terminal shell. Since the latest patch also fixed a bug that caused it to hang when exploring certain paths, try running it now to clear out all that heavy, accumulated context buildup!