From 913a7f305099ba90a775a0f34d367a58980a4561 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Sun, 4 Oct 2026 22:00:51 +0000 Subject: [PATCH] Ignore .claude/ in .gitignore (closes #204) REPO_POLICIES.md says in-repo agent scratch belongs in both .gitignore and .dockerignore. .dockerignore already has .claude; .gitignore now has the .claude/ entry and its comment exactly as the canonical .gitignore in sneak/prompts has them, unanchored so it matches at every depth. Model: opus-5-5 --- .gitignore | 6 ++++++ TODO.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 50fad0e..24690f7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,12 @@ Thumbs.db .vscode/ *.sublime-* +# Agent scratch (worktrees of this repo, created and destroyed by +# in-flight tooling). Unanchored: .gitignore patterns already match at +# every depth, so no prefix is wanted here. This is not a .dockerignore +# entry and must not be given a `**/` prefix on the way into one. +.claude/ + # Environment / secrets .env .env.* diff --git a/TODO.md b/TODO.md index 2a34c53..b13608a 100644 --- a/TODO.md +++ b/TODO.md @@ -31,6 +31,10 @@ P2: security: per-IP rate limiting on the image routes # Completed Steps +- 2026-10-04 `.gitignore` ignores `.claude/` (closes #204): the entry and its + comment are copied from the canonical `.gitignore` in `sneak/prompts`, + unanchored so it matches at every depth. `.dockerignore` already has + `.claude`. - 2026-10-04 `.dockerignore` keeps secrets out at every depth (closes #205): the file is now the standard one from `sneak/prompts`, whose patterns match in every directory and, for environment files and private keys, in any letter