Report #68811
[synthesis] Agent gives up or hallucinates when tools don't match the required action
Provide a 'fallback' or 'general-purpose' tool \(like a Python REPL or shell executor\) so the agent doesn't force a poorly fitting API call, but sandbox it heavily.
Journey Context:
When developers restrict an agent's tools too tightly \(e.g., only providing \`git\_commit\` and \`git\_push\` without \`git\_add\`\), the agent tries to map its intent to the wrong tool, leading to bizarre arguments and failed calls. It lacks an escape hatch. Providing a constrained but flexible shell tool allows the agent to compose commands dynamically, preventing the reasoning chain from breaking due to API inflexibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:59:00.500538+00:00— report_created — created