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:
Tibsfox
2026-02-28 00:35:47 -08:00
committed by Lex Christopherson
parent b0e5717e1a
commit 1a1acd5283
6 changed files with 11 additions and 3 deletions

View File

@@ -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: