compact-framework

Distills Telegram threads into searchable Warm Memory preserving key decisions and tasks.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/jannolan200211-ship-it/my-cosmos-backup --skill compact-framework
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: compact-framework
Source: https://github.com/jannolan200211-ship-it/my-cosmos-backup/tree/main/.openclaw/skills/custom-memory-utils
Command: npx skills add https://github.com/jannolan200211-ship-it/my-cosmos-backup --skill compact-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Long Telegram threads explode in token usage, making it difficult to locate critical decisions, tasks, and context after hours of discussion.

Core Features & Use Cases

  • Distills long threads into a structured, searchable Warm Memory while preserving essential decisions, tasks, and metadata
  • RAM-aware processing: selects cloud or local AI based on available memory to prevent resource exhaustion
  • Integrates with memory-librarian for cross-skill workflows and multi-tier storage (Hot/Warm/Cold)

Quick Start

Run the distillation workflow on a Telegram thread to generate a compact, searchable memory containing only critical decisions and tasks.

Frequently Asked Questions about compact-framework

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

FAQPage Schema
How do I summarize long Telegram threads into structured searchable memory?▼

To summarize long Telegram threads into structured memory, this Skill distills conversations using an 80/20 rule to preserve critical decisions and tasks. It creates a searchable Warm Memory layer, preventing token explosion while retaining essential context for future reference.

What is the best way to manage RAM usage when distilling long chat conversations locally?▼

The best way to manage RAM usage during chat distillation is using RAM-aware processing. This Skill automatically selects cloud or local AI based on available system memory, preventing resource exhaustion when processing extensive Telegram thread conversations.

Do I need ripgrep installed to search existing memories before distilling Telegram threads?▼

Yes, ripgrep is required to search existing memories before distilling Telegram threads. The Skill operates a Search First phase using ripgrep to locate prior memories, preventing duplicate storage and ensuring context continuity across multi-tier storage layers.

Can I use the Gemini API for cloud distillation when processing long Telegram threads?▼

Yes, you can use the optional Gemini API for cloud distillation of Telegram threads. When local RAM is insufficient, the RAM-aware processing phase selects the cloud AI alternative to distill conversations without causing system resource exhaustion.

How does multi-tier storage handle archived Telegram thread memories?▼

Multi-tier storage handles archived Telegram thread memories by routing data across Hot, Warm, and Cold tiers. Distilled memories are stored under /root/.openclaw/memory, where specific signals trigger archival to the appropriate tier for long-term retrieval.

Why does summarizing long Telegram chats preserve critical decisions but remove filler?▼

Summarizing long Telegram chats preserves critical decisions by applying the 80/20 distillation rule, which filters out conversational filler and retains only essential tasks, decisions, and metadata. This structured approach ensures searchable Warm Memory without token bloat.