claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE REQUEST] - Initialisation prompt to use after compacting

Open adrien-carre opened this issue 1 year ago • 5 comments

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.

adrien-carre avatar Jun 27 '25 12:06 adrien-carre

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?

JobaDiniz avatar Jun 27 '25 13:06 JobaDiniz

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

adrien-carre avatar Jun 27 '25 13:06 adrien-carre

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/580
  2. https://github.com/anthropics/claude-code/issues/3349
  3. 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

github-actions[bot] avatar Aug 16 '25 04:08 github-actions[bot]

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

github-actions[bot] avatar Aug 20 '25 09:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 27 '25 14:08 github-actions[bot]