Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

Stratavell

Latest version: v0.1.2

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
MCP server Transport: stdio Publisher: TobiasLogic
1 Stars
0 Forks
1 Versions
Go Repo language

Scan summary

Stratavell was last scanned on 26 Nov 2026 at version 0.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 26 Nov 2026.
  • Findings: No rules fired in version 0.1.2.
  • MCP server: Runs over stdio.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.2 LATEST 26 Nov 2026 No rules fired

No rules fired in 0.1.2

Findings

Findings for v0.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Stratavell

Compress context. Preserve knowledge.

Stratavell is a provider-agnostic context management engine for long-running LLM agents, written in Go. It keeps every message, tool call and tool output in an immutable local journal. Each model request is built as a view of that journal:

  • recent work verbatim
  • older work as summaries and masked observations
  • standing user instructions pinned
  • everything else retrievable exactly, by id

Summaries are produced in the background, and the request is laid out so that prompt caches keep hitting.

It runs fully locally as a Go library, an HTTP API over TCP or a Unix socket, an MCP server and a single static executable. It needs no external database, no embedding model and no API key.

Research preview (v0.1.2). The results below come from generated, fixed-trajectory workloads, reconstructed baselines and a simulated prompt-cache model. Real autonomous coding-task performance has not been evaluated yet. See limitations.

Why Stratavell?

  • Conventional compaction loses information. Rewriting the history into one summary drops exact values, early constraints and the reasons behind decisions. Repeated compaction erodes them further.
  • Long tool outputs inflate cost. Test logs, grep results and file reads dominate agent context, and most of each one is never needed again verbatim.
  • Synchronous summarization blocks the agent. The agent waits while the history is summarized, usually at the moment the context is fullest.
  • Badly placed compaction breaks prompt caching. Editing early parts of the prompt invalidates the cached prefix, and every later request pays full price.
  • Every agent framework rebuilds this. Stratavell is a standalone engine that any host can call, so the logic is written and tested once.

Architecture

flowchart LR
    host["Agent host<br/>(your loop, framework or tool)"]

    subgraph interfaces["Provider-neutral interfaces"]
        sdk["Go SDK"]
        http["HTTP API v1<br/>TCP or Unix socket"]
        mcp["MCP server<br/>(stdio)"]
    end

    subgraph engine["Stratavell engine"]
        journal[("Immutable journal<br/>SQLite WAL, SHA-256 per event,<br/>content-addressed blobs")]
        reduce["Deterministic reductions<br/>externalize large outputs,<br/>dedupe, epoch masking"]
        compact["Background compaction<br/>progressive, async,<br/>generation CAS publish"]
        dag["Summary DAG<br/>leaves point at exact<br/>event ranges"]
        task["Task state<br/>pinned instructions,<br/>failures, decisions,<br/>provenance"]
        index["Indexed retrieval<br/>FTS5 BM25, symbols,<br/>paths, exact ids"]
        assemble["Cache-aware assembly<br/>stable prefix, snapshot plus delta,<br/>budget and emergency ladder"]
    end

    providers["LLM providers<br/>Anthropic, OpenAI-compatible, Ollama"]

    host --> sdk & http & mcp
    sdk & http & mcp --> journal
    journal --> reduce --> assemble
    journal --> compact --> dag --> assemble
    journal --> task --> assemble
    journal --> index
    index -- "memory tools" --> assemble
    assemble -- "rendered request" --> host
    host --> providers

The engine never calls the primary model. The host sends the assembled request to its provider and appends the response. The model can recover anything archived through memory tools (memory_search, memory_expand, memory_get_event and others) that the engine executes. More in docs/architecture.md and ADR 0001.

Performance

Benchmark conditions

  • Workload: generated 300-turn coding sessions of 2.9 to 3.2 million raw tokens each, with a scripted trajectory.
  • Window: 64k tokens. Seeds: 5.
  • Summarizer: extractive, deterministic.
  • Costs: simulated input costs at Claude Sonnet 5.5 list prices, from a model of Anthropic's documented prompt-cache rules. They are not provider bills.

The comparison below is against component-matched baselines: asynchronous and synchronous progressive summarization (similar to APEC), each given the same retrieval tools and automatic evidence injection that Stratavell has.

strategy requests that fit simulated input cost per session facts recoverable standing rules visible foreground summarization wait
async progressive summaries + retrieval 100% $12.88 ± 0.44 97.2% 21.9% 0 s
sync progressive summaries + retrieval 100% $11.36 ± 0.55 97.2% 22.0% 320 s
Stratavell 100% $6.43 ± 0.20 100% 100% 0 s

How to read the table:

  • Facts recoverable: a planted fact and its supporting evidence are in the context, or are found by one fixed retrieval query.
  • Standing rules visible: the user's earlier rules appear in the assembled context. That is visibility, not compliance.
  • The main result: at comparable fact recoverability, Stratavell costs about half as much as retrieval-enabled asynchronous progressive summarization (50% lower).
    • In the ablations, most of the saving comes from externalizing oversized tool outputs at ingestion, from batched (epoch) masking and from the cache-aware layout.

Other results:

  • QA with a real model: in a pre-registered question-answering run (Claude Haiku 5.5 reader, 33 questions, 1 seed), the grounded-answer counts were a tie:

    • Stratavell: 28
    • conventional compaction with a passive Stratavell archive: 27
    • async summaries with retrieval: 26
  • 200k window (400 turns, 3 seeds):

    • Stratavell's simulated input cost was $10.44 per session, against $16.46 to $27.62 for conventional, sync and async compaction without retrieval.
    • No component-matched variants were run at this size.
  • Engine latency: the measurements below used one 8-core laptop CPU, synchronous=FULL, pure-Go SQLite.

    operation measurement
    assembly, 45k-token context 1.35 ms mean
    engine time per benchmark turn about 3 ms p95
    search, 3.4k indexed chunks p95 3.1 ms (v0.1.0: 10.6 ms)
    search, 13.2k chunks p95 6.5 ms (v0.1.0: 35.8 ms)
    appending a small event 0.56 ms mean (fsync on every commit)
  • Tested window sizes: 64k and 200k tokens.

  • Search latency comes from one generated 1,200-turn session and eight queries, with v0.1.0 and v0.1.1 measured on the same machine in the same session. It is not yet a broad query benchmark.

Real autonomous coding-task success has not been evaluated. Instruction compliance was not measured either, only instruction visibility.

The full method is in docs/benchmarks.md:

  • every table, with standard deviations
  • the uncompressed, conventional, noa-style and masking-only baselines
  • eleven ablations
  • the cost accounting
  • the external review and the changes made in response

Every run, including failed and superseded ones, is logged in docs/experiments.md.

Quick start

Install the engine one of these ways:

method command
Go 1.26.11 or newer go install github.com/TobiasLogic/stratavell/cmd/stratavell@latest
release binary download an archive for Linux, macOS or Windows from releases and check it against SHA256SUMS
Docker docker pull ghcr.io/tobiaslogic/stratavell (static, non-root, about 25 MB)

Go releases before 1.26.11 have standard-library vulnerabilities that affect the HTTP server. The engine needs no cgo and no C toolchain.

Client libraries for the HTTP API, with no dependencies:

pip install stratavell
npm install stratavell

Or build from a clone:

git clone https://github.com/TobiasLogic/stratavell
cd stratavell
go build -o bin/stratavell ./cmd/stratavell

Start a local server. It listens on 127.0.0.1:7077; a non-loopback address requires a token.

stratavell serve --db demo.db

In another terminal, record a user message and a tool exchange, then assemble a request rendered for the Anthropic Messages API:

API=http://127.0.0.1:7077/v1/sessions
curl -s -X POST $API -d '{"id":"demo"}'
curl -s -X POST $API/demo/agents -d '{"id":"main"}'
curl -s -X POST $API/demo/agents/main/events -d '{"messages":[
  {"role":"user","parts":[{"type":"text","text":"Fix the failing test. Never edit vendor/."}]},
  {"role":"assistant","parts":[{"type":"tool_call","tool_call_id":"c1","tool_name":"bash","input":{"command":"go test ./..."}}]},
  {"role":"tool","parts":[{"type":"tool_result","tool_call_id":"c1","tool_name":"bash","text":"--- FAIL: TestParse\n    parse_test.go:42: expected 3, got 4\nFAIL","is_error":true}]}]}'
curl -s -X POST $API/demo/agents/main/assemble \
  -d '{"format":"anthropic","model":"claude-sonnet-5-5","max_tokens":4096,"include_memory_tools":true}'
curl -s "$API/demo/agents/main/search?q=parse_test"
curl -s $API/demo/agents/main/task-state

The assemble response holds request, a body ready to send to the provider, plus token counts and a report of what the engine did. Send it, report the provider's usage to .../usage, append the assistant's reply and any tool results, and repeat.

Every integration follows that loop; docs/integration.md describes it step by step.

Go SDK
e, err := engine.Open(ctx, engine.Options{Path: "memory.db", Summarizer: summarize.Extractive{}})
if err != nil {
    log.Fatal(err)
}
defer e.Close()
sess, _ := e.OpenSession(ctx, "task-42", engine.SessionConfig{})
agent, _ := sess.Agent(ctx, "main")

agent.Append(ctx, msg.Text(msg.RoleUser, "Fix the flaky test. Never edit vendor/."))
cx, err := agent.Assemble(ctx, engine.AssembleRequest{System: "You are a coding agent.", IncludeMemoryTools: true})
if err != nil {
    log.Fatal(err)
}
req, err := anthropic.Render(cx, anthropic.Options{Model: "claude-sonnet-5-5", MaxTokens: 8192})

agentloop.Step runs one full turn against a model client: assemble, call, record usage, append, execute tools. A complete runnable program is in examples/go.

Integration modes

mode transport what the engine controls
Go SDK in process the full context: compaction, masking, budget, cache layout, task state, retrieval
HTTP API TCP (--addr) the same, from any language; versioned under /v1, specified in docs/openapi.yaml
Unix socket --socket path (mode 0600) the same as HTTP, for local processes, without a TCP port
MCP server stdio (stratavell mcp) passive memory only: archiving and retrieval tools

The first three are full inference-loop integration. The host routes every model request through assemble, and the engine decides what the model sees, within a token budget it enforces.

MCP alone does not replace a host's own compaction. An MCP server cannot see or rewrite the host's context. In passive mode the model can archive material with memory_archive and retrieve exact originals, but the host still decides what stays in its window. Use full integration when you control the agent loop. Use MCP for hosts you cannot change.

An MCP host configuration looks like this, with the binary:

{
  "mcpServers": {
    "stratavell": {
      "command": "stratavell",
      "args": ["mcp", "--db", "/path/to/stratavell/memory.db", "--session", "my-project"]
    }
  }
}

Or with Docker, keeping the archive in a named volume:

{
  "mcpServers": {
    "stratavell": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-v", "stratavell-data:/data", "-e", "STRATAVELL_SESSION=my-project", "ghcr.io/tobiaslogic/stratavell"]
    }
  }
}

The server is listed in the MCP Registry as io.github.TobiasLogic/stratavell.

Provider support

adapter API how it is tested
adapters/anthropic Anthropic Messages API: tool use, cache_control breakpoints, thinking blocks, token counting unit tests against the documented request shape; not yet exercised against the live API
adapters/openai OpenAI-compatible chat completions unit tests; used live through OpenRouter for the real-model benchmark runs
adapters/ollama Ollama native /api/chat with an explicit num_ctx one live local smoke call; no automated tests

Any of them can also serve as the background summarizer. The default summarizer is extractive and calls no model.

Examples

The Python and TypeScript examples use the stratavell client packages in clients/. All four examples run against a local server in CI (scripts/examples-smoke.sh):

example transport
Go in-process SDK
Python HTTP over a Unix socket, standard library only
TypeScript HTTP with fetch, Node 22 or newer
Rust HTTP with ureq

Documentation

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.TobiasLogic/stratavell

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229