Skip to content
Skillpedia
Connectors (MCP)30k · #9340

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.md

Copy 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

Use this skill to help me: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-architecture/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills