本文へスキップ
Skillpedia
エージェント18k · #10647

memory-systems

できること

このスキルは、セッションをまたいで続くメモリをAIエージェントに与える方法を説明します。実体の追跡、時間とともに変わる事実、グラフまたはベクトルストアからの検索を含みます。エージェントの記憶方法を選ぶ開発者向けです。

使う場面

  • ✓エージェントが、別々のセッションをまたいでユーザー、事実、会話を覚えておく必要があるとき。
  • ✓事実が時間とともに変わり、どのバージョンがまだ有効かを知る必要があるとき。
  • ✓Mem0、Zep、Letta、Cogneeなどのメモリのフレームワークを選ぼうとしているとき。

スキルのリンク

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/memory-systems/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/memory-systems/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のアシスタントが、数週間の会話をまたいで各顧客の好みを覚えられるように、メモリを設定する手伝いをしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、単純なストアから、実体とその時期を記録するナレッジグラフまでのメモリの方法を比べ、後で正しい事実を検索する方法を提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Memory System Design

Memory provides the persistence layer that allows agents to maintain continuity across sessions and reason over accumulated knowledge. Simple agents rely entirely on context for memory, losing all state when sessions end. Sophisticated agents implement layered memory architectures that balance immediate context needs with long-term knowledge retention. The evolution from vector stores to knowledge graphs to temporal knowledge graphs represents increasing investment in structured memory for improved retrieval and reasoning.

When to Activate

Activate this skill when:

  • Building agents that must persist knowledge across sessions
  • Choosing between memory frameworks (Mem0, Zep/Graphiti, Letta, LangMem, Cognee)
  • Needing to maintain entity consistency across conversations
  • Implementing reasoning over accumulated knowledge
  • Designing memory architectures that scale in production
  • Evaluating memory systems against benchmarks (LoCoMo, LongMemEval, DMR)
  • Building dynamic memory with automatic entity/relationship extraction and self-improving memory (Cognee)

Do not activate this skill for adjacent work owned by other skills:

  • File-backed scratchpads, run logs, and tool-output offloading: filesystem-context.
  • Conversation compaction or human-readable handoff summaries: context-compression.
  • Masking, prefix caching, token budgets, or retrieval scoping inside one trajectory: context-optimization.
  • Formal belief/desire/intention models over RDF state: bdi-mental-states.

Core Concepts

Think of memory as a spectrum from volatile context window to persistent storage. Default to the simplest layer that meets retrieval needs, because benchmark evidence suggests tool complexity matters less than reliable retrieval for some memory workloads (claim-memory-locomo-filesystem-baseline). Add structure (graphs, temporal validity) only when retrieval quality degrades or the agent needs multi-hop reasoning, relationship traversal, or time-travel queries.

Detailed Topics

Production Framework Landscape

Select a framework based on the dominant retrieval pattern the agent requires. Use this table to narrow the shortlist, then validate with the benchmark data below.

Framework Architecture Best For Trade-off
Mem0 Vector store + graph memory, pluggable backends Multi-tenant systems, broad integrations Less specialized for multi-agent
Zep/Graphiti Temporal knowledge graph, bi-temporal model Enterprise requiring relationship modeling + temporal reasoning Advanced features cloud-locked
Letta Self-editing memory with tiered storage (in-context/core/archival) Full agent introspection, stateful services Complexity for simple use cases
Cognee Multi-layer semantic graph via customizable ECL pipeline with customizable Tasks Evolving agent memory that adapts and learns; multi-hop reasoning Heavier ingest-time processing
LangMem Memory tools for LangGraph workflows Teams already on LangGraph Tightly coupled to LangGraph
File-system Plain files with naming conventions Simple agents, prototyping No semantic search, no relationships

Choose Zep/Graphiti when the agent needs bi-temporal modeling (tracking both when events occurred and when they were ingested) because its three-tier knowledge graph (episode, semantic entity, community subgraphs) excels at temporal queries. Choose Mem0 when the priority is fast time-to-production with managed infrastructure. Choose Letta when the agent needs deep self-introspection through its Agent Development Environment. Choose Cognee when the agent must build dense multi-layer semantic graphs — it layers text chunks and entity types as nodes with detailed relationship edges, and every core piece (ingestion, entity extraction, post-processing, retrieval) is customizable.

Benchmark Performance Comparison

Consult these benchmarks to set expectations, but treat them as source-specific signals for retrieval dimensions rather than absolute rankings. No single benchmark is definitive.

System DMR Accuracy LoCoMo HotPotQA (multi-hop) Latency
Cognee — — Published high score Variable
Zep (Temporal KG) Published high score — Mid-range across metrics Low-latency reported
Letta (filesystem) — Published filesystem baseline — —
よくある質問

長期メモリとコンテキストウィンドウの違いは何ですか?

コンテキストウィンドウは現在のセッションだけを保持しますが、長期メモリはセッションの間も保たれる知識を保持します。

時間的な有効性とは何ですか?

事実がいつ正しかったかを付けて保存し、古い情報を新しい事実と混ぜずに置き換えられるようにすることです。

メモリシステムはどうテストしますか?

スキルは、メモリシステムを比べるために、LoCoMoやLongMemEvalなどのベンチマークに触れています。

詳細

作者による元の説明

This skill should be used for persistent semantic memory in agent systems: cross-session knowledge retention, entity tracking, temporal validity, graph or vector retrieval, memory consolidation, and memory benchmark selection. Route file-backed scratchpads to filesystem-context, handoff summaries to context-compression, and token-efficiency tactics to context-optimization.

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

人気

GitHubのスター
18k
ランキング
#10647
ライセンス
MIT
更新日
2026/10/11

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル