-
Notifications
You must be signed in to change notification settings - Fork 834
chore: ignore local Claude Code agent file #4524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JonathanOppenheimer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used claude code! Out of curiosity could you share what kind of stuff you put in your agents file? I gotta give it a try perhaps
|
I recommend relying on ~/.gitignore committed to a dotfiles repo to ignore files created [edit: or consumed] by one's choice of development tooling. |
...and |
Why this should be merged
For developers that use Claude Code (like myself), having an agent file greatly improves the context that Claude Code has and leads to much better prompt results. The Claude Code best practices page suggests that for agent files not meant to be shared, you should add
CLAUDE.local.mdto your.gitignore- doing this allows the following:How this works
Adds
CLAUDE.local.mdto.gitignoreHow this was tested
N/A
Need to be documented in RELEASES.md?
No