tiered-memory

Manage tiered agent memory across hot, warm, and cold storage.

5|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/tiancaiamao/ai --skill tiered-memory-tiancaiamao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tiered-memory
Source: https://github.com/tiancaiamao/ai/tree/main/skills/tiered-memory
Command: npx skills add https://github.com/tiancaiamao/ai --skill tiered-memory-tiancaiamao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires libsql_client, and includes scripts (resource) components.

What problem does it solve?

Tiered-memory replaces a flat, fragile note file with a structured memory system that helps AI agents retain important facts, discard noise, and recover context reliably across sessions.

Core Features & Use Cases

  • Three memory tiers store identity, active context, recent facts, and long-term archive data in the right place.
  • LLM-powered distillation and tree search turn raw conversations into compact facts and retrieve relevant memory categories by reasoning.
  • Validation, metadata extraction, and cloud-first sync preserve URLs, commands, and file paths, warn when notes are incomplete, track health metrics, and keep critical state safe.
  • Use it to manage project decisions, preserve implementation details, and keep an agent consistent over long-lived work.

Quick Start

Ask the skill to analyze the tiered-memory repository and summarize how to store, retrieve, validate, and sync memories.

Frequently Asked Questions about tiered-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize AI agent memory across hot, warm, and cold storage tiers?

Organize AI agent memory across hot, warm, and cold storage tiers by structuring identity, active context, recent facts, and long-term archives into agent-scoped JSON files. This structured memory system replaces flat note files to help agents retain important facts and discard noise reliably across sessions.

Does tiered-memory require a database connection to store agent context?

Tiered-memory does not strictly require a database connection to store agent context. It operates using Python standard library tooling and agent-scoped JSON files, while offering optional Turso access via libsql_client and optional LLM endpoints for cloud-first sync and advanced processing.

How do I extract structured facts from raw LLM conversations for long-term retrieval?

Extract structured facts from raw LLM conversations using LLM-powered distillation and tree search. This mechanism turns raw daily note ingestion into compact facts and retrieves relevant memory categories by reasoning, preserving URLs, commands, and file paths during metadata extraction.

What is the best way to validate agent memory and track health metrics for long-lived workflows?

The best way to validate agent memory and track health metrics is using a system that warns when notes are incomplete, applies score-based pruning, and monitors health metrics. This preserves critical state and maintains agent consistency over long-lived workflows like EvoClaw and OpenClaw.

Can I sync agent memory state to the cloud for distributed workflows?

Yes, you can sync agent memory state to the cloud for distributed workflows. The system supports cloud-first sync via optional Turso access using the libsql_client dependency, keeping critical state safe and accessible across distributed agent environments.

When should I not use a tiered memory approach for my AI agent?

You should avoid a tiered memory approach if your agent operates in stateless, single-session environments where long-term context retention is unnecessary. The system is designed for long-lived work requiring daily note ingestion, consolidation, and context recovery, adding overhead for simple, ephemeral tasks.