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 <noreply@anthropic.com>
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user