Your script works from one folder and quietly breaks from another. Find which file it actually reads before changing random app code.
This original staged example follows Matt Pocock’s Diagnosing Bugs workflow: the same project script selected the wrong fallback origin from a nested folder, then a path correction made both invocations agree. Codex and local Node performed the demo; Claude Code was not run. Get the public original fixture ZIP; full guide/Markdown unlock with your email for access, not newsletter consent.
Get the part you came for.
- A reproducible wrong-folder CLI fixture
- Ranked hypotheses, one-variable probes and exact outputs
- Supported Claude Code setup and original diagnosis checklist
