← Back to list
🛠️

agentmemory-architecture

How agentmemory is built, the iii engine primitives it runs on, its storage model, ports, and the vi
🛠️ Developer Tools skills By rohitg00 Version v1.0.da093fa Added 2026-12-04 Updated 2026-12-04 Source ↗
6.0Overall rating
0Views
0Downloads
0Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "agentmemory-architecture" skill by following the instructions at https://skill123.me/install/agentmemory-architecture?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/agentmemory-architecture.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.da093fa · 36.3 MB
📊 Static rating
6.0/10
Trigger
5.5
Structure
6.0
Workflow
3.0
Content
7.0
Engineering
7.5
Security
9.0

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

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.

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.

Documentation

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.

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 has no embedding provider and uses BM25 without an API key. Set EMBEDDING_PROVIDER=local to enable on-device embeddings, which download a model once. A remote embedding provider runs only when EMBEDDING_PROVIDER names it. LLM summaries, consolidation and reflection run only when AGENTMEMORY_LLM_PROVIDER selects a provider or AGENTMEMORY_ALLOW_AGENT_SDK=true turns on the Claude Agent SDK fallback; a key in the environment alone does not turn them on. Per-observation LLM compression also needs AGENTMEMORY_AUTO_COMPRESS=true.

Data boundary

Captured prompts, tool inputs and outputs, and memories stay in the local store. They leave the machine only through options the user turns on: a selected LLM provider, the Agent SDK fallback (AGENTMEMORY_ALLOW_AGENT_SDK=true), a remote embedding provider, a Redis state backend, or mesh sync to peer servers the user registers.

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.

Score breakdown

Trigger
5.5
Trigger 5.5/10 — Reference skill states what/when but has no when-not or Chinese and no progressive disclosure in a 38-line file. It is purely descriptive architecture knowledge with no steps or commands (workflow near zero by rubric), though prose is clear and it explicitly documents a local data boundary with no egress.
Structure
6.0
Structure 6/10
Workflow
3.0
Workflow 3/10
Content
7.0
Content 7/10
Engineering
7.5
Engineering 7.5/10
Security
9.0
Security 9/10
Reference skill states what/when but has no when-not or Chinese and no progressive disclosure in a 38-line file. It is purely descriptive architecture knowledge with no steps or commands (workflow near zero by rubric), though prose is clear and it explicitly documents a local data boundary with no egress.

Assessment methodology

⏳
Assessment in progress
This skill has not been assessed yet — use with caution.

Version history

v1.0.da093fa 2026-12-04
36.3 MB

— Imported from GitHub rohitg00/agentmemory/plugin/skills/agentmemory-architecture@da093fa