🧠 Subsystem Deep Dive

memdir/

📁 memdir/ 📄 7 files

Tutorial: memdir

This project implements a persistent, file-based memory system that allows an AI assistant to recall user preferences and project context across sessions. It uses a Two-Tier Architecture—keeping a lightweight index (MEMORY.md) in context while retrieving detailed topic files on demand—to manage token limits efficiently. The system enforces strict security sandboxing and distinguishes between Private (user-specific) and Team (shared) scopes, ensuring the AI respects boundaries while maintaining temporal freshness to avoid citing outdated code.

flowchart TD A0["Two-Tier Storage Architecture (Index vs. Detail)"] A1["Contextual Recall Mechanism"] A2["Structured Memory Taxonomy"] A3["Scoped Persistence (Private vs. Team)"] A4["Path Security and Sandboxing"] A5["Temporal Freshness & Verification"] A3 -->|"Locates storage for"| A0 A2 -->|"Defines content format for"| A0 A0 -->|"Supplies file manifest to"| A1 A5 -->|"Flags stale data during"| A1 A4 -->|"Enforces boundaries on"| A3

Chapters

  1. Structured Memory Taxonomy
  2. Scoped Persistence (Private vs. Team)
  3. Two-Tier Storage Architecture (Index vs. Detail)
  4. Contextual Recall Mechanism
  5. Temporal Freshness & Verification
  6. Path Security and Sandboxing

Generated by Code IQ

Files in this section