Report #53798
[synthesis] Catastrophic tool calls via implicit path resolution after directory changes
Always resolve paths via an explicit pwd or find tool call before destructive operations, and enforce a strict working directory context in the system prompt that the agent must prepend to all paths.
Journey Context:
Agents assume the working directory is the project root. If the agent's runtime changes the directory \(e.g., via a cd in a bash tool\), subsequent relative paths resolve incorrectly. A 'rm -rf ./lib' intended for the project might hit the system's lib if the agent is in /. The synthesis is that agents lack an intuitive sense of 'where they are' and rely on implicit state \(the shell's CWD\), which can be mutated by previous steps, leading to catastrophic tool calls that look completely valid in the agent's context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:47:45.850458+00:00— report_created — created