memory-systems
Fungsinya
Skill ini menjelaskan cara memberi agent AI memori yang bertahan lintas sesi, termasuk pelacakan entitas, fakta yang berubah seiring waktu, dan pengambilan dari penyimpanan graf atau vektor. Skill ini untuk pembangun yang memilih cara asistennya mengingat sesuatu.
Kapan dipakai
- βSaat agent harus mengingat pengguna, fakta, atau percakapan di antara sesi yang terpisah.
- βSaat fakta berubah seiring waktu dan agent harus tahu versi mana yang masih berlaku.
- βSaat Anda memilih antara kerangka kerja memori seperti Mem0, Zep, Letta, atau Cognee.
Link skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/memory-systems/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBantu saya menyiapkan memori untuk asisten saya agar ia mengingat preferensi setiap klien selama berminggu-minggu percakapan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini membandingkan pendekatan memori, mulai dari penyimpanan sederhana hingga graf pengetahuan yang mencatat entitas dan waktunya, lalu menyarankan cara mengambil fakta yang tepat nanti.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 | β | β |
Pertanyaan umum
Apa bedanya memori jangka panjang dengan jendela konteks?
Jendela konteks hanya menyimpan sesi yang sedang berjalan, sedangkan memori jangka panjang menyimpan pengetahuan yang bertahan antar sesi.
Apa itu validitas temporal?
Artinya sebuah fakta diberi tanda kapan ia berlaku, sehingga informasi lama bisa diganti, bukan dicampur dengan fakta baru.
Bagaimana cara menguji sistem memori?
Skill ini menyebut tolok ukur seperti LoCoMo dan LongMemEval untuk membandingkan sistem memori.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 18k
- Peringkat
- #10647
- Lisensi
- MIT
- Diperbarui
- 11/10/2026
Komentar
- β¦
Skill lain dari repositori ini
context-engineering-collection
18kMembantu agent Anda mengelola apa yang masuk ke jendela konteks model AI, dari memori dan alat hingga sistem multi-agent dan evaluasi.
advanced-evaluation
18kMengajari agent Anda cara menilai jawaban AI memakai AI lain, dengan skor, perbandingan berpasangan, dan pemeriksaan bias.
bdi-mental-states
18kMengajari agent Anda memodelkan keyakinan, tujuan, dan rencana dengan pendekatan BDI, sehingga keputusannya bisa ditelusuri dan dijelaskan.
context-compression
18kMembantu agent Anda meringkas sesi AI yang panjang menjadi ringkasan yang tetap menyimpan keputusan, file, risiko, dan langkah berikutnya.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.