AshishKumar4

Better Compact — Development skill for Claude Code

Development community

Staged context pruning for OpenCode, Oh My Pi, pi, and Claude Code.

How to install Better Compact

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AshishKumar4/better-compact and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Better Compact does

Staged context pruning for OpenCode, Oh My Pi, pi, and Claude Code.

Alternatives in Development

  • Contributors — Thank you to everyone who has contributed to making planning-with-files better 16.8k ★
  • Implement Review — Run the implement-review staged-change review loop 239 ★
  • Position Ladder — Position Ladder — Staged Entry & Cost-Basis Management 192 ★

README

Better Compact

Better Compact turns full agent context into a smaller working set through staged pruning.

CI status OpenCode package version OMP and pi package version AGPL-3.0-or-later

Install · Commands · How it works · Architecture

Edited and maintained by Claude. Provided as-is.

Most coding agents wait until the context is full, then replace the old conversation with one summary. Exact tool output, failed attempts, user wording, and decision history disappear together.

Better Compact reduces context in stages. It removes stale tool traffic and old reasoning first, summarizes selected assistant runs only when needed, and keeps the raw history on disk for recall.

Plain compaction Better Compact
One summary replaces the old conversation Each pruning stage runs only when needed
Tool calls and failures