Compact Prepare banner
groundnuty groundnuty

Compact Prepare

Development community

Description

--- description: Flush what this session learned into the files that outlive it - AGENTS.md, CLAUDE.md, project-conventions, path-scoped rules, auto-memory, checkpoint - each routed to the surface that actually holds it. --- # /compact-prepare Run this **before context is lost** — when the `PreCompact` hook warns that compaction is imminent, at the end of a working session, or whenever you would otherwise type *"update your CLAUDE.md, memory and rules with whatever you'll need to keep working

Installation

Installs to ~/.claude/commands/groundnuty-agentic-repo-template-compact-prepare.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/groundnuty/agentic-repo-template/HEAD/.claude/commands/compact-prepare.md -o ~/.claude/commands/groundnuty-agentic-repo-template-compact-prepare.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository