feat: Grant agent access to WebFetch and WebSearch tools

Add WebFetch and WebSearch to the agent's allowed tools and permissions,
enabling the autonomous coding agent to look up documentation and search
the web when needed during development sessions.

Changes:
- Add WebFetch and WebSearch to BUILTIN_TOOLS list
- Add WebFetch and WebSearch to permissions_list in create_client()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Auto
2026-01-03 11:30:02 +02:00
parent 81b1b29f24
commit 88951e454a

View File

@@ -69,6 +69,8 @@ BUILTIN_TOOLS = [
"Glob",
"Grep",
"Bash",
"WebFetch",
"WebSearch",
]
@@ -110,6 +112,9 @@ def create_client(project_dir: Path, model: str, yolo_mode: bool = False):
# Bash permission granted here, but actual commands are validated
# by the bash_security_hook (see security.py for allowed commands)
"Bash(*)",
# Allow web tools for documentation lookup
"WebFetch",
"WebSearch",
# Allow Feature MCP tools for feature management
*FEATURE_MCP_TOOLS,
]