Nolife Tokens

Nolife Tokens

Shrinking LLM context without destroying recoverability.

Interactive version — https://slide.darkwood.com/slides/nolife-tokens

Mathieu Ledru

November 27, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

27 slides
  1. Darkwood · Symfony · Flow · context Nolife Tokens Shrinking

    LLM context without destroying recoverability Symfony + Flow experiment @matyo91
  2. Slide 2 · 1/2 · représentation statique The problem ↓

    ↓ Tool 50 KB stdout LLM context logs JSON telemetry 01 | problem Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  3. Slide 2 · 2/2 · représentation statique git diffs repo

    trees compiler output test output Large context windows make it possible to send everything. They do not make it wise. 01 | problem Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  4. Slide 3 · 1/2 · représentation statique Hypothesis Do more

    deterministic work before the LLM. Before Tool → raw output → LLM After Tool → deterministic reducer 02 | hypothesis Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  5. Slide 3 · 2/2 · représentation statique Hypothesis Do more

    deterministic work before the LLM. → useful context → LLM PHP HANDLES deduplication · classification · filtering · hashing · recovery These tasks do not require a model. 02 | hypothesis Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  6. content/nolife-tokens A laboratory, not a framework PHP 8.5 NOT USED

    Symfony 8.1 Console darkwood/flow PIPELINE No embeddings Load → Classify No vector DB → Measure → Optimize No MCP → Measure → Evaluate No Redis No LangChain 03 | experiment @matyo91
  7. Slide 5 · 1/4 · représentation statique Content is not

    all the same Different noise. Different limits. LOGS [INFO] started [INFO] started [INFO] started [ERROR] Payment failed ↓ [INFO] started ×3 [ERROR] Payment failed 04 | content-types Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  8. Slide 5 · 2/4 · représentation statique Content is not

    all the same Different noise. Different limits. JSON id status error telemetry… ↓ id status 04 | content-types Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  9. Slide 5 · 3/4 · représentation statique Content is not

    all the same Different noise. Different limits. error GIT DIFF - security check + … Changed lines are often already 04 | content-types Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  10. Slide 5 · 4/4 · représentation statique Content is not

    all the same Different noise. Different limits. the signal. Natural compression limits differ by type. 04 | content-types Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  11. Slide 6 · 1/4 · représentation statique TOKEN_PIPELINE_POC · measured

    Volume vs signal log · −75.4% RAW 4839 OPT 1190 diff · −24.0% RAW 3186 05 | first-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  12. Slide 6 · 2/4 · représentation statique TOKEN_PIPELINE_POC · measured

    Volume vs signal OPT 2421 JSON · −99.0% RAW 6780 OPT 67 05 | first-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  13. Slide 6 · 3/4 · représentation statique TOKEN_PIPELINE_POC · measured

    Volume vs signal Capture statique : Schéma ou tableau 05 | first-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  14. Slide 6 · 4/4 · représentation statique TOKEN_PIPELINE_POC · measured

    Volume vs signal Lecture du schéma : CASE RAW* OPT* SAVED SIGNAL log 4,839 1,190 75.4% PASS diff 3,186 2,421 24.0% PASS JSON 6,780 67 99.0% PASS * estimated tokens = bytes / 4 — not provider-billed Token reduction without signal retention is vanity. 05 | first-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  15. Slide 7 · 1/3 · représentation statique The gap REMOVE

    FROM CONTEXT ≠ DESTROY INFORMATION Bad raw → compress → information gone Better 06 | reversible-idea Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  16. Slide 7 · 2/3 · représentation statique The gap REMOVE

    FROM CONTEXT ≠ DESTROY INFORMATION raw ↘ stored omission compress ↓ visible context 06 | reversible-idea Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  17. Slide 7 · 3/3 · représentation statique The gap REMOVE

    FROM CONTEXT ≠ DESTROY INFORMATION Next milestone: REVERSIBLE_CONTEXT_POC 06 | reversible-idea Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  18. Slide 8 · 1/3 · représentation statique Reversible references Structure

    stays. Bulk leaves. ORIGINAL { "id": 42, "status": "failed", "error": "…", "telemetry": { "…6000 tok…" } } OPTIMIZED 07 | refs Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  19. Slide 8 · 2/3 · représentation statique Reversible references Structure

    stays. Bulk leaves. { "id": 42, "status": "failed", "error": "…", "telemetry": "#ref:ctx_31154f" } → 07 | refs Version interactive : https://slide.darkwood.com/slides/nolife-tokens #ref:ctx_31154f @matyo91
  20. Slide 8 · 3/3 · représentation statique Reversible references Structure

    stays. Bulk leaves. var/context/…json → exact bytes Marker cost ≈ 4 estimated tokens 07 | refs Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  21. Slide 9 · 1/2 · représentation statique Flow pipeline Two

    invariants 1Load 2Classify 3MeasureRaw 4Optimize + store refs 5MeasureVisible 08 | flow Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  22. Slide 9 · 2/2 · représentation statique Flow pipeline Two

    invariants 6Signal check 7Recovery check SIGNAL = PASS RECOVERY = PASS bin/console tokens:show-ref ctx_31154f 08 | flow Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  23. Slide 10 · 1/2 · représentation statique REVERSIBLE_CONTEXT_POC · measured

    Out of context ≠ gone Capture statique : Schéma ou tableau Lecture du schéma : CASE RAW* VISIBLE* REFERENCED* SAVED REFS log 09 | reversible-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  24. Slide 10 · 2/2 · représentation statique REVERSIBLE_CONTEXT_POC · measured

    Out of context ≠ gone coarse 4,839 1,204 3,671 75.1% 1 log fine 4,839 1,202 3,670 75.2% 3 JSON 6,780 146 6,191 97.8% 9 diff 3,186 2,434 749 23.6% 1 * estimated (bytes / 4) · SIGNAL PASS · RECOVERY PASS on all rows 6,191 estimated JSON tokens moved out of active context. Not destroyed. Recoverable. 09 | reversible-benchmark Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  25. Granularity experiment · logs Granularity has a cost COARSE FINE

    1 ref 3 refs 4 marker tokens 12 marker tokens 1,204 visible 1,202 visible 3× more references for ~2 estimated tokens saved. For this workload: coarse > fine Workload-dependent — structured JSON can benefit from finer, positional refs. 10 | granularity @matyo91
  26. Slide 12 · 1/2 · représentation statique For coding agents

    Better context. Same agents. ↓ Tool output → PHP reducer Useful context ↓ needs more? #ref expansion → LLM → raw source git diff 11 | agents · @matyo91 Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91
  27. Slide 12 · 2/2 · représentation statique For coding agents

    Better context. Same agents. logs tests / JSON / trees Not another agent interface — better context for the ones we already use. Next: progressive disclosure (L0 overview expand #ref raw). → → What is the minimum context the model needs to make the correct decision? 11 | agents · @matyo91 Version interactive : https://slide.darkwood.com/slides/nolife-tokens @matyo91

More Decks by Mathieu Ledru

Other Decks in Programming