Claude Compact Guard Plugin Uses New PostCompact Hook to Preserve Context

✍️ OpenClawRadar📅 Published: March 28, 2026🔗 Source
Claude Compact Guard Plugin Uses New PostCompact Hook to Preserve Context
Ad

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.

Ad

Installation and Details

Installation requires one command:

/plugin marketplace add celeritas-stack/claude-compact-guard

The 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

Ad

👀 See Also

Slack Message Formatter: Fix Claude's Broken Markdown in Slack
Tools

Slack Message Formatter: Fix Claude's Broken Markdown in Slack

A developer built a skill that converts Claude-generated Markdown to proper Slack formatting, solving issues where bold text shows as asterisks, links appear raw, and tables break. The tool offers both browser preview with rich HTML copy-paste and API webhook support.

OpenClawRadar
Claude Code CLI Toolkit: Four Tools for Code Review, Project Briefs, Auto-Journaling Git Hooks
Tools

Claude Code CLI Toolkit: Four Tools for Code Review, Project Briefs, Auto-Journaling Git Hooks

A developer has released four CLI tools built around Claude Code's print mode that handle code reviews, project brief generation, auto-journaling git hooks, and Claude session status. The tools use existing Claude Code authentication and are available as open source.

OpenClawRadar
LystBot: An MCP Server for Claude to Manage Lists and Tasks
Tools

LystBot: An MCP Server for Claude to Manage Lists and Tasks

LystBot is a list management app with a native MCP server that allows Claude to directly interact with grocery lists, todos, and packing lists. Built primarily with Claude Code, it includes a Flutter mobile app, REST API, CLI, and open-source Node.js MCP server.

OpenClawRadar
Godogen: Claude Code Skills for Complete Godot Game Generation
Tools

Godogen: Claude Code Skills for Complete Godot Game Generation

Godogen is an open-source pipeline that uses Claude Code skills to generate complete, playable Godot 4 projects from text prompts. It handles architecture design, 2D/3D asset generation, GDScript writing, and visual QA testing, addressing specific engineering bottlenecks like GDScript training data scarcity and build-time vs runtime state issues.

OpenClawRadar