[FEATURE REQUEST] - Initialisation prompt to use after compacting
I start my claudes with an initial prompt that tell them to read several .MD files to tell them how to behave in the current project.
It works fine, but when the claude is auto-compacting, the information read is lost and I have to tell it to re-read them.
I would like to have an "initialisation prompt" configured in command line or in configuration file and that this initialisation prompt is first re-read when auto-compacting is done.
I start my claudes with an initial prompt that tell them to read several .MD files to tell them how to behave in the current project.
@adrien-carre I'm interesting in your case, because from claude code docs, they say claude code will read CLAUDE.md file, which we can use to point to other files. Do you feel - like me - that claude often does not read (or forgets) about these files?
Yes I do, and furthermore for strategical reasons I do not want a CLAUDE.md at project root, I need it somewhere else.
That's why I have a script that starts claude with a default instruction such as "read plop/CLAUDE.md, plop/OTHER.md, plop/WHATEVER.md and provide me a 3 line short version for each" and that way I have a much more reliable claude.
I have instructed it to re-read them after auto-compact but it doesn't work
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/580
- https://github.com/anthropics/claude-code/issues/3349
- https://github.com/anthropics/claude-code/issues/5442
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #580.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.