Skip to content

ctx — Context Engine

Drop-in token saver for Claude Code & MCP agents. Auto-rewrite hooks · 10 MCP tools · Repo maps · Call graphs in 7 languages · Local RAG. Single Rust binary, 100% local, zero APIs.
Terminal window
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/JaimeJunr/context-engine/releases/latest/download/ctx-engine-installer.sh | sh
ctx install --agent claude-code

Reopen your Claude Code session and the agent automatically uses ctx for command compression, repo maps, semantic search and call graphs.

The only Rust CLI that covers 5 competitive axes in a single 100% local binary.

Auto-rewrite hooks

Bash calls go through ctx exec automatically — git, cargo, npm, docker, kubectl, aws, terraform, linters compressed without the agent knowing.

Native MCP server

10 tools (ctx_exec, ctx_search, ctx_map, ctx_callers, ctx_trace…) exposed via stdio. Schemas auto-generated by schemars.

Repo map (BM25 + PageRank)

Curated signatures ranked by relevance with token budget binary-search. Personalized PageRank with seed dirs for high-precision context.

Call graph in 7 languages

TypeScript, Python, Ruby, Go, Rust, Java, Groovy. callers/callees/trace/impact ranked by query relevance — unique vs CodeGraph.

Local RAG search

Index docs, wikis, ADRs. Semantic search via embeddings (Ollama-compatible endpoint, optional). Works offline in lexical mode without Ollama.

100% local · zero APIs

No telemetry, no cloud calls, no accounts. Single Rust binary. MIT licensed. Linux x86/aarch64, macOS Intel/Apple Silicon, Windows x86.

ctxRTKCodeGraphContext ModeQMD
Auto-rewrite hook
Native MCP server
Command output compression
Curated repo map (BM25+PageRank)
Local RAG over docspartial
Token budget binary search
Call graph
Query-ranked graph results
Token budget on graph output
Single Rust binary❌ TS❌ TS❌ TS
100% local

Read the detailed comparison →

  • 271 tests passing (228 unit + 43 integration), 0 failures
  • 17 command families covered by ctx exec filters (git, cargo, npm, docker, kubectl, aws, gh, gradle, maven, pytest, tsc, eslint, ruff, mypy, go test, rubocop, terraform…)
  • 7 languages in the call graph (TS, Py, Rb, Go, Rust, Java, Groovy)
  • 10 MCP tools exposed via stdio
  • 5 platforms supported (Linux x86/aarch64, macOS Intel/Apple Silicon, Windows x86)

GitHub · crates.io · Release v0.1.0 · Changelog