This page covers performance, stability, and search problems once Claude Code is running. For other issues, start with the page that matches where you’re stuck:Documentation Index
Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
| Symptom | Go to |
|---|---|
command not found, install fails, PATH issues, EACCES, TLS errors | Troubleshoot installation and login |
Login loops, OAuth errors, 403 Forbidden, “organization disabled”, Bedrock/Vertex/Foundry credentials | Troubleshoot installation and login |
| Settings not applying, hooks not firing, MCP servers not loading | Debug your configuration |
API Error: 5xx, 529 Overloaded, 429, request validation errors | Error reference |
model not found or you may not have access to it | Error reference |
| VS Code extension not connecting or detecting Claude | VS Code integration |
| JetBrains plugin or IDE not detected | JetBrains integration |
| High CPU or memory, slow responses, hangs, search not finding files | Performance and stability below |
/doctor inside Claude Code for an automated check of your installation, settings, MCP servers, and context usage. If claude won’t start at all, run claude doctor from your shell instead.
Performance and stability
These sections cover issues related to resource usage, responsiveness, and search behavior.High CPU or memory usage
Claude Code is designed to work with most development environments, but may consume significant resources when processing large codebases. If you’re experiencing performance issues:- Use
/compactregularly to reduce context size - Close and restart Claude Code between major tasks
- Consider adding large build directories to your
.gitignorefile
/heapdump to write a JavaScript heap snapshot and a memory breakdown to ~/Desktop. On Linux without a Desktop folder, the files are written to your home directory.
The breakdown shows resident set size, JS heap, array buffers, and unaccounted native memory, which helps identify whether the growth is in JavaScript objects or in native code. To inspect retainers, open the .heapsnapshot file in Chrome DevTools under Memory → Load. Attach both files when reporting a memory issue on GitHub.
Auto-compaction stops with a thrashing error
If you seeAutocompact is thrashing: the context refilled to the limit..., automatic compaction succeeded but a file or tool output immediately refilled the context window several times in a row. Claude Code stops retrying to avoid wasting API calls on a loop that isn’t making progress.
To recover:
- Ask Claude to read the oversized file in smaller chunks, such as a specific line range or function, instead of the whole file
- Run
/compactwith a focus that drops the large output, for example/compact keep only the plan and the diff - Move the large-file work to a subagent so it runs in a separate context window
- Run
/clearif the earlier conversation is no longer needed
Command hangs or freezes
If Claude Code seems unresponsive:- Press Ctrl+C to attempt to cancel the current operation
- If unresponsive, you may need to close the terminal and restart
claude --resume in the same directory to pick the session back up.
Search and discovery issues
If the Search tool,@file mentions, custom agents, or custom skills aren’t finding files, the bundled ripgrep binary may not run on your system. Install your platform’s ripgrep package and tell Claude Code to use it instead:
- macOS
- Ubuntu/Debian
- Alpine
- Arch
- Windows
USE_BUILTIN_RIPGREP=0 in your environment.
Slow or incomplete search results on WSL
Disk read performance penalties when working across file systems on WSL may result in fewer-than-expected matches when using Claude Code on WSL. Search still functions, but returns fewer results than on a native filesystem./doctor will show Search as OK in this case.- Submit more specific searches: reduce the number of files searched by specifying directories or file types: “Search for JWT validation logic in the auth-service package” or “Find use of md5 hash in JS files”.
-
Move project to Linux filesystem: if possible, ensure your project is located on the Linux filesystem (
/home/) rather than the Windows filesystem (/mnt/c/). - Use native Windows instead: consider running Claude Code natively on Windows instead of through WSL, for better file system performance.
Get more help
If you’re experiencing issues not covered here:- Run
/doctorto check installation health, settings validity, MCP configuration, and context usage in one pass - Use the
/feedbackcommand within Claude Code to report problems directly to Anthropic - Check the GitHub repository for known issues
- Ask Claude directly about its capabilities and features. Claude has built-in access to its documentation.