mrkeyoor.comAsk

yvgude/lean-ctxtested 12 Oct 2026commit 3afe2bb

lean-ctx review

LeanCTX merits a controlled evaluation for developers whose agents repeatedly read files and noisy shell output.

  • Build timed out
  • Tests failed
21 sto install
  • 520 packages
LLM Toolsevaluationupdated 26 Oct 2026
+9stars / 7d

LeanCTX is a context gateway between AI tools and the information they read. Its Engine runs locally through CLI, MCP, hooks and optional proxy paths. The README describes file selection, command-output compression, session memory, repository graphs and usage records. These are documented capabilities; our recorded run covered source preparation, build and test commands, not a working agent integration or a savings workload.

Verdict

LeanCTX merits a controlled evaluation for developers whose agents repeatedly read files and noisy shell output. Our October 12, 2026 run at 3afe2bb completed dependency preparation in 21 seconds, but the build timed out at 900 seconds and the test command exited 101 after 209 seconds with a SIGKILL in the retained tail. That leaves source setup unverified in this environment; it does not prove the product is broken. Before adopting it, verify the installed binary and your agent integration, then compare source recovery and completed work on representative tasks. We measured no savings or answer quality.

We ran it

Lab card: what happened when we ran lean-ctx
Lab card from our sandbox run
Screenshot of lean-ctx (leanctx.com)
leanctx.com
Install✓ · 21s520 packages
Build✗ timed out · 900s
Tests✗ · 209sran, no count parsed
Repo4391 files~1,020,363 lines of source · 61.8 MB · 17 CI workflows · tests dir

Answers from our run

Does lean-ctx build from source?

Dependencies installed in 21 seconds (520 packages), and the build failed. We cloned commit 3afe2bb into a clean Debian container with 3 CPUs and no project-specific setup.

Do lean-ctx's tests pass?

No. The project's own test command exited unsuccessfully after 209 seconds, and its output did not expose an individual test count.

Who should not use lean-ctx?

Developers who mostly use tiny repositories or need raw logs throughout: the README identifies these as cases with lower payoff.

What are the alternatives to lean-ctx?

Context Mode, Headroom. LeanCTX merits a controlled evaluation for developers whose agents repeatedly read files and noisy shell output.

Setup2/5Partial setup evidence: dependency preparation completed in 21 seconds, but the October 12, 2026 build timed out at 900 seconds and no installed CLI was verified.
Docs4/5The supplied README gives concrete setup, reversal, recovery, telemetry and measurement boundaries. This rates the inspected documentation, not verified behavior or every linked guide.
Community2/5The supplied issue records an owner response and closure through PR 1649 on September 1, 2026. Current adoption, contributor breadth and support capacity remain unmeasured.
Maturity2/5Release notes document fixes and product boundaries, but our recorded build timed out and the test command ended unsuccessfully with SIGKILL in its tail. Operational maturity remains insufficiently verified by this evaluation.

Who it’s for

Developers using Claude Code, Cursor or Codex who want to evaluate context selection and compression in shell-heavy sessions.
Engineers working in medium or large repositories who can compare compact views with original files.
Teams willing to verify their specific integration, recovery behavior and network settings before wider adoption.

Who it’s NOT for

Developers who mostly use tiny repositories or need raw logs throughout: the README identifies these as cases with lower payoff.
Teams requiring a completed source build and passing test suite from this review: our recorded run establishes neither.
Buyers requiring a publicly available hosted team or cloud service: the README describes the local team-server path as experimental.
Users expecting demonstrated answer-quality preservation or measured savings from our evaluation: we ran no such workload.

Setup reality

In our recorded run on October 12, 2026, at commit 3afe2bbffe0834ec58517ffd493e5a51c5c1ca57, the dependency-preparation step completed in 20.771 seconds, rounded to 21 seconds. Its tail shows dependency downloads, and the parser recorded 520 dependencies. This does not establish that the LeanCTX CLI was installed or available on PATH.

The build under ./rust/ timed out after 900 seconds with exit 124. The test command exited 101 after 209 seconds; its retained tail ends with a Rust invocation killed by signal 9, SIGKILL. No individual test count or assertion failure is established. The record does not identify why the process was killed.

The recorded configuration was 3 CPUs, 12 GB of memory and image lab-rust:1. The checkout summary recorded 4,391 files, approximately 1,020,363 source lines, 61.8 MB, 17 CI workflows, a tests directory and no Dockerfile. These are repository observations, not passing-test coverage.

The README documents packaged installation routes and lean-ctx wrap <agent> for supported integration setup. We did not verify those routes, an installed binary, agent registration, hooks or proxy traffic. Inspect effective telemetry with lean-ctx telemetry status rather than assuming its default. Local context processing does not eliminate the separate network paths used by configured providers, model requests, feedback, updates and enabled telemetry.

A context gateway needs a recovery check

LeanCTX can change which parts of a file or command result reach an AI agent. The useful evaluation question is whether its selected context helps your workflow while leaving needed detail recoverable. Our recorded source run did not reach an installed-binary or agent-integration check, so this review separates that incomplete setup result from the README's capabilities.

The README describes a local Engine with CLI, MCP, hooks and an optional request proxy. The read path prepares files and tool output; the opt-in proxy transforms supported, configured requests before they reach a model provider. Session records and a repository graph support continuity and navigation. Compatibility depends on the client, transport and configuration, rather than the presence of a client name in a setup table.

What our recorded run establishes

We are using the stored run from October 12, 2026, at commit 3afe2bbffe0834ec58517ffd493e5a51c5c1ca57. Its configuration records 3 CPUs, 12 GB of memory and image lab-rust:1; that image label does not establish a runtime version. No new execution was performed for this correction.

Stage Recorded observation Limit
Dependency preparation Exit 0 in 20.771 seconds, rounded to 21 seconds; 520 dependencies recorded The tail shows downloads, not an installed CLI check
Source build under ./rust/ Timed out after 900 seconds, exit 124 No completed build or diagnostic tail
Test command Exit 101 after 209 seconds Retained Rust invocation ends with signal 9, SIGKILL; no individual test result established

The killed process does not identify a failing assertion, and the record does not establish the cause of the kill. We cannot attribute it to a product defect or a particular resource shortage. There is no verified passing-test count, audit result, installed-binary check or measured agent workload in this run.

The checkout summary recorded 4,391 files, approximately 1,020,363 source lines and 61.8 MB. It also recorded 17 CI workflows, a tests directory and no Dockerfile. Workflow files and a tests directory indicate repository structure; they do not establish executed coverage.

Recovery has explicit conditions

The README says supported compact views retain source or archive references for expansion through ctx_expand, ctx_retrieve or the reference API. Recovery depends on permissions, retention and the source remaining available. Treat those conditions as part of the trial: compare the recovered content with the original material your task needs.

Issue 1648 documents a historical MCP ctx_grep problem on LeanCTX 3.9.17. The reporter described missing context lines and an inflated count of 160 for 40 real matches once multi-file compression engaged. The issue was closed as completed through pull request 1649 on September 1, 2026. It is a useful regression scenario, but it does not establish a current defect at our measured commit or a defect in full-file reads. We did not reproduce it.

The v3.10.0 release notes separately describe read, search, edit and refactor fixes. They also state that no stable SDK was bundled into that Engine release. That is a version-specific boundary: the current README describes supported SDK interfaces under separate SDK/OEM terms. Our source run evaluated neither SDK offering.

Check the integration and network settings

The README documents lean-ctx wrap <agent> as registering MCP and configuring the supported local transport for that agent. It documents unwrap for reversal and distinguishes configuration from the subsequent diagnostic check. We did not observe those operations in our run.

Keep the documented recovery controls available during a trial: lean-ctx-off disables the current shell integration, lean-ctx -c --raw "git status" runs a command uncompressed, and shell_activation = "agents-only" limits shell activation to agent sessions. Preserve the original agent configuration so you can compare it after setup and removal.

Proxy behavior also depends on authentication. The README says lean-ctx wrap claude adds no proxy redirect for Claude Pro/Max subscription OAuth; Claude wire-level request compression requires ANTHROPIC_API_KEY. Do not assume that enabling MCP tools also enables request compression.

Inspect telemetry with lean-ctx telemetry status and lean-ctx telemetry show; the documented off switch is lean-ctx telemetry disable. Context processing runs locally, while configured source providers, proxy/model requests, submitted feedback, updates and enabled telemetry have separate network paths. The README describes experimental local team functionality, not a publicly available hosted team or cloud service.

Licensing also needs a closer look than the harness's Apache-2.0 label. The README describes mixed licensing: the Trust Core remains Apache-2.0, while explicitly mapped v4 modules may use commercial source-visible terms. Check the license matrix for the modules you intend to use.

Savings estimates do not establish answer quality

We measured no token savings, provider costs, latency improvement or completed-task quality. The README says Shadow Mode uses a simulated baseline rather than a second measured run. It also says a powered with/without quality study has not been run and that the proxy's compression holdout reports answer quality as unknown.

For a useful trial, keep the task and model settings comparable, inspect omitted and recovered material, and record whether the resulting work is correct. A smaller prompt alone cannot answer that question.

Two alternatives with different entry points

Context Mode describes sandbox tools that keep raw data outside the context window, plus SQLite-backed session events retrieved through FTS5 and BM25. Its documented MCP-only route omits automatic routing hooks. It is relevant when tool-output handling and session continuity are the main evaluation questions.

Headroom documents Python and TypeScript compression libraries, a local proxy, agent wrapping, MCP tools and shared memory. It is relevant when you need compression inside an application or through a proxy. Its wrapping and memory features overlap with LeanCTX, so the choice requires checking the integration you actually need. Neither alternative was executed in our run.

How to read the scores

These are provisional editorial ratings of the supplied evaluation evidence, not benchmark results. The rubric is: 1 means little usable evidence; 2 means partial evidence with major verification gaps; 3 means documented capability with limited corroboration; 4 means detailed documentation or a successfully verified scoped result with explicit limits; 5 requires broad corroboration that this review does not have. Unknown adoption or compatibility earns no extra credit.

Setup receives 2/5 because dependency preparation completed but the build and test commands did not complete successfully. Documentation receives 4/5 for concrete setup, reversal, recovery and measurement boundaries, without implying that every linked guide was checked. Community receives 2/5 because one historical issue response and release notes cannot establish current adoption or support capacity. Maturity receives 2/5 because the available run leaves operational verification incomplete, despite documented functionality and release fixes.

Start with one disposable agent profile and a representative repository. Verify the binary, integration and source recovery before evaluating whether LeanCTX improves completed work.

Alternatives

ProjectWhat it isPick it when
Context Mode gh↗An MCP server with sandbox tools and SQLite-backed session tracking and retrieval.Choose it for an evaluation centered on keeping bulky tool results outside the context window and retrieving session events after compaction. Its README also documents an MCP-only installation without automatic routing hooks.
Headroom gh↗A context-compression project with Python and TypeScript libraries, a local proxy, agent wrapping and MCP tools.Choose it when the integration you need is an inline compression library or a local request proxy. Its README also documents agent wrapping and shared memory, so assess those overlapping features rather than assuming it is only a narrow compression utility.

What people are saying

  1. [github-trending] yvgude/lean-ctx

Sources

  1. LeanCTX repository and README
  2. LeanCTX v3.10.0 release
  3. Compressed ctx_grep context loss report

More llm tools reviews