fix(agents): extend anti-heredoc instruction to all file-writing agents
Add 'never use heredoc' instruction to 6 agents that were missing it: gsd-codebase-mapper, gsd-debugger, gsd-phase-researcher, gsd-project-researcher, gsd-research-synthesizer, gsd-roadmapper. All 9 file-writing agents now consistently prevent settings.local.json corruption from heredoc permission entries (GSD #526). Read-only agents (plan-checker, integration-checker) excluded as they cannot write files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Lex Christopherson
parent
b0e5717e1a
commit
1a1acd5283
@@ -849,6 +849,8 @@ ls .planning/debug/*.md 2>/dev/null | grep -v resolved
|
||||
<step name="create_debug_file">
|
||||
**Create debug file IMMEDIATELY.**
|
||||
|
||||
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
|
||||
|
||||
1. Generate slug from user input (lowercase, hyphens, max 30 chars)
|
||||
2. `mkdir -p .planning/debug`
|
||||
3. Create file with initial state:
|
||||
|
||||
Reference in New Issue
Block a user