From 9fe5348af326a07d99053d0ed4f3fc0b525d8886 Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 1 Mar 2026 20:13:29 +0100 Subject: [PATCH] fix(CLAUDE.md): use reliable workplan discovery in step 2 Glob with pattern 'workplans/*.md' from repo root fails silently (tool limitation with subdirectory prefixes in patterns). Changed to Glob(pattern="**/*.md", path="workplans/") which does find files, with Bash ls as fallback. This fixes step 2 of the session protocol silently producing no workplan results. Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 38bb248..005c4ae 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,8 +24,9 @@ If the call fails, the API is offline: `cd ~/the-custodian/state-hub && make api **Step 2 — Scan local workplans** -Read every file matching `workplans/*.md` in this repo. For each one with -`status: active`, extract and note: +Read every `.md` file under `workplans/`. Use `Glob(pattern="**/*.md", path="workplans/")` +or Bash `ls workplans/` to discover them. For each file with `status: active`, +extract and note: - The workplan title and ID - All tasks whose `status` is `todo` or `in_progress`