Skip to content
Langstate 0.2.2 · Python 3.10+ · Apache-2.0 published-release licenseOpen source · inspectable boundary

Inspectable context compression

Compress conversation history without hiding the working state.

Langstate compresses older conversation turns into a visible scaffold, preserves recent context, and emits deterministic receipts for literal facts you name.

Run the deterministic local demono project files required
$ langstate demo
Release
v0.2.2
Published on PyPI
Runtime
Python 3.10+
Apache-2.0 published-release license
First run
One pinned command
No project files required
Scope
Bounded tool
Not a system-level guarantee

Why this exists

Make the evidence boundary visible.

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.

01

Visible scaffold

Returns compressed working state as an ordinary system message that can be inspected, edited, logged, or rejected.

02

Recent-turn preservation

Keeps system messages and the requested recent suffix verbatim while compressing older turns.

03

Literal fact receipt

Checks named strings after compression and reports which survived without claiming semantic equivalence.

The boundary

Useful evidence is not a blanket guarantee.

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 →
Read about continuity and memory