ByteCosts
contexere-agent-skills-keys-memory.mdx

AI Coding Agents

Contexere Review: One Home for Agent Skills, Keys and Memory

Contexere, formerly OMNI, is a Rust CLI that sits between your coding agents and their tool output. Today it shrinks noisy command output, folds content the agent already read, and redacts credentials in rewritten output for Claude Code, Codex CLI, Gemini CLI and several other agents. The broader promise, one place for the skills, keys and memory of every agent, is the stated roadmap, not the shipped product; the key-brokering pieces exist today only as open issues. Judge it on the compression and redaction layer that exists.

At a glance

QuestionAnswer
What is it?A Rust CLI that trims noisy tool output, folds repeat reads, and redacts credentials in rewritten output.
What cost does it target?Input from verbose tool results and file content the agent has already read.
Where does it act?On supported hosts, hooks rewrite tool output before it reaches the model.
How do you try it?Install through Homebrew or the documented platform installer, then configure your agent.
Can you recover originals?The README says removed data stays on your machine and can be brought back. Repeat reads return a handle in place of the file.
What license is stated?Apache-2.0.
What is its maturity signal?381 stars and 20 open issues as of November 30, 2026.
When is it a good fit?Noisy builds on a host that supports full rewriting. Skip it if you need brokered keys or shared memory today.

What it is and which cost layer it targets

The repo description is “The one place for the skills, keys and memory of every agent you use. Formerly OMNI.” The README is more careful: that destination is “where it is going,” and “what ships today is the first piece, the context and token layer.” As of November 30, 2026 the repository has 381 stars, 37 forks and 20 open issues, is Apache-2.0 licensed, and released v0.9.0 on November 26, 2026. Version 0.9.0 removed the old omni command; existing data moves to ~/.contexere on its own, and agents whose hooks still call omni need contexere init --<host> rerun.

The cost layer is input tool output: the bytes an agent re-reads on every turn. The README’s framing is that a coding agent reads everything a command prints, progress bars, layer hashes, files it already read, and every byte is billed. Contexere removes what the model does not need before the model reads it, while keeping the removed data recoverable on your machine.

How it works

After contexere init, hooks installed into each supported agent rewrite tool output before the model sees it. The shipped behaviors, per the README:

  • A file the agent already read returns one line with a handle instead of the file.
  • A noisy build or test keeps the result and the failures, and drops progress noise.
  • A token or password printed in rewritten output becomes [REDACTED] before the model sees it.
  • A failed command passes through as printed so the real error reaches the agent. Notably, the README concedes that a credential printed by a failing command reaches the agent too.
  • JSON, YAML and CSV pass through byte for byte.
  • contexere doctor checks that each agent’s hooks fire and redact, running them against a canary credential.

The README puts the per-command overhead at about 21 ms and declines to publish a savings percentage: “Savings depend on what your agent does; run contexere stats for your own figure.”

Support is tiered. Full rewriting works on Claude Code, Codex CLI, Gemini CLI, OpenClaw, Hermes, Pi and Aider (via cmd | contexere). Cursor and Windsurf get a handoff-first integration that shortens what the agent runs through contexere_run. Cline, Roo, OpenCode, VS Code, Zed, Copilot and Antigravity get MCP-only memory and recall plus contexere_run. Codex only runs hooks it trusts, so after contexere init --codex you start codex once and approve them.

The bigger pieces are open issues, filed in a November 8, 2026 batch: a hub so cloud agents reach your skills and notes (#1105), memory pushed at session start within a budget (#1104), skills from one source folder with per-agent drift status (#1101), an encrypted contexere export bundle (#1093), contexere import placing keys in the OS keychain rather than host config (#1094), a brokered credential tool starting with Postgres (#1099), and audit logging that fails the action if the log cannot be written (#1098).

Install and first run

Save your agent configuration before setup. For either script-based installer, read and verify the downloaded script before executing it.

# Homebrew
brew install fajarhide/tap/contexere

# macOS / Linux / WSL (read the script before piping it to bash)
curl -fsSL omni.weekndlabs.com/install | bash

# Windows PowerShell (read and verify the downloaded script before executing it)
irm omni.weekndlabs.com/install.ps1 | iex

# Wire up your agents, then verify
contexere init        # pick your agents: Claude Code, Codex, Cursor, VS Code and more
contexere doctor      # or `contexere doctor --fix`
contexere stats       # what Contexere saved on your own history

The Claude Code plugin adds a skill that installs and checks Contexere:

/plugin marketplace add fajarhide/contexere
/plugin install contexere@omni

Once initialized, the hooks run automatically.

The README does not document an uninstall command. For rollback, restore the agent configuration saved before setup and check for remaining Contexere or OMNI entries. Back up ~/.contexere before deciding whether to remove its data.

What it saves: claims versus evidence

The project makes no percentage claim. Its only shipped numbers are the roughly 21 ms per-command overhead and a pointer to a benchmarks page. The closed issue history supplies the honest texture: #53 reported omni stats showing no data, and #1116 reported the readfile distiller compressing a 253-line TypeScript file to a 9-line skeleton, hiding 247 lines of the code being edited. The available evidence contains no independent benchmark of Contexere. Use contexere stats to inspect local reductions, then compare provider-billed usage across the two trial arms.

The credential and key-storage question

The angle most readers will care about is central key storage: is it safe to give one tool every agent’s credentials? Two facts frame the answer.

A broker can keep raw keys out of the model context when credentials stay inside the broker and downstream tools avoid echoing or logging them. The roadmap requests host masking checks, an end-to-end canary test, and continued redaction when a dev-only .env is allowed. Centralizing secrets also concentrates them in one store, so the eventual assessment should weigh whether that store is encrypted, audited and scoped, which the roadmap anticipates but has not shipped.

What exists today is output redaction, and the closed-issue history shows it has been bypassed repeatedly: #1032 (a one-line JSON log skips redaction and delivers DB_PASSWORD), #1036 (exec delivers a credential on a failed command’s stdout and stderr), #1038 (a color escape before the key skips redaction), #1033 (a passthrough env var delivers credentials through pipe, exec and hook paths), and two over-redaction bugs, #1039 hiding a pinned package version and #1144 hiding a one-digit value under DATABASE_URL. The guard layer has had bypasses too: #1153 and #1155 report shells launched inside $(...) or by docker run reading sources it meant to deny. All are closed, which shows active hardening, but until the brokering issues land, the honest statement is that Contexere reduces credential exposure in rewritten output, it does not yet keep keys out of the agent by design.

Prompt-cache and extra-turn risk

Rewritten tool output can become part of later prompt prefixes. Record cache reads and writes in both trial arms. The risk is the compressor’s judgment: folding “what an agent already read” or distilling a file to a skeleton can remove something the model later needs, costing a re-run turn. The failed-command passthrough is the right instinct on this axis, and the README’s advice stands: watch contexere stats and distiller behavior on your own workload rather than assuming the defaults fit.

What the GitHub issues show

The tracker reads like a young tool mid-hardening. Fresh items from November 30 include #1194, where a hook flag anywhere on the command line switches mode, and #1199, a CLAUDE_CONFIG_DIR follow-up on MCP-only installs. Distiller quality issues include #1051 (dropping the file/line frame of a Python traceback over ssh), #1059 (folding a repeated traceback’s header), #1111 (a rewind folding the test result printed by later commands) and #1130 (the pre-hook refusing any command naming docker inspect). #1109 reports cargo audit failing on main for new advisories in libsqlite3-sys and rmcp.

A cost example (estimate)

The project publishes no reduction percentage, so assume one for illustration: a Claude Code session on claude-sonnet-5-5 produces 40,000 tokens of command output, and Contexere removes 30% of it, 12,000 tokens that would otherwise be re-sent as context for the next 15 turns. That is 12,000 × 15 = 180,000 fewer input tokens across those turns. At committed Sonnet rates, the estimated difference is 180,000 × $2/1M = $0.36 if all those tokens would have been fresh input. If all would have qualified for cache reads, it is 180,000 × $0.10/1M = $0.018. Check the AI provider pricing index for current rates.

Who should use it, who should skip it

Use it if:

  • You run a full-tier agent (Claude Code, Codex CLI, Gemini CLI, OpenClaw, Hermes, Pi, Aider) and want compression plus credential redaction from one install.
  • You like the direction: a single home for skills, keys and memory, in Rust with no service dependency, and you want to adopt the shipped piece early.
  • You regularly run noisy builds where progress spam dominates tool output.

Skip it if:

  • You need the brokered-keys or shared-memory features now; they are open issues, not releases.
  • You treat any credential-handling layer as guilty until audited; the redaction bypass history argues for waiting a few releases.
  • Your agent is MCP-only tier, where today’s value is mostly contexere_run and recall.

How to trial it safely

  1. Install on one machine, contexere init for one agent only, then contexere doctor to prove hooks fire and the canary redacts.
  2. Use a fake credential to test normal rewritten output and confirm it is redacted. Test failing-command and structured-output paths separately with fake data. The README documents passthrough on those paths.
  3. Record a baseline week of sessions first; the companion guide how to measure coding agent token savings covers the method.
  4. After a week, compare provider-billed usage with your baseline. Use contexere stats to inspect local reductions and look for overly aggressive folding of files and tracebacks.
  5. Re-check the roadmap issues before depending on key brokering; do not store real secrets expecting features that have not shipped.

Alternatives and next reads

For pure tool-output compression without the keys-and-memory ambition, see the sqz review and the Headroom review. For a different take on sharing skills and tools across agents, see the mcptoon gateway review, and for the cache mechanics behind the savings math, see how LLM providers price prompt caching.

Sources

How this note was produced

Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.

Contexere Review: One Home for Agent Skills, Keys and Memory. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/contexere-agent-skills-keys-memory/

Sources