Visible scaffold
Returns compressed working state as an ordinary system message that can be inspected, edited, logged, or rejected.
Inspectable context compression
Langstate compresses older conversation turns into a visible scaffold, preserves recent context, and emits deterministic receipts for literal facts you name.
$ langstate demoWhy this exists
Long-running agent sessions need smaller context, but an opaque summary can silently drop an operative constraint. Langstate makes the compressed scaffold inspectable and checks whether explicitly named facts survived before the result is reused.
Returns compressed working state as an ordinary system message that can be inspected, edited, logged, or rejected.
Keeps system messages and the requested recent suffix verbatim while compressing older turns.
Checks named strings after compression and reports which survived without claiming semantic equivalence.
The boundary
Langstate is a lossy context-compression prototype, not a lossless archive, structured state store, or semantic-fidelity guarantee. Its receipt checks literal text only.
Compare it with the other open-source tools →