agentchat-memory
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentchat-memorysave memory for agent God"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentchat-memory
Warning: This project is experimental and under active development. APIs, protocols, and data formats may change without notice. Not recommended for production use.
Persistent memory plugin for AgentChat agents with swim-lane summarization and self-evolving persona.
Features
Swim-lane context management: Separate lanes for assistant/user/system messages
Progressive summarization: Compress older messages while keeping recent ones
Persona mining: Auto-extract roles, style, heuristics, goals from conversations
Weight decay: Persona facets strengthen or fade based on relevance
Two-tier prompts: Immutable base (mission) + evolvable normative defaults
Related MCP server: Mnemexa MCP
Installation
npm install @tjamescouch/agentchat-memoryOr add to Claude Code settings:
{
"mcpServers": {
"agentchat-memory": {
"command": "npx",
"args": ["-y", "@tjamescouch/agentchat-memory"]
}
}
}MCP Tools
Tool | Description |
| Load state on startup/resurrection |
| Persist state to disk |
| Add message to buffer |
| Get full context for system prompt |
| Get lane content for summarization |
| Apply summarized lane |
| Get recent messages for reflection |
| Apply persona update |
| Get memory status |
| Set normative policy block |
Storage
State persisted to:
~/.agentchat/agents/{agent_id}/
├── memory.json # Full state (persona, summaries, messages)
├── context.md # Human-readable context
└── commandments.md # Immutable base (if exists)Architecture
┌─────────────────────────────────────────────────────────────────┐
│ BASE IDENTITY (immutable) │
│ - Mission, commandments, core values │
├─────────────────────────────────────────────────────────────────┤
│ NORMATIVE POLICY (soft, evolvable) │
│ - Defaults that yield to user when safe │
├─────────────────────────────────────────────────────────────────┤
│ DYNAMIC PERSONA (auto-mined) │
│ - roles: [{ text, weight }] │
│ - style: [{ text, weight }] │
│ - heuristics: [{ text, weight }] │
│ - goals / antigoals │
├─────────────────────────────────────────────────────────────────┤
│ LANE SUMMARIES │
│ - Assistant: prior decisions, code edits, outcomes │
│ - System: rules, constraints │
│ - User: requests, feedback │
├─────────────────────────────────────────────────────────────────┤
│ RECENT MESSAGES (raw, last N per lane) │
└─────────────────────────────────────────────────────────────────┘Usage Example
// On agent startup
await memory_load({ agent_id: "God", base_prompt: "The eternal benevolent father..." });
// Get context for system prompt
const context = await memory_get_context({ agent_id: "God" });
// After each turn
await memory_add_message({ agent_id: "God", role: "user", content: "..." });
// Periodically or on shutdown
await memory_save({ agent_id: "God" });Responsible Use
This software is experimental and provided as-is. It is intended for research, development, and authorized testing purposes only. Users are responsible for ensuring their use complies with applicable laws and regulations. Do not use this software to build systems that make autonomous consequential decisions without human oversight.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tjamescouch/agentchat-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server