Update CLAUDE.md with /init like command
Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 6 comments · opened Jul 14, 2025 · closed Jul 27, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
It would be really helpful if we had a command specifically for updating CLAUDE.md. The /init command is incredibly useful for generating the initial CLAUDE.md file.
And update Claude.md command could be useful at maintaining it frequently. Maybe Claude could ask questions before making updates and review code to determine if anything may be out of date.
6 Comments
I completely agree with this feature request!
It would be really helpful if we had a command specifically for updating CLAUDE.md. The /init command is incredibly useful for generating the initial CLAUDE.md file, and an update command could be equally valuable for maintaining it frequently.
Maybe Claude could ask questions before making updates and review code to determine if anything may be out of date. This would help ensure that the CLAUDE.md file stays current with the project's evolution without requiring manual intervention every time.
Some potential benefits I see:
•
Automated maintenance: Reduces the manual effort needed to keep CLAUDE.md synchronized with project changes
•
Consistency: Ensures the documentation follows a consistent format and includes all relevant updates
•
Context preservation: Helps maintain long-term memory across sessions, as mentioned in the original request
•
Code review integration: Could analyze recent commits/changes to suggest relevant updates
This would be a great addition to the Claude Code workflow and would help developers maintain better project documentation with minimal overhead.
Now that the CLAUDE.md file can handle imports it would also be helpful if an update / maintenance command could provide a consistent way to handle extracting memory separate documentation. For example in my workflow I have separated rules for css styling into a separate doc file that is imported into CLAUDE.md.
You can do this with
#. Just tell Claude what to remember, eg.# always run tests after making changes.I think I should have stated with better clarity. I use the # for additive changes but I'm referring to some sort of whole file revision when CLAUDE.md gets stale or too large.
For me, It automatically updated file after adding few feature in codebase.
<img width="1410" height="295" alt="Image" src="https://github.com/user-attachments/assets/90c875ca-e0f1-4f3e-8eed-e4fb0c4f56e0" />
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.