@syghar/dsh-ninfer-context
v0.1.0
Published
Provider-anchored DSH token meter for ninfer context usage
Downloads
130
Readme
dsh-ninfer-context
This plugin is a compatible replacement for DSH's token-meter service. It
keeps the tokenUsage, contextPressure, and contextBreakdown projections
unchanged, but treats a completed ninfer usage report as the authoritative
context anchor even when it is lower than the fixed-density heuristic.
That makes the existing compaction engine and context-used widget agree with the actual OpenAI-compatible usage returned by ninfer. Surface changes after the last provider sample are still estimated until the next ninfer response; the provider anchor is never fabricated before ninfer reports usage.
