Quick Setup
Add SHARC to Claude Code with a single command:Manual Configuration
If you prefer manual configuration, add this to your Claude Code settings:Settings File Location
- macOS/Linux:
~/.config/claude-code/settings.json - Windows:
%APPDATA%\claude-code\settings.json
Usage Examples
Indexing a Codebase
Searching Code
Incremental Updates
After the initial index, SHARC automatically watches for file changes:Best Practices
1. Index Before Deep Dives
For the best experience, index your codebase before asking complex questions:2. Use Natural Language Queries
SHARC understands semantic meaning, not just keywords:3. Adjust Result Limits
For broad exploration, increase the limit:Troubleshooting
Tools Not Available
If SHARC tools don’t appear, try:- Restart Claude Code
- Check the MCP server output:
claude mcp logs sharc - Verify environment variables are set
Slow Indexing
Initial indexing can take 15-30 seconds for large codebases. Subsequent runs use Merkle diff for ~0.3s updates.Search Returns Unexpected Results
- Try rephrasing your query semantically
- Use
extensionFilterto narrow to specific file types - Check if the codebase is fully indexed with
get_indexing_status