|
| 1 | +# jcodemunch-mcp — TOKEN_SAVINGS.md |
| 2 | + |
| 3 | +# Token Savings: jCodeMunch MCP |
| 4 | + |
| 5 | +## Why This Exists |
| 6 | + |
| 7 | +AI agents waste tokens when they must read entire files to locate a single function, class, or constant. |
| 8 | +jCodeMunch indexes a repository once and allows agents to retrieve **exact symbols on demand**, eliminating unnecessary context loading. |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +## Example Scenario |
| 13 | + |
| 14 | +**Repository:** Medium Python codebase (300+ files) |
| 15 | +**Task:** Locate and read the `authenticate()` implementation |
| 16 | + |
| 17 | +| Approach | Tokens Consumed | Process | |
| 18 | +| ---------------- | --------------- | ------------------------------------- | |
| 19 | +| Raw file loading | ~7,500 tokens | Open multiple files and scan manually | |
| 20 | +| jCodeMunch MCP | ~1,449 tokens | `search_symbols` → `get_symbol` | |
| 21 | + |
| 22 | +**Savings:** ~80.7% |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Typical Savings by Task |
| 27 | + |
| 28 | +| Task | Raw Approach | With jCodeMunch | Savings | |
| 29 | +| ------------------------ | ------------ | --------------- | ------- | |
| 30 | +| Explore repo structure | ~200k tokens | ~2k tokens | ~99% | |
| 31 | +| Find a specific function | ~40k tokens | ~200 tokens | ~99.5% | |
| 32 | +| Read one implementation | ~40k tokens | ~500 tokens | ~98.7% | |
| 33 | +| Understand module API | ~15k tokens | ~800 tokens | ~94.7% | |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | +## Scaling Impact |
| 38 | + |
| 39 | +| Queries | Raw Tokens | Indexed Tokens | Savings | |
| 40 | +| ------- | ---------- | -------------- | ------- | |
| 41 | +| 10 | 400k | ~5k | 98.7% | |
| 42 | +| 100 | 4M | ~50k | 98.7% | |
| 43 | +| 1,000 | 40M | ~500k | 98.7% | |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Key Insight |
| 48 | + |
| 49 | +jCodeMunch shifts the workflow from: |
| 50 | + |
| 51 | +**“Read everything to find something”** |
| 52 | +to |
| 53 | +**“Find something, then read only that.”** |
| 54 | + |
| 55 | +--- |
0 commit comments