FIELD REPORT
I tested Hindsight across Claude Code and Codex. Recall jumped 0/10 to 8/10 (full guide)
·
Your coding agents share nothing.
On 25 November I wired a clean Hindsight memory across Claude Code and Codex over ten unwritten project decisions, and cross-harness recall jumped from 0/10 right without memory (1 wrong, 9 don’t know) to 8/10 right with it (0 wrong, 2 don’t know).
One shared memory under five coding agents on my Mac costs money, and it is not safe out of the box. At published paid API list prices, my measured multi-agent load projects to $44.72 to $89.40 a month for background extraction and consolidation, and one bank shared across folders leaks private project context unless you limit it to opted-in folders. When the memory follows the work, though, I can pick up a task in another harness and the agent already knows what I was doing. My takeaway from daily use: “It is not about harness anymore, it’s about the best model.”
Hindsight did not pay for, review or approve this test. Tested on @vectorize-io/hindsight-coding-agents 0.8.8, hindsight-embed 1.3.0, Claude Code 2.1.330 and Codex CLI 0.171.0.
109 days of one shared memory on one Mac
My shared Hindsight memory has been running since 8 August 2026 (109 days as of 25 November). Claude Code joined the shared bank on 15 October, Codex joined at the end of October (29 to 30 October), and Cursor, Antigravity, and Grok Build now connect to the same local stack. All five harnesses share local lifecycle hooks plus six filtered MCP tools (recall, reflect, retain, sync_retain, list_mental_models, and get_mental_model), with destructive delete and clear tools blocked.
Most of the stack runs locally, and only text synthesis is paid. The Hindsight API server (1.2.3 in live use after upgrading from 0.9.0 on 20 November, and 1.3.0 on the clean test bed), local embeddings (EmbeddingGemma 300M, Q8 GGUF, 768 dimensions), the local cross-encoder reranker (ms-marco-MiniLM-L-6-v2), and embedded PostgreSQL 18.1 with pgvector all run locally at $0 API cost. Direct recall queries stay local and make 0 LLM calls. Only fact extraction, background consolidation, and reflect synthesis call an external model API.
On 25 November at 13:30 Helsinki time, the live database held 390,618 stored facts with 0 missing vectors in 7.78 GB (7,779 MB) of storage, with 111.9 hours of uptime since the 20 November upgrade (733 MB RSS for the server and 262 MB RSS for the embedding service). The known-answer embedding baseline read 0.684 with 0.0004 drift against a 0.02 tolerance, 96 of 96 ops checks passed over 24 hours, off-site backups sat 12.0 hours old across 3 destinations (with a verified restore drill of 248,674 memories), and 157 retain runs completed that day with 0 failures at an 11.7 s median.
All of that was green, and the dashboard still said NEEDS ATTENTION that afternoon, because the recall hook had failed 12 times in 24 hours (19 ok, 12 failed). Across 25 real recalls in that window, median latency was 7.7 s, max latency hit 21.0 s, and 5 calls ran over 15 s (while the lightweight canary stayed at 1.2 s). Three months in, that amber badge is the normal state: I use the memory every day, and I still have to watch it.
The clean-install test: 0/10 without memory, 8/10 with it
Daily use only gives you anecdotes. The question I wanted to measure was narrower: close one coding agent, open another, and check whether shared memory brings back decisions that never made it into the repository. To test that without touching my live database or leaking private notes, I set up an isolated test bed on 25 November with its own home directory, database, and @vectorize-io/hindsight-coding-agents 0.8.8 talking to hindsight-embed 1.3.0 (PostgreSQL 18.1.0, OpenAI gpt-4o-mini for extraction and reflect, local CPU embeddings and reranker).
Inside that bed I created a neutral local Python repository (invoice-kit, 1 commit, 5 passing tests) and defined ten concrete engineering decisions that never appeared in the code, comments, tests, git log, or any instruction file: a banker’s rounding rule, a webhook retry allowlist, a monthly CSV export filename, a customer ID format, a CSV null sentinel, a tax jurisdiction tie-break, a dead-letter topic and retention window, a payment-sync idempotency header and TTL, a credit note sequence, and an audit archive format. I seeded five decisions in Claude Code 2.1.330 (claude-sonnet-5-5, native auto-memory disabled) and asked fresh Codex CLI 0.171.0 (gpt-5-mini) sessions about them, then reversed the direction for the other five. I asked every question twice, once with memory off and once with Hindsight wired, and scored the answers against a rubric I fixed in advance: right, partly right, wrong, or don’t know.
Without shared memory, fresh sessions of the other agent scored 0/10 right, 0/10 partly right, 1/10 wrong, and 9/10 don’t know, with a median time to first answer of 13.68 s. With Hindsight wired, the score jumped to 8/10 right, 0/10 partly right, 0/10 wrong, and 2/10 don’t know, with a median time to first answer of 16.41 s (+2.73 s overall). Split by direction, Claude Code reading Codex’s decisions scored 5/5 and answered 3.28 s faster with memory (13.30 s vs 16.58 s median) because it stopped grepping an empty repo before giving up, while Codex reading Claude Code’s decisions scored 3/5 and slowed from 6.99 s to 18.38 s median.
Here are two of the answers side by side. On Decision D05 (CSV null sentinel in invoice_kit/exports.py, seeded in Claude Code and queried in Codex), Codex without memory read the stub csv.DictWriter call, said there was no column-specific exception, and scored WRONG in 7.18 s. With Hindsight wired, the reflect hook returned the exact rule in 9.92 s and Codex answered RIGHT in 18.38 s, giving empty strings for optional fields except vat_id serialized as N/A.
In the opposite direction, on Decision D08 (payment-sync idempotency header and TTL, seeded in Codex and queried in Claude Code), Claude Code without memory spent 19.85 s searching the repo and scored DON’T KNOW rather than guessing a header name. With Hindsight wired, the reflect hook took 10.98 s and Claude Code answered RIGHT in 16.30 s (3.55 s faster), returning X-InvoiceKit-Idempotency (explicitly not Idempotency-Key) and the 72-hour retention window while noting that the code did not implement it yet.
The most useful result was in the bed’s diagnostic logs. Hindsight’s UserPromptSubmit reflect hook retrieved the exact right decision on all 10 of 10 questions (median hook latency 8.82 s, range 6.55 s to 10.98 s). Both misses happened inside Codex after retrieval: on D02 (webhook retry allowlist), Codex ignored the injected hook context and searched only the repo files; on D03 (export filename), Codex called hindsight_search_pages, saw five newly created Knowledge Pages still reading "No content yet" because the hourly cron refresh had not run yet, and discarded the accurate reflect snippet it already held. Memory retrieval hit 10/10; the receiving harness dropped 2/10.
What running shared memory costs every month
For the cost, I added up 18 complete counting days (7 November through 24 November 2026) from my live usage counter. Across those 18 days, the memory stack made 31,030 LLM API calls (1,723.9/day mean, 1,562/day median, range 551 to 3,673/day), processing 307.77M input tokens (73.99M cached, 24.0%) and 33.86M output tokens. Scaled to a 30-day month, that is 51,717 calls, 512.95M input tokens (389.63M uncached, 123.31M cached), and 56.44M output tokens.
Background consolidation drives most of the bill, taking 67.2% of all input tokens and 54.2% of output tokens. Fact extraction (retain_extract_facts) takes 32.2% of input tokens (helped by a 67.4% prompt-cache hit rate) and 45.5% of output tokens, while reflect accounts for 0.6% of input and 0.1% of output tokens, and direct recall makes 0 LLM calls.
Across those 18 days, NVIDIA Nemotron 3.5 Super VL handled 99.80% of calls (30,967 of 31,030), with gemini-3.5-flash-lite (49 calls, 0.16%) and gemini-3.1-flash-lite (12 calls, 0.04%) as fallbacks. Priced at published paid API list rates checked on 25 November 2026, my measured mix projects to $44.72 to $89.40/month with prompt caching ($50.89 to $105.43/month without caching), depending on the OpenRouter provider tier. Running the exact same 30-day volume on a single paid model costs $42.67/month on OpenAI gpt-5-nano, $101.56/month on OpenAI gpt-4o-mini (the bed test model), $185.15/month on Google gemini-3.1-flash-lite, $213.37/month on OpenAI gpt-5-mini, or $261.69/month on Google gemini-3.5-flash-lite.
That number comes from heavy use: roughly 1,724 calls and 19.0M tokens per day, from five coding harnesses sharing one database. A lighter solo workflow at one-tenth of that volume (around 172 calls/day) scales to roughly $4.47 to $8.94/month on Nemotron 3.5 Super VL or $10.16/month on gpt-4o-mini with prompt caching, while local embeddings, reranking, and PostgreSQL stay at $0 API cost.
What broke in 109 days, and the privacy boundary you must set
A live extraction server needs more care than a text file in git. Four things stood out over three months:
- Models and server versions churn underneath you. My primary extraction model changed at least four times between August and November as provider speed, stability, and cost shifted. Moving the server from 0.9.0 to 1.2.3 on 20 November took a full rehearsal on a restored copy (28 migrations across 358,201 memory units, checked on 200 known-answer queries where 1.2.3 matched live at MRR 0.369 vs 0.353). I also pinned my local
EmbeddingGemma 300Membedder on purpose: on 10,000 real memories and 900 queries it scored MRR@10 0.733, ahead of EmbeddingGemma 2 (0.697) and Hindsight’s defaultbge-small-en-v1.5(0.631), and keeping it avoided re-embedding the whole store. - Storage and RAM grow until you audit them. A 31 October resource audit caught a dead 955 MB unused HNSW vector index (
idx_scan=0), capped Postgres buffers (shared_buffers=64MB, pool max 10), dropped real Postgres RAM from 548 MB to 346-353 MB, and shrank the database from 7,075 MB to 6,123 MB. We kept the local cross-encoder reranker after an A/B check on 30 real first prompts showed dropping it cut median top-10 overlap to 0.40 (low) and 0.20 (mid). - First-prompt lookups are not instant. In live use, real recalls take 7.7 s median (up to 21.0 s), and in the clean bed the reflect hook took 8.82 s median. Hooks also time out or fail under load (12 failures in 24 hours on the 25 November snapshot), so your agents must degrade cleanly when memory is unreachable.
- Unscoped shared memory leaks private context across projects. By default the coding-agents package enables memory in every repository (
coding-agent::{gitProject}), and a single global bank across all folders carries private work context into unrelated repos. Even per-repo banks still ingest transcripts from every directory you open unless you flipoptInOnlytotrueand list exact folders inoptInPaths. Filter out destructive MCP tools too, and keep raw secrets out of agent transcripts.
The fair objection to any memory server: why pay $45 to $89 a month and manage Postgres plus opt-in privacy rules when a checked-in AGENTS.md and plain Markdown decision docs are deterministic, diffable in git, and cost zero tokens? My answer: durable rules still belong in AGENTS.md. Shared memory earns its keep only for the stream of mid-session decisions, dead ends, and cross-harness handoffs nobody stops to transcribe into docs, and only when you lock it to opted-in folders and accept the extraction bill.
Copy this
Every command below was run on 25 November 2026 inside a clean isolated home directory against @vectorize-io/hindsight-coding-agents@0.8.8 and hindsight-embed@1.3.0 (verified on macOS with uv 0.11.19, rustc 1.100.0, and Node v26.13.1). On macOS, a current Rust toolchain is required in local daemon mode because litellm compiles from source via maturin; Linux and Windows install from wheels. You also need either an LLM API key exported in your environment (such as OPENAI_API_KEY) or the local Claude Code CLI on PATH for fact extraction.
Install the shared integration for Claude Code and Codex in local daemon mode (one command wires hooks in ~/.claude/settings.json and ~/.codex/hooks.json, MCP servers, companion skills, and ~/.hindsight/coding-agent.json; this completed in 0.6 s on the clean bed):
npx --yes @vectorize-io/hindsight-coding-agents@0.8.8 install claude-code codex --server daemonBefore opening any private repository, lock ~/.hindsight/coding-agent.json to opt-in by folder and disable automatic daily background updates (autoUpdate defaults to true, which refreshes the staged npm runtime once a day):
{
"serverMode": "daemon",
"embedVersion": "1.3.0",
"optInOnly": true,
"optInPaths": ["~/projects/your-repo"],
"autoUpdate": false,
"autoInject": "reflect"
}With optInOnly set to true, every directory outside optInPaths stays inert: no bank is created, nothing is retained, and no seed runs. Every approved repository still shares one per-repo bank (coding-agent::{gitProject}) across Claude Code, Codex, and any of the 20+ other supported coding agents you wire later.
Check per-harness tool usage, inspect daemon health, or remove every hook and MCP entry cleanly (uninstall ran in 0.3 s on the clean bed):
npx --yes @vectorize-io/hindsight-coding-agents@0.8.8 stats
uvx hindsight-embed@1.3.0 -p coding-agent daemon status
npx --yes @vectorize-io/hindsight-coding-agents@0.8.8 uninstall allBefore relying on the setup, run a quick cross-harness smoke test in one opted-in repo: tell Claude Code one concrete naming or retry decision that does not exist in any file, exit the session so the stop hook retains it, open a fresh Codex session in the same folder, and ask for that exact decision.
Credits and prior work
Vectorize’s own Hindsight coding-agents documentation (and its multi-agent memory write-up) reports AMB sdebench numbers over 61 repository tasks (mean of 3 runs): agents solve 60-61 of 61 either way, while Hindsight cuts corrections per task from 0.85 to 0.36 on Claude Code ($0.445 to $0.338 per task), 1.34 to 0.47 on Codex CLI ($0.577 to $0.276 per task), and 1.20 to 0.80 on opencode ($0.634 to $0.553 per task). Our clean-bed test is independent and unaffiliated with Vectorize.
For the native memory baseline, Eliran Kotzero (23 November 2026) and the MemU team (2 November 2026) documented why built-in memories stay siloed: Claude Code loads only the first 200 lines or 25 KB of MEMORY.md, Codex ships memories off by default with a 32 KiB instruction cap, and Cursor removed editor Memories in 2.1. On measurement discipline, Richard Harvey at OmniMem (24 November 2026) ran a 10-pair dead-end test (cutting dead ends from 8/10 to 0/10 and median tokens from 833k to 616k, sign test p = 0.05) and argued that n = 10 is a real signal, not final proof, the same bar I apply here. And for teams that prefer zero extraction cost and plain files over a memory server, Arindam Majumder (21 October 2026) published a practical five-layer Markdown plus OpenLore MCP setup.
If you switch between Claude Code and Codex on the same repository, do you keep hand-curated Markdown docs, run a shared memory server, or re-explain your decisions every session?
Files for this piece
The 3 page summary PDF comes with the briefing below.
Coming from the shared agent memory test? Pages 4 to 13 of this free 37-page PDF give you my paste-in starter AGENTS.md and seven one-page setup habits, plus 23 more checks for coding agents. Every Thursday you also get the briefing in under 500 words.
Instant PDF download on the next page. Unsubscribe any time.