Skip to content

claude-compact-controller v1.0.0

Choose a tag to compare

@LxveAce LxveAce released this 27 Jun 18:36

claude-compact-controller v1.0.0

First tagged release of the zero-dependency Node.js Claude Code hook bundle that guards against
context loss across auto-compaction (Stop / PreCompact / PostCompact hooks + install/uninstall/status).

Hardened in this release:

  • Atomic writes (tmp + rename, 0600) for the shared state/config/vault files, matching the catalyst-ui
    consumer; robust stdin parsing (BOM / CRLF / empty); vault-prune off-by-one fixed.
  • status.js --json for machine-readable state; configurable install path
    (CLAUDE_COMPACT_CONTROLLER_HOME) with catalyst-ui-aligned dedupe so the two installers never clash.
  • hookEventName added to hook output; new docs/DATA-CONTRACT.md freezing the on-disk contract.

Install: npm run install-hooks (needs node on PATH; restart Claude Code after).