Skip to content

Releases

cheap-inference 2.2.1

Choose a tag to compare

@paulfxyz paulfxyz released this 30 Nov 14:50

2.2.1 - 2026-11-30

Audited by frontier models, hardened, and a new README.

Security and correctness (from the audit, chapter 15 section 15.8)

  • agent_msg.py: one validator for writing and reading; signed timestamp with freshness check; ReplayGuard; recipient binding; per-sender keys; 128-bit tag; key from file or environment, minimum length; strict tag format. Message format is now 8 fields (adds ts).
  • opacity_audit.py: detects chunked base64, spaced hex bytes, separated percent-escapes, HTML numeric references, variation selectors and other invisible characters; Unicode spaces no longer split blobs; CamelCase identifiers no longer flagged as base64; never echoes control characters; linear-time entropy; exit 2 on bad --allow.
  • telegraph.py: tracks multi-line fences (backtick, tilde, unclosed), keeps indentation and indented code, drops only "the", skips level 2 on lines with negations or conditions, keeps modals there, protects curly-apostrophe negations, passes non-English lines through, no 100% fewer on empty input.
  • codebook.py: aliases assigned once and applied in a single pass (tiny min_len and more than 26 aliases are lossless); legend maths match what --write produces.
  • compress_roi.py: money amounts are per request in your currency (price per million divided out); break-even is floored; invalid input exits 2.
  • codec_cost.py: validates --ratios, handles empty input, verdict generated from the rows.
  • Workflows: compression_decision.py composes the transforms instead of adding separate savings, honours --legend-cached, exits 2 on errors and is labelled advisory; agent_protocol_audit.py keeps physical line numbers, rejects replays, reports an empty log as NO TRAFFIC, exits 2 on missing input.
  • Chapter 18 wording: no more "proves" or "strictly worse"; the signing proposal is marked unconfirmed in primary sources; limits of opacity_audit.py and telegraph.py stated.

Added

  • README rewritten: new hero, table of contents, a banner for every section, nine new diagrams (bill, receipts, terminal, tool map, workflows, review, encoding cost, field guide, levers), nine claims, a symptom-to-tool finder. All artwork is generated by docs/images/build_art.py from repository data.
  • Three new badges (workflows, chapters, audited).
  • Chapter 15 section 15.8 and raw audit answers in docs/reviews/2.2.0/.
  • 39 new tests (151 in total), including documentation consistency checks (links, anchors, counts, version).

cheap-inference 2.2.0

Choose a tag to compare

@paulfxyz paulfxyz released this 30 Nov 14:27

2.2.0 - 2026-11-30

Compact notation, researched: what "cryptic agent language" can and cannot save.

Added

  • Chapter 18: sources, numbers and verdicts on clipped output, clipped input, learned prompt compression, encodings, and what the 2026 OpenAI / Hugging Face incident reports show about agent message style.
  • Six tools: telegraph.py (guarded clipped prose), codebook.py (lossless aliases net of legend), compress_roi.py (net money incl. output growth), codec_cost.py (encodings cost more), opacity_audit.py (unreadable text tripwire), agent_msg.py (fixed verbs, signed, readable messages). 40 tools in total.
  • Two workflows: compression_decision.py, agent_protocol_audit.py (10 in total).
  • Prompts 55 to 62, tips 155 to 174, recipes 13.14 and 13.15, checklist items, claim 11, examples/agent-messages.sample.log.
  • 23 new tests (112 in total).

Changed

  • README, badges, hero text and counts updated; chapter 17 lists the new workflows.

cheap-inference 2.1.0

Choose a tag to compare

@paulfxyz paulfxyz released this 27 Nov 16:02

2.1.0 - 2026-11-27

Reviewed by four frontier models through OpenRouter, then extended.

Added

  • Chapter 15: the multi-model review (Claude Fable 5.2, Gemini 4 Neon, GPT 6.2 Astra, Grok 4.7): method, consensus, what was accepted and declined. Raw answers in docs/reviews/.
  • Chapter 16 (advanced techniques) and chapter 17 (workflows).
  • 21 tools: schema_diet, payload_compact, fewshot_prune, history_trim, token_calibrate, prefilter, cascade, topk, batch_pack, repair_plan, response_cache, singleflight, cache_breakeven, wave_plan, output_audit, waste_finder, preflight, wiki_roi, edit_guard, eval_gate, lane_picker (34 tools in total).
  • 8 workflows in workflows/: weekly audit, safe downgrade, bulk job planner, session hygiene, context diet, long-document Q and A, repair failed fields, cache decision.
  • GitHub Actions: cost-gate.yml (pull requests) and weekly-audit.yml (every Monday).
  • Prompts 43 to 54, tips 101 to 154, recipes 13.11 to 13.13, checklist additions, new example data files.
  • 59 new tests (89 in total), including a test that no tool imports a network or subprocess module.

Changed

  • Caching guidance now covers the write premium, expiry, minimum prefix and warm-up (chapter 8).
  • The fixed "50 to 100 sources" wiki threshold is replaced by wiki_roi.py.
  • tokens.py estimates by content kind and accepts a calibration file; session_budget.py models caching; compact.py keeps error lines from the cut region; budget.py counts requests and tool schemas; ladder_log.py can probe a lower rung; kb.py gained lint --skip-stale and tolerates curly quotes.
  • Claim wording: the checks cost zero tokens; repairing findings costs what it costs. Documented limits of the quote check, the verifier and fan-out.

Fixed

  • Ingest loop ordering: lint ran before done, so a correct edit of a changed source could never pass rule R7.
  • Nightly script no longer treats a failing status as zero pending; staging is limited to wiki/ and .brain/.

cheap-inference 2.0.0

Choose a tag to compare

@paulfxyz paulfxyz released this 26 Nov 16:55

2.0.0 - 2026-11-26

The toolkit grows from a starter kit into a full field guide.

Added

  • Six tools: prompt_lint.py, compact.py, chunker.py, usage_report.py, ladder_log.py, session_budget.py (13 tools in total, all standard library only).
  • Chapter 11: 42 copy-paste prompts. Chapter 12: 100 tips and tweaks. Chapter 13: ten end-to-end recipes. Chapter 14: bold claims with a runnable receipt for each, and what is not claimed.
  • Animated illustrations: hero, linter, ladder and always-loaded-context diet.
  • 13 new unit tests (30 in total).
  • Redesigned README: claim cards, flow diagram, starting points, FAQ.

Changed

  • Minimum Python is now 3.10.
  • CI runs on Python 3.10 and 3.12.