episodic-memory-algorithms

Official

Design reliable episodic memory for agents.

Authorcuriositech
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Agents struggle to remember, retrieve, and forget information reliably over time, which causes inconsistent behavior, hallucinations, token budget waste, and failures to meet compliance or audit requirements. This Skill provides the decision logic and algorithmic tradeoffs needed to build memory systems that balance recall accuracy, latency, storage cost, and token efficiency across short- and long-term horizons.

Core Features & Use Cases

  • Algorithm selection & scaling: Guidance on choosing and tuning HNSW, IVF-PQ, PQ, DiskANN, and distributed indices for different memory volumes and latency targets.
  • Temporal & graph storage: Designs for bi-temporal triple stores and hybrids combining knowledge graphs with vector search for relational and multi-hop queries.
  • Retrieval scoring & forgetting: Adaptive ranking combining relevance, recency, and importance plus decay-based, session-scoped, and never-forget policies and consolidation strategies.
  • Failure modes & quality gates: Detection and mitigation steps for retrieval hallucination, token budget overflow, semantic drift, and knowledge graph explosion.
  • Use Case: Build a personal assistant memory that serves 1M memories with sub-200ms P95 retrieval, bi-temporal auditability, and >50% storage reduction via consolidation.

Quick Start

Design an episodic memory system for a personal assistant that uses HNSW for sub-100ms retrieval, a bi-temporal knowledge graph for fact history, and decay-based forgetting policies for low-importance memories.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: episodic-memory-algorithms
Download link: https://github.com/curiositech/port-daddy/archive/main.zip#episodic-memory-algorithms

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.