Ermöglicht Coding Agents token-bewusste ripgrep-Suchen und atomare Multi-File-Edits, um den Context Window zu entlasten.
Auch bekannt als BasilSkyWalk/parecode
- Stars
- 5
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.7.0
- Letzter Commit
- 14. Sept. 2026
- Lizenz
- MIT
Was ist parecode MCP?
parecode ist ein MCP server. Ermöglicht Coding Agents token-bewusste ripgrep-Suchen und atomare Multi-File-Edits, um den Context Window zu entlasten.
Zusammenfassung generiert aus dem README des Projekts
Über parecode MCP server
Coding Agents, die große Codebases navigieren müssen, ohne das Context Window zu erschöpfen, können parecode nutzen, um token-bewusste Suchen und Multi-File-Edits durchzuführen. Durch die Nutzung der installierten ripgrep-Instanz des Systems bietet der Server Tools wie ParecodeSearch und ParecodeEdit an, die mehrere traditionelle Tool-Aufrufe in einzelne, effiziente Operationen zusammenfassen. Dieser Ansatz ist darauf ausgelegt, sowohl den Token-Verbrauch als auch die Anzahl der Turns zu reduzieren, die für komplexe Refactoring-Aufgaben benötigt werden.
Entwickler, die Claude Code nutzen, können den Server lokal via npm einrichten. Der Installationsprozess beinhaltet einen optionalen SessionStart-Hook, um diese spezialisierten Tools zu priorisieren, sowie ein parecode-explore Plugin, das für explorative Fragen einen günstigeren Subagent nutzt. Das System läuft vollständig lokal auf der Maschine ohne Netzwerkaufrufe oder Telemetrie, sodass Code-Daten und Session-Logs privat bleiben. Nutzer können ihre Effizienz über lokale Session-Logs überwachen, die die eingesparten Tokens schätzen.
Was du damit machen kannst
- 1Effizientes Multi-File RefactoringEin Agent kann jede Aufrufstelle eines spezifischen Symbols über mehrere Dateien hinweg finden und Änderungen an allen gleichzeitig in einem einzigen Batch anwenden.
- 2Kontextbewusste Code-ExplorationEin Entwickler kann fragen, wo eine bestimmte Komponente liegt oder wie eine Funktion arbeitet, wobei ein kostengünstiger Subagent genutzt wird, um Tokens der Hauptsession zu sparen.
- 3Gezielte Code-SucheSuche gleichzeitig nach mehreren verwandten Mustern, um Event-Flows zu verfolgen, ohne separate grep-Befehle auszuführen.
- 4Erweiterung von SuchergebnissenNachdem eine bestimmte Zeile gefunden wurde, kann ein Agent den sichtbaren Code-Bereich erweitern, ohne die gesamte Datei erneut lesen zu müssen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du parecode MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenparecode MCP in Claude Code installieren
$ claude mcp add parecode -- npx -y parecodeparecode MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"parecode": {
"command": "npx",
"args": [
"-y",
"parecode"
]
}
}
}parecode MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"parecode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"parecode"
]
}
}
}parecode MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"parecode","type":"stdio","command":"npx","args":["-y","parecode"]}'parecode MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"parecode": {
"command": "npx",
"args": [
"-y",
"parecode"
]
}
}
}parecode MCP in Codex installieren
$ codex mcp add parecode -- npx -y parecodeparecode MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.parecode] command = "npx" args = ["-y", "parecode"]
parecode MCP in Gemini CLI installieren
$ gemini mcp add -s user parecode npx -- -y parecodeparecode MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"parecode": {
"command": "npx",
"args": [
"-y",
"parecode"
]
}
}
}Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarbasilskywalk/parecode is public and reachablegithub.com/basilskywalk/parecode ↗Bestanden
- Paket nennt dieses Repository als Quelleparecode names basilskywalk/parecode as sourcenpmjs.com/package/parecode ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)Sigstore attestation for parecodenpmjs.com/package/parecode/v/0.7.0#provenance ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-09-14github.com/basilskywalk/parecode ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from parecodeBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten114 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenparecode
An MCP server that gives coding agents context-window-aware search and safe, atomic multi-file edits — built to cut token usage on large codebases without giving up correctness.
Requirements
- Node.js 20 or newer (ESM, native test runner, stable
fetch-free runtime). - ripgrep on
PATH(rgon Linux/macOS,rg.exeon Windows). Install via your package manager:- macOS:
brew install ripgrep - Debian/Ubuntu:
apt install ripgrep - Windows:
winget install BurntSushi.ripgrep.MSVCorchoco install ripgrep
- macOS:
- A supported MCP client (Claude Code is the reference target).
Parecode does not bundle ripgrep — it shells out to the system binary so you stay on a single, audited version.
Install
npm install -g parecode
Pure JavaScript — no native dependencies, no C/C++ toolchain required.
Quick start
Register the server with Claude Code:
parecode init # user scope; installs MCP + SessionStart hook + parecode-explore plugin (defaults)
parecode init --scope project # commit MCP config + hook to the repo
parecode init --no-hook # register MCP only; skip the SessionStart hook
parecode init --no-plugin # skip the parecode-explore Claude Code plugin
parecode init --print # print the equivalent command without running it
parecode init --remove-hook # remove the SessionStart hook (MCP stays registered)
parecode init --remove-plugin # uninstall the parecode-explore Claude Code plugin
The SessionStart hook injects a short directive at the start of each session telling Claude to prefer ParecodeSearch / ParecodeEdit over the equivalent native tools. Without it, Claude's first-party Grep / Read / Edit tools typically win by default and Parecode's token savings never land. The hook payload is a static string; parecode hook session-start prints it. Pass --no-hook if you would rather opt in explicitly per session via your own tooling.
The bundled parecode-explore Claude Code plugin adds a read-only subagent (pinned to Haiku, given only ParecodeSearch) and a matching skill, so exploration-style questions ("where is X?", "how does Y work?", "find all usages of Z") get answered in a cheap, isolated context window instead of burning tokens in your main session. init registers a local marketplace pointing at the npm-installed copy and runs claude plugin install parecode-explore@parecode. If your Claude Code build doesn't support the plugin subcommand the step soft-fails with a warning and the rest of init still succeeds; pass --no-plugin to skip it entirely, or --with-plugin to make any plugin-step failure hard-fail.
Then in any session, the ParecodeSearch, ParecodeExpand, and ParecodeEdit tools become available. Run parecode doctor to confirm registration, hook status, and .codegraph/ pairing if present.
What it does
ParecodeSearch— ripgrep-backed search that returns matches with surrounding context windows in a single call, with per-file byte chunking so large result sets do not blow up your context.patternaccepts a single string or an array of strings; arrays dispatch parallel ripgrep runs sharing the samepaths/contextLines, and each match carries apatterns: string[]field listing which input patterns contributed. One call replaces N back-to-back greps for related-keyword flow tracing.- Overlapping or adjacent windows within the same file are merged automatically (gap ≤
contextLines), with bridging lines loaded from disk. - Per-match and response-level
estimatedTokensare returned so the agent can self-budget before consuming results. - Opt-in
relatedSymbols: truesurfaces likely event-flow neighbours (Handle<X>,On<X>,<X>Handler/Listener/Closed/Completed/Started) discovered in each match, capped at 10. - Omitted line ranges are reported so the agent can widen with
ParecodeExpandwithout re-reading the whole file.
ParecodeExpand— widen a known(file, startLine, endLine)range with optionalcontextBefore/contextAfterpadding. Designed as the natural follow-up to aParecodeSearchmatch. Returns the sameestimatedTokensshape so the same self-budgeting heuristic applies. Prefer this over a full-fileReadafter locating a line.ParecodeEdit— batched multi-file edits with whitespace-tolerant fuzzy matching (and an opt-in Unicode-lookalike mode), pre/poststatconflict detection, and atomic same-directory rename writes. Cross-file edits run in parallel.parecode stats— local JSONL session log with token-saved estimates. Zero network. Zero telemetry.
Measured savings
On search-and-edit tasks — finding call sites, multi-file refactors, "do X to every Y" — Parecode cut cost ~40% and assistant turns ~75–83% in matched A/B tests:
| repo | task | cost | turns |
|---|---|---|---|
| TypeScript | find every call site of a symbol, edit each (17 sites, 8 files) | −43% | −83% |
| Unity / C# | find every call site of a symbol, edit each (11 sites, 5 files) | −41% | −76% |
Method: the identical task run with Parecode on vs off, a fresh session per run, n=3 per arm with alternated order, Sonnet 4.6. Savings come from collapsing many Grep / Read / Edit round-trips into single ParecodeSearch / ParecodeEdit calls — so the win scales with how much searching and multi-file fan-out a task involves, and shrinks toward zero on single-file or reasoning-heavy tasks. These are measured per-session token and cost numbers, not the estimates in the scan below.
Retroactive Savings Scan
Curious how much Parecode would have saved you if you had installed it earlier? You can scan your past Claude Code sessions:
parecode stats --retroactive --since 30d
Sample output:
Parecode — last 30d (retroactive scan)
─────────────────────
Sessions: 42
Tool calls: 156
Calls batched (est): 89
Tokens saved (est): 1,200,000
* Note: Retroactive savings are estimated, not measured.
Privacy disclaimer: This scan runs entirely locally against Claude Code's session transcripts (~/.claude/projects/**). By default, it parses only structured fields (tool names, paths, patterns, and token counts). It does not send any data over the network. The --include-content flag (which allows reading tool input/output) is strictly opt-in and loudly flagged if used.
Privacy
Parecode performs no network calls at runtime. Session logs are written to your OS data directory (resolved via env-paths) with 0600 permissions on Unix. Logs are self-maintaining: each server start prunes session data older than 30 days and caps the envelope log at 5 MB. Prune earlier with parecode prune <days> or wipe the data dir. Update to the latest release (and refresh hooks/plugin) with parecode update.
License
parecode MCP Fragen
Wie füge ich parecode MCP zu Claude Code hinzu?
Führe claude mcp add parecode -- npx -y parecode in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich parecode MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Ist ripgrep in parecode enthalten?
Nein, es wird auf das System-Binary zugegriffen, sodass du deine eigene, geprüfte Version nutzt.
Wie viel kann ich mit parecode an Kosten sparen?
In A/B-Tests wurden die Kosten um ca. 40 % und die Anzahl der Assistant-Turns bei Search-and-Edit-Aufgaben um 75–83 % gesenkt.