Repository navigation
Releases
Stratavell v0.1.2
A packaging release. The engine is the same as in v0.1.1. What's new is easier ways to install and integrate it.
New
- Docker image
ghcr.io/tobiaslogic/stratavell, for linux/amd64 and linux/arm64. It is static, runs as non-root and is about 25 MB. Its default command is the MCP server over stdio, with the archive in the/datavolume:Serving HTTP from the container needs a bearer token, as it does everywhere else on a non-loopback address.docker run -i --rm -v stratavell-data:/data -e STRATAVELL_SESSION=my-project ghcr.io/tobiaslogic/stratavell:0.1.2
- MCP Registry entry
io.github.TobiasLogic/stratavell, published once the image is public. - Python client,
pip install stratavell. It uses the standard library only and talks to the server over TCP or a Unix socket. - TypeScript client,
npm install stratavell. It has no runtime dependencies, ships type definitions and uses the globalfetch(Node 18 or newer, Deno, Bun, browsers).
The clients are thin wrappers over HTTP API v1. The wire format is stable within 0.x, and the client method names may still change (see docs/stability.md).
Unchanged
The engine, the HTTP API, the MCP tools, the database schema and the configuration are the same as in v0.1.1. The benchmark results and search latency figures from v0.1.1 still apply.
Install
go install github.com/TobiasLogic/stratavell/cmd/stratavell@v0.1.2Or use the archives below, verified against SHA256SUMS, or the Docker image.
Stratavell v0.1.1
A patch release that makes lexical search much faster. There are no API, database schema or configuration changes, and it is still pure Go with no new dependencies.
Search latency
Measured with TestSearchLatencyProfile: a generated 1,200-turn coding session, 200 searches over eight queries, one 8-core laptop CPU. v0.1.0 and v0.1.1 ran on the same machine in the same session.
| measurement | v0.1.0 | v0.1.1 |
|---|---|---|
| p95, 13,200 indexed chunks | 35.8 ms | 6.5 ms (81.8% lower) |
| p95, 3,400 indexed chunks | 10.6 ms | 3.1 ms |
| p95, 13,200 chunks, freshly reopened database (new engine and connections) | 76.5 ms | 14.6 ms |
v0.1.0's documentation reported 33.7 ms at 13.2k chunks from an earlier run.
These numbers cover one generated workload and eight queries. They are not a broad search benchmark.
What was wrong
Profiling showed the slow queries were not limited by SQLite's speed:
- Common words were added back. Term pruning refilled every query to three words with the rarest remaining ones, even when those appeared in 40 to 75% of all chunks. Full-text search then scored a large part of the corpus.
- Two-letter words looked rare. Document frequency ignored them, so
go, present in 74% of chunks, was counted as 0%. - The stale-file check ran per candidate. It made one or two queries for each search candidate and counted every later write. It is now one
EXISTSquery per search. - Path queries also ran full-text search. A query that is a single file path now uses the exact path index only, when that index has hits.
stratavell vacuum also merges FTS5 index segments now.
Alternatives tested and not adopted:
- a native C SQLite build: 1.85x faster on the same SQL, but it needs cgo
mmap_size: no effect- an in-memory index prototype: fast, but no longer needed
The measurements are in docs/experiments.md.
Behavior change: common-term fallback
When a query's rare words matched nothing, v0.1.0 still searched its common words: value_42 compute returned chunks that merely contained "value" or "compute". Since v0.1.1, words in more than 20% of chunks are dropped whenever a rarer word is present, so such a query returns no full-text hits.
A query made only of common words still searches its one or two rarest words. Exact path, symbol and id lookups are unaffected.
Unchanged results
- Benchmark output: all 26 deterministic regression runs are identical to the published results in every deterministic field: seed 1 of the 64k main, component-matched and ablation suites. That includes recoverability per fact kind, injected evidence, tokens and simulated costs.
- Golden smoke run:
TestDeterministicSmokeis unchanged. - Regression tests: the new tests fail on v0.1.0 and pass on v0.1.1.
Install
go install github.com/TobiasLogic/stratavell/cmd/stratavell@v0.1.1Or download an archive below and verify it with SHA256SUMS.
What comes next: internal optimization is frozen after this release. The next priorities are independent benchmarking and agent integrations (see docs/roadmap.md).
Stratavell v0.1.0: Research Preview
Stratavell is a provider-agnostic context management engine for long-running LLM agents, written in Go:
- asynchronous progressive compaction
- losslessly retrievable history in an immutable SQLite journal
- cache-aware context assembly
- persistent, provenance-aware task state
It runs fully locally as a Go library, an HTTP API over TCP or a Unix socket, an MCP server and a single static binary.
This is the first public release and a research preview. The Go API, HTTP API and storage format may change before 1.0 (see docs/stability.md).
Preliminary results
Measured on generated 300-turn coding sessions with a 64k-token window and 5 seeds. Costs are simulated input costs at Claude Sonnet 5.5 prices, from a model of Anthropic's prompt-cache rules.
| strategy | simulated input cost per session | facts recoverable | standing rules visible |
|---|---|---|---|
| async progressive summaries + retrieval | $12.88 | 97.2% | 21.9% |
| Stratavell | $6.43 | 100% | 100% |
- Cost: about half the simulated context cost of retrieval-enabled asynchronous progressive summarization, at comparable fact recoverability.
- Real-model QA: a pre-registered run (Claude Haiku 5.5, 33 questions, 1 seed) was a tie with the component-matched baselines: 28, 27 and 26 grounded answers.
- Not measured: real autonomous coding-task success and instruction compliance. The baselines are reconstructions.
The full method, every table and the limitations are in docs/benchmarks.md and docs/limitations.md.
Install
go install github.com/TobiasLogic/stratavell/cmd/stratavell@v0.1.0Or download an archive below. Linux, macOS and Windows on amd64 and arm64 are cross-compiled with CGO_ENABLED=0. Verify downloads with SHA256SUMS.
Platform testing for this release:
- Linux amd64: the full suite passes, including the race detector, the crash-recovery test, fuzzing and the cross-language examples.
- macOS arm64: CI passes.
- Windows amd64: CI passes every package except one store test that uses a
?in a directory name, which Windows does not allow. The test was fixed onmainafter the tag, and the engine code is unaffected. - Other platforms: the remaining builds are cross-compiled but untested.
Upgrading from palimpsest
The project was developed as palimpsest. See "Migrating from palimpsest" in docs/operations.md. The schema is unchanged, PALIMPSEST_* variables still work with a warning, and stratavell migrate copies a database to the new default name without touching the original.
See CHANGELOG.md for the complete list of changes.