Save 95% on AI Coding Tokens

Your AI agent opens file after file just to answer one question. CodeMesh hands it the exact lines instead. Same answer, a fraction of the tokens.

No credit card·Setup in minutes·Works with your existing AI coding tools
MCPClaude Code, Cursor, Devin, VS Code
YOUR CODEBASE
RELEVANT CODE
95.1% fewer tokens · 93.1% lower AI costs.

YOUR CODEBASE AS A GRAPH

RepositoryCodeFileCodeFileCodeFunctionCodeFunctionCodeClassCodeImportCodeChunkCodeChunkCodeChunk

Connects to the tools you already use

Claude.ai
Claude Code
Cursor
Devin (formerly Windsurf)
VS Code
ChatGPT
Any MCP client

Measured on 98 real questions

Same work. 93.1% less AI spend.

Without CodeMesh
25.3M tokens
With CodeMesh
1.23M tokens
95.1% fewer tokens93.1% lower measured API cost

98 real software-engineering questions on openclaw, a public repository anyone can clone and re-run. Same model, nothing excluded.

View Every Benchmark →

Same repository, two very different bills

Where is authentication handled and what depends on it?

WITHOUT CODEMESH · THE PROBLEM

AI coding agents burn tokens just to read your code

It searches, opens a dozen files, scrolls past most of them, then does the whole thing again on your next question.

258,115 tokens / questionmeasured average
WITH CODEMESH · THE SOLUTION

CodeMesh answers from a graph it already built

One query walks the symbols, callers and imports, and returns the few spans that actually answer the question.

12,524 tokens / questionmeasured average

The same question, side by side

Fewer steps to the answer. Far fewer tokens.

trace_query.log · codemesh
WITHOUT CODEMESH
01
Search repo
02
Open file
03
Read thousands of tokens
04
Follow imports
05
Open related files
06
Search callers
07
Read callers
08
Read configuration
09
Reason about answer
WITH CODEMESH
01
Search structural graph
02
Identify implementation
03
Identify callers
04
Retrieve precise context
05
Send relevant context to model
06
Reason about answer
steps
9→
6
tokens
100%→
5%

Token share is the published benchmark result: 25.3M tokens down to 1.23M across all 98 questions, so roughly 5% of the original spend remains. Per question the measured mean is 258,115 tokens down to 12,524.

In your terminal

An answer from your code, not from training data

claude: connected to CodeMesh
‣ Where do we handle token refresh, and who calls it?
⚙ search-code query: "token refresh"
→ server/auth/tokens.ts:118  score 0.94
→ engine/src/auth.rs:47  score 0.81
⚙ query-context MATCH (c:CodeFunction)-[:CALLS]->(f) WHERE f.name = 'refreshTokens'
→ 3 callers
refreshTokens() in server/auth/tokens.ts rotates the token and revokes the whole family if a spent one is replayed. Called from the token endpoint, the daemon's retry path, and auth.rs on a 401.

Inside the editor

Claude Code asks CodeMesh. The graph answers.

A public repository open in VS Code, Claude Code in the terminal. The question goes to the code-context tool, the graph walks from the repository to the lines that answer it, and the spans come back without a single file being opened.

retry.ts - openclaw - Visual Studio Code
TSretry.ts×TSdead.tsTSdefaults.ts
src › transport › retry.ts › send
ProblemsDebug ConsoleTerminalclaude △×
Claude Code v2.1.263
Opus 5 (1M context) with xhigh effort · Claude Team
~/dev/openclaw
❯
❯
▶▶ auto mode on (shift+tab to cycle) · ← for agents
⇇⎇ main⊗ 0 △ 0CodeMesh: synced · Claude Code connectedLn 72, Col 41Spaces: 2UTF-8TypeScript🔔
CodeMesh · graph · openclawidle58 nodes
nodeedgeon the route

Three real queries, three answers

Ask a question, get the lines that answer it

Three questions against public repositories, answered the way your agent gets them: the tool that handled it, and the spans it returned with file and line. No crawl, and nothing opened that turned out to be irrelevant.

What comes back over MCP
codemesh · openclawasking
Results
waiting for the question

Where your tokens actually go

You are paying twice for the same lookup

Every session, your agent rediscovers the structure of a codebase that has not changed. CodeMesh already knows it, and simply tells the agent.

95.1% fewer retrieval tokens.

Lower API billsFewer usage limitsLonger sessionsMore work per dollar

And with less irrelevant code in the context window, the model has more room left to reason about your actual problem.

Estimate your own saving

Move the sliders, see what you could save

50
$100
30%
MONTHLY SPEND
$5,000
ANNUAL SPEND
$60,000
ELIGIBLE SPEND (CONTEXT/RETRIEVAL)$1,500/mo
POTENTIAL SAVINGS
$1,427
PER MONTH
$17,118
PER YEAR

Estimates are illustrative and show potential savings on eligible context/retrieval usage only, not your entire AI bill. Actual savings depend on model pricing, coding-agent behavior, repository size, task type and the proportion of usage attributable to code retrieval and context loading.

Fast, and never stale

Built for speed and freshness, not just retrieval

SPEED

Save money without slowing your agent down

Cutting tokens is no use if your agent then sits waiting. Structural graph queries return in roughly a millisecond, so the context arrives faster than reading the file would have.

Lower cost. Less context. Fast retrieval.

FRESHNESS

Save tokens without feeding your agent stale code

Save a file and only that file is reparsed, not the whole index. The graph keeps pace with your repository, so your agent never answers from last week's code.

Backed by blake3 manifests and incremental tree-sitter parsing

Install to first answer

Up and running in three steps

Read the docs
# Install in your editor
ext install codemesh
# Supported
cursor · devin · vscode
01

Install CodeMesh

Install the CodeMesh extension in Cursor, Devin or VS Code.

# Open your repo
codemesh open ./repo
# Building structural graph
✓ indexed your symbols
02

Open your repository

CodeMesh parses it and keeps the graph in step with every save.

# mcp.json
{ "mcpServers": {
  "codemesh": {...} }
# Compatible with
claude code · cursor · mcp
03

Connect your AI agent

Point Claude Code, Cursor or any MCP client at CodeMesh. One config block.

No editor needed

The same graph, from your terminal

For Claude Code, Codex, Opencode and anything else that runs in a shell. One install, then sign in, sync a repository and point your agents at it.

Read the CLI guide
# install, needs Node 18.17 or newer
npm install -g @codemesh-app/cli
# sign in, sync, connect
codemesh login
codemesh sync ./your-repo
codemesh connect
# check it
codemesh doctor

What your agent does instead

Your agent asks once instead of reading everything

Keep coding
You write it, agents run it
RAW CONTEXT
trims stale and duplicate context
TO THE MODEL
Leaner agents
run faster, cost less

The panel, step by step

Install it, sign in, connect your agent. The panel does the rest.

The extension panel, walked through the way a fresh install goes. The tags say what each part does.

CodeMesh panel · your accountrunning
  1. 1
    Who you are signed in as

    The name and address on the account, and the plan it is on. One click from any screen, on the avatar in the header.

  2. 2
    What you have used

    Seats taken, storage against your allowance, and queries so far today. The same figures the console shows, without leaving the editor.

  3. 3
    Change the plan here

    Manage plan opens billing in the browser. Nothing about your subscription is edited inside the editor.

  4. 4
    Signing out is reversible

    It pauses syncing and agent queries on this machine and removes the tool guard. Your graph and the agent's registration stay.

1
Who you are signed in as

The name and address on the account, and the plan it is on. One click from any screen, on the avatar in the header.

The real extension, running, on a loop. Not clickable here: install it to use it.

For engineering teams

Keep your coding agent. Make it cheaper.

Nothing to switch and nothing to relearn. CodeMesh sits underneath the tools your team already has and makes the context they send much smaller.

The waste is per developer, per day

One developer wasting tokens is a rounding error. Fifty is a line item on your bill. It happens every session, on every repository, and so does the saving.

More prompts. More features. Same AI budget.

50 developers×$100/mo avg. spend
= $5,000/month

Illustrative example, not a savings guarantee

Built for real repositories

Every feature exists to cut your token bill

Exact spans, not whole files

Ask about a function and get that function back, with its file and line numbers.

Relationships already resolved

Callers, imports and call edges come back from one query instead of ten tool calls and a lot of guessing.

It remembers between sessions

The graph persists, so a brand new chat does not begin by relearning your project from scratch.

More room to think

A smaller context window leaves the model more capacity for the actual task.

Fresh on every save

Incremental sync reparses what changed, never the whole repository.

Speaks MCP

Claude Code, Cursor, Devin, VS Code and any MCP client. No proxy, no wrapper, no new editor to learn.

After you sign in

The console, page by page

The five screens you work in, running right here. Pick one to see what it tells you.

Where you land. Whether every repository synced clean, how large the graph has grown, how many seats are in use, and which agents currently hold read access.

Workspace

Overview

DW
Workspace pulse

Your graph is healthy: 6 repositories syncing clean

No failed syncs, no drift detected.

Connect agent
Repositories
6
No new repositories this week
Code nodes
159,609
Relationships
267,508
Seats
5 / 8
2 pending
Recently synced

Repositories the daemon has pushed into your graph.

View all repositories →
RepositoryBranchLast syncedNodesStatus
OPopenclawmainjust now18,412OK
REreactmain4m ago31,204OK
DJdjangomain12m ago42,715OK
Connected agents

Applications authorized to read your graph.

Claude Codehandshake passed 2m ago
Connected
Cursorhandshake passed 18m ago
Connected
OpenCodehandshake passed 1h ago
Connected
Manage agents

Example workspace (Northgate Systems). The reduction shown is the published benchmark's 95.1%.

How the graph is built

How CodeMesh cuts the context

A continuously updated structural graph of your repository. That is the whole trick, and it is why retrieval costs so little.

Tree-sitter parsingStructural code graphSymbols & call edgesImports & dependenciesBranch & commit awarenessIncremental parsingMCPBlake3 content manifests

Pricing

CodeMesh should cost a fraction of what it saves you.

The heavier your agent use, the more of your bill is simply repeated reading. That is the part CodeMesh takes out.

If CodeMesh saves more in unnecessary AI context usage than the subscription costs, it pays for itself. Calculate My Savings →

Security

Reduce AI costs without compromising your source code

Access is scoped by the credential, never by anything the client sends. So cutting your AI costs never means giving up control over your source code.

  • OAuth 2.1 with PKCE. The same flow Claude and ChatGPT already speak. Refresh tokens rotate, and replaying a spent one revokes the session.
  • Read-only by construction. Agent queries are checked before they run and executed in a read transaction. Writes are rejected twice over.
  • Tenancy from the token. Your organization id is never taken from a request body, so one account cannot read into another.
  • Revoke in one click. Disconnect an agent and its tokens die immediately, not at their next expiry.
scope
# what an agent is granted
codemesh:code.read search + read files
codemesh:query.read structural queries
codemesh:repos.read repo metadata
# what it is refused
✓ MATCH (n) WHERE n.org_id = $org_id …
✕ MATCH (n) DETACH DELETE n
✕ MATCH (n) RETURN n : no tenant filter
✕ CALL apoc.load.json(…)

Stop paying your AI to read code it doesn't need.

Connect a repository, point your agent at it, and see what the same work costs afterwards.

Cut token consumption by 95.1%.

Code more. Spend less on AI.