Skip to content

Build

My agents share a memory, and I edit it

Experiment

A project's memory notes, with two approved lessons from a review shown on top

I asked Claude to add a memory kit to one of my projects on 3 November, so later sessions could learn from earlier ones. When I had it audited five days later, the folders were in place, but the step that turns past sessions into lessons had never run.

So I built Context Hub: a local web app for the Mac where I run Claude sessions, see what each project has learned and approve what it remembers next.

Four ticks. The apply step runs off camera, then two of the lessons appear under Gotchas.

Memory nobody can see goes unused

Agents working on one project keep rediscovering the same traps.

The kit had an answer on paper. Checked against a talk by Lamis Mukta on agent memory, the setup matched, but no review had run or even been scheduled.

I asked for an app that could create projects, show their memory, start a review, show its results and run several agents in terminals, with access from my phone.

Home lists one memory review under Needs you, above three demo projects and their lesson counts

What needs me sits above the projects.

One loop: work, dream, tick

  • Each project keeps its memory as short, dated lines in plain text files.

  • A new session starts with the principles and an index, then searches for the rest.

  • Agents note lessons as they work.

  • When enough has happened, a “dream” reads past sessions and proposes changes.

  • I tick the proposals I agree with, and only those are applied.

Two lessons marked Applied, above the Gotchas memory list that now contains both.

What I ticked is what got written.

Why a dream can’t write on its own

Letting a dream rewrite memory on its own would have meant less work for me. I put a review step in the middle instead, because a wrong lesson would be handed to every later session. So proposals sit and wait until I get to them.

A dream proposal lists four lessons grouped by file, each with a checkbox and how many sessions saw it

Nothing is ticked for you, and each line shows how many sessions saw the problem.

An item left unticked twice is not proposed again. The principles at the top of each memory can only be changed by a person.

I also kept the memory as plain files with a history, with no database behind it. Agents can read it with tools they already have, and a bad line can be undone. Search is basic, and so far that has been enough.

The history under a project's gotchas shows who added each line, when and why

Every line has an author and a reason.

Dreams were first meant to run on a schedule. I asked for a smarter trigger, so now they run when there is enough to learn from, including repeated errors.

The rules leaked and the phone was hard to use

The first protection around memory looked fine until it was attacked: ten of eleven attempts got through, including deleting the whole folder. It was rewritten, and the principles are now locked by the Mac itself.

On the phone, my own verdict was: “Its very hard to tap and write and answer questions and input from claude on phone”. Later rounds made the targets bigger, stopped the page zooming when typing and added a chat view of a session.

The button stays in reach and counts what you ticked.

Picking between versions side by side

Claude Code sessions wrote the app, the tests and the docs, and researched interface patterns before the screens were drawn. I decided what to ask for and picked between versions shown side by side. The look changed more than once, from warm black and amber to a midnight blue, with the status mark redrawn along the way.

Public, and still unproven over time

The code is public under an open licence, for macOS only (November 2026). It has also been renamed twice on the way to Context Hub.

I can’t yet claim that it reduces mistakes, because I haven’t measured that over a long enough period. What building it taught me is that memory needs an editor, and the editing screen has to be somewhere I will actually look.