fix tool call loop — cap request limit to 15, soften URL check instruction
phi was hitting the default 50-request limit calling check_urls in a loop
when asked to read a web page (a task it can't actually do). logfire trace
019d5004 shows 30 consecutive check_urls calls.
three fixes:
- usage_limits=UsageLimits(request_limit=15) on both agent.run() calls
- check_urls docstring explicitly says HEAD-only, no retries
- system prompt: don't verify URLs the user gave you, accept results,
say so if you can't fulfill a request with available tools
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>