{"repo":"Dicklesworthstone/post_compact_reminder","free":true,"listed":false,"github":"https://github.com/Dicklesworthstone/post_compact_reminder","clone":"git clone https://github.com/Dicklesworthstone/post_compact_reminder.git","description":"Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-compaction rule amnesia in long sessions","language":"Shell","stars":54,"topics":["ai-agents","bash","claude","developer-tools","hooks"],"license":null,"category":"ai-agents","readme_excerpt":"Post-Compact Reminder for Claude Code Stop Claude from forgetting your project rules after context compaction. Quick Install --- TL;DR The Problem: During long coding sessions, Claude Code compacts the conversation to stay within context limits. After compaction, Claude loses all memory of your project's AGENTS.md, the file that defines your coding conventions, forbidden commands, architectural decisions, multi-agent coordination rules, and everything else that keeps Claude on the rails. The result: Claude starts freelancing, ignoring your rules, deleting files you told it never to delete, and generally going on a post-compaction rampage. The Solution: A hook system that detects compaction events and injects a short plain-text reminder telling Claude to re-read AGENTS.md before doing anything else. One install, zero maintenance, works globally across all your projects. --- Why Use Post-Compact Reminder? Feature What It Does --------- -------------- Automatic detection Fires only after compaction, not on normal startups Zero-config Installs globally in /.local/bin and /.claude/settings.json ; works in every project Customizable messages 4 built-in templates (minimal, detailed, checklist, default) + custom messages Reliable injection Uses SessionStart hook with compact matcher for direct context injection Idempotent installer Safe to run repeatedly; detects existing installs, handles upgrades, creates backups Self-updating --update pulls the latest installer from GitHub --- Qui","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dicklesworthstone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dicklesworthstone/post_compact_reminder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}