Claude Compact Guard Plugin Uses New PostCompact Hook to Preserve Context

Plugin Solves /compact Context Loss Problem
A developer has built the first plugin leveraging Anthropic's newly released PostCompact hook to address a persistent frustration with Claude's /compact command. The plugin, claude-compact-guard, automatically preserves context that would otherwise be lost when the context window fills and /compact is triggered.
How It Works
The plugin operates through two automated phases:
- Fires before /compact executes — takes a snapshot of your critical context
- Fires after /compact completes — reinjects the saved context automatically
This allows Claude to pick up exactly where you left off without requiring manual re-explanation of complex tasks, key decisions, files in progress, or open problems that were identified before the context window filled.
Installation and Details
Installation requires one command:
/plugin marketplace add celeritas-stack/claude-compact-guardThe plugin requires zero configuration and zero manual work once installed. It's free and open source, available at github.com/celeritas-stack/claude-compact-guard.
The developer notes that the PostCompact hook is "a brand new primitive with some interesting constraints" and is available to answer questions about its architecture.
📖 Read the full source: r/ClaudeAI
👀 See Also

AutoSkillUpdate: A Claude Code Plugin That Detects Outdated Skills
AutoSkillUpdate is an open-source Claude Code plugin that scans your codebase, compares it against existing skills, and identifies drift. It provides drift reports with file paths and line references, then offers to rewrite outdated skills with user confirmation.

OpenClaw Multi-Agent Book Writing Skill Released
A multi-agent book writing system built on OpenClaw has been released as a skill, featuring DeepWiki MCP connection, GLM image generation for illustrations, budget estimation, and chapter-level revision. Two chapters of the OpenClaw Paradigm Book have been updated using this tool.

Brand-Docs: Open-Source Tool for Claude to Generate DOCX, PPTX, XLSX from Templates
A Reddit user open-sourced Brand-Docs, a solution for Claude to generate Office documents (DOCX, PPTX, XLSX) that faithfully preserve company brand templates — layout, styles, images — without recreation.
Mole: Deep-Research Agent with Enforced Budget and Verified Quotes for Your Terminal
Mole is a terminal-based deep-research agent that enforces a hard budget (0% overshoot), verifies every claim with quotes, and keeps local data private. Supports most LLMs and MCP.