In short.
Code Context Engine (CCE) is an open-source Python command-line tool and Model Context Protocol (MCP) server for developers who use AI coding assistants to explore and modify code. It builds a local index of your code so assistants can search it instead of re-reading files. It is aimed mainly at developers who want to cut the input tokens their assistant uses. The main catch is that its headline 94% saving is measured against reading whole files, not against what assistants like Claude Code actually do. The README reports 94% retrieval savings on FastAPI, with Recall@10 of 0.90 across 20 queries. It also reports weaker results on other repositories, such as 0.07 recall on Go's fiber and 76% savings with 0.67 recall on chi. The tool splits code into chunks with tree-sitter, runs hybrid vector and BM25 keyword search with a code graph, and keeps vectors, full-text indexes, the graph and a compression cache in local SQLite files. Recorded decisions are also stored in SQLite. It exposes 11 MCP tools covering search, graph navigation, session memory, reindexing and output-verbosity control. The documented quick start is one command: uvx --from "code-context-engine[local]" cce init. This installs the package, indexes the project and configures the editor. With a persistent install (uv tool install or pipx), you run cce init yourself in the project directory. cce init writes MCP configuration and instruction files for your editor, installs hooks and registers the MCP server. It also writes output-compression rules into the assistant's instruction files. These are set to standard by default and apply to the whole session, not only to CCE tool replies. This analysis rests only on the project's own README and its MIT licence file. Nothing was run, and the benchmark figures, security claims and package behaviour are the authors' statements, not verified results.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is only the README.md file at [https://github.com/elara-labs/code-context-engine/blob/main/README.md], captured at revision 75071156e08a145fab17c8ce30bb5f418286f434, together with the MIT LICENSE file from the same revision as its licence notice. The LICENSE is outside the selected file and is used only for rights. Not covered: the package source code, benchmark result files, wiki and blog pages, changelog, PyPI contents and any other repository files. The README's linked pages were not fetched. Nothing was installed or run, so installation, benchmark figures, savings, security behaviour and compatibility remain unverified statements from the README.
The overview
What this is
Code Context Engine, shortened to CCE, is a Python package published on PyPI as code-context-engine. It provides a command-line program called cce and an MCP (Model Context Protocol) server. The README gives the source repository as [https://github.com/elara-labs/code-context-engine] and the project site as [https://elara-labs.github.io/code-context-engine/]. It names Fazle Elahee and Raj as authors, and the licence file names Fazle Elahee as copyright holder for 2026.
The README text gives no version number; it shows the version only through a PyPI badge. So the version covered here is unknown. This review is based on repository revision 75071156e08a145fab17c8ce30bb5f418286f434. A comment at the end of the README gives the MCP registry name as io.github.ai-elara/code-context-engine, which differs from the GitHub organisation name elara-labs. The README does not explain the difference, and it was not checked.
Overall assessment
On the README's evidence, CCE is a substantial, well-documented tool with a clear purpose: give an AI coding assistant a searchable local index so it fetches the relevant function or class instead of whole files. The README is open about the limits of its headline number. It says the 94% figure is measured against reading every touched file in full, and that real savings compared with Claude Code's normal grep and partial-read behaviour will be lower.
The main points to weigh are these. The savings figure measures retrieval efficiency, not a measured end-to-end cost reduction. Retrieval quality varies widely by repository in the project's own table, from 0.95 recall on Django to 0.07 on fiber. Installation changes several files in your project and, for the Codex integration, a section of your user-global Codex configuration. By default it also writes instructions for terse replies into your assistant's instruction files. None of this was tested, so treat these as the authors' claims. A sensible way to try it is on a non-sensitive repository first, measuring your own usage.
Who it is for
The README targets people who use AI coding assistants and care about token cost, speed or privacy. Its listed use cases are cutting Claude Code costs, keeping code local, sharing one index across several editors, keeping decisions across sessions, and tracking savings in dollars. It names Claude Code, VS Code with Copilot, Cursor, Gemini CLI, OpenAI Codex CLI, OpenCode, Tabnine and Pi as supported assistants.
It is probably most relevant to developers on medium or large codebases who work through an MCP-capable assistant, and to teams that want a portable Agent Plugin bundle. It is less obviously useful for tiny projects, where reading whole files is already cheap. The README does include results for the 6-file Express repository, but it gives no evidence on whether small projects see a worthwhile benefit in practice. Beginners can follow the one-command install, but they should be comfortable with a terminal and with Python tools such as uv or pipx.
What it can do
The README lists 11 MCP tools: context_search (hybrid vector plus BM25 search with graph expansion), expand_chunk (full source for a compressed result), related_context (follow call and import edges), session_recall, session_timeline and session_event (inspect past sessions and raw tool events), record_decision and record_code_area (save notes for later sessions), index_status, reindex, and set_output_compression.
Around those tools it describes a cce command-line interface (init, savings, dashboard, search, status, services, commands add-rule, uninstall, list), a web dashboard with charts and session history, and dollar-cost estimates for Anthropic, OpenAI and Google models. It also describes an optional HTTP endpoint (cce serve --http with POST /search), an Agent Plugin generator (cce init --plugin), exclusion of secret files, and scanning for credentials and personal data.
Code-aware chunking with tree-sitter (which splits code by its syntax tree) covers Python, JavaScript, TypeScript, PHP, Go, Rust, Java and C#. More than 40 other file types get a simpler language-aware chunking, and any other text file is split by line range. The roadmap lists tree-sitter support for C, C++, Ruby, Swift and Kotlin as not yet done.
Using it
What you need
The README requires Python 3.11 or newer and a C compiler for the tree-sitter grammars. It gives setup steps per platform: xcode-select --install on macOS, build-essential and cmake on Ubuntu or Debian, gcc, gcc-c++ and cmake on Fedora or RHEL, and Visual Studio Build Tools plus CMake on Windows. It says it was tested on macOS, Linux and Windows with Python 3.11, 3.12 and 3.13.
For embeddings you need one of two backends. The first is the [local] extra, which runs fastembed on ONNX Runtime on the CPU and downloads an embedding model of about 60 MB once. The second is an existing Ollama server, which CCE detects at localhost:11434 and uses with the nomic-embed-text model. No GPU is required. You also need a package installer such as uv, uvx or pipx. Pi users need a third-party MCP adapter extension, because Pi does not support MCP natively; the README names pi-mcp-adapter as an example. The README documents the assistants listed above, and its generated MCP configuration runs CCE over stdio. Separately, it documents an HTTP search endpoint (cce serve --http with POST /search) for custom integrations that use HTTP instead of MCP. It does not establish that the MCP server works over HTTP, or that MCP clients beyond the listed ones are compatible.
How it works
The README describes a five-step flow. Index: tree-sitter splits code into meaningful chunks (functions, classes, modules), which are stored locally as vector embeddings. Search: the assistant calls context_search, which runs vector search and BM25 keyword search and merges the results with Reciprocal Rank Fusion. A confidence score blends similarity (50%), keyword match (30%) and recency (20%), and a code graph adds related files through CALLS and IMPORTS edges. Compress: chunks are cut down to signatures and docstrings, or summarised by an LLM if Ollama is running. Remember: decisions and code areas persist across sessions. Track: each query is logged so cce savings can report the totals.
For storage, the README says it replaced LanceDB with sqlite-vec, keeping vectors, FTS5 full-text search, the code graph and the compression cache in three SQLite files. A SHA-256 content-hash embedding cache lets re-indexing skip unchanged code; the README states a 96% cache hit rate and under 1 second per re-index. Git hooks keep the index current. Five Claude Code lifecycle hooks capture session context. Each runs curl and ends in || true, so a crashed server should not block the user. A resource governor limits ONNX threads, uses file locks so only one process indexes a project at a time, and shuts idle servers down after 30 minutes. None of this was checked against the code.
Setup
The README's quick start is uvx --from "code-context-engine[local]" cce init, which it says installs, indexes and configures in one step. For a persistent install, run uv tool install "code-context-engine[local]" (or pipx install with the same argument), change into your project directory, run cce init, and restart your editor. If you already run Ollama, install without the [local] extra.
cce init detects your editor and writes its configuration. To pick a specific one, use --agent claude, codex, copilot or pi, or use --agent all. According to the README it writes .mcp.json and CLAUDE.md for Claude Code, .vscode/mcp.json and .github/copilot-instructions.md for VS Code, .cursor/mcp.json and .cursorrules for Cursor, .gemini/settings.json and GEMINI.md for Gemini CLI, opencode.json for OpenCode, .tabnine/agent/settings.json and TABNINE.md for Tabnine, and .mcp.json and AGENTS.md for Pi. For OpenAI Codex it writes AGENTS.md and adds one [mcp_servers.cce-<project>-<hash>] section per project to the user-global ~/.codex/config.toml, because Codex has no per-project MCP config.
cce init --plugin generates a portable Agent Plugin directory at .cce/plugin/ that launches CCE through uvx on demand. It contains plugin.json, mcp.json, a SKILL.md, a tools reference and a LICENSE file. cce uninstall is documented as removing all CCE files, and for Codex only the section for the current project. init changes several project files, and with the Codex integration also the user-global ~/.codex/config.toml, so review the changes afterwards, for example in version control.
Worked example
The README's own example is a question about a payment flow. Without CCE, the assistant reads payments.py and shipping.py, about 45,000 tokens. With CCE, it calls context_search "payment flow" and gets relevant chunks of about 800 tokens. Treat this as the authors' illustration, not a result measured on a real project.
Based on the documented commands, a typical session would go like this. In your project directory, run cce init and restart the editor. Ask the assistant a question about your code; it is expected to call context_search on its own. Later, run cce search "auth flow" to try a query yourself, cce savings to see token and dollar estimates, and cce dashboard for the charts. To keep a decision for later sessions, the README shows record_decision("use JWT for auth", reason="session tokens flagged by legal"), which is stored in SQLite and can be recalled with session_recall. The sample savings screen in the README (88% saved, 1.9M tokens, $28.15 at Opus pricing) is example output, not a benchmark.
Assessment & evidence
Limitations and risks
Benchmark scope. The 94% figure compares retrieved chunks with reading every touched file in full, which the README admits is not what Claude Code does. The headline figure is also self-reported, and the raw benchmark result files were not part of the captured evidence. The README's own table shows that high savings do not guarantee good retrieval: fiber reports 93% savings but only 0.07 Recall@10, and chi reports 76% savings with 0.67 recall. The FAQ's claim that response quality is unaffected ('No. Quality stays the same or slightly improves') is not backed by any end-to-end quality test in the README; only recall figures are shown.
Side effects of installation. cce init writes MCP configuration, instruction files (CLAUDE.md, AGENTS.md, .cursorrules and others), hooks and, for Codex, a section in a user-global config file. The FAQ says output-compression rules go into these instruction files and apply to the entire session, not only to CCE tool replies. The default level is standard, which tells the agent to answer in fragments. If you do not want terse replies, set compression.output to off and re-run cce init.
Network and trust. The project says it keeps code local with no cloud indexing, but it fetches live Anthropic pricing and downloads an embedding model. The HTTP endpoint (cce serve --http) is documented with no statement about authentication or which network interface it listens on, so those details are unknown. The secret-file exclusion, credential scanning, personal-data scrubbing and path-traversal checks are unverified claims. The package runs as an MCP server with access to your project, so reviewing its source is prudent.
Documentation inconsistencies. Output-compression savings are given as about 30, 65 and 75 percent in one table and about 25, 70 and 80 percent in the FAQ, and both are labelled estimates. The tool for changing verbosity is called set_output_compression in the tool table but set_output_level in the FAQ. The heading for tree-sitter chunking says 11 extensions, but the table lists 10. Pi needs an extra third-party adapter. The roadmap lists a port to the mcp 2.x API as unfinished, and what that means for compatibility is not stated.
Reasoning behind this assessment
This report treats the README as the authors' own description. It says what the tool is designed and documented to do, not what it does in practice. The strongest points in its favour are a stated method, a reproduction command (python benchmarks/run_benchmark.py with the FastAPI and chi repositories), an open admission of the baseline's weakness, per-layer figures labelled measured or estimated, and multi-language results that include unfavourable ones.
The main reasons for caution are that the favourable headline is both the easiest number to remember and the least comparable to real usage, that no source code or tests were inspected, and that several claims have no supporting data in the captured file: cost per session, response quality and security. Speed is a partial exception. The README does report timings: a p50 retrieval latency of 0.4 ms in the FastAPI benchmark, and re-indexing after edits in under 1 second with a stated 96% embedding cache hit rate. These timings are self-reported and have not been independently verified, and they cover only search and indexing. The README also claims faster assistant replies (less context means faster Claude replies), but no end-to-end measurement backs this, so faster overall assistant responses are not demonstrated. As an architectural judgment based only on the README's description, the design looks coherent: tree-sitter chunking, hybrid BM25 and vector retrieval merged by rank fusion, graph expansion and a local SQLite store together make a reasonable way to return targeted code instead of whole files. That judgment is not evidence of how well it performs on your codebase.
Alternatives and comparisons
The most direct alternative is to add no tool at all. As the README notes, assistants such as Claude Code already use grep, partial file reads and targeted tools, and that is the baseline the 94% figure does not measure. You can also check whether your own editor or assistant has built-in code indexing; whether it exists and how well it works for your setup is unknown from the captured evidence. The README links to a comparison page covering Cursor, Aider, Continue and Greptile at [https://elara-labs.github.io/code-context-engine/comparison.html], but that page was not captured, so its claims were not assessed.
The README also compares CCE with output-compression tools, naming Caveman. It argues that output is 5 to 15 percent of the bill and input 85 to 95 percent. These are the authors' figures, and the README gives no source for them. CCE includes its own output-compression rules, so it overlaps with such tools. Other MCP code-search servers may exist, but none were reviewed here, so no comparison is made.
Evidence used
Two captured files support this report: the README at the selected address (28,600 bytes) and the LICENSE file beside it (1,069 bytes), both at repository revision 75071156e08a145fab17c8ce30bb5f418286f434. Every statement here about features, benchmarks, setup, requirements and costs comes from the README. The licence statements come from the LICENSE file.
The README links to other material that was not captured or assessed: the documentation site, blog posts, benchmark result files, wiki pages, the CHANGELOG, the CONTRIBUTING file, a talk video and the PyPI listing. No source code, tests, CI results, package contents, install logs or issue history were examined, and nothing was run.
Access & freshness
Costs
The README states no price, subscription or paid tier for CCE, and the software is under the MIT licence. The evidence does not show whether paid features exist anywhere else. Running it still uses your own resources. The README gives these sizes: about 17 MB for the core install with the Ollama backend, about 189 MB with the [local] extra, about 60 MB for the one-time fastembed model download, and 5 to 60 MB of index per project. Indexing and embedding also use CPU time. If you use Ollama, it runs on your own machine or network.
CCE does not remove your assistant's own subscription or API costs; it aims to reduce input tokens. The README's cost table (about $0.14 per session without CCE versus about $0.04 with it, for Sonnet on a medium project) gives no method, so treat that figure as unverified. Dollar estimates in cce savings use built-in pricing for 15 or more models, plus live Anthropic pricing that is fetched and cached for 7 days. The README's example screen uses Opus rates of $15 per million input tokens and $75 per million output tokens. Whether your real bill falls depends on how your assistant already explores code, which the project says its benchmark does not compare against.
Rights and licence
The LICENSE file captured with the README is the standard MIT licence, copyright (c) 2026 Fazle Elahee. It allows using, copying, modifying, merging, publishing, distributing, sublicensing and selling copies of the software. The condition is that the copyright notice and the permission notice are included in all copies or substantial portions of the Software. The software is provided as is, with no warranty. The README states MIT in its text and in a badge, and its licence section reads: MIT. See LICENSE.
This review covers only the README and the licence notice beside it. It does not cover other repository files, such as the benchmark results, wiki pages or source code. The README also links to third-party material, including the Agent Plugins standard, Ollama, fastembed, sqlite-vec and tree-sitter, each with its own terms that this review did not examine. The README does not say whether the logo and demo media are covered by the MIT licence.
Freshness
The evidence was captured on 14 November 2026 from revision 75071156e08a145fab17c8ce30bb5f418286f434. The copyright year is 2026 and the README promotes a talk at AI Engineer World's Fair 2026, so it appears to be recent. The README gives no version number or release date. The release history, last commit date and issue activity are not in the captured evidence, so how actively the project is maintained is not established here.
The roadmap shows several open items: tree-sitter support for C, C++, Ruby, Swift and Kotlin, Docker support for remote mode, and a port to the mcp 2.x API. Details about supported assistants, config file locations and the Agent Plugins standard may change quickly, so check the current README and your assistant's MCP documentation before relying on them.
Suggested next steps
Before installing, skim the package source on GitHub or PyPI, because it runs as a local server with access to your repository. Start with a non-sensitive, medium-sized project under version control so you can see exactly what cce init changes. Decide whether you want the default standard output-compression rules in your instruction files. If not, set compression.output to off before running init.
After a few days of use, run cce savings and cce status, and compare your assistant's token use with and without CCE on similar tasks. Do not expect the README's 94% figure. Check retrieval quality on your own languages and repository layout, remembering that the project's own results range from 0.07 to 1.00 recall. If you enable cce serve --http, confirm which interface it listens on and whether it needs authentication, since the README does not say. For team use, consider cce init --plugin so others can launch it through uvx. The documented way to remove everything is cce uninstall.
