You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested install.sh init (project scaffold — works, minor issues)
Found context poisoning: template CLAUDE.md had 33 lines of {{placeholders}} that Claude Code loads as real instructions before /forge ever runs. Fixed: reduced to 3-line marker with {{FORGE_PLACEHOLDER}} in HTML comment (detection still works, zero poisoning)
Same fix for sdlc-flow.md and agent-routing.md templates
Insight for guide: Templates that get auto-loaded by the LLM must never contain fake instructions — even if they'll be replaced later. Use HTML comments for placeholders.
Session 2 — 2026-04-05
Discovered: Claude Code strips block-level HTML comments before sending to LLM (confirmed from source: stripHtmlComments() in claudemd.ts)
Fixed context poisoning properly: Kept all {{PLACEHOLDERS}} inside HTML comment blocks. LLM sees # New Project only. Agents reading via Read tool see full template with placeholders.
Key insight (Part 0 of guide): Two Pipes — auto-load strips comments, Read tool doesn't. Same LLM, different entry points.
Discovered hooks split: templates/hooks.json (3 hooks, installed) vs hooks/hooks.json (8 hooks, orphaned). Forge was running without auto-continue, state tracking, or activity logging.
Merged hooks: Single templates/hooks.json with all 8 hooks. Deleted hooks/ directory.
Redesigned install.sh: Removed init subcommand. ./install.sh = global install. ./install.sh <dir> = global + mkdir + git init. No more template scaffolding — /forge Phase A does it all.
Added scripts + templates to global install: Hooks depend on scripts at ~/.claude/scripts/. Phase A reads templates from ~/.claude/templates/.
Updated Phase A Step S8: Now creates .forge/, playbook, docs, timeline, hooks — everything install.sh init used to do.
New user flow:git clone forge → ./install.sh → cd my-app → /forge "idea" — 3 steps, not 4.
Next: Test /forge end-to-end in forge-test-2026-04-05/