agentmemory-architecture
できること
このスキルは、agentmemoryサーバーの構造と、記憶を保存して取り出す仕組みを説明します。拡張やトラブルシューティングの前に、システム全体を理解するのに役立ちます。
使う場面
- ✓agentmemoryが記憶を保存して取り出す仕組みを理解したいとき。
- ✓新しい機能でメモリサーバーを拡張する計画があるとき。
- ✓メモリシステムがどう働くかを、他の人に説明する必要があるとき。
スキルのリンク
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-architecture/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“メモを保存した瞬間から想起されるまで、agentmemoryが私の記憶をどう保存し、どう見つけるかを説明してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
サーバーはローカルで動作し、観測を取り込み、キーワードとベクトルの一致を組み合わせたハイブリッド検索のためにインデックスを作ります。記憶はそのセッションとともに保持され、取り込み、圧縮、統合、忘却というライフサイクルをたどります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
検索にAPIキーは必要ですか?
いいえ。クリーンなインストールでは、埋め込みプロバイダーやAPIキーなしでキーワード検索を使います。
記憶はどこに保存されますか?
初期設定の状態ストアはファイルベースで、Redisを使うように設定することもできます。SQLiteではありません。
どのポートを使いますか?
RESTとビューアーは、それぞれローカルの別のポートを使います。初期値はドキュメントに記載されています。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 30k
- ランキング
- #9340
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agentmemory-agents
30kエージェントが、agentmemoryメモリサーバーをClaude Code、Cursor、Codexなどのコーディングツールに接続できるよう支援します。
agentmemory-config
30kエージェントが、ポート、設定、機能フラグを含め、agentmemoryメモリサーバーをセットアップし確認できるよう支援します。
agentmemory-hooks
30kエージェントが、保存を一つずつ手作業で行わなくても、コーディングセッションの有用なメモを自動で取り込めるよう支援します。
agentmemory-mcp-tools
30kエージェントが、記憶の保存、検索、管理の作業に合ったagentmemoryのツールを選べるよう支援します。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。