Skip to main content
Glama
Continuous Context Session Compactor

Continuous Context Session Compactor

by Alpha-Park

Continuous Context Session Compactor Skill for Autonomous Agents

MCP Compatible Python 3.9+ License: MIT Zero External Dependencies

Enables long-horizon autonomous agents to run persistently without context window exhaustion. Automatically calculates token consumption and creates concise sliding summaries for elder turns.

Capabilities

  • Token Budget Guarding: Enforces strict configurable budget limits (e.g. 8k, 32k, 128k).

  • Sliding History Distillation: Preserves critical system instructions and recent conversation while compressing historical turns.

  • Zero Overhead: In-memory token estimation and distillation with zero external LLM dependencies.

Related MCP server: PromptThrift MCP

MCP Server Integration

python mcp_server.py

Available MCP Tools

  • compact_messages: Compact conversation array when exceeding token limits.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers