agent_id. Any memory created here becomes part of every conversation for every user.
Agent memories are wired in automatically only for Agno. The DB connection and helpers on this page raise
NotImplementedError on LangChain, OpenAI Agents SDK, and AWS Strands. See the framework pages for the manual integration story.When to use agent memories
Pick the right layer for the fact:
A useful test: if the fact is short (one or two sentences) and would matter on every turn, it’s an agent memory. If it’s a multi-page document the agent might need sometimes, it belongs in a knowledge base.
Agent memories vs. system prompt instructions: instructions are part of the agent’s identity and require an Agent Studio change to update. Agent memories are mutable from code, so an automation can update them when the underlying fact changes. “Refund window is 14 days” is policy that might shift quarterly; encoding it as a memory means a single SDK call keeps the agent current, no UI round-trip needed. In agentic mode the agent can also extract and add memories itself, which instructions can’t do.
Configuration
Settings live onagent.agno_settings and are toggled in the agent’s Memory tab in Agent Studio. Agent memories are single-agent only; the wiring is skipped on Teams.
Configure memory in Agent Studio
UI walkthrough for toggling agent memory and switching between agentic and manual modes.
Read which mode is active off the loaded agent:
- Manual mode (
agent_memories = True): you write the memories. The agent reads them during reasoning. Good for facts you want strict control over: compliance text, policy wording. - Agentic mode (
agentic_culture = True): the agent identifies and stores org-level facts as it learns them through conversations. Good when you want the agent to build up its own picture of how your org operates.
Add a memory
To add an Agent Memory, you need:- a
nameidentifying the memory contentthat carries the main body text
agent_id and team_id are set automatically by the SDK from the loaded agent. Don’t set them manually.
Inspect memories
name or limit if the store has grown large.
Edit or delete
To edit, upsert with an existingid:
Token cost
Agent memories live in the system prompt, which means they are injected in the prompt sent to the LLMs in every turn. This increases cost and latency. Keep entries short and high-signal. Prune periodically. If the store has grown past the point where every entry is genuinely useful on every turn, move the excess to a knowledge base where it’s retrieved on demand rather than always injected.Troubleshooting
Agent memory I added doesn't appear in responses
Agent memory I added doesn't appear in responses
Confirm
agent_memories=True (or agentic_culture=True) is set via xpander_agent.agno_settings, then reload the agent so the next task picks up the new memory. Cached Agent instances from before the insert won’t reflect it until Agents().aget(...) runs again.A memory the agent stored in agentic mode is wrong
A memory the agent stored in agentic mode is wrong
List with
db.get_all_cultural_knowledge(), find the row, and call db.delete_cultural_knowledge(id=...). Since agent memories are global, a single bad row affects every user; fix it quickly. For ongoing protection, switch from agentic_culture to agent_memories (manual mode) so the agent can no longer write on its own.A memory I deleted came back
A memory I deleted came back
In
agentic_culture mode the agent will rewrite memories it considers important. If a deleted memory keeps reappearing, switch to manual mode (agent_memories=True) so the agent stops writing entirely, or rephrase the underlying fact so the agent doesn’t infer the same thing again.System prompt is getting large and responses are slowing down
System prompt is getting large and responses are slowing down
Too many agent memories. Prune aggressively or move long-form content to a knowledge base where it’s retrieved on demand. A useful rule: anything you wouldn’t want to read on every turn shouldn’t live in agent memories.
Agent memories aren't applying to a Team
Agent memories aren't applying to a Team
Agent memories are single-agent only; the cultural-knowledge wiring is skipped on Teams by design. If you have a multi-agent setup and need shared organizational facts, attach them to each member agent individually, or move the content into a knowledge base the team shares.
Next steps
User memories
Per-user facts, the layer below.
Session storage
Single-conversation memory.
Knowledge bases
For larger bodies of knowledge the agent retrieves on demand.
Agno framework
The full args-dict reference, including
add_culture_to_context and the agentic-culture wiring.
