aerovato/magic-compact

Lossless context compression plugin for Claude Code & OpenCode.

144Stars on the repository
6Mods indexed here, across every type
8d agoLast push, which is what freshness is scored on
BSD-3-ClauseLicence, which decides whether bodies are shown

UserPromptSubmit

01

aerovato/magic-compact

Hook

Runs when you submit a prompt, before the agent sees it for ^/(?:claude-magic-compact:)?magic-compact(?:\s+.*)?$ tool calls, executing hook.ts via bun. From aerovato/magic-compact.

144 8d ago A tokens not measured original BSD-3-Clause