telegram-session-compact

Compact long Telegram sessions by issuing a /compact message.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Andy-HNU/AndyClaw --skill telegram-session-compact
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram-session-compact
Source: https://github.com/Andy-HNU/AndyClaw/tree/main/skills/telegram-session-compact
Command: npx skills add https://github.com/Andy-HNU/AndyClaw --skill telegram-session-compact

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compact Telegram sessions before they approach context limits, preventing slow responses and missed replies caused by high context usage.

Core Features & Use Cases

  • Detect high context usage and prompt compaction across Telegram sessions.
  • Preserve important context (user profile, assistant identity, key decisions) while removing casual chatter.
  • Verify reply path recovery after compaction and resume normal conversations.

Quick Start

Send a /compact command in the target Telegram session to trigger context compaction.

Frequently Asked Questions about telegram-session-compact

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

FAQPage Schema
How do I fix Telegram chat stalls and silent non-replies?

Telegram chat stalls and silent non-replies often happen when context usage reaches high thresholds. Compacting the session reduces context pressure by removing casual chatter while preserving key decisions, restoring normal reply paths.

When do I need to compact a Telegram session?

You need to compact a Telegram session when token usage exceeds 80-85%, or when conversations stall and miss replies. Compacting prevents slow responses by shrinking the active context before it hits hard limits.

How do I trigger context compaction for a Telegram session?

To trigger context compaction for a Telegram session, send a /compact command in the target chat. This initiates a deterministic workflow that locates the session, validates token usage, and updates the context accordingly.

Does session compaction erase important user profile data in Telegram?

Session compaction preserves important context such as user profiles, assistant identity, and key decisions. It selectively removes casual chatter to optimize token usage without losing critical conversation history.

What is the best way to optimize AI workflow context in Telegram?

The best way to optimize AI workflow context in Telegram is applying deterministic session compaction. It validates usage thresholds and issues cleanup commands to keep chats responsive under high token pressure.

Why does my Telegram AI assistant stop responding after long conversations?

Your Telegram AI assistant stops responding after long conversations because accumulated context exceeds token limits. Compacting the session shrinks the context window, verifying reply path recovery to resume normal interactions.