lcc

LCC plan, Q4 2026

Status: approved 2026-10-20 (decisions in §7). Nothing is filed or posted yet. Written 2026-10-20 against main at 54cf875 (v1.2.0, after PR #65 and #76–#82).

Rules this plan keeps: local and offline by default, no telemetry without explicit opt-in, user text is never rewritten (every cut is byte-identical or recallable with a receipt), and every number below is either a measurement run for this plan (section 1–2, reproducible with the commands given) or cited from a file in this repository. Anything else is labelled hypothesis.

Limits of the evidence in this plan. One machine (macOS arm64, Python 3.14.3, 10 CPUs), one run per measurement, five sessions from one maintainer. The input map (section 2) uses a scratch analysis script, not product code, and an approximation explained there.


0. One-sentence thesis

lcc removes what a coding agent no longer needs from its context, keeps every byte it removes one recall away, and proves both with a receipt.

Glossary

term meaning
context everything sent to the model on one request: system prompt, tool schemas, injected instructions, the transcript
lossless a removed tool output is replaced by a pointer to an identical output that is still in context. Nothing leaves the context.
recoverable lossless, plus old file reads replaced by a “re-read” pointer when the file is unchanged (on disk with workspace_root, otherwise by transcript proxy)
stashed an old tool output is moved to the local stash and replaced by [removed: N tokens · lcc recall <id>]; recall returns it byte for byte after re-checking its hash
stash the local, content-addressed store of removed outputs (~/.cache/lcc/stash, 0700/0600, LCC_STASH_DIR)
recall CLI command and MCP tool that returns a stashed output by id
receipt the report a pass emits: what was removed, why, by which rule, token counts, hashes, cache effect. Today: the JSON report and cache_effect; the user-facing form is item C2 below
lossy experimental, failed two blind audits (REAL_SESSION_BENCHMARKS.md §2); not part of the product story
MSI Minimum Sufficient Inference, a research protocol (context IR, planner, verifier, inference receipt). Frozen as a research release by ADR 0022. Not the product.

Product vs research

product (supported, measured on real sessions) research (frozen or experimental, no product claims)
rules provider: lossless, recoverable, stashed MSI specs and engines (ADR 0022)
recall (CLI + MCP), stash, verify_stashed causal necessity labels (ADR 0021)
measure-session, share-stats lossy, Jev and Laya providers, specialist-v3 as a dropper
Claude Code plugin (compaction hook), MCP server semantic retrieval scaffold (ADR 0011/0012)
block mode compact with cache contract (ADR 0015, cache-contract-1.0) prepare/optimize cleaning pipeline (works, but not the story)

Proposal: README and docs index lead with the left column only; the right column moves under one “Research” heading. ADR 0022 already forbids promoting the MSI oracle arm as product measurement.


1. Baseline (measured 2026-10-20)

All runs on 54cf875, local machine above. The commands below regenerate them.

what command result
Python tests pytest -q -x 1,940 passed, 3 skipped, 0 failed, 67 s wall
Node hook tests npm test 6 suites ok (hook-cache: 48 checks)
fixture benchmark lcc bench benchmarks/cases 6/6 cases pass, mean token savings 58.9% (cleaning pipeline on 6 fixtures; not agent sessions)
judge bench python benchmarks/run_judge_bench.py --check pass. Full pass must-keep: every arm 9/9. Reduction on edge cases: rules-lossless 0.4%, v3-blocks 13.8%, mechanical-blocks 25.2%. Median latency on edge cases: rules 2–3 ms, specialist-v3 80 ms; 1,138-block transcript: rules 30 ms, specialist-v3 3,291 ms. 5/5 extra edge cases kept by every arm. Token count exact.
cache contract python benchmarks/cache/run_prefix_stability.py --check pass. Dossier (132 passes): mean stable prefix share 0.975, unexplained prefix breaks 0, unreported 0, 9 sticky flips. Transcript stashed (60 passes): idempotence violations 0, placeholder rewrites 0, mean stable prefix share 0.082
cache placement python benchmarks/research/run_cache_patterns.py context cost vs no pass: whole ×1 −15.3%, whole ×3 −26.9%, per-payload −36.3%. Does not reproduce the committed figures in CACHE_ALIGNMENT.md (−7.9 / −22.6 / −42.4%): the script uses the hosted Jev judge, so its decisions vary between runs. The ordering (per-payload cheapest) holds in both.

measure-session (counts only, offline, exact o200k_base), on the sessions of section 2:

session messages tool calls tokens (lcc view) lossless stashed auto (specialist-v3) time, rules / auto
CC-A 2,552 1,031 666,596 0.04% 4.7% 1.6% 1.0–1.8 s / 153 s
CC-B 1,940 769 558,491 0.13% 19.6% 1.8% 1.1–1.6 s / 110 s*
CC-C 573 250 142,821 0.23% 20.0% 1.9% 0.3 s / 10.9 s
CC-D 1,748 651 445,281 0.02% 11.0% 1.3% 0.8–1.3 s / 206 s*
CX-A 171 78 208,076 0.26% 36.1% 0.0% 0.2–0.4 s / 3.7 s

Every mode lost 0 user/assistant texts on all five sessions. * CC-B, CC-C, CC-D and CX-A ran in parallel (four measure-session jobs plus the input map), so their times are inflated by load; CC-A ran alone.

Earlier, larger measurements (cited, not re-run): stashed 30.1% pooled over 847 sessions, lossless 0.9%, recoverable 1.2% (EVIDENCE.md §1); median 22.7% over 266 long sessions (README).

Baseline findings

  1. The safety core is green: tests, contract invariants and edge cases all pass, with 0 idempotence violations and 0 placeholder rewrites in the stashed bench.
  2. measure-session spends almost all of its time in the auto arm: 153 s of ~157 s on CC-A (run alone), 110–206 s on CC-B and CC-D (under load). The “run it on yours” call to action asks a stranger to wait minutes for the arm that removes the least.
  3. One published table (CACHE_ALIGNMENT) is not reproducible offline. Docs need a claims-check (item B5).
  4. A whole-session stashed pass keeps a mean 8.2% of the prefix stable. That is fine at compaction time (the built-in /compact rewrites everything anyway), but it rules out running stashed mid-session on a warm cache.

2. Where input tokens go (5 real sessions)

Method

Script: a local scratch script (not committed); PR 1 (item A1) turns it into lcc measure-session --input-map.

Sessions (anonymised; all from the maintainer, October 2026):

id agent requests billed input cache read share cache write share of input cost (read 0.1×, write 1.25×)
CC-A Claude Code 938 343.3 M 98.3% 18.2%
CC-B Claude Code 782 337.0 M 98.3% 17.8%
CC-C Claude Code 204 58.7 M 99.0% 11.7%
CC-D Claude Code 757 273.0 M 93.7% 45.5%
CX-A Codex CLI 79 14.2 M 97.1% 23.1% uncached (OpenAI has no write charge; 0.1× read assumed)

The 0.1/1.25 factors are the ones CACHE_ALIGNMENT.md uses. All cache writes in the four CC sessions were 1-hour writes (ephemeral_1h_input_tokens), which cost more than 1.25×, so the write share of cost is a lower bound.

Share of billed input by category (replay model)

category CC-A CC-B CC-C CC-D CX-A who controls it
fixed overhead: system prompt, tool schemas, instructions 8.8% 10.1% n/a 14.7% 25.2% (prompt 12.0 + schemas 13.2) harness + user config
tool results 24.6% 34.3% 36.6% 26.1% 62.9% tools
tool-call inputs (Bash commands, Write/Edit bodies, Agent prompts) 33.1% 17.4% 28.2% 23.3% 8.0% model
harness attachments (skill listing, deferred-tool lists, queued notifications, CLAUDE.md, reminders) 25.2% 17.4% 26.0% 14.4% 0.4% harness + user config
user text 5.4% 17.0% 8.3% 15.5% 0.1% user
assistant text 2.9% 3.9% 0.9% 5.9% 3.5% model

CX-A was re-measured with PR #84’s Codex parser (2026-10-20): a response’s calls and outputs are charged from the next request on, and base_instructions is counted once. Its shares moved by at most 0.3 points; its billed totals did not change.

CC-A, CC-B and CC-D (the sessions with compactions) were re-measured on 2026-10-21 after the replay started keeping the messages a Claude Code compaction preserves (compactMetadata.preservedMessages): shares moved by at most 0.2 points, billed totals did not change. CC-C has no compaction; its fixed overhead still cannot be separated, which the report now states as a warning.

Re-measured again on 2026-10-21 after <synthetic> messages (local API errors with zero usage) stopped counting as requests: CC-A drops from 945 to 938 requests and CC-D from 774 to 757, which moves their fixed-overhead fit (CC-A 8.1% to 8.8%, CC-D 15.2% to 14.7%) and the other shares by up to 0.3 points. Billed totals did not change; CC-B, CC-C and CX-A did not move.

Drill-down (transcript tokens, counted once):

What is cuttable

category cuttable today? could be, keeping the guarantee how expected effect
tool results yes, stashed (4.7–36.1% of the lcc view, §1) larger share if done per payload stash big outputs when they arrive, not at compaction (A2) hypothesis: cache-safe, per CACHE_ALIGNMENT’s placement result
tool-call inputs no: EVIDENCE.md says these are never cut yes: old Write bodies and heredoc bodies are model-written and often identical to a file on disk stash old tool-call inputs with recall, or a re-read pointer when the file still matches (A3) hypothesis: up to the 8–33% share above; the real number is what A1 measures
re-reads / duplicates yes (lossless/recoverable) already near the ceiling none measured ≤2% of tool results
fixed overhead + attachments no (harness-owned) not by rewriting. lcc can report them config-overhead report: “your skill listing costs N tokens per request” (A4) user-side decision, nothing rewritten
user / assistant text no, never no rule —
cache writes indirectly yes: never convert reads into writes report cost-weighted, not token-weighted; warn when a pass opens an epoch (A5) 12–46% of input cost was writes in these sessions

The main finding. 94–99% of billed input tokens were cache reads. Cutting a token from a warm prefix saves 0.1× per later request, but the first request after the cut re-writes everything to its right at 1.25× or more. So for input cost the order of levers is: (1) keep big payloads out of the prefix in the first place (per payload), (2) cut at an epoch the harness opens anyway (compaction: what the plugin does today), (3) never cut mid-prefix on a warm cache. lcc today does (2) and knows (3); (1) is the missing piece, and it is the input-side work this plan proposes.


3. Backlog (prioritised)

Size: S ≤ 1 day, M ≤ 3 days, L ≤ 2 weeks. Priority P0 = this month.

A. Input-token optimisation

id P problem evidence success metric size test that proves it risk
A1 P0 Nobody, including us, can see where input tokens go per category §2 needed a scratch script; measure-session reports totals only lcc measure-session --input-map prints the §2 tables (billed split, category shares, drill-down) offline in < 10 s on CC-A M golden tests on 3 synthetic sessions (Claude Code + Codex) with hand-computed shares; property: categories sum to billed total ± unexplained category rules drift with Claude Code’s JSONL format; mitigate with a format-version field and a “unknown attachment type” bucket
A2 P1 Big tool outputs enter the prefix whole and stay until compaction tool results are 25–63% of billed input (§2); per-payload placement cheapest in both cache-pattern runs (§1) share of tool-result tokens in prefix ↓ with 0 cache-write increase on a replayed session L replay test: same session with and without per-payload stash; byte-exact recall of every stashed payload; prefix_untouched for everything already sent unverified capability: whether a Claude Code hook can replace a tool output before it enters context must be checked against current hook docs first (spike, S)
A3 P1 Tool-call inputs are never cut 8–33% of billed input (§2); EVIDENCE.md: tool-call inputs “never cut” stashed reduction on CC-A rises above 4.7% with 0 verify_stashed violations M invariant suite (B1) extended to tool-input stash; recall round-trip on every stashed input changes the public promise “assistant messages untouched”: tool inputs are assistant-authored. Decided: opt-in flag, never default (§7). API constraints on editing earlier assistant turns with thinking blocks must be checked
A4 P2 Users cannot see what their own config costs (skills, MCP servers, CLAUDE.md) skill listing 13k–49k tokens per session; fixed overhead 8–25% of billed (§2) input map lists each config source with tokens per request and billed total S golden test on a synthetic session with known attachments must never suggest editing user files automatically; report only
A5 P2 Reports weigh tokens, not cost; writes are invisible writes 1.7–6.3% of tokens but 12–46% of input cost (§2) input map and receipts show read/write split and cost-weighted totals S unit tests on usage records; factors configurable, defaults cited provider prices change; keep factors in one config with a source note
A6 P3 (Re-read dedup) identical re-reads 0 tokens in 4/4 sessions — — — Do not invest. Measured ceiling is tiny.

B. Continuous deterministic hardening

id P problem evidence success metric size test that proves it risk
B1 P0 Edge-case work happens in bursts (one PR), not continuously tests/edge_corpus.py is a fixed seeded generator (~50 docs, EDGE_CASES.md); no time-boxed fuzz in CI (.github/workflows/ci.yml) a CI job runs a time-boxed property/fuzz pass on every PR (60 s) and nightly (10 min), logs its seed, and any failing input is minimised and committed to tests/corpus/adversarial/ M the invariants below, run over the generator and over the versioned corpus flaky CI if a property is wrong; mitigate by running new properties nightly-only for a week before gating PRs
B2 P1 Invariants are spread across test files EDGE_CASES.md lists 5 invariants across 3 files one tests/invariants.py module, each invariant a function reused by unit, fuzz and replay tests S — none
B3 P1 Real-session safety is only checked in studies verify_stashed 0 violations on 10,830 results was a one-off study (EVIDENCE.md §1) a local script replays every session in a directory nightly (owner machine, never CI, counts only) and fails on any violation S its own self-test with a planted corrupt blob must never upload anything; counts only
B4 P2 Python and Node hook can drift on placeholder text test/hook-cache.test.mjs covers the hook side a shared fixture file both suites read S both suites fail on a one-byte change to the fixture none
B5 P1 Published numbers can drift from their result files §1: CACHE_ALIGNMENT table does not reproduce scripts/check_claims.py asserts each doc table cell against its result JSON; CI runs it S planted mismatch fails some docs cite private receipts; those are listed as owner-attested and skipped
B6 P3 Test strength is unmeasured no mutation testing mutation score on transcript_stash.py and transcript_lossless.py reported M mutmut run, report only slow; nightly only

Invariants B1 checks (each over the generator, the corpus and, locally, real sessions):

  1. Idempotence: compact(compact(x)) == compact(x) for lossless, recoverable, stashed (block mode keeps its documented relational exception, EDGE_CASES.md).
  2. Verbatim: every kept span is byte-identical to its source span, in order.
  3. Recall round-trip: replacing each placeholder with recall(id) rebuilds the input byte for byte.
  4. No corruption: CRLF, lone CR, BOM, NFD, zero-width, RTL, surrogate-free text survive exactly; output is valid UTF-8.
  5. Stable placeholder: same removed bytes → same placeholder text and id across runs, PYTHONHASHSEED, locale and timezone (extends I2/I3 of the cache contract).
  6. Accounting: report counters reconcile with emitted text.
  7. Fail-closed: any exception other than the documented ValueError / TranscriptError is a failure.

Tooling choice: the repo deliberately keeps hypothesis out of dev deps (tests/edge_corpus.py header). Decided (§7): add hypothesis as a dev-only dependency for shrinking (the failing inputs it finds are much smaller), keep the stdlib generator for the corpus.

C. Visible reporting

id P problem evidence success metric size test that proves it risk
C2 P0 After a pass the user does not see what was cut or saved issue #2; Rich is already a dependency (src/lcc/cli.py) but only renders tables after compaction the CLI and hook print a short receipt: tokens before/after, outputs stashed, top 5 by size with their recall ids, cache effect S snapshot test of the rendered receipt (no colour) noisy output; one line by default, full with --receipt
C3 P0 Claude Code users see nothing between compactions no statusline code exists a statusline script shows session tokens saved by lcc, stash count, cache-read share, from a local ledger M node test feeding a fixture ledger needs a local ledger: the hook appends one line per pass to ~/.cache/lcc/ledger.jsonl (counts only, never text, never sent anywhere). Decided: opt-in only (§7)
C1 P1 No shareable picture of a session — lcc report <session> --html out.html: one self-contained file, no network, no JS from CDNs; before/after bars, category map (A1), stashed list M golden HTML structure test; a test that the file contains no http resource URLs leaking session text into a file the user may share: show counts and ids by default, text only with --include-text
C4 P2 Savings over time are invisible — lcc savings aggregates the ledger: per day/project tokens and estimated cost avoided S unit test on fixture ledger cost estimates depend on price assumptions; show tokens first

D. Concept maturation

id P problem evidence success metric size test risk
D1 P0 The repo tells many stories (compiler, MSI, prepare, judges) README lists providers, MSI quickstart, Jev, Laya; roadmap.md describes Phase 1–7 of a different product a new CONCEPT.md under docs/ with §0 of this plan; README first screen uses only the thesis and product column S link check; README numbers checked by B5 none
D2 P1 roadmap.md is outdated (describes prepare phases) docs/roadmap.md header roadmap replaced by this plan’s backlog, old file archived S — none
D3 P2 lossy still appears in user-facing options REAL_SESSION_BENCHMARKS.md §2: failed two audits lossy hidden behind --experimental S CLI test breaking change for anyone using it; deprecation warning first

E. Papers and posts

id P problem evidence success metric size risk
E1 P1 Paper 1 has data from one maintainer and one answerer EVIDENCE.md Limits the four gaps below closed or stated L first-time arXiv submitters need an endorser in the chosen category; find one early
E2 P1 No Show HN or blog draft — drafts in §6, numbers only from EVIDENCE.md/README S HN reacts badly to overclaiming; every number carries its limit

Paper 1 gaps:

  1. Other users’ data. Today 0 external sessions. Target ≥ 5 people posting measure-session (and, after A1, --input-map) output in Discussions; report them separately from the maintainer’s.
  2. Cost of recall turns. EVIDENCE.md: “Recall turns re-send the context; the cost of that is not in these numbers.” Measure from the study’s existing run logs: extra requests per recall, tokens re-sent, cache read/write split (A5 code does the accounting).
  3. Matched budget. EVIDENCE.md §3: “not a matched-budget comparison”. Add arms at the stashed budget (~63% of full): a summary constrained to that size, head/tail truncation, and recency-only dropping. Pre-register as amendment 5 before running.
  4. Second answerer and repeat runs. One answerer model, one run. Add one other model family and 3 runs of the primary arm for variance.

Also needed: prior-art section comparing against published prompt-compression and context-paging work (to be surveyed; ADR 0022 forbids novelty claims without it).

F. Adoption and stars

What blocks adoption today:

blocker evidence
Few people find the repo GitHub traffic, last 14 days: 175 views, 39 unique visitors; top referrers github.com (6), threads.com (4), facebook (3) (gh api .../traffic, 2026-10-20)
The plugin needs an early-access flag and Claude Code 2.1.274+ README “Install”: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1
The “run it on yours” command is slow by default §1: 153 s on a 666k-token session, almost all in the auto arm
After install, savings are invisible no statusline, no receipt (C2/C3)
All evidence is one person’s EVIDENCE.md Limits
The repo reads as several projects D1

(PyPI: 259 downloads last month per pypistats, which includes CI and mirrors; not a user count.)

id P item metric size risk
F1 P0 measure-session fast by default: rules arms only, --modes auto opt-in, progress line CC-A in < 5 s S changes default output; say so in CHANGELOG
F2 P1 One-command trial: uvx local-context-compiler measure-session <file> documented as the first line of README; lcc doctor checks Claude Code version, flag, MCP recall permission a new user gets numbers in one command S uvx availability on user machines
F3 P1 Integrations: Codex (measure + MCP recall; document that Codex has no compaction hook), Cursor (MCP recall + measure), Aider (#63) one documented path per tool, each with a test fixture M each Cursor/Codex hook surfaces change; document versions tested
F4 P1 Good first issues: 5 existing (#2, #62, #63, #64, #83) + 5 drafted in §6 ≥ 2 external PRs merged by week 8 S maintainer review time
F5 P2 Awesome lists: drafts for awesome-claude-code, awesome-mcp-servers and similar (submission after approval) listed in ≥ 2 S list rules on self-promotion
F6 P1 Demo: 30-s GIF of statusline + receipt + recall (extends demos/stash.gif) in README and Show HN S —
F7 P2 Windows: stash path (#62) + a Windows CI job CI green on windows-latest S —

4. First three PRs

PR 1: measure-session --input-map (A1, with A5’s cost split)

PR 2: continuous invariant harness (B1 + B2)

PR 3: receipt + statusline (C2 + C3)


5. Eight-week calendar

Week 1 starts Monday 2026-10-19 (this week).

week dates build evidence / writing outreach (all after approval)
1 Oct 19–25 PR 1 input map; F1 fast measure-session D1 concept doc; B5 claims-check, fix CACHE_ALIGNMENT table —
2 Oct 26–Nov 1 PR 2 invariant harness; PR 3 receipt + statusline Show HN draft v1 beta opens: 5–10 users run measure-session --input-map + plugin; good first issues filed
3 Nov 2–8 A2 spike (hook capability check); F2 lcc doctor; F6 demo GIF collect beta numbers in Discussions; blog draft beta feedback round; awesome-list PRs prepared
4 Nov 9–15 bug fixes from beta; C1 HTML report if time final Show HN + blog Show HN Tue 2026-11-10; blog post same day
5 Nov 16–22 A3 tool-input stash behind a flag (if approved) recall-turn cost from study logs (gap 2) answer HN threads, triage
6 Nov 23–29 A2 per-payload stash (if the spike passed) pre-register amendment 5 (matched budget, 2nd answerer); start runs arXiv endorser confirmed
7 Nov 30–Dec 6 F3 integrations (Codex, Cursor docs) run matched-budget + repeat arms; write results —
8 Dec 7–13 release 1.3.0 paper final, internal review, arXiv submission announce paper

6. Drafts

6.1 Paper 1 skeleton

Working title: Recoverable verbatim compaction for coding-agent context: a pre-registered study of stash-and-recall

  1. Introduction. Agents re-send their whole history; summaries drop exact values. Question: can old tool outputs leave the context without loss, if the agent can fetch them back byte for byte?
  2. Related work. Prompt compression, summarisation-based compaction (Claude Code /compact), memory paging and retrieval for agents, prompt caching. (To be surveyed.)
  3. Method. The rules modes; the stash (content-addressed, hash-checked); recall; the cache contract (I1–I4) and why placement matters for cache cost.
  4. Mechanical study (stashed-v1): 847 sessions, 45.6 M tokens, reduction per mode, 10,830 stashed results with 0 violations by two independent checkers (EVIDENCE.md §1).
  5. Agent-in-the-loop study (stashed-recall-v1, pre-registered): 172 requests, three arms, the two pre-registered tests, recall behaviour (EVIDENCE.md §2).
  6. Verbatim vs summary (probe-eval-v1) and the matched-budget arms (new, gap 3).
  7. Cost, including recall turns (new, gap 2) and the input map of where tokens go (§2 of this plan, extended to more sessions).
  8. External replication: sessions from other users (gap 1).
  9. Limitations: one maintainer’s sessions for the main studies, one answerer (until gap 4), LLM judges, questions built to need removed content (19 of 662 natural).
  10. Artifact: MIT code, commands to reproduce every mechanical number, protocol and amendments.

6.2 Show HN draft

Show HN: lcc – compact coding-agent context without summarizing it away

Claude Code’s /compact replaces your session with a model-written summary. In my sessions that summary lost exact details: on 172 real requests, a summary of the same context got 73% of exact values right, against 98% for the full context. (The summary was our own reimplementation of /compact, written by Opus, not Claude Code itself.)

lcc does something narrower. It moves old tool outputs (file reads, command output) out of the context into a local stash and leaves a one-line pointer. The agent can call recall to get any of them back byte for byte. User and assistant messages are never touched. It runs offline, with no model and no network.

On those 172 requests, an agent with the stashed context plus recall matched full context on file recall (+0.006, 95% CI −0.023 to +0.034) using 36.6% fewer context tokens. It called recall for 90% of the questions about removed content. The test was pre-registered.

The limits: all of this is my own sessions (847 for the mechanical numbers, 266 long ones for the 22.7% median cut), one answerer model, one run. That is why the first thing in the README is a command you can run on your own session:

uvx local-context-compiler measure-session ~/.claude/projects/<project>/<session>.jsonl

It counts only and sends nothing. If you post the output, I’ll add it to the evidence page, separately from mine.

Code (MIT): github.com/lucasmartins-ai/lcc · Evidence and method: docs/EVIDENCE.md

(The uvx line assumes F2 lands; the current README uses pip install.)

6.3 Five new good first issues

  1. measure-session --modes. Let the user pick which modes run (lossless,stashed default; auto opt-in). The auto arm took 153 s of ~157 s on a 666k-token session. Done when: the flag exists, the default skips auto, a test checks the mode list. Start: src/lcc/session_report.py, src/lcc/cli.py (measure_session_cmd).
  2. Make the cache-placement table reproducible. run_cache_patterns.py uses the hosted Jev judge, so its numbers change between runs (rerun on 2026-10-20: −15.3 / −26.9 / −36.3% vs −7.9 / −22.6 / −42.4% in CACHE_ALIGNMENT.md). Add --provider mechanical as the default, regenerate the result JSON, update the table. Done when: two runs give the same JSON.
  3. lcc recall --list. List stash entries (id, size, first line, date), newest first, so a user can see what was removed. Done when: a test over a temp LCC_STASH_DIR. Start: src/lcc/relevance/transcript_stash.py.
  4. Adversarial test: a tool output that quotes a placeholder. A file read of lcc’s own docs contains [removed: N tokens · lcc recall <id>]. Check it is stashed like any other output, never treated as an existing pointer, and that recall returns it exactly. Done when: a test in tests/test_edge_transcript.py and an EDGE_CASES.md row.
  5. Windows CI job. Add windows-latest (Python 3.12) to the pytest matrix and mark or fix what fails; pairs with #62. Done when: CI green on Windows or failing tests filed as issues.

7. Maintainer decisions (decided 2026-10-20)

The plan was approved on 2026-10-20. Decisions:

  1. Tool-call input stashing (A3): allowed, behind an opt-in flag. Never the default.
  2. Local ledger (C3): opt-in only. Counts only, never leaves the machine.
  3. measure-session default (F1): the auto arm leaves the default run.
  4. hypothesis (B1): added as a dev-only dependency.
  5. arXiv category and endorser: decided after the beta.
  6. Show HN: fixed for Tuesday 2026-11-10. The beta informs the post but does not block the date.