为您的 AI 代理提供降噪上下文和长期存储。不必再花费 Claude 来为 AI 代理读取 10,000 行终端噪音,就像戴着耳机一样。
为您的 AI 代理提供降噪上下文和长期存储。不必再花费 Claude 来为 AI 代理读取 10,000 行终端噪音,就像戴着耳机一样。
Drops the noise. Build logs, Docker layer hashes, progress bars, ANSI colour. The part of the output nobody reads is removed before it reaches the model.
Stops re-sending what the agent has already seen. A run of lines it was shown earlier in the session comes back as one marker with a handle, not as the bytes again. This is the half a filter cannot do: it removes bytes because they are already in the context, not because a pattern calls them noise.
Remembers across sessions. Restart your editor or switch agents, and the project context is still there.
Gets out of the way. A failing command passes through verbatim. JSON, YAML and CSV are never touched. Most commands are handed back unchanged, and that is the intended behaviour rather than a gap.
It runs as two hooks around a tool call your agent host already makes. Nothing proxies your shell, and the database never leaves the machine.
An agent re-reads the same file constantly. Without OMNI it pays for every byte
again. With OMNI the second read is one marker carrying a handle, because those bytes
are already in its context, and omni retrieve hands the file back in full if
it is ever needed.
Without OMNI cat twice: the same 7.6 KB, twice With OMNI second read 214 B, 97.2% smaller
This is the half a filter cannot reach. No pattern in that file is noise, so nothing in it can be dropped on its own merits. It goes because the agent has already seen it.
And when the file has changed since? The parts already seen still fold, in place, around the parts that have not. Each fold keeps the line count of what it replaced, so every surviving line stays on the number your editor gives it and the agent can still act on those numbers.
git log, side by sideWithout OMNI, one commit's Author / Date / body already fills the screen. With
OMNI, every commit is kept, as one hash subject line. Nothing is summarised away.
Without OMNI raw git log -15 With OMNI every commit kept, 94% smaller
Measured on the fixtures in tests/fixtures/, so you can reproduce any row:
| Command | Without OMNI | With OMNI | Saved |
|---|---|---|---|
cargo test (490 passed, 10 failed) |
16.5 KB of per-test output | the runner's own pass/fail summary | 93.0% |
git status (dirty) |
496 B of porcelain | the branch and the changed paths | 66.7% |
docker build (heavy cache noise) |
9.2 KB of layer hashes and progress bars | the build result, cache hits folded | 98.9% |
git diff (multi-file) |
lockfiles, whitespace, generated churn | the code that actually changed | 37.8% |
kubectl get pods (35 pods, 5 crashing) |
the full table | the full table | 0%, by design |
That last row is the point of the table. A pod listing is an enumeration where every row is a datum, so there is nothing to drop, and OMNI reports nothing rather than inventing a saving.
Four guarantees, each one a link to the code or the issue that made it true rather than a sentence asking you to trust it.
| Guarantee | How | Proof |
|---|---|---|
| Get the original back, byte-for-byte | everything cut is archived in a local SQLite RewindStore; the marker carries a handle, and omni retrieve prints it on any host, with the omni_retrieve MCP tool where MCP is wired |
#388 |
| Never fabricates a result | a distiller that parsed no signal returns the raw output, never a green no errors / passed string |
#143 |
| Failures are never masked | a command that exits non-zero passes through verbatim | #120 |
| Structured data is never touched | JSON / YAML / NDJSON / CSV pass through byte-for-byte | pipeline::format |
Three tiers, already in the schema, never written down until now. The short answer to "will OMNI still know my project after a month away" is yes for the conclusions and no for the raw bytes.
| Tier | What | Kept |
|---|---|---|
| Permanent | project knowledge, recurring error patterns, engrams, goal memory | until you delete it, except goal memory, which honours its own ttl_days |
| Working, 30 days | sessions, distillation rows, hot files, the RewindStore, the event index, the ledger | rolling window |
| Verbatim, 7 days | execution_traces and the session transcript |
shorter on purpose: it is two orders of magnitude heavier per row |
The boundary this sets is worth stating plainly, because it is the one thing a handle
cannot promise: omni retrieve for content archived more than 30 days ago will not
resolve. Hold the shortest window open while measuring with
OMNI_TRACE_RETENTION_DAYS=90.
omni reset wipes all of it, and omni doctor shows the live counts.
| Tier | Hosts | What you get |
|---|---|---|
| Full | Claude Code, Codex CLI, Gemini CLI, OpenClaw, Hermes, Pi, Aider (pipe) | The host applies OMNI's rewrite, so the model reads distilled output from its own built-in tools. |
| Handoff-first | Cursor, Windsurf | The host cannot rewrite built-in tool output. omni_run distils anything you route through it, and omni init --cursor installs the rule that makes the agent reach for it. |
| MCP-only | Cline, Roo, OpenCode, VS Code, Zed, Copilot, Antigravity | Memory, recall and session state, plus omni_run. The host's own tool output is never rewritten, so omni_run is the only path by which the model reads less. |
omni doctor prints the tier for every installed host. Savings are only ever counted
where the model actually received less.
Codex CLI needs one extra step. It runs only hooks it has been told to trust and skips
the rest without a word, so after omni init --codex start codex once and approve
them under "Hooks need review". omni doctor fails until you do. See
#359.
macOS / Linux:
brew install fajarhide/tap/omni
omni init # interactive setup for Claude, Cursor, VS Code, Codex, Antigravity
omni doctor # verify, or `omni doctor --fix`Universal (macOS / Linux / WSL):
curl -fsSL omni.weekndlabs.com/install | bashWindows (PowerShell):
irm omni.weekndlabs.com/install.ps1 | iexClaude Code, from inside the session:
/plugin marketplace add fajarhide/omni
/plugin install omni@omniAny agent that reads skills, listed at skills.sh/fajarhide/skills/omni:
npx skills add fajarhide/skills --skill omniBoth install a skill, not the binary. The skill is what tells the agent how to get the binary, verify it, and read the markers OMNI leaves when it shortens output.
Then run your commands normally. There is nothing to prefix and no proxy to wrap.
Every figure OMNI publishes states the corpus it came from and the week it covers,
because execution_traces is pruned after seven days and a number that outlives its
corpus cannot be checked by anyone, us included.
On a corpus of 9,478 real command executions that reached a model, 8.42 MB over 70
sessions, frozen and hashed as 0b63218ef78a1edb so it survives the pruning:
docs/benchmarks/0.7.9.json, so the numbers above can be checked against the
same bytes next release instead of against whatever the last seven days held.
Run the harness on your own history for a figure about your workload.git status or a JSON payload a later step parses, the
output comes back untouched. No call came back larger in this measurement.
Two did until (#398), and we published them while they stood.Per class, with what the filters take, what the ledger adds, and how much of the repetition that was there it actually took:
| Class | Calls | Input | Filters | + ledger | Available | Captured |
|---|---|---|---|---|---|---|
| other | 6,457 | 4.81 MB | 0.8% | 2.8% | 15.9% | 12.4% |
| file read | 1,056 | 1.89 MB | 0.0% | 1.5% | 17.7% | 8.3% |
| git | 899 | 0.86 MB | 5.1% | 6.4% | 18.4% | 7.5% |
| search | 810 | 0.77 MB | 3.4% | 4.0% | 6.5% | 10.2% |
| infra | 215 | 0.14 MB | 3.2% | 3.6% | 5.5% | 6.8% |
| build and test | 41 | 0.02 MB | 9.0% | 10.7% | 21.7% | 8.6% |
| aggregate | 9,478 | 8.49 MB | 1.4% | 3.0% | 15.6% | 10.7% |
| Arm | bytes | saved |
|---|---|---|
| headroom dedup, omni's filters | 8,486,830 to 7,992,449 | 5.8% |
lean-ctx compress |
8,486,830 to 8,076,957 | 4.8% |
| caveman + omni's ledger | 8,486,830 to 8,177,033 | 3.7% |
| rtk + omni's ledger | 8,486,830 to 8,170,668 | 3.7% |
| omni, with the ledger | 8,486,830 to 8,232,391 | 3.0% |
caveman compress |
8,486,830 to 8,311,999 | 2.1% |
rtk pipe |
8,486,830 to 8,308,491 | 2.1% |
| omni, filters only | 8,486,830 to 8,371,362 | 1.4% |
Measured by make bench over 9,478 traces (8.42 MB, 70 sessions), corpus 0b63218ef78a1edb, OMNI 0.7.9.
available is the ceiling. The ledger substitutes lines it has already delivered,
so it cannot fold what was never repeated, and captured is the share of that it
took. The two columns answer different questions: the saving describes this corpus,
the capture rate describes OMNI. On a week of large repeated file reads the same
mechanism took 20 times more bytes off the same class, and the capture rate barely
moved.
infra and file read read 0.0% from the filters on purpose. A pod listing is an
enumeration where every row is a datum, and a source file is not ours to summarise
(#176), so both hand the bytes back and let the ledger do the work.
The head-to-head above is generated by the same make bench that writes the class
table, so it cannot fall a release behind its corpus again. Every arm is handed the
same bytes. Versions: rtk 0.45.0, lean-ctx 3.9.18, caveman bin-v1.0.0, headroom
0.34.0.
On this corpus OMNI is last of the arms that carry a ledger, and both of its halves
are behind. headroom's cross-turn dedup takes 5.8% where our ledger takes 3.0% over
the same filters and the same blocks, so that gap is the dedup engine and nothing else.
At 1.4% our filter tier is the weakest of the four, against 2.1% for rtk and caveman
and 4.8% for lean-ctx. That shortfall is what puts rtk + omni's ledger and
caveman + omni's ledger above our own stack: the ledger is the same in all three
rows, and only the filters underneath it differ
暂无开放 Issues,或尚未同步最近议题。