agentmemory-architecture
What it does
This skill explains how the agentmemory server is built and how it stores and retrieves memories. It is useful for understanding the system before you extend or troubleshoot it.
When to use it
- ✓When you want to understand how agentmemory stores and retrieves memories.
- ✓When you plan to extend the memory server with new capabilities.
- ✓When you need to explain how the memory system works to someone else.
Skill link
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-architecture/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Explain how agentmemory stores and finds my memories, from the moment a note is saved to when it is recalled.”
5 new skills a week. 1 minute to read.
How it works
The server runs locally, captures observations, and indexes them for hybrid search that combines keyword and vector matching. Memories are kept with their sessions and go through a lifecycle of capture, compression, consolidation, and forgetting.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
agentmemory is a memory server for coding agents. It runs locally, captures observations, indexes them for hybrid retrieval, and serves them back over REST and MCP. Worker Compose runs the pinned iii engine with AgentMemory and the registry state and http workers. The state worker uses a file-backed KV store by default, with Redis available by configuration; it is not SQLite.
iii primitives
Everything is a function, a trigger, or worker state on the iii engine. There is no separate plugin system; the worker registers functions (mem::*) and HTTP triggers (api::*) and the engine routes calls. agentmemory does not bypass iii; new capability is a new function plus a trigger.
Retrieval model
Recall combines BM25 keyword search with configured vector similarity and graph expansion. A clean installation without an embedding provider uses BM25 without an API key. Set EMBEDDING_PROVIDER=local to enable on-device embeddings, which may download a model, or configure a remote provider. LLM compression and summaries require a configured provider and their relevant options.
Storage and lifecycle
Memories carry content, concepts, files, importance, and timestamps, grouped into sessions and optionally linked to commits. A lifecycle of capture, compress, consolidate, and forget keeps the store useful over time rather than letting it grow unbounded.
Ports
REST defaults to port 3111, the viewer to 3113, and the internal engine WebSocket to 49134. Use --port <N> or --instance <N> to select another local runtime.
Viewer
A real-time web viewer at http://localhost:3113 shows memory building as sessions run, with authenticated SSE updates over the REST port. Useful for demos and for confirming capture is working.
See also
- agentmemory-mcp-tools and agentmemory-rest-api for the surfaces.
- agentmemory-hooks for automatic capture.
- agentmemory-config for ports and feature flags.
FAQ
Does it need an API key to search?
No. A clean install uses keyword search without an embedding provider or API key.
Where are memories stored?
The default state store is file-based and can be configured to use Redis instead. It is not SQLite.
Which ports does it use?
REST and the viewer each use their own local port, with defaults listed in the documentation.
Details
Original description by the author
How agentmemory is built, the iii engine primitives it runs on, its storage model, ports, and the viewer. Use when reasoning about how memory is stored or retrieved end to end, when extending the system, or when answering how agentmemory works under the hood.
repo: rohitg00/agentmemory
Popularity
- GitHub stars
- 30k
- Ranking position
- #9340
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agentmemory-agents
30kHelps your agent connect the agentmemory memory server to coding tools such as Claude Code, Cursor, and Codex.
agentmemory-config
30kHelps your agent set up and check the agentmemory memory server, including ports, settings, and feature flags.
agentmemory-hooks
30kHelps your agent automatically capture useful notes from coding sessions, without you saving each one by hand.
agentmemory-mcp-tools
30kHelps your agent choose the right agentmemory tool for saving, searching, and managing memories.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.