Cut what the model reads and how often it asks. Comucode is a Claude Code plugin written in Rust. One call finds, greps and reads. One call applies every edit. Command output is cut to what matters before the model sees it. It runs on your machine, with no account.
What it changes
Fewer tokens
Command output is cut to failures, diagnostics and a summary before the model sees it. Search returns the lines that matter and does not send again what the model was just given.
Fewer round trips
One call finds, greps and reads. One call applies every edit across every file. An edit that misses comes back with the closest matching text, so the fix takes one step.
Lower latency
Hooks are a native binary that Claude Code starts directly, with no shell and no interpreter in between. The server answers in milliseconds.
Better output
Every edit is parsed afterwards, and syntax errors it introduced come back in the same response. A type checker or linter can run on each edit and attach its result.
Benchmarks
The same work, with the same inputs, measured three ways. Lower is better in every row.
Last updated · Comucode 0.2.0 as of 15 November, Claude Code 2.1.325. · Earlier runs
- Native Claude Code
- Claude Code with no plugin, using its built-in Read, Grep, Glob, Edit, Write and Bash tools.
- Jokelcode v1-DEV
- A first-generation internal proof of concept of Comucode's potential, built mostly in Node.js.
- Comucode
- The plugin on this page, written from the ground up in Rust.
- smaller file tool definitions than native
- 62%
- 1,107 tokens on every request. Native 2,900, v1-DEV 5,100.
- faster grep than native
- 3.8×
- 62 ms over 36 MB of JavaScript. Native 236 ms, v1-DEV 214 ms.
- less diff to read than native
- 94%
- A git diff across three commits: 11,721 characters. Native 184,602, v1-DEV 23,276.
- faster hook than v1-DEV
- 31×
- 7.4 ms on every tool call. v1-DEV 229 ms. Native runs no hook.
What the model has to read
The size of each result as it reaches the model, and of the tool definitions as Claude Code counts them.
File tool definitions, on every request
Native: Read, Grep, Glob, Edit and Write. Each plugin: the Search and Edit that replace them in its agent.
- Native
- 2,900 tokens
- v1-DEV
- 5,100 tokens
- Comucode
- 1,107 tokens
62% smaller than native
Grep with context over 36 MB of JavaScript
- Native
- 915 chars
- v1-DEV
- 521 chars
- Comucode
- 386 chars
58% smaller than native
Count matches across a source tree
- Native
- 9,992 chars
- v1-DEV
- 9,586 chars
- Comucode
- 5,592 chars
44% smaller than native
Structure of a 43 KB source file
Native has no outline, so it reads the whole file.
- Native
- 47,642 chars
- v1-DEV
- 10,475 chars
- Comucode
- 3,391 chars
93% smaller than native
Read three files
- Native
- 7,526 chars
- v1-DEV
- 7,283 chars
- Comucode
- 7,034 chars
7% smaller than native
Command output
The same command each time. Native Claude Code hands the model the output unchanged.
git log, eight commits
- Native
- 7,250 chars
- v1-DEV
- 2,814 chars
- Comucode
- 793 chars
89% smaller than native
git diff across three commits
- Native
- 184,602 chars
- v1-DEV
- 23,276 chars
- Comucode
- 11,721 chars
94% smaller than native
cargo test, 91 passing
The same crate as the earlier runs, which now has 91 tests.
- Native
- 6,013 chars
- v1-DEV
- 116 chars
- Comucode
- 36 chars
99% smaller than native
cargo check, whole workspace, cold, one warning
The workspace has one crate more than on 14 November. All three keep the warning. Comucode now gives its message and location without the code frame; v1-DEV keeps the frame.
- Native
- 7,744 chars
- v1-DEV
- 467 chars
- Comucode
- 337 chars
96% smaller than native
How long a search takes
As timed by Claude Code. Median of five fresh sessions.
Grep with context over 36 MB of JavaScript
- Native
- 236 ms
- v1-DEV
- 214 ms
- Comucode
- 62 ms
3.8× faster than native
Count matches across a source tree
- Native
- 237 ms
- v1-DEV
- 258 ms
- Comucode
- 59 ms
4.0× faster than native
List 211 files by glob
Native returns only the first 100.
- Native
- 434 ms
- v1-DEV
- 41 ms
- Comucode
- 12 ms
36× faster than native
Structure of a 43 KB source file
Native reads the whole file. This is v1-DEV's first outline of the session.
- Native
- 242 ms
- v1-DEV
- 1,828 ms
- Comucode
- 9 ms
27× faster than native
Read three files
Native takes three calls, added together here. The plugins take one.
- Native
- 31 ms
- v1-DEV
- 9 ms
- Comucode
- 3 ms
10× faster than native
What the plugin itself adds
Native Claude Code runs neither of these, so Comucode is compared with v1-DEV. Each is a fresh process started with a hidden console, which is how Claude Code starts hooks and servers on Windows. The builds take turns, and each figure is the median of 45 runs after a warm-up. The hidden console is new on this run: a console program started that way is given a console of its own, which costs time the earlier harness did not show. On this harness the 14 November build of Comucode times 16.6 ms and 18.5 ms, so the hook is 9.2 ms faster than it was and the server start is unchanged.
Hook, on every tool call
- Native
- None
- v1-DEV
- 229 ms
- Comucode
- 7.4 ms
31× faster than v1-DEV
Server start to first response
- Native
- None
- v1-DEV
- 391 ms
- Comucode
- 18.9 ms
21× faster than v1-DEV
Measured on one machine: Windows 11, 32 cores, Claude Code 2.1.325. Figures will differ elsewhere, and Comucode reports the hook time on yours.
Earlier runs
Each time we publish new figures, the ones they replace stay here. Comucode’s own figure in every run, oldest first. Lower is better. A measure whose input or method changed starts a new row rather than being compared with a figure taken a different way.
What the model has to read
File tool definitions, on every request
- 11 Nov 2026
- 1,114 tokens
- 14 Nov 2026
- 1,107 tokens
- 15 Nov 2026 (current)
- 1,107 tokens
1% smaller since the first run
Grep with context over 36 MB of JavaScript
- 11 Nov 2026
- 386 chars
- 14 Nov 2026
- 386 chars
- 15 Nov 2026 (current)
- 386 chars
No change since the first run
Count matches across a source tree
- 11 Nov 2026
- 5,592 chars
- 14 Nov 2026
- 5,592 chars
- 15 Nov 2026 (current)
- 5,592 chars
No change since the first run
Structure of a 43 KB source file
- 11 Nov 2026
- 3,391 chars
- 14 Nov 2026
- 3,391 chars
- 15 Nov 2026 (current)
- 3,391 chars
No change since the first run
Read three files
- 11 Nov 2026
- 7,034 chars
- 14 Nov 2026
- 7,034 chars
- 15 Nov 2026 (current)
- 7,034 chars
No change since the first run
Command output
git log, eight commits
- 11 Nov 2026
- 793 chars
- 14 Nov 2026
- 793 chars
- 15 Nov 2026 (current)
- 793 chars
No change since the first run
git diff across three commits
- 11 Nov 2026
- 11,721 chars
- 14 Nov 2026
- 11,721 chars
- 15 Nov 2026 (current)
- 11,721 chars
No change since the first run
cargo test, 91 passing
- 11 Nov 2026
- 36 chars
- 14 Nov 2026
- 36 chars
- 15 Nov 2026 (current)
- 36 chars
No change since the first run
cargo check, whole workspace, cold, one warning
- 11 Nov 2026
- –
- 14 Nov 2026
- 605 chars
- 15 Nov 2026 (current)
- 337 chars
44% smaller since the first run
How long a search takes
Grep with context over 36 MB of JavaScript
- 11 Nov 2026
- 125 ms
- 14 Nov 2026
- 107 ms
- 15 Nov 2026 (current)
- 62 ms
2.0× faster since the first run
Count matches across a source tree
- 11 Nov 2026
- 101 ms
- 14 Nov 2026
- 86 ms
- 15 Nov 2026 (current)
- 59 ms
1.7× faster since the first run
List 211 files by glob
- 11 Nov 2026
- 28 ms
- 14 Nov 2026
- 20 ms
- 15 Nov 2026 (current)
- 12 ms
2.3× faster since the first run
Structure of a 43 KB source file
- 11 Nov 2026
- 14 ms
- 14 Nov 2026
- 13 ms
- 15 Nov 2026 (current)
- 9 ms
1.6× faster since the first run
Read three files
- 11 Nov 2026
- 7 ms
- 14 Nov 2026
- 6 ms
- 15 Nov 2026 (current)
- 3 ms
2.3× faster since the first run
What the plugin itself adds
Hook, on every tool call
- 11 Nov 2026
- –
- 14 Nov 2026
- –
- 15 Nov 2026 (current)
- 7.4 ms
Server start to first response
- 11 Nov 2026
- –
- 14 Nov 2026
- –
- 15 Nov 2026 (current)
- 18.9 ms
No longer measured this way
Hook, on every tool call
- 11 Nov 2026
- –
- 14 Nov 2026
- 12.8 ms
- 15 Nov 2026 (current)
- –
Server start to first response
- 11 Nov 2026
- –
- 14 Nov 2026
- 14.4 ms
- 15 Nov 2026 (current)
- –
cargo check, whole workspace, cold
- 11 Nov 2026
- 73 chars
- 14 Nov 2026
- –
- 15 Nov 2026 (current)
- –
Hook, on every tool call
- 11 Nov 2026
- 8.5 ms
- 14 Nov 2026
- –
- 15 Nov 2026 (current)
- –
Server start to first response
- 11 Nov 2026
- 7 ms
- 14 Nov 2026
- –
- 15 Nov 2026 (current)
- –
Open an earlier run in full
Published 14 November 2026. Comucode 0.2.0, Claude Code 2.1.325.
What the model has to read
The size of each result as it reaches the model, and of the tool definitions as Claude Code counts them.
File tool definitions, on every request
Native: Read, Grep, Glob, Edit and Write. Each plugin: the Search and Edit that replace them in its agent. v1-DEV is unchanged; Claude Code now shows its two tools to the nearest hundred.
- Native
- 2,900 tokens
- v1-DEV
- 5,100 tokens
- Comucode
- 1,107 tokens
62% smaller than native
Grep with context over 36 MB of JavaScript
- Native
- 915 chars
- v1-DEV
- 521 chars
- Comucode
- 386 chars
58% smaller than native
Count matches across a source tree
- Native
- 9,992 chars
- v1-DEV
- 9,586 chars
- Comucode
- 5,592 chars
44% smaller than native
Structure of a 43 KB source file
Native has no outline, so it reads the whole file.
- Native
- 47,642 chars
- v1-DEV
- 10,475 chars
- Comucode
- 3,391 chars
93% smaller than native
Read three files
- Native
- 7,526 chars
- v1-DEV
- 7,283 chars
- Comucode
- 7,034 chars
7% smaller than native
Command output
The same command each time. Native Claude Code hands the model the output unchanged.
git log, eight commits
- Native
- 7,250 chars
- v1-DEV
- 2,814 chars
- Comucode
- 793 chars
89% smaller than native
git diff across three commits
- Native
- 184,602 chars
- v1-DEV
- 23,276 chars
- Comucode
- 11,721 chars
94% smaller than native
cargo test, 86 passing
The same crate as the first run, which now has 86 tests instead of 70.
- Native
- 5,449 chars
- v1-DEV
- 116 chars
- Comucode
- 36 chars
99% smaller than native
cargo check, whole workspace, cold, one warning
The workspace now has one compiler warning. All three keep it; v1-DEV prints a shorter summary around it.
- Native
- 7,286 chars
- v1-DEV
- 467 chars
- Comucode
- 605 chars
92% smaller than native
How long a search takes
As timed by Claude Code. Median of five fresh sessions.
Grep with context over 36 MB of JavaScript
- Native
- 297 ms
- v1-DEV
- 320 ms
- Comucode
- 107 ms
2.8× faster than native
Count matches across a source tree
- Native
- 289 ms
- v1-DEV
- 351 ms
- Comucode
- 86 ms
3.4× faster than native
List 211 files by glob
Native returns only the first 100.
- Native
- 518 ms
- v1-DEV
- 62 ms
- Comucode
- 20 ms
26× faster than native
Structure of a 43 KB source file
Native reads the whole file. This is v1-DEV's first outline of the session.
- Native
- 379 ms
- v1-DEV
- 2,352 ms
- Comucode
- 13 ms
29× faster than native
Read three files
Native takes three calls, added together here. The plugins take one.
- Native
- 111 ms
- v1-DEV
- 12 ms
- Comucode
- 6 ms
19× faster than native
What the plugin itself adds
Native Claude Code runs neither of these, so Comucode is compared with v1-DEV. Median of nine warm runs, each a fresh process started the way Claude Code starts it. This harness is new: the 11 November build of Comucode times 12.6 ms and 15.6 ms on it, so the change from that run's figures is the method, not Comucode.
Hook, on every tool call
- Native
- None
- v1-DEV
- 228 ms
- Comucode
- 12.8 ms
18× faster than v1-DEV
Server start to first response
- Native
- None
- v1-DEV
- 426 ms
- Comucode
- 14.4 ms
30× faster than v1-DEV
Measured on one machine: Windows 11, 32 cores, Claude Code 2.1.325. Figures will differ elsewhere, and Comucode reports the hook time on yours.
What is in it
Tool
Search
Finds, greps and reads in one call: paths, globs and line ranges together, definitions by name, and outlines for fifteen languages.
Tool
Edit
Every change in one call, written atomically. Differences in whitespace and indentation are tolerated. An ambiguous match is an error, never a guess.
Tool
Sql
A schema overview and queries for PostgreSQL, MySQL and SQLite. Read-only unless you say otherwise.
Tool
Recall
Keyword search over your past sessions, kept on your machine, with keys and tokens redacted before anything is stored.
Hooks
Command output
Known tools run through a wrapper that keeps failures and drops noise. Everything else is shortened after it runs, and the full log stays on disk.
Status line
Savings, counted honestly
Tokens are measured before and after. A round trip is counted only where one call did the work of several.
Local, and careful with permissions
Comucode makes no network requests and sends no telemetry. Its state lives in one folder that you can delete whenever you like.
A command is rewritten only when the outcome is the same as without Comucode. A rule that denies it still denies it, a rule that asks still asks, and rules inside a repository count only once you have trusted it.
In development
Comucode is in development and not open to the public yet. It is tested end to end on Windows, and builds and passes its tests on Linux.