본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/memory-systems/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬