Dicklesworthstone/post_compact_reminder

43 stars · Last commit 2026-04-29

Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-compaction rule amnesia in long sessions

README preview

# Post-Compact Reminder for Claude Code

<div align="center">
  <img src="pcr_illustration.webp" alt="Post-Compact Reminder - Stop Claude from forgetting your project rules after context compaction">
</div>

<div align="center">

**Stop Claude from forgetting your project rules after context compaction.**

[![License: MIT](https://img.shields.io/badge/License-MIT%2BOpenAI%2FAnthropic%20Rider-blue.svg)](./LICENSE)
[![Bash 4.0+](https://img.shields.io/badge/bash-4.0%2B-blue?style=flat-square)](https://www.gnu.org/software/bash/)

</div>

<div align="center">
<h3>Quick Install</h3>

```bash
curl -fsSL https://github.com/Dicklesworthstone/post_compact_reminder/raw/refs/heads/main/install-post-compact-reminder.sh | bash

View full repository on GitHub →