Skip to content

chore: remove committed .claude/plans session scratch and ignore the directory - #2041

Merged
itomek merged 2 commits into
mainfrom
chore/remove-claude-plans
Jul 13, 2026
Merged

itomek merged 2 commits into
mainfrom
chore/remove-claude-plans

Conversation

@itomek

@itomek itomek commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Seven per-issue implementation-plan scratch files under .claude/plans/ (issue-1230/1262/1278/1292/1293/1294/1336) were committed by past sessions. They are session-local working notes, not project documentation, and shouldn't ship in the repo. This deletes them and adds .claude/plans/ to .gitignore so they can't be committed again. docs/plans/ (the real plan docs) is untouched.

Test plan

  • git ls-tree -r HEAD --name-only | grep '^.claude/plans/' returns nothing on this branch
  • git check-ignore -v .claude/plans/probe.md → matched by .gitignore:114 .claude/plans/
Verification output
$ git check-ignore -v .claude/plans/probe.md
.gitignore:114:.claude/plans/	.claude/plans/probe.md

…directory

Seven per-issue implementation-plan scratch files under .claude/plans/
were committed by past sessions; they are session-local working notes,
not project docs (docs/plans/ is untouched). Deletes them and adds
.claude/plans/ to .gitignore so they cannot land again.
@github-actions github-actions Bot added the devops DevOps/infrastructure changes label Jul 13, 2026
@itomek
itomek marked this pull request as ready for review July 13, 2026 19:05
@itomek
itomek requested a review from kovtcharov-amd as a code owner July 13, 2026 19:05
@itomek itomek self-assigned this Jul 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve ✅

This removes seven per-session .claude/plans/issue-*.md scratch files that past sessions accidentally committed, and adds .claude/plans/ to .gitignore so they can't come back. Pure repo hygiene — no source, tests, or docs touched. I confirmed nothing in the tree references the deleted files, no plan files remain tracked, and the new ignore rule matches (.gitignore:114). The real plan docs under docs/plans/ are untouched. Safe to merge.

🔍 Technical details

Issues Found: none.

Verification performed:

  • git ls-tree -r HEAD --name-only | grep '^.claude/plans/' → empty (no scratch plans left in the tree).
  • git check-ignore -v .claude/plans/probe.md → .gitignore:114:.claude/plans/ (rule is effective).
  • Grep for the seven deleted filenames across the repo → only pr-diff.txt / pr-files.txt (the review artifacts), no real code/doc references.

Strengths:

  • The ignore rule sits with the other .claude/ entries (settings.local.json, skill-meta/) — logical grouping, and matching a directory prevents any future issue-*.md from being re-committed rather than just the seven seen here.
  • Description scopes it correctly and calls out that docs/plans/ (the real plan docs) is deliberately left alone, so there's no ambiguity with the tracked roadmap docs.

@itomek
itomek marked this pull request as draft July 13, 2026 19:08
@itomek
itomek marked this pull request as ready for review July 13, 2026 19:08
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve ✅

This removes seven per-issue session scratch files under .claude/plans/ that were committed by past sessions, and adds .claude/plans/ to .gitignore so they can't be re-committed. Scope is exactly as described — 734 deletions of working notes plus one ignore line, no source, tests, or docs touched. The real plan docs in docs/plans/ are correctly left alone.

Nothing blocking. The ignore entry sits with the other Claude Code local-settings patterns, and the PR's test plan verifies both that no .claude/plans/ files remain tracked and that the new pattern actually matches. Good hygiene fix.

🔍 Technical details

Strengths

  • The new pattern .claude/plans/ (.gitignore:114) is placed alongside the existing .claude/settings.local.json / .claude/skill-meta/ local-scratch entries — consistent grouping, trailing-slash directory match is correct.
  • Test plan proves the fix from the right angle: git ls-tree confirms the tracked files are gone, and git check-ignore -v confirms future files are ignored — it checks the outcome, not just the edit.
  • Correctly narrow: docs/plans/ (the real, shipped plan documentation) is untouched, so this only removes session-local noise.

No issues found (🔴/🟡/🟢 none). Deleted content is inert removed-line data.

@itomek
itomek added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit bcef2c4 Jul 13, 2026
37 of 38 checks passed
@itomek
itomek deleted the chore/remove-claude-plans branch July 13, 2026 19:44
itomek pushed a commit that referenced this pull request Jul 13, 2026
Main gitignored .claude/plans/ and purged committed plans (#2041) after
this branch added its plan file; remove it so the merge doesn't reintroduce
session scratch to main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants