From 5bbc24358aff6436b63303e864763c10fc35b8ce Mon Sep 17 00:00:00 2001 From: Pablo Rodriguez Date: Mon, 21 Sep 2026 11:39:25 +0000 Subject: [PATCH] Refuse agent scratch directories at any depth An ephemeral worktree is a nested repository, not content, and a stray `git add -A` commits it as a gitlink; agent memory belongs only in plover-context. Co-Authored-By: Claude Opus 5 (1M context) --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index f31e4e2..5185003 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,8 @@ */.obsidian/workspace.json */.obsidian/workspace-mobile.json */.obsidian/plugins/ + +# `**/` matters: an agent's working directory can be at any depth. Agent memory lives only in +# plover-context, and an ephemeral worktree is a nested repository rather than content. +**/.claude/agent-memory/ +**/.claude/worktrees/