LaunchKit · 2026
Back to Skills

compaction-ui-enhancements

Manual memory compaction button with context gauge for OpenClaw Control UI.

0
352 downloads
by @maverick-software

Setup & Installation

openclaw skills install @maverick-software/compaction-ui-enhancements

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install compaction-ui-enhancements

Version History

v2.3.0Mar 9, 2026 - Version note by skill developer:

v2.3.0: Remove blocking modal — compaction is now fully background with toast-only status. v2.2.0: Full background isolation — filter memory flush messages and COMPACTION divider from chat timeline. parentId skip-set constrained to message-only entries to prevent cascade.

What This Skill Does

Adds background memory compaction to the OpenClaw Control UI. Runs compaction without blocking the interface, triggers automatically when token usage exceeds a configurable threshold, and stores results with before/after token counts. Includes a settings tab with model selection and a context gauge button in the chat toolbar.

Runs entirely in the background via toasts instead of blocking the UI with a modal, so the chat remains interactive during compaction.

When to use it

  • Compacting long agent sessions before context limit is hit
  • Reviewing how much memory was freed after a compaction run
  • Setting a custom model for compaction separate from the chat model
  • Automatically compacting after every response once tokens cross 80%
  • Reading the conversation summary paragraph in compacted output

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: compact this session automatically when it gets too full

AGENT
  1. 1User opens the Compaction settings tab under the Agent nav group
  2. 2Enables auto-compaction toggle and sets threshold slider to 75%
  3. 3After the next chat response, token usage crosses 75% and auto-compaction triggers
  4. 4A toast appears showing "Auto-Compacting (77%)" while the UI stays interactive
  5. 5Compaction completes and the Last Compaction card shows tokens before, after, and percent reduction
OUTPUT

Session memory compacted in the background; chat continues without interruption and result stored in compaction-config.json

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

API key for any custom compaction model provider selected in the model selector