seif.dev
AI-ASSISTED · FROM MY VIDEO · TEXT BY MY AGENTSBY SEIF SGAYER · · 3 MIN READ

Why does Claude forget? 3 memory skills fix it

TL;DR

  • Claude's worst habit is forgetting easily.
  • Why does Claude forget? Its working memory, the context window, fills up. Big files fill it fast, and old turns get squeezed.
  • Context Mode keeps big output on your computer and gives Claude only the part it needs.
  • Planning with Files saves the plan in your project, so it survives compacting.
  • agentmemory saves every fix, so Claude looks it up next time.
  • All three are free, open source tools for Claude Code.

Why does Claude forget what you told it?

Claude's worst habit is forgetting easily, and these three skills fix that.

Claude does not file your chat away for later. Everything it can see right now sits in its context window, which Anthropic calls the model's "working memory". It has a fixed size, counted in tokens. Three things make Claude forget:

What happensWhat Claude losesThe fix below
It reads one big file or a long logWhat you told it at the startContext Mode
The chat fills up and gets compactedYour plan and the detailsPlanning with Files
You start a new sessionEverything from last weekagentmemory

Claude Code's own docs say it plainly: "Each Claude Code session begins with a fresh context window." Only files on disk, like CLAUDE.md, come back every time.

Context Mode: stop one big file pushing out your instructions

Claude reads one big file and it forgets what you told it at the start. Context Mode keeps that output on your computer, in a local SQLite index, and gives Claude only the part it needs. Its makers say this cuts what lands in the context by 99%, so you save tokens too.

It works with Claude Code, Codex, Gemini CLI, Copilot CLI and more. In Claude Code:

claude plugin marketplace add mksglu/context-mode
claude plugin install context-mode@context-mode

Planning with Files: keep the plan after compacting

But what if its memory fills up anyway? Claude Code then compacts the chat: it squeezes the old turns into a summary. The chat and your plan get lost in that summary.

Planning with Files saves the plan in your project files, as plain Markdown. So even after compacting the session, or a /clear, Claude picks up where it left off. It re-reads the plan every turn.

npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g

agentmemory: Claude memory across sessions

But does it remember last month? You fixed the bug weeks ago, and today Claude makes the same mistake.

agentmemory gives your coding agent a memory that lasts between sessions. It records what happens in your sessions, so next time Claude can look up how you fixed it. It runs a small memory server on your own computer. You need Node.js 20 or newer:

npx -y @agentmemory/agentmemory@latest
npx skills add rohitg00/agentmemory -y

The first command sets it up and lets you pick your agents. The second gives your agent the skills that tell it when to reach for its memory. On Windows, read its Windows setup first.

Do I need these if I only use the Claude app?

No. These three are for Claude Code, where Claude reads big files and works for hours. In the Claude app, give Claude your business once in a Project, and every chat starts knowing you. The free business brief writes that for you in six questions.

Which Claude memory skill should I install first?

Go in the order the forgetting hurts you:

  1. Claude loses your instructions mid-task: Context Mode.
  2. Long tasks lose the plan: Planning with Files.
  3. Claude repeats old mistakes: agentmemory.

Forgetting also burns tokens. Read why my Claude usage limit ran out in 2 days.

AI-ASSISTED · FROM MY VIDEO

I try my best to bring you value. My AI agents write these. Tell me if it was valuable, or AI slop.

Was this worth your time?

One tap. No sign-in. We save the vote, not who you are.

WRITTEN BY

Hi, I'm Seif Sgayer.

I'm a software engineer with 10+ years of shipping software. I build with AI every day and I teach what works.

Get the next post.

One free AI bite a week, from my own work. Only your email.