Tutorial

How to Pair Local Code Search with Scavio for Claude Code

An r/ClaudeAI post launched Semble for local code search. Walk-through pairing local code search with Scavio for out-of-repo grounding.

An r/ClaudeAI launch documented Semble cutting Claude Code grep+read token cost dramatically on large repos. This walks pairing local code search MCP with Scavio for out-of-repo grounding (framework docs, recent issues, Stack Overflow).

Prerequisites

  • Claude Code CLI
  • A large repo (>100K LOC) where grep+read is expensive
  • Scavio API key
  • (Optional) Semble or another local code search MCP

Walkthrough

Step 1: Install Semble (or equivalent) for in-repo code search

Local index, no cloud upload.

Bash
# Per Semble docs (verify current install command at the project's README):
# git clone <semble-repo> && cd semble && <install steps>

Step 2: Add Semble as MCP to Claude Code

One CLI line.

Bash
claude mcp add semble <semble-mcp-url-or-path>

Step 3: Add Scavio as MCP for out-of-repo grounding

Web search, framework docs, etc.

Bash
claude mcp add scavio https://mcp.scavio.dev/mcp --header 'x-api-key: $SCAVIO_API_KEY'

Step 4: Tell Claude in the system prompt which tool to pick when

Explicit routing rules.

Text
// 'For in-repo code questions, call semble.search. For framework docs, recent issues, or Stack Overflow questions, call scavio.search. Do not use grep+read for in-repo lookups.'

Step 5: Try a typical task and watch the trace

Should NOT see grep+read fanout.

Text
// 'Find where we handle pagination in the API and update the cursor logic to support backward pagination.'
// Trace should show: semble.search('pagination') → 3-5 ranges → edit those.

Step 6: Compare token cost vs the old grep+read pattern

Honest measurement.

Text
// Run the same task with Semble disabled, then enabled. Expect 80-98% token reduction on large repos.

Python Example

Python
# No code; this is a Claude Code config tutorial. Input tokens drop from tens of thousands to hundreds per query on large repos.

JavaScript Example

JavaScript
// Same — MCP config, not application code.

Expected Output

JSON
Claude Code with two clearly-named MCPs: Semble (in-repo) and Scavio (out-of-repo). Token cost on large repos drops dramatically; routing is explicit; no overlap.

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Claude Code CLI. A large repo (>100K LOC) where grep+read is expensive. Scavio API key. (Optional) Semble or another local code search MCP. A Scavio API key gives you 500 free credits per month.

Yes. The free tier includes 500 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

An r/ClaudeAI post launched Semble for local code search. Walk-through pairing local code search with Scavio for out-of-repo grounding.