Skip to content

Conversation

@RodrigoVillar
Copy link
Contributor

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.md to your .gitignore - doing this allows the following:

  • Allows developers to use define their own agent files
  • Prevents agent files from having to go to AvalancheGo (and undergo a review process)

How this works

Adds CLAUDE.local.md to .gitignore

How this was tested

N/A

Need to be documented in RELEASES.md?

No

@RodrigoVillar RodrigoVillar self-assigned this Nov 17, 2025
@RodrigoVillar RodrigoVillar marked this pull request as ready for review November 17, 2025 23:02
Copilot AI review requested due to automatic review settings November 17, 2025 23:02
Copy link
Contributor

Copilot AI left a 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.

Copy link
Member

@JonathanOppenheimer JonathanOppenheimer left a 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

@maru-ava
Copy link
Contributor

maru-ava commented Nov 17, 2025

I recommend relying on ~/.gitignore committed to a dotfiles repo to ignore files created [edit: or consumed] by one's choice of development tooling.

@maru-ava maru-ava disabled auto-merge November 17, 2025 23:31
@RodrigoVillar
Copy link
Contributor Author

@maru-ava Good point; I went with adding it to the AvalancheGo repository to follow the existing convention:

avalanchego/.gitignore

Lines 63 to 64 in 2a10c52

# Personal extension to .envrc
.envrc.local

Should we remove .envrc.local from the .gitignore then?

@maru-ava
Copy link
Contributor

maru-ava commented Nov 20, 2025

Should we remove .envrc.local from the .gitignore then?

...and .vscode and .idea and... I would be in favor of slimming .gitignore down for sure, but may make sense to raise this in avalanchego slack to check other peoples' view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants