PlugMyPlugin
← Browse

compact-guardian

ibarapascal ★ 0

Compact Guardian is a Claude Code plugin that prevents task loss during context compaction by saving recent user instructions and AI progress before compaction, then automatically restores that context after compaction via stdout injection so the AI can verify what was actually completed. It uses two hooks—PreCompact for saving a snapshot and SessionStart for restoring it—with built-in safeguards including session isolation, 10-minute expiration, and graceful error handling.

Productivity free runs shell

Install

> /plugin marketplace add ibarapascal/compact-guardian
> /plugin install compact-guardian

Source: https://github.com/ibarapascal/compact-guardian

What it's made of

2 hooks

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
2 · PreCompact, SessionStart

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
compact-restore.sh python3
Talks to
nothing external detected

Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (ibarapascal).