{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "tigerless-labs-agent-memory--correct-a-stale-memory-without-losing-history",
 "repo": "tigerless-labs/agent-memory",
 "repo_url": "https://github.com/tigerless-labs/agent-memory",
 "repo_slug": "tigerless-labs-agent-memory",
 "title": "Correct a stale memory without losing its history",
 "page_title": "How to correct a stale memory without losing its history with Agent Memory",
 "summary": "Update or replace a wrong memory while keeping the old version for lookup.",
 "who": "A developer who finds a memory that no longer matches the codebase and wants a clean fix that keeps an audit trail.",
 "problem": "Editing a memory in place would erase what was believed before, and deleting it would lose the chain.",
 "outcome": "The stale memory is replaced by a successor, the old file stays in the store, and recall returns the current version.",
 "steps": [
  "Run `mem recall \"<topic of the stale memory>\"` to get the path of the memory to fix. (inferred, check the README)",
  "Run `mem correct <memory path>` to revise the memory in place when the fix is small. (inferred, check the README)",
  "Run `mem record --supersedes <old memory path>` to create a successor when the meaning changed. (inferred, check the README)",
  "Run `mem recall \"<topic of the stale memory>\"` again to confirm the current version is returned. (inferred, check the README)"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tigerless-labs-agent-memory/correct-a-stale-memory-without-losing-history/",
 "md": "https://dedupedai.com/use-cases/tigerless-labs-agent-memory/correct-a-stale-memory-without-losing-history/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tigerless-labs-agent-memory--correct-a-stale-memory-without-losing-history.json",
 "api_version": "v1"
}
