v0.1.4 — Token savings stats
·
15 commits
to main
since this release
What's new
After each matched prompt, open-context now appends a token savings line
to the injected context:
[open-context] 91% token reduction (1.2 KB injected vs 14.8 KB full context)
The baseline is format_report() run across all domains (no threshold filter),
giving a concrete all-domain ceiling to compare against.
Stats are best-effort — a failure never breaks context injection.
Changes
resolver.py— newinclude_all_domainskeyword-only param onresolve()
for the baseline passresolve_hook.py— computes and appends savings stats after truncation- 5 new integration tests: presence, numeric sanity, no-match guard,
truncation survivability, superset contract