Stale memories
A memory can stop being current in two ways. Both leave it in place.- Replaced: the memory is superseded by a newer memory in the same project.
- Expired: its expiry date has passed.
Mark a memory as replaced
On the project’s Brain page, open a memory and choose Mark as replaced by…, then pick the newer memory. Restore makes it current again. Agents and the API do the same in two ways:- Set
superseded_byto the newer memory’s id withupdate_memory(orPATCHthe memory). Set it tonullto restore it. - Save the newer memory with
supersedes, a list of up to 10 older memory ids, throughsave_memoryorrecord_decision. The response lists any it could not replace insupersede_failed.
memory_key that names a replaced memory makes it current again.
Deleting a memory makes the memories it had replaced current again.
Set an expiry date
On the Brain page, open a memory and choose Set expiry. From that day the memory is left out of lists and what agents read; a past day expires it now. Remove expiry clears it. Through an agent or the API, setexpires_at (ISO 8601, up to 10 years ahead) with
save_memory, record_decision or update_memory. null removes it.
Expired memories are deleted once their expiry is older than your plan’s history
retention: 7 days on Free, 30 on Starter, 90 on Pro and 365 on Team and Ultimate. Their
earlier versions go with them. Replaced memories are never deleted automatically.
Who can change it
A memory’s author can mark it replaced or set its expiry. For a shared, active memory, someone who manages the project can also change those two fields, on their own, without touching the memory’s text.See stale memories
- Console: turn on Show superseded and expired on the Brain page.
- Agents:
list_memoriestakesinclude_supersededandinclude_expired;get_project_contextandsearch_project_knowledgetakeinclude_stale. - API:
GET …/memories?include=superseded,expired, andinclude_staleonbrain/contextandbrain/knowledge.
get_memory) returns a stale memory with stale (superseded or
expired) and current_id, the memory that replaced it, followed up to 5 hops.
Stale memories still count toward the 2,000 memories per member.
Possible duplicates
Once a day, Hookie compares each project’s current memories and proposes merging the pairs that say the same thing. It never merges on its own.How pairs are found
- Which memories: two memories of the same kind in the same project, written by the same person, or both shared with the project or workspace. A private memory is only ever paired with its own author’s, so a proposal never reveals one.
- By meaning: where the workspace has the Workspace Brain (the Brain add-on, or Ultimate), Hookie compares each memory’s title and content by meaning. This counts as Brain embedding usage.
- By wording: otherwise, Hookie compares wording, and memories with the same title are always proposed.
method (embedding or lexical) and a score from 0 to 1.
A pair already merged is never proposed again. A dismissed pair is proposed again only if
either memory’s text changes. A project holds up to 100 pending proposals.
Review and merge
The project’s Brain page lists Possible duplicates. Review shows both memories side by side:- Choose which memory to keep.
- If you wrote the kept memory, edit its content if you like.
- Choose Merge, or Not duplicates to dismiss the pair.
409 if either memory changed since you opened it. Only the kept memory’s
author can change its text or tags. For its author, the tags of both are combined unless
the request sets them; anyone else leaves the kept memory exactly as it was. Its old text
stays in its version history.
Agents
Connected agents review duplicates with these MCP tools. Listing needshookie:read; merging and dismissing need hookie:write.
get_project_context returns merge_proposals_pending, the number of pairs waiting.
In a project where decisions agents record wait for approval,
an agent cannot merge away a decision.
Over the API
Under/admin/api/projects/{project_id} (or /admin/api/data-workspace for every project
you can see):
GET memories/merge-proposals, withstateset topending,acceptedordismissed.POST memories/merge-proposals/{id}/acceptwithkeep,a_revisionandb_revision, and optionallytitle,contentandtags.POST memories/merge-proposals/{id}/dismiss.
Turn it off
Under Sources → Capture & storage → Automatic memory capture → Find duplicate memories, an owner or admin can stop Hookie looking for duplicates in a project. It is on by default. Only a person, never an agent, can change it (memory_consolidation, on or off, on the project).