Long-term memory from a self-hosted Agent Memory server: recalls relevant memories before each prompt and captures each finished turn (tool calls included, secrets redacted).
Self-hosted long-term memory for teams that work with AI agents. AgentMemory gives Claude Code, Codex, Antigravity, Hermes and any MCP client a memory that persists across sessions. It captures each conversation, distils it into facts, scenes and a persona in the background, and recalls what is relevant before every prompt. It all runs on your own servers.
Built for Team Collaboration
Most agent memory is personal: each person's assistant learns on its own, and what one teammate's agent worked out yesterday is invisible to the next person who asks. AgentMemory starts from the team instead. The agents a team works with build up a shared understanding of the team's work (its projects, conventions, decisions and recurring problems), while each person's own conversations stay their own.
flowchart LR
subgraph private["Private to each member"]
A["alice: conversations → facts"]
B["bob: conversations → facts"]
end
subgraph shared["Shared by everyone who uses the agent"]
S["Scenes (L2)"] --> P["Persona (L3)"]
end
A --> S
B --> S
S -- recall --> R["every member's next prompt"]
P -- recall --> R
Shared where it helps, private where it matters. Each member's conversations (L0) and facts (L1) are scoped to that member. The scenes (L2) and persona (L3) of an agent are distilled from the facts of everyone who uses it, so recall gives each member the team's accumulated context, never a teammate's transcript.
Skills spread across the team. A procedure extracted from one member's work becomes a skill every member of the team can find, once a person approves it. Skills of a private agent stay with that agent.
The team chooses how much to share. Put everyone on one agent to pool what the team learns, or give each person a private agent to keep profiles apart while still managing them as one team.
Hard boundaries. Nothing crosses teams or agents, and departments share nothing at all: not users, keys or data. One authorization layer enforces this before every memory call, so it does not depend on clients behaving.
Oversight without surveillance. Team leaders see whether distillation is healthy for every member, but cannot open anyone's conversations or facts.
You want
Set it up as
A team that pools what it learns
Every member uses the same agent, e.g. team-assistant
One team, separate profiles
One private agent per person ("visibility": "private")
Groups that must not share anything
Separate teams, or separate departments
Because a shared agent's scenes and persona mix everyone's facts, use one only when members are comfortable with that. COLLABORATION.md covers the levels, roles, layouts and how isolation is enforced.