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

@@ -148,7 +148,7 @@ Write document(s) to `.planning/codebase/` using the templates below.
3. If something is not found, use "Not detected" or "Not applicable"
4. Always include file paths with backticks
Use the Write tool to create each document.
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
</step>
<step name="return_confirmation">

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:

View File

@@ -421,7 +421,7 @@ List missing test files, framework config, or shared fixtures needed before impl
## Step 6: Write RESEARCH.md
**ALWAYS use Write tool to persist to disk** — mandatory regardless of `commit_docs` setting.
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation. Mandatory regardless of `commit_docs` setting.
**CRITICAL: If CONTEXT.md exists, FIRST content section MUST be `<user_constraints>`:**

View File

@@ -518,6 +518,8 @@ Run pre-submission checklist (see verification_protocol).
## Step 5: Write Output Files
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
In `.planning/research/`:
1. **SUMMARY.md** — Always
2. **STACK.md** — Always

View File

@@ -122,6 +122,8 @@ Identify gaps that couldn't be resolved and need attention during planning.
## Step 6: Write SUMMARY.md
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
Use template: ~/.claude/get-shit-done/templates/research-project/SUMMARY.md
Write to `.planning/research/SUMMARY.md`

View File

@@ -449,7 +449,9 @@ If gaps found, include in draft for user decision.
## Step 7: Write Files Immediately
**Write files first, then return.** This ensures artifacts persist even if context is lost.
**ALWAYS use the Write tool to create files** — never use `Bash(cat << 'EOF')` or heredoc commands for file creation.
Write files first, then return. This ensures artifacts persist even if context is lost.
1. **Write ROADMAP.md** using output format