claudemods

All Claude Code modskoenvdheide/better-compact

better-compact

A Claude Code mod in koenvdheide/better-compact

Steers every compaction, including automatic ones, with a brief that keeps goal, next step, files, decisions and state. Once context runs high, a button above the prompt runs /compact, so you compact before a long context eats into your usage limits and model performance.

better-compact reaches L2 (writes or runs) and passed claude plugin validate on Claude Code 2.1.302.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsdrives Claude, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
compaction
Hooks
session.compact, session.end, session.measure, ui.render {component=AbovePrompt}
API calls
$.command.run, $.ui.invalidate, $.ui.resolve
Validation on 2.1.302
Passed
Scanned revision
bb07a9163419

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

Badge for your README

Reach badge for better-compact Validation badge for better-compact

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/koenvdheide--better-compact--better-compact-reach.svg)](https://mods.aidojo.si/mods/koenvdheide--better-compact--better-compact/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/koenvdheide--better-compact--better-compact-validates.svg)](https://mods.aidojo.si/mods/koenvdheide--better-compact--better-compact/)