lean-ctx-review
Skill3.9k starsChanged 4 months agoApache-2.0View on GitHub
Review how the lean-ctx ctx_* MCP tools performed in the current session and file upstream issues for confirmed problems. Use when the user asks to review/audit lean-ctx tool performance, says "lean-ctx review", asks why ctx_* tools failed or fell back to native tools, or wants to report a lean-ctx bug.
Trending
Less talk lately.about the whole repository
Who's talking about yvgude/lean-ctx
- @rusttrending.bsky.social“yvgude / lean-ctx: Lean Cortex -- the cognitive context layer for agentic systems. 51+ MCP tools, 10 read …”Bluesky · May 24, 2026 · 6 likes
- @qdrddr.bsky.social“Context reduction for local #development. #MCP tools, #CLI, Hooks to #Harness #codeagents. Build-in …”Bluesky · May 9, 2026 · 5 likes
- dirge-code/dirge“feat: Janet compression plugin + /plugins slash command”GitHub · Jun 10, 2026 · 1 reactions
- Amitro123/knowledgeBase-Agent“Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs)”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.yvgude.lean-ctx: 3.10.2 → 3.10.5”GitHub · Oct 4, 2026
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub and Bluesky (44 times).
On GitHub · 41
- Jun 10, 2026feat: Janet compression plugin + /plugins slash command — dirge-code/dirge1 reaction · 2 comments
- Oct 4, 2026Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs) — Amitro123/knowledgeBase-Agent0 reactions · 3 comments
- Oct 4, 2026agent-skills.github.yvgude.lean-ctx: 3.10.2 → 3.10.5 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.yvgude.lean-ctx: init at 3.10.2 — sudosubin/agents.nix0 reactions
- Sep 20, 2026Freshness: lean-ctx v3.10.1 -> v3.10.5 — thoroc/context-radar0 reactions
36 more on GitHub
- Sep 17, 2026Feature request: add lean-ctx as a Token Saver (external /v1/compress — verified compatible with the Headroom slot) — decolua/9router0 reactions
- Sep 6, 2026Feature request: MCP Tasks support for background ctx_shell jobs with polling fallback and standardized status notifications — tryweb/ai-engkit0 reactions · 2 comments
- Aug 30, 2026feat: add custom agent tool SDK — Thinkery-AG/leanctx-sdk0 reactions
- Aug 14, 2026claude-proxy-rs: expand text-noise pattern catalog (LeanCTX-inspired) — tstapler/consolette0 reactions · 1 comment
- Aug 11, 2026Add lean-ctx — conda-forge/staged-recipes0 reactions · 2 comments
- Aug 11, 2026claude-proxy-rs: expand text-noise pattern catalog (LeanCTX-inspired) — tstapler/dotfiles0 reactions · 1 comment
- Aug 2, 2026Freshness: lean-ctx v3.9.12 -> v3.10.1 — thoroc/context-radar0 reactions
- Jul 30, 2026Token Optimizer List — haseeb-heaven/token-zero-studio0 reactions · 1 comment
- Jul 26, 2026docs(rules): correct lean-ctx tool-denial claims and cap's per-project skill assertion — arjaygg/dotfiles-omerxx0 reactions
- Jul 19, 2026Freshness: lean-ctx v3.9.11 -> v3.9.12 — thoroc/context-radar0 reactions
- Jul 17, 2026renovate(mise): Update dependency github:yvgude/lean-ctx to v3.9.5 — y-miyazaki/config0 reactions
- Jul 16, 2026Freshness: lean-ctx unrecorded -> v3.9.11 — thoroc/context-radar0 reactions · 1 comment
- Jul 15, 2026fix(github-release): update release github:yvgude/lean-ctx ( v3.9.8 → v3.9.10 ) — david-driscoll/home-operations0 reactions · 1 comment
- Jul 14, 2026Update dependency github:yvgude/lean-ctx to v3.9.9 - autoclosed — david-driscoll/dotfiles0 reactions · 1 comment
- Jul 11, 2026ci: add clippy, fmt, and cargo-deny gates behind a CI Green aggregator — getappz/agentflare0 reactions · 2 comments
- Jul 10, 2026Update dependency github:yvgude/lean-ctx to v3.9.5 — david-driscoll/dotfiles0 reactions · 1 comment
- Jul 8, 2026[Bug]: WSL agent discovery fails when claude/codex are shell aliases; please use type -P or absolute path detection — stablyai/orca0 reactions · 1 comment
- Jul 8, 2026[Build Infra] lean-ctx install step fails with HTTP 403 — GitHub API rate limit blocks CI — tryweb/ai-engkit0 reactions · 1 comment
- Jul 6, 2026fix(github-release): update release github:yvgude/lean-ctx ( v3.9.0 → v3.9.1 ) — david-driscoll/home-operations0 reactions · 1 comment
- Jul 5, 2026lean-ctx Integration — toon-format/toon-rust0 reactions · 1 comment
- Jul 2, 2026docs(readme): update lean-ctx comparison row — headroomlabs-ai/headroom0 reactions · 1 comment
- Jul 2, 2026docs(readme): fix lean-ctx Reversible column — it ships 5 recovery paths — headroomlabs-ai/headroom0 reactions · 2 comments
- Jul 2, 2026README "Compared to" table: lean-ctx row lists Reversible: No — it ships five recovery paths — headroomlabs-ai/headroom0 reactions
- Jul 2, 2026fix: Verifiable Memory Vault: external time-anchor (RFC 3161 + transparency log) + C2PA composition (fixes #1740) — alex-place/lantern-os0 reactions · 4 comments
- Jun 30, 2026Verifiable Memory Vault: external time-anchor (RFC 3161 + transparency log) + C2PA composition — alex-place/lantern-os0 reactions · 3 comments
- Jun 19, 2026[Request]: LeanCTX — ScoopInstaller/Main0 reactions
- Jun 12, 2026Stack with lean-ctx — paql4711/agent-space0 reactions
- Jun 6, 2026content(mcp): add LeanCTX MCP Server — JSONbored/awesome-claude0 reactions · 2 comments
- Jun 5, 2026Lean-Ctx support — cortexkit/aft0 reactions · 3 comments
- May 25, 2026refactor: replace RTK/Reasonix with lean-ctx, fix config schema — alfathhh/hataf-hermes0 reactions
- May 25, 2026refactor: replace RTK + Reasonix with lean-ctx, fix config schema — alfathhh/hataf-hermes0 reactions
- May 21, 2026Investigate LeanCTX — mnemosyne-systems/orangu0 reactions
- May 9, 2026Lean-ctx — github/gh-aw-firewall0 reactions
- Apr 28, 2026Add lean-ctx to Tools section — jim-schwoebel/awesome_ai_agents0 reactions
- Apr 24, 2026[FEATURE] Ability to replace rtk with lean-ctx — headroomlabs-ai/headroom0 reactions · 1 comment
- Apr 17, 2026Plugin proposal: lean-ctx — Claude Code context optimization MCP (649⭐, Rust, zero telemetry) — EnterOS-AI/enter-os-core0 reactions · 1 comment
On Bluesky · 3
- May 24, 2026yvgude / lean-ctx: Lean Cortex -- the cognitive context layer for agentic systems. 51+ MCP tools, 10 read modes, 95+ shell patterns. Up to… — @rusttrending.bsky.social6 likes and reposts
- May 9, 2026Context reduction for local #development. #MCP tools, #CLI, Hooks to #Harness #codeagents. Build-in #knowledgegraph, BM25 & Vector search.… — @qdrddr.bsky.social5 likes and reposts
- Jun 10, 2026公式READMEは、通常の削減を 60-90%、99%級は cached re-reads と案内している。しかも「session memory persists across chats」「knowledge graph」とも書いている。💎… — @sara-echosphere.bsky.socialsays it tested it0 likes and reposts · 1 reply
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- rust/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/compression-safety.mdcCursor rule
- llms.txtllms.txt
- lean-ctxSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run from this skill's directory (needs python3):
- Distinctive: line 122
Only for confirmed findings, one issue per distinct problem.
- Very specific: line 139
No speculation about internals.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
lean-ctx session review
Upstream repo: yvgude/lean-ctx (https://github.com/yvgude/lean-ctx).
Reads a Claude Code session transcript, so it applies to agents that write
~/.claude/projects/*/*.jsonl. Other harnesses need their own extractor; the
triage rules below are harness-independent.
1. Extract
Run from this skill's directory (needs python3):
python3 scripts/scan_session.pyDefaults to the newest transcript under ~/.claude/projects/*/ — the live
Claude Code session. Pass a path to review a different one. -d N dumps call
#N in full.
The script reports facts, not verdicts: every ctx_* call in order, which
results the harness flagged is_error, which calls repeated identical
arguments, which asked for raw/fresh output, and how many native
Read/Grep/Bash calls happened. It deliberately does not guess which of
those is a problem — that judgment is yours, below.
Transcripts run to megabytes, so read the table, not the raw JSONL.
2. Triage
Start from is_error. In practice every genuine tool failure carries it.
Then read the call list for the softer signals: identical retries, raw/fresh
re-reads, native calls clustered right after a ctx_* call, or a sequence that
only completed once ctx_* was abandoned.
Before absolving anything, do these two things
Skipping them is how this review returns a false "nothing to report". Both cost one command each.
Search the tracker for the guard or tool you are about to excuse. Do this during triage, not at step 4. A closed issue defines intended behaviour: if a shipped fix says a form is supported and you just watched it fail, that is a regression and one of the most valuable things this review finds. It also stops you re-filing a settled design decision.
gh issue list --repo yvgude/lean-ctx --search "<guard or tool keyword>" --state allProbe the stated rationale — never accept a message's self-description. An error explains itself, and that explanation can be wrong. Three checks, each one command:
- Does the sanctioned alternative achieve the same thing? If the block is bypassable through a route the message itself recommends, it constrains syntax, not capability. Sometimes that is deliberate (structured input parses reliably where a shell string does not) — decide which, do not assume.
- Does the stated reason match the observed rule? Vary one axis at a time. A guard blaming payload size that actually keys on path, or blaming a pipe on a command that is piped, is misdiagnosing itself.
- Does the message contradict itself? A rejection that also states the rejected form is allowed is a finding on its own, whichever way the policy should go.
A wrong diagnostic is a real bug even when the block is correct: it sends the next caller down a route that cannot work.
Not a finding
- Words inside returned content. A file containing
http.StatusConflict, agit rebaseprintingCONFLICT (content):,ghreturning"mergeable":"CONFLICTING", a test run printingnot found. The tool returned exactly what was asked for. Judge the tool's own behaviour, never the payload's vocabulary. - Self-reference. Any result that quotes a previous scan, this skill, or a transcript will echo every error word in it.
- Guard blocks — only after they survive the probe above. Inline env
overrides (
GIT_EDITOR=), shell redirects (>/>>), non-allowlisted commands, paths outside the project root. "It offered an alternative and the alternative worked" is not enough to clear one: that is true of a guard whose reason is wrong, whose rule is different from its description, or that contradicts itself. Clear it only once the stated rationale holds up. - Malformed tool input.
InputValidationErroron__unparsedToolInputis the caller's own JSON serialization — commonly a raw tab or newline inside a string — rejected before lean-ctx ever ran. - My own wrong arguments, a genuinely missing file, a failing build.
Confirmable
The tool did something wrong or unhelpful given correct input:
- wrong, lossy, or truncated output where the mode promises otherwise
- content injected into output documented as verbatim, or anything that breaks a documented output format (e.g. corrupting batch-read separators)
- a crash, hang, or schema mismatch against the documented parameters
- a documented mode behaving differently than described
- a retry that only succeeded after dropping to native tools
- a wrong or self-contradicting diagnostic, even where the block itself is right — naming the wrong cause sends the next caller down a route that cannot work, and costs more than the block did
- a regression against a closed issue: a shipped fix says the form is supported, and it is not
3. Reproduce
No minimal repro, no issue. Re-run the exact tool and arguments. If it passes, try to isolate the trigger; if you cannot, do not file — report the observation to the user instead, saying plainly that it did not reproduce and what you tried. Guessing at internals is worse than silence.
lean-ctx --version for the version line.
Zero confirmed findings is a valid and common result. Say so and file nothing.
4. File
Only for confirmed findings, one issue per distinct problem. You searched the tracker during triage; widen it here if the finding shifted:
gh issue list --repo yvgude/lean-ctx --search "<keywords>" --state allSkip if already reported — and read the close text before re-filing, since a closed issue may have already conceded the point you are about to raise. When a finding contradicts a closed fix, cite it and frame the issue as the gap in that fix. Otherwise:
gh issue create --repo yvgude/lean-ctx --title "..." --body-file <file>Body: what happened, expected, minimal repro (exact tool + args), version, OS.
No speculation about internals. End every issue body with the Claude Code
attribution footer. Report the issue html_url back to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

