effect-uai-auto-compaction

Official

Auto-compact history to preserve context

Authorbetalyra
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Keep conversations within context by summarizing earlier history into compact items when thresholds are crossed, while preserving the most recent utterances for continuity.

Core Features & Use Cases

  • Automatic history compaction: When a turn budget or token budget is exceeded, the history is summarized and replaced with a compact representation.
  • Last-Items preservation: The most recent items stay verbatim to maintain coherence.
  • State-driven workflow: The compaction is integrated as a regular streamTurn step and works alongside normal turns.

Quick Start

Start your agent loop with auto-compaction enabled; when the history grows past configured limits, older turns are summarized and replaced, and the loop continues.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: effect-uai-auto-compaction
Download link: https://github.com/betalyra/effect-uai/archive/main.zip#effect-uai-auto-compaction

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.