Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews lean-ctx ctx_ prefixed MCP tool calls in a Claude Code session transcript and files upstream issues for confirmed failures.
50% 75%+25 ptsof test cases passed
Passed 18 of 24 test cases with the skill, and 12 of 24 without it.
3 of 3 safety checks passed
Not used yet
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.
Run from this skill's directory (needs python3):
python3 scripts/scan_session.py
Defaults 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.
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.
Skipping them is how this review returns a false "nothing to report". Both cost one command each.
Next to this one in the catalogue, plus more from the same author.