From 1cec45cfb9079ee4d9edb29c1675db6d9eb664b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Fri, 16 Oct 2026 14:35:42 +0000 Subject: [PATCH] fix(claude): stop notes discovery at a project root --- claude/skills/notes/notes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/claude/skills/notes/notes.py b/claude/skills/notes/notes.py index d9c9fed..8adc88f 100755 --- a/claude/skills/notes/notes.py +++ b/claude/skills/notes/notes.py @@ -548,7 +548,10 @@ def find_notes(roots: list[Path], depth: int = 6) -> dict[str, Path]: def walk(d: Path, root: Path, left: int) -> None: notes = d / ".notes" if notes.is_dir() and (notes / "docs").is_dir(): - found[d.relative_to(root).as_posix() or d.name] = notes + # a root that is itself a project goes by its name, not "." + found[d.name if d == root else d.relative_to(root).as_posix()] = notes + # a project's subdirectories are its code, even when the project is a root + return # a repo's own subdirectories are its code, not more projects if left == 0 or ((d / ".git").exists() and d != root): return