Direct Symbol Retrieval

Stop wasting tokens.
Start munching code.

jCodeMunch indexes your codebases and jDocMunch indexes your documentation — two MCP servers built for surgical AI retrieval. No more flooding context windows with thousands of lines of unrelated files or docs.

LIVE TELEMETRY SHOWING OVER
70,592,537,693
Tokens Saved by Participating Users
Since 3/3/2026
MORE THAN $356,845.28 ...SAVED!
$116.58 per installed client!
O(1)
Retrieval Speed
Buy jCodeMunch Builder FREE Non-Commercial Version Buy Munch Duo Studio Bundle
↓ See the Numbers
Target Codebase
C:\Web\APIs — Real .NET API Suite

A production .NET 10 API suite with multiple service endpoints, authorization middleware, health checks, FTP/email integrations, and data models — used verbatim for this benchmark.

📁
136
Source .cs files
Excluding build artifacts
📝
565 KB
Total source code
Raw characters
🪙
~141K
Tokens to read all files
@ 4 chars/token
🏗️
8
API sub-projects
Survey, CRUD, GiftCard, Auth…
⚙️
1,031
Lines — Program.cs alone
Massive boilerplate entry point
Benchmark
One Query. Two Worlds.

Compare a standard agent's file-based exploration vs. jCodeMunch symbol retrieval for the query: "How are survey submissions handled?"

Standard Agent (File-based)
// Iterating through likely files...
jCodeMunch MCP (Symbol-based)
// Querying symbol index...
0
Tokens Consumed (Old Way)
0
Tokens Consumed (jCodeMunch)
141,450
Tokens — Old Way
~480
Tokens — jCodeMunch
99.7%
Token Reduction
Q&A
How is this better or different from RepoMapper?

Short version: RepoMapper is a ranked repository “map” (great for orientation and “what matters?”), while jCodeMunch is symbol-accurate retrieval (great for “show me the exact code” with tiny token spend). They overlap, but they’re optimized for different jobs.

What RepoMapper does well (and when I’d use it)
  • Generates a “repo map” that highlights important files/definitions and relationships.
  • Prioritizes relevance using Tree-sitter parsing plus a PageRank-like importance ranking.
  • Best for first-pass orientation: “Which files matter for this task?” and “Where should I look next?”
If you want a fast, ranked breadcrumb trail across a new codebase, RepoMapper is a solid compass.
What jCodeMunch does differently (and why it can be “better” for agents)
  • Symbol-first, not file-first: agents search and retrieve functions/classes/methods/constants directly.
  • Byte-accurate retrieval: once indexed, pulling a symbol is O(1) via byte-offset seeking, not “read a file and hope.”
  • Stable symbol IDs: {file_path}::{qualified_name}#{kind} lets an agent “bookmark” code reliably across sessions.
  • More than a map: → agent picks files → then still needs to open/read them for details.
  • jCodeMunch flow: “Search symbols” → “Get symbol” → done. File reads become the exception, not the default.
  • Scaling behavior: maps get bigger as repos grow; targeted symbol pulls stay tiny even in massive repos.
Can I use both?
Absolutely. A nice pairing is:
  • RepoMapper for “what’s important?” and quick repo orientation.
  • jCodeMunch for “show me the exact code path” and repeatable, low-token retrieval while implementing changes.
How do I integrate jCodeMunch with Google Antigravity?

Antigravity uses a standard MCP config file — setup takes about a minute.

Step-by-step setup
  • Install the server: pip install git+https://github.com/jgravelle/jcodemunch-mcp.git
  • In Antigravity, open the Agent pane → click the menu → MCP ServersManage MCP Servers
  • Click View raw config to open mcp_config.json
  • Add the entry below, save, then restart the MCP server from the Manage MCPs pane
{
  "mcpServers": {
    "jcodemunch": {
      "command": "jcodemunch-mcp",
      "env": {
        "GITHUB_TOKEN": "ghp_...",
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}
Both env vars are optional. ANTHROPIC_API_KEY enables AI-generated symbol summaries; GITHUB_TOKEN raises GitHub API rate limits and unlocks private repos.
Companion Tool
Meet jDocMunch

jCodeMunch munches code. jDocMunch munches documentation — the same surgical retrieval approach, applied to Markdown, READMEs, specs, and any text-based docs in your repo.

📚
index_doc_local()
Index any local folder of Markdown, RST, or plain-text docs. One call, persistent index.
🔍
search_sections()
Semantic search across headings and content. Returns only the matching section, not the whole file.
📋
get_section()
Pull a specific doc section by ID. Same O(1) byte-offset retrieval as jCodeMunch symbols.
🗺
get_toc_tree()
Retrieve the full table of contents structure without loading any content — orient first, fetch later.
Same philosophy, different domain. When an AI agent needs to answer “how does the auth flow work?” it shouldn’t read 40 README files. jDocMunch gives it search_sections(“auth flow”) — one call, the right section, nothing else.

pip install git+https://github.com/jgravelle/jdocmunch-mcp.git   —   github.com/jgravelle/jdocmunch-mcp ↗
Actual Data from This Project

These are verbatim results from the jCodeMunch MCP server querying the indexed Bakery Deli Survey codebase.

Query search_symbols("survey submission handler")
Without MCP — Read Each File 141,450 tokens
READ: Authorization/AuthorizationModels.cs
→ 970 tokens consumed
READ: Authorization/AuthorizationService.cs
→ 2,840 tokens consumed
READ: BakeryDeliSurveyApi/Models/SurveyModels.cs
→ 890 tokens consumed
READ: Program.cs
→ 8,972 tokens consumed
... 128 more files ...
TOTAL: 141,450 tokens used
Time to first result: ~4.2 seconds
With jCodeMunch MCP ~480 tokens
→ code_search_symbols({
repo: "local/Bakery_Deli_Survey",
query: "survey submission handler"
})
✓ EditSurvey(surveyID, vendor_no, …) [Survey_Edit.js:52]
✓ DeleteSurvey_Confirm(surveyID) [Survey_Edit.js:43]
✓ Validate_Survey_Delete() [Survey_Edit.js:12]
✓ EditSurveyItems(surveyID) [Survey_Edit.js:17]
Symbol source (EditSurvey):
→ 396 chars, 13 lines retrieved
→ Exact function body, no noise
TOTAL: ~480 tokens used
Time to first result: 0.01 seconds
Token Usage by File
Where the Tokens Go

Each file read floods the context window. jCodeMunch retrieves only the symbol requested.

File Lines Tokens (Traditional) Tokens (jCodeMunch) Savings
Program.cs 1,031 8,972 ~0 (not needed) 100%
SurveyService.cs 520 6,102 ~340 (one method) 94.4%
AuthorizationService.cs 320 2,840 ~110 (one helper) 96.1%
Token Costs Add Up

Calculating the actual dollar impact of context-window waste on a 141K token codebase.

Traditional Way
$0.715
per query
141,450 tokens × $5.055/1M
100 queries/day = $71.50/day
Monthly cost = $2,145
Annual cost = $25,740
jCodeMunch MCP
$0.0024
per query
~480 tokens × $5.055/1M
100 queries/day = $0.24/day
Monthly cost = $7.29
Annual cost = $87.48
You Save
$0.7126
per query (99.7%)
At 100 queries/day:
Save $71.26/day
Save $2,138/month
Save $25,654/year
$25,654
Saved per year at 100 AI queries/day — on a single codebase

Scale to multiple projects and more queries per day, the savings multiply accordingly.

Architecture
How jCodeMunch Works

A pre-built symbol index lets the MCP server answer code queries in milliseconds with surgical precision.

1

Index Once

Run index_code_folder(path) to index code symbols, or index_doc_local(path) (jDocMunch) to index documentation sections. Both build a persistent local index — happens once per project.

2

AI Queries by Intent

Instead of reading files, the AI calls search_symbols(query) or get_symbol(id). The MCP server performs semantic + keyword search against the index in milliseconds.

3

Surgical Retrieval

Only the matching symbol's source code and metadata is returned — not the surrounding file, not unrelated classes. A 6,000-token file read is replaced by a 400-token symbol pull.

Licensing
Buy the tool you need. Or buy both.

Choose a single-product license for code or docs, or get both in a Munch Duo bundle. All licenses are commercial-use licenses for the specified tier.

Builder
Solo developer
Commercial use for 1 developer.
$89
bundle   $108 separate
  • jCodeMunch Builder License included
  • jDocMunch Builder License included
  • Index code and docs once
  • Precise symbol and section retrieval
Platform
Org-wide deployment
For teams needing structured retrieval.
$2,249
bundle   $2,498 separate
  • jCodeMunch Platform License included
  • jDocMunch Platform License included
  • Ideal for broader internal rollout
  • Cleanest way to standardize both tools
Need enterprise terms or a custom deployment arrangement? Contact us for enterprise licensing.