mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
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:
@@ -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,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user