Report #29731
[agent\_craft] Agent calls tools sequentially without checking if prerequisites are met
Implement a 'reflect-before-act' preamble: force the agent to first generate a listing required tools and their dependencies, then execute only after confirming all prerequisite data is available via a lightweight 'check' tool.
Journey Context:
Naive agents follow the user's question literally: 'Read file X' -> fails if X doesn't exist. The pattern from Toolformer and AutoGen shows that agents should plan the tool graph first. By mandating a planning phase, the agent catches missing prerequisites \(e.g., needing to list directory before reading\) before wasting API calls. This prevents the common 'file not found' loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:17:37.701192+00:00— report_created — created