Home/AI Agent Memory & Knowledge/agentmemory-architecture
A

agentmemory-architecture

by @rohitg00v
4.5(120)

This skill details the architecture of agentmemory, including its iii engine primitives, storage model, ports, and viewer. It explains how memories are stored, retrieved, and managed, covering hybrid retrieval mechanisms and the memory lifecycle. Developers can leverage this skill to deeply understand agentmemory's internal workings, enabling better system extension, troubleshooting, or optimization of memory strategies, ensuring AI agents efficiently manage and utilize knowledge.

agent-memoryarchitectureknowledge-managementinformation-retrievalai-agentsGitHub
Installation
npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-architecture
compare_arrows

Before / After Comparison

1
Before

Without this skill, developers would spend significant time manually sifting through code, fragmented documentation, or conducting trial-and-error to grasp agentmemory's complex internal mechanisms, leading to a steep learning curve and inefficient system extension or troubleshooting.

After

This skill provides a clear architectural overview and operational principles, enabling developers to quickly master how agentmemory stores, retrieves, and manages memories, significantly reducing learning time and accelerating development and diagnostic processes.

SKILL.md

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. It is built on the iii engine.

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 is hybrid: BM25 keyword search plus vector similarity plus graph expansion over linked concepts. The default install needs no API key because embeddings run on-device and BM25 needs none. An LLM provider only adds richer summaries and auto-injection, both opt-in.

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 is the anchor at 3111. Streams = N+1 (3112), viewer = N+2 (3113), engine = N+46023 (49134). --instance N shifts the whole block by N*100.

Viewer

A real-time web viewer at http://localhost:3113 shows memory building as sessions run. 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.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs9.4K
Rating4.5 / 5.0
Version
Updated2026年9月22日
Comparisons1

User Rating

4.5(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年6月25日
Last Updated2026年9月22日
🎁 Agent Knowledge Cards
Survey