Do Not Compact — Development skill for Claude Code
Claude Code plugin: reload CLAUDE.md files after context compaction.
How to install Do Not Compact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open coo-quack/do-not-compact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Do Not Compact does
Claude Code plugin: reload CLAUDE.md files after context compaction.
Alternatives in Development
- Fast Jev Compaction — Claude Code plugin that replaces the compaction summary with Jev decisions: every tool call and result is scor 425 ★
- Magic Compact — Lossless context compression plugin for Claude Code & OpenCode 144 ★
- Fire Cost — Track context usage, estimate session costs, and trigger strategic compaction 77 ★
README
Don't Compact CLAUDE.md
Claude Code plugin that reloads CLAUDE.md files into context after conversation compaction.
Problem
When Claude Code compacts the conversation to stay within context limits, the contents of CLAUDE.md files (user instructions, project rules, git conventions, etc.) may be lost or summarized. This can cause Claude to forget important rules like commit message conventions or coding standards.
Solution
This plugin hooks into the `SessionStart` event with a `compact` matcher. After compaction, it collects all CLAUDE.md files from the directory hierarchy and injects them back into context as `additionalContext`.
Files collected (in order):
~/.claude/CLAUDE.md(user global instructions)~/CLAUDE.mdand parent directories up to cwd (project hierarchy)
Installation
Plugin install (recommended)
Install in two commands from inside a Claude Code session:
**1. Register the marketplace**
/plugin marketplace add coo-quack/claude-code-marketplace
**2. Install the plugin**
/plugin install do-not-compact@coo-quack
Done. The hooks are enabled automatically.
npm install**Keeping up to date:** Third-party marketplaces have auto-update disabled by default. To receive automatic updates, run `/plugin` → **Marketplaces** tab → select the marketplace → **Enable auto-update**. You can also update manually from the same tab. See [Discover and install plugins](https://docs.anthropic.com/en/docs/claude-code/discover-plugins) for details.
Install globally via npm and configure hooks manually:
npm install -g @coo-quack/do-not-compact
Update to the latest version:
npm update -g @coo-quack/do-not-compact
Then add to `~/.claude/settings.json`:
{
"hooks": {
"SessionStart": [
{
"matcher": "compact",
"hooks": [
{
"type": "command",
"command": "\"$(npm root -g)/@coo-quack/do-not-compact/hooks/rel
Related Skills
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Post Compact Reminder
Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-
Context Compact
Prepare context for compaction: $ARGUMENTS
Compact
Prepare session state for context compaction — capture learnings, save state, then compact
Session Recall
Search and analyze Claude Code session transcripts to recover context after compaction
Compact Middleware
Claude Code's compaction engine, as a drop-in DeepAgents middleware
Related Agents
Arch Context Architect
Designs the context management layer for a new plugin — CLAUDE.md, memory tiers, scratchpad schemas, read-dept
Claude Code Tools
by Prasad Chalasani - Well-crafted toolset for session continuity, featuring skills/commands to avoid compacti
Context Engine
Context window management — tracks tool call count, auto-detects when context fills up, triggers state save +