fabro/crates
Bryan Helmkamp 6338f3ec57 Implement web_fetch tool via exec_command curl
Replace the placeholder web_fetch tool with a working implementation
that executes curl within the execution environment, respecting
Docker/Daytona network sandboxing.

- Build curl command with shell-escaped URL, follow redirects, custom
  user agent, and configurable timeout (default 30s, max 60s)
- Validate URL scheme (http/https only) to prevent misuse
- Truncate responses exceeding 100KB to protect context window
- Register web_fetch in Anthropic and OpenAI profiles (was Gemini-only)
- Add web_fetch guidance to all three profile system prompts
- Add captured_command to MockExecutionEnvironment for test assertions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 20:07:28 -05:00
..
agent Implement web_fetch tool via exec_command curl 2026-02-27 20:07:28 -05:00
attractor Emit subagent lifecycle events and forward child session events 2026-02-27 19:59:56 -05:00
git-storage Add git-storage crate for storing data in git object database 2026-02-24 23:17:44 -05:00
llm Simplify LLM crate: constructors, shared HTTP/SSE infra, Deref delegation 2026-02-27 19:12:33 -05:00
util Consolidate redact and terminal crates into util 2026-02-27 18:44:19 -05:00