Commit 5ceca53
authored
fix(coding-agents): survey prompt says Glob, not Read, for the directory layout (#3796)
The cold-repo survey spawns a headless `claude -p --model haiku
--allowedTools Read Glob Grep` session. SURVEY_PROMPT asks the model to
understand "the directory layout" but never says which tool shows it, and
haiku reaches for `Read(<repoRoot>)` — a bare directory path, which errors
with EISDIR before the survey has read anything.
Measured on one machine's OTel export, 2026-08-23..25: 10 distinct survey
sessions failed this way on first tool call, across kids-yt-factory,
hindsight, sitebrain.eu, PlanView, Meridian and four .traycer worktrees —
i.e. every repo the survey ran cold against, plus a fresh worktree each
time (a new worktree is a new bank, so the survey re-runs).
Glob was already in --allowedTools; the model was simply never told to
prefer it here. This is a prompt-level counter-instruction, not a
structural guarantee — the robust fix is at the tool-wiring layer (deny
Read on a directory, or give the survey an ls-shaped tool), which this
does not attempt.1 parent c507e70 commit 5ceca53
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments