DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to correct a stale memory without losing its history with Agent Memory

Update or replace a wrong memory while keeping the old version for lookup.

Short answer: Run mem recall "<topic of the stale memory>" to get the path of the memory to fix; then run mem correct <memory path> to revise the memory in place when the fix is small; run mem record --supersedes <old memory path> to create a successor when the meaning changed. All steps.

Who it is forA developer who finds a memory that no longer matches the codebase and wants a clean fix that keeps an audit trail.

The problemEditing a memory in place would erase what was believed before, and deleting it would lose the chain.

The outcomeThe stale memory is replaced by a successor, the old file stays in the store, and recall returns the current version.

What you need first

  • Python environment able to install the agent-memory package, as described in the README
  • Claude Code or Codex CLI installed on the machine
  • A store directory set as AGENT_MEMORY_STORE
  • Shell access to run the mem commands

Steps

  1. Run mem recall "<topic of the stale memory>" to get the path of the memory to fix. (inferred, check the README)
  2. Run mem correct <memory path> to revise the memory in place when the fix is small. (inferred, check the README)
  3. Run mem record --supersedes <old memory path> to create a successor when the meaning changed. (inferred, check the README)
  4. Run mem recall "<topic of the stale memory>" again to confirm the current version is returned. (inferred, check the README)

Prompt for your agent

Use the agent-memory repo at <store path> to correct the memory at <memory path> so it reflects <new fact>, keeping the old version for as-of recall. Expected output: the new memory path and the superseded status of the old one. Verify that a normal recall returns only the new version.

Caveat. The README excerpt cuts off the exact argument order for correct, record, and supersede, so those commands need checking against the CLI help before use.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for tigerless-labs/agent-memory and "Correct a stale memory without losing its history"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer