Report #6598
[agent\_craft] Loading entire API schemas into the system prompt consumes all context window space
Implement dynamic tool loading: use a retriever to select only the 2-3 relevant API schemas based on the user's intent, and inject only those into the prompt for the current step.
Journey Context:
Agents need to know how to call APIs. Putting all schemas in the system prompt guarantees they know, but leaves no room for actual reasoning or data. Dynamic retrieval trades a slight latency cost \(retrieving the schema\) for massive context savings, allowing the agent to actually process the API response without truncation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:33:41.188800+00:00— report_created — created