Original Reddit post

I have figured out a simple bridge mechanism between the status line and hooks which enables you to give custom instructions and prompts to Claude based on when it has reached some context usage threshold (e.g. write your work to memory at 75%). It has many awesome use cases for example fine tuning autocompaction, better Ralph loops, better steering etc. Ive setup two templates so far and made the entire thing fully customizable as the base functionality so you can do w it whatever you want. Here it is: https://github.com/sdi2200262/cc-context-awareness Simple bash, hooks, and some light prompt engineering which in turn help towards context engineering! Fully open source with MIT - I hope CC uses this natively in the future ! submitted by /u/Cobuter_Man

Originally posted by u/Cobuter_Man on r/ClaudeCode