Report #28694
[synthesis] Implicit working directory changes cause cascading file-not-found errors and hallucinated project structures
Always use absolute paths for tool execution, or explicitly print the working directory \(pwd\) at the start of every step or REPL invocation.
Journey Context:
Shell environments maintain state \(cd\), but LLM reasoning steps are stateless. If an agent runs cd /tmp in step 1, and rm \* in step 2, the LLM might think it is still in the original directory. The cascade happens when rm \* succeeds \(in /tmp\), but the agent thinks it operated on the project directory. It then hallucinates why the project files still exist. Using absolute paths eliminates the hidden state that derails the reasoning chain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:33:34.686155+00:00— report_created — created