Repository navigation
chore: exclude more local AI agent files from source and build artifacts - #21
Merged
Merged
Conversation
Add CLAUDE.local.md, .gemini and .specstory to the local AI workspace ignores in .gitignore, .dockerignore, .npmignore and package files allowlists. Agent-local files like these can hold secrets that would otherwise reach git, npm packages and Docker images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the ignore-rule updates for the additional local AI-agent files.
No open issues 🎉
What changed in this PR
Updates Git and Docker ignore rules to exclude additional local AI-agent state from source and build artifacts.
Changes:
- Adds
.gemini,.specstory, andCLAUDE.local.mdto.gitignore. - Adds recursive Docker exclusions for the same paths.
- Preserves existing agent-workspace exclusions.
| File | Description |
|---|---|
.gitignore |
Excludes the additional local AI workspace files from Git tracking. |
.dockerignore |
Excludes the same paths recursively from Docker build contexts. |
Review effort: Lite
ronag
marked this pull request as ready for review
November 8, 2026 13:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #19. Adds three more agent-local paths to the local AI workspace ignores:
CLAUDE.local.md: Claude Code's per-developer memory file.gemini: Gemini CLI project state.specstory: SpecStory's saved agent chat historyApiiro's study of Claude Code's "Don't ask again" leak names agent folders and memory files like these as places that hold secrets, and found them leaking through npm packages and Docker images as well as git (summary).
.claude/settings.local.json, the file at the center of that study, is already excluded here by the.clauderules from the earlier PR.Changed:
.gitignore,.dockerignore. No tracked file matches the new patterns, so source, package and image contents stay the same.Validation on
20875f5a3b:.claude/settings.local.json,.claude/worktrees/,.*-private,.cursorand.aider*) are excluded bygit check-ignorein 39 directories and a realdocker buildxcontext copy for 1 ignore file.git diff --checkpasses.🤖 Generated with Claude Code