AI agent memory explained: what agents remember and where
AI agent memory is everything an agent can recall beyond the model itself, because the model remembers nothing between requests. In IBM's words, "Large language models (LLMs) cannot, by themselves, remember things. The memory component must be added" (IBM, read November 2026). An agent has three kinds of memory: what is in its context window right now, notes and documents it stores and pulls back when they are relevant, and procedures it has learned for doing a job. Neotask's agents use all three, each with its own limits.
Short-term memory: the context window
The context window is the text the model reads on each turn: instructions, the conversation so far and tool results. It is the only thing the model actually sees. IBM describes short-term memory as a rolling buffer or context window that "does not retain information beyond the session".
A bigger window is not a free fix. Anthropic's engineering team notes that "as the number of tokens in the context window increases, the model's ability to accurately recall information from that context decreases", and concludes that context "must be treated as a finite resource with diminishing marginal returns" (Effective context engineering for AI agents, September 2025).
When a long conversation nears the limit, agents compact it: they summarise the older part and carry on with the summary in place of the full text. Anthropic's guide warns that compacting too hard drops small details that turn out to matter later.
Long-term memory: notes and documents outside the window
Long-term memory is stored outside the model, often in a database or as embeddings for search, and loaded back into context when it is relevant. IBM names retrieval augmented generation (RAG) as one of the most effective ways to build it.
There are two common ways to bring stored memory back:
- Up front. Before the model starts, the system searches stored text for passages that match the task and adds them to the context.
- Just in time. The agent keeps lightweight references, such as file paths or saved queries, and loads the data with a tool when it needs it.
Anthropic also describes structured note-taking, where "the agent regularly writes notes persisted to memory outside of the context window" and reads them back later.
Procedural memory: how to do the job
The third kind is knowing how to do something: a routine, a rule, a checklist. IBM describes procedural memory as "the ability to store and recall skills, rules and learned behaviors". For agents this usually means written instructions, such as skills or standard operating procedures, loaded when a task calls for them. The model itself doesn't change.
What Neotask's agents remember, and where
The company profile and company memory
Each company starts with a profile, built from its website, a description or a short brainstorm. Every company also has its own memory: a boot memory file loaded into every session its agents run, plus category files for particular topics. Company memory is encrypted at rest with AES-256-GCM on Neotask's servers.
In the company's Memory tab you can read and edit the boot memory and each category, and clear a category you no longer want. Outside agents can read and update the same memory through Neotask's API and MCP server, for people with an admin role.
By default each boot file is loaded up to 12,000 characters, and anything past that is cut off.
Standard operating procedures, found by meaning
When an agent starts work, whether an autonomous task, a chat or a coding action, Neotask finds the SOPs most relevant to it and attaches them to the agent's context. It matches by meaning rather than exact words, and falls back to keyword matching if the meaning index isn't available.
Agents can propose a new SOP or a change to one, but nothing becomes operating guidance until a person publishes it. Published SOPs are re-indexed after you publish them, and each company only ever sees its own.
Skills an agent learns
After finishing real work, an agent can write itself a short procedure in the same format as any other skill, a SKILL.md file. Skill learning is on by default. In Strict and Balanced approval modes a new skill needs your approval; in Autonomous mode it applies straight away and shows in the activity feed. Once a company has learned enough skills, Neotask can consolidate overlapping ones, at most once a week, and retired skills are archived so they can be recovered.
Training mode is a related tool. You rehearse one company task and save its routine, an output template and a quality checklist. The docs are explicit that this trains the task's guidance, not the model.
Long conversations
Neotask compacts a conversation as it nears the model's limit, keeping a reserve of at least 20,000 tokens free plus a further 4,000-token margin. A summary is prepared in the background from about the halfway point, and the most recent 20,000 tokens are always kept word for word. Before heavy compaction, the agent writes the important points to memory, so they are kept outside the summary.
Your own conversations are never reset on a timer and never removed by routine cleanup. A session set up as isolated starts fresh each time instead.
A nightly memory job
A built-in job called "Learn from Daily Activities" runs at 3:00 AM every day by default, keeping memory up to date across your agents and company workspaces.
Neo's own notes
Neo, Neotask's personal agent, keeps a separate set of notes from company memory, and a company's agents never read them. When you ask Neo to remember a fact about a company, Neo saves it to that company's memory, where the company's agents can use it.
Neo is also told to treat remembered status as possibly out of date. Before saying that earlier work is still running, waiting or failed, Neo checks the current state.
Searching everything a company knows
A company's knowledge search looks across verified facts, documents, company memory, conversations, SOPs and task results, and only ever within that one company.
Seeing and deleting what an agent remembers
- Company memory: visible and editable in the company's Memory tab, where you can clear any category.
- SOPs and skills: a person publishes every SOP, and in Strict and Balanced modes approves every new skill. Retired skills are archived, so they can be recovered.
- Activity History: on Apple silicon Macs, summaries of your own computer work stay on that Mac until you delete them, and raw records normally expire after about 48 hours.
- Your account: deleting it erases every record tied to the account, including company memory.
Where memory goes wrong
- Stale facts. A remembered price or status can be wrong a week later. Facts that change should be checked live, not recalled.
- Lossy summaries. Compaction keeps the gist and drops detail. Anything that must survive belongs in written memory or an SOP.
- Too much memory. A long boot file crowds the context window, and past 12,000 characters it gets cut off. Keep it short and specific.
- Memory in the wrong place. In Neotask, company facts belong in company memory, where every agent in the company can read them, not in Neo's own notes.
- HIPAA accounts. Neo is off, company memory isn't available through the API or MCP, and Activity History isn't available.
For how memory fits into the agent's working loop, see how AI agents work. For the basics, start with what an AI agent is.
Frequently asked questions
Do AI agents remember previous conversations? Only if the system stores them, because the model starts fresh each time. In Neotask, a normal session carries on with its history, and long conversations are summarised as they grow. Isolated sessions start fresh.
What is the difference between agent memory and RAG? RAG is one way to build long-term memory: storing text and retrieving the relevant parts into the context when needed. Agent memory also includes the context window and learned procedures.
Can I see and edit what a Neotask agent remembers about my company? Yes. The company's Memory tab shows the boot memory and each memory category, and you can edit or clear them.
Does Neotask use my company's memory to train models? Not unless you turn on training data sharing. With sharing on, Neotask uses sanitised content from your agent runs, such as prompts, responses and tool activity, which can include memory loaded into a run. Credentials, passwords, API keys and app sign-ins are never included.