Understanding Your Agent

How Agent Memory Works

Why your agent "forgets" things, how memory actually works under the hood, and how to make it stick.

⏱ 5 minute read

The Big Misunderstanding

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.


The Two Types of Memory

Your agent has two completely different memory systems:

πŸ’¬

Conversation Memory

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.

πŸ“

File Memory

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.

🧠 Think of it like this:

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.


The Context Window (Why It "Forgets")

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:

Your full conversation history:
← Can't see these anymore Context window β†’

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.

This isn't a bug β€” it's a feature

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.


How File Memory Works

Your agent has a workspace with files it can read and write. The important ones for memory are:

πŸ“„ SOUL.md
Who your agent is
πŸ“„ MEMORY.md
Long-term memories
πŸ“„ AGENTS.md
Behavior rules
πŸ“ memory/
Daily notes folder
↑ These files are loaded every time your agent starts a new session

MEMORY.md β€” The Long-Term Brain

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.

memory/2026-03-30.md β€” Daily Notes

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.


How to Make Your Agent Remember

Now that you understand the system, here's how to work with it:

πŸ’‘ Power user tip

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.


Common Scenarios

"I told my agent my name but it forgot"

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."

"My agent forgot the project we've been working on"

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.

"My agent used to know something but now it doesn't"

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."

"My agent seems to have amnesia every morning"

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.

"The dashboard shows a blank memory file β€” did I lose everything?"

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.

"I said β€˜remember this’ and it replied β€˜saved’, but it still forgot"

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.


The Simple Mental Model

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.

One thing to avoid

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.


Quick Memory Troubleshooting Checklist

If memory feels inconsistent, run this 60-second checklist before opening a support ticket:

Fast recovery prompt

"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."


What's Next?

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."