Memory across sessions
Observations and session summaries in a local SQLite database, injected back when a new session starts.
HarnessUp / Alternatives / claude-mem
Honest questionGood instinct, partly. If you're tired of explaining the project all over again every new session, it's a great pick. But memory is only one slice of the bill, and writing it down isn't free either.
youI installed claude-mem. My agent remembers yesterday now. Tokens solved, right?
HarnessUpNice. No more explaining the project from scratch.
youSo... solved?
HarnessUpOne faucet closed. Let me show you the others still leaking.
Nearly 119 thousand stars on GitHub agree. It fixes a real pain: every session starts with an agent that forgot everything. claude-mem watches what the agent does, writes it down as short observations and hands the relevant part back in the next session.
★ 119k
stars · 10k forks
respect.
Observations and session summaries in a local SQLite database, injected back when a new session starts.
MCP tools that return a short index first and the full details only when asked, plus a web viewer to browse it all.
Apache-2.0 license. A <private> tag keeps anything you want out of storage.
Claude Code, Codex, Cursor, OpenCode, Gemini and more, installed with one npx command or as a Claude Code plugin.
Tired of telling the agent the same thing every morning? Install it, seriously.
claude-mem cuts what the agent has to relearn. But the memory is written by a model: a second agent reads the tool activity and summarizes it, on claude-mem's paid hosted observer, on your own key or on your Anthropic plan. And most of the bill is what the agent reads inside the session, again and again:
claude-mem publishes its search costs as about 50 to 100 tokens per index result and 500 to 1,000 per full result, and says plainly that this ratio is not a measured end-to-end saving. Anonymous usage analytics are on by default; one command turns them off.
claude-mem fixes one faucet. But others are still leaking.
Our agents also kept notes: state, decisions, to-do lists. The files grew every session and got read in full at every opening. A summary written by a model would shrink them, but a summary can drop exactly the line you needed.
So HarnessUp keeps memory in the project's own files and only moves what's old: whole, unsummarized, and findable.
Remembering is good. Remembering exactly is better.
A summary is the model's reading of what happened. The original is what happened. HarnessUp never throws the original away.
The file keeps what's hot: the recent, the urgent and the critical. HarnessUp moves the rest to a folder next to it, whole and without summary, with an index of what went where.
The agent reads less, and only on demand: Read Router hands over the index of a big context file on the first read, and the whole file only if it's asked for again.
The past stays findable: Decision Graph answers what was decided, what tripped you up and what something used to be called, with a pointer to the file and line.
No second model, no summary, no extra bill to remember.
# Hot Context, next to the file it keeps lean
TODO.md the recent, the urgent
.hot-context/TODO/
index fragment → period, titles
diary done, decided, solved
open open, not urgent
01, 02 … the original, word for word
# moved, never summarized:
# grep still finds every line
HarnessUp has an engine for every leak. Each number was measured on the tasks that engine covers.
Builds and commits at the end of the task, without spending a model turn.
The expensive model only decides. Tests, search and reading go to a cheap model.
Flags the exact turn where starting fresh costs less than continuing.
Straight to the point. No walls of text, no intro.
Big file? It returns a map of functions and lines, not the whole file.
A 40K-line log shrinks to the part that matters.
Builds on your machine and shows the error before the next turn.
Reduction measured per engine, on the tasks it covers. 26 tools are savings-only.
No beating around the bush. Where claude-mem doesn't show up, it's not a flaw: it's just not its job.
| What you want | claude-mem | HarnessUp |
|---|---|---|
| Main focus | Persistent memory: hooks, a local worker, SQLite and MCP search | Savings, control and security for the agent |
| Find things in the code | Not its thing | ✓Code Finder: file map, −59% |
| Cut huge logs and output | Not its thing | ✓Command Ceiling, −56% |
| Answers without fluff | Not its thing | ✓Response Diet, −64% |
| Know when to start a fresh session | Not its thing | ✓Renew Session, −73% |
| Build and commit without spending a turn | Not its thing | ✓Build Now, Smart Commit, First Pass |
| Send grunt work to a cheap model | Not its thing | ✓Cheap Swarm |
| Remember the project's decisions and pitfalls | ✓Memory of past sessions, summarized by an observer model | ✓Context Graph and Fresh Context |
| Measure how much you spend and where it leaks | Per-result estimates, which it says are not a measured saving | ✓Deep Scan, free on Basic |
| Protect passwords, history and files | Not its thing | ✓Secret Lock, Git Shield, No Delete, Checkpoint |
| How memory is written | An observer model summarizes the tool activity | Project files kept lean; old parts moved whole, never summarized |
| Model calls of its own | Yes: hosted observer, your own key or your Anthropic plan | Not to keep memory. Hooks at tool-call boundaries |
| Agents | Claude Code, Codex, Cursor, OpenCode, Gemini and more | Claude Code and Codex |
| Price | Free, Apache-2.0. Hosted observer is a subscription after a 30-day trial | Basic free forever. Pro from US$ 6/mo billed yearly |
| Runs locally | ✓Yes, with optional Cloud Sync | ✓Yes |
claude-mem details taken from its public repository in November 2026. Spotted something outdated? Write to help@harnessup.dev and we'll fix it.
Nobody here is trashing a good tool.
Yes. Both plug in through the agent's hooks and don't step on each other. claude-mem keeps the memory between sessions; HarnessUp works on the rest of the bill: command output, big reads, long answers and sessions that should have ended.
Yes, according to its README: an observer agent turns tool activity into short observations and writes a summary at the end of the session. It runs on claude-mem's hosted observer, on your own OpenRouter or Gemini key, or on your Anthropic plan.
A different kind. HarnessUp keeps the project's own files lean: Hot Context leaves the recent and the urgent in the file and moves the rest, whole and without summary, to a folder next to it. Nothing is rewritten by a model, and the original is always recoverable.
Real token counts from your own transcripts, on your own sessions. claude-mem itself says its token figures are not a measured end-to-end saving. Deep Scan shows how much you spent and where it leaked.
7 days with everything on. No card. No signup. Installs in about 1 minute.
irm https://harnessup.dev/install.ps1 | iexPaste it into your agent and ask it to install. That's it.