Commands

1 mods

Command mods add new slash commands to Claude Code. A command registered with $.command.register runs its own code when you type it, without starting a Claude turn.

before-compact

walterreid/before-compact

Keeps your last turns, verbatim, across compaction. PreCompact hooks save the last turns verbatim, yours and the assistant's as two bundles (and the full arc beside them); SessionStart hooks re-inject each as its own block after compaction. /before-compact:recover does it on demand; /before-compact opens a monitor pane with the summary the engine installed.