agentmemory-architecture
この Skill は、agentmemory のアーキテクチャ、iii エンジンプリミティブ、ストレージモデル、ポート、およびビューアを詳細に説明します。記憶がどのように保存、取得、管理されるか、ハイブリッド検索メカニズムと記憶のライフサイクルを含めて解説します。開発者はこの Skill を活用して agentmemory の内部動作を深く理解し、システムの拡張、トラブルシューティング、または記憶戦略の最適化をより効果的に行い、AI エージェントが知識を効率的に管理および利用できるようにします。
npx skills add https://github.com/rohitg00/agentmemory --skill agentmemory-architectureBefore / After 効果比較
1 组この Skill がない場合、開発者は agentmemory の複雑な内部メカニズムを理解するために、コードや断片的なドキュメントを手動で調べたり、試行錯誤を繰り返したりするのに多大な時間を費やし、学習曲線が急になり、システム拡張や問題解決の効率が低下していました。
この Skill は、明確なアーキテクチャ概要と動作原理を提供し、開発者が 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. 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.
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価