Why your agent "forgets" things, how memory actually works under the hood, and how to make it stick.
Here's the most common complaint we hear:
"My agent keeps forgetting everything. I told it my name and five minutes later it asked me again. Is it broken?"
Your agent is not broken. It's working exactly as designed. The confusion comes from how AI memory is different from human memory β and once you understand the difference, you can work with the system instead of fighting it.
Your agent has two completely different memory systems:
What your agent "remembers" during a single chat session. Like a phone call β the agent knows everything said so far, but when the call ends, it's gone.
Temporary. Disappears when the session resets.
Files your agent writes to disk. Like a notebook β your agent can write things down and read them back later, even in a completely new session.
Permanent. Survives forever.
Conversation memory = short-term memory (what you said at dinner)
File memory = writing it in a journal (you can read it again tomorrow)
Without writing it down, even the smartest person will forget what they had for lunch last Tuesday. Your agent is the same way.
Every AI model has a context window β a limit on how much text it can "see" at once. Think of it as a window that slides over your conversation:
When your conversation gets long enough, the oldest messages get pushed out of the window. Your agent literally can't see them anymore β it's not choosing to ignore you, it physically cannot access that part of the conversation.
This is called compaction and it happens automatically. When your session gets close to the limit, the system summarizes the old context and starts fresh with that summary. Some detail is lost in the process.
Context windows are a fundamental property of how AI models work. Even the most advanced models have them. The solution isn't to make the window bigger (though that helps) β it's to write important things to files.
Your agent has a workspace with files it can read and write. The important ones for memory are:
This is your agent's curated memory. Important facts, preferences, decisions, and context that should persist forever. Your agent reads this at the start of every private session.
Think of it like a personal wiki about you and your projects.
Daily files in the memory/ folder. Your agent reads today's and yesterday's notes at startup. These are raw logs β what happened today, what you discussed, what decisions were made.
Over time, the important stuff from daily notes should get promoted to MEMORY.md.
Now that you understand the system, here's how to work with it:
SOUL.md and AGENTS.md β these are loaded every single session. Anything here is truly permanent. But keep them focused β if these files get too long, they eat into your conversation space. Aim for 1-2 pages, not a novel.
The best agents in the community have rich MEMORY.md files that their owners built over time. It's a feedback loop β the more your agent knows about you, the better it helps, the more useful things it writes down, the better it gets.
Your name should be in SOUL.md or MEMORY.md, not just mentioned in conversation. Tell your agent: "Add my name to MEMORY.md so you always know it."
Long projects should be tracked in memory files. Ask your agent: "Write a summary of our project to memory and keep it updated as we go." Next session, it'll have the full context.
The conversation probably compacted and that detail was lost in the summary. If it was important, it should have been in a file. Going forward, ask your agent to save key info: "Save this to today's memory file."
That's actually normal β each new session starts fresh with only the files. This is actually a feature: you get a clean slate. Your agent reads SOUL.md, AGENTS.md, and recent memory files at startup, so anything important should live in those files.
Usually, no. A blank MEMORY.md just means your long-term file hasnβt been curated yet (or your agent is mostly writing to daily files in memory/). Ask your agent: "List the latest files in memory/ and summarize today + yesterday." If daily files have content, your memory system is working β you just need to promote key items into MEMORY.md.
This usually means the save never actually made it into a file (or got saved in the wrong context). Use a verification prompt right away: "Show me exactly what you wrote, including the file path and line you added." If it canβt show the saved line in MEMORY.md or memory/YYYY-MM-DD.md, it wasnβt truly persisted.
Within a session: Your agent remembers everything you've said (until the context window fills up).
Between sessions: Your agent only remembers what's in files (SOUL.md, MEMORY.md, daily notes).
The rule: If it matters, write it to a file. If it's in a file, it survives forever.
Don't put everything in memory files. If MEMORY.md becomes a 10-page novel, it eats up your context window at the start of every session, leaving less room for actual conversation. Keep it focused β facts, preferences, active projects, key decisions. Trim what's no longer relevant.
If memory feels inconsistent, run this 60-second checklist before opening a support ticket:
MEMORY.md or memory/YYYY-MM-DD.md.
memory/ files first, then promote durable facts into MEMORY.md.
MEMORY.md is loaded in private/main sessions but not shared group contexts. This is intentional for privacy.
MEMORY.md or memory/2026-04-01.md.
"Please read SOUL.md, AGENTS.md, MEMORY.md (if available), and today's memory file, then summarize what you know about me in 8 bullet points."
Now that you understand memory:
βοΈ Set up your SOUL.md β give your agent a personality that loads every session. Follow the tutorial β
π¬ Connect to Discord β each Discord channel gets its own memory context. Set it up β
π Start building MEMORY.md β tell your agent: "Create a MEMORY.md file and add my name, my job, and the three things I use you for most."