Rebase onto upstream (a4d95fd)
#12
@@ -113,15 +113,16 @@ class AgentLoop:
|
||||
allowed_dir = self.workspace if self.restrict_to_workspace else None
|
||||
self.tools.register(ReadFileTool(allowed_dir=allowed_dir))
|
||||
self.tools.register(WriteFileTool(allowed_dir=allowed_dir))
|
||||
self.tools.register(EditFileTool(allowed_dir=allowed_dir))
|
||||
# Removed: replaced by EditTool20250728
|
||||
# self.tools.register(EditFileTool(allowed_dir=allowed_dir))
|
||||
self.tools.register(ListDirTool(allowed_dir=allowed_dir))
|
||||
|
||||
# Shell tool
|
||||
self.tools.register(ExecTool(
|
||||
working_dir=str(self.workspace),
|
||||
timeout=self.exec_config.timeout,
|
||||
restrict_to_workspace=self.restrict_to_workspace,
|
||||
))
|
||||
# Removed: replaced by BashTool20250124
|
||||
# self.tools.register(ExecTool(
|
||||
# working_dir=str(self.workspace),
|
||||
# timeout=self.exec_config.timeout,
|
||||
# restrict_to_workspace=self.restrict_to_workspace,
|
||||
# ))
|
||||
|
||||
# Web tools
|
||||
self.tools.register(WebSearchTool(api_key=self.brave_api_key))
|
||||
|
||||
Reference in New Issue
Block a user