trovex Compare Answers Glossary Setup star on GitHub

Updated

What is a canonical context layer?

Definition

A canonical context layer is one shared store that holds the single current, authoritative doc per topic — freshness-marked — that every agent in a fleet reads from and writes back to, so they share one source of truth instead of separate, drifting memories.

Most of what people call agent memory is per-agent recall: an agent remembering its own past runs, facts, and procedures. That's useful, but it's private and it drifts — two agents can each remember a different "how deploys work." The canonical context layer sits one level up: it is the team's current truth, shared, not any one agent's recollection.

The three properties that make it canonical

Write-back memory: the part that keeps it current

Write-back memory is when an agent saves what it learned back into the shared store once, through a single point, so the next agent reads it instead of re-deriving it. Without write-back, a context layer is read-only and goes stale the day it ships; with it, every solved problem becomes a record the rest of the fleet inherits. Write-back is what turns a static doc dump into a living source of truth, and it's the direct fix for re-derivation.

How trovex implements it

trovex is a canonical context layer you run locally. It indexes your docs, returns the one current section that answers a query as a path:line pointer marked canonical / stale / duplicate, and exposes a write path so agents save canonical records back through a single shared point. Serving the one current section instead of a pile of candidates is about 60% fewer tokens per lookup. SQLite + ONNX, no cloud, no API keys — your docs never leave your machine.

Give your fleet one source of truth.

One current answer per query, with a freshness marker, in about a minute.

uv tool install git+https://github.com/TsukumoHQ/trovex

Open source. No cloud, no API keys. Your docs never leave your machine.