Agentmemory Architecture

作者 rohitg00007a1a7fe864无许可证29K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

仅含说明AI & Agents
AI 生成的概览

说明 agentmemory 的内部架构,涵盖其 iii 引擎原语、检索模型、存储生命周期、端口与查看器。

功能
该技能提供关于 agentmemory 构建方式的参考文档,说明其 iii 引擎原语、混合检索模型、存储与生命周期、端口分配以及实时查看器。它解释记忆如何被捕获、索引并端到端地提供。它是知识文档,而非生成文件或运行代码的工具。
适用场景
在需要端到端推理记忆如何存储或检索时、扩展该系统时,或回答 agentmemory 底层工作原理时使用。
运行要求
除智能体外无需其他条件;仅为说明性指令,不附带任何脚本。

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.

来源与署名

来源:rohitg00/agentmemory位于plugin/skills/agentmemory-architecture提交007a1a7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架