Report #63594
[synthesis] Agent fails tool calls by missing implicit environment context
Provide environment state \(e.g., current working directory, OS, installed packages\) dynamically in the system prompt or as a pre-tool-check step, rather than assuming the agent knows its own runtime.
Journey Context:
An agent generates a bash command like npm install assuming it is in the project root, but it is actually in /. The command fails or installs in the wrong place. The agent doesn't have a sense of its environment like a human does. The fix is to inject pwd, ls, and environment variables into the prompt automatically before every command, or force the agent to run a state\_check tool first. The tradeoff is token overhead, but it prevents path-related tool call failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:13:44.745088+00:00— report_created — created