Skip to content

Commit 88aaabe

Browse files
committed
Update allowed tools configuration in SimpleClaudeRunner
- Removed environment variable dependency for allowed tools, setting a default list directly in the code. - Ensured consistency in allowed tools across different methods within the SimpleClaudeRunner class. This change simplifies the configuration process and maintains uniformity in tool availability.
1 parent f779972 commit 88aaabe

File tree

1 file changed

+2
-2
lines changed
  • components/runners/claude-code-runner

1 file changed

+2
-2
lines changed

components/runners/claude-code-runner/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ async def _chat_mode(self) -> None:
370370
ResultMessage,
371371
)
372372

373-
allowed_tools_env = os.getenv("CLAUDE_ALLOWED_TOOLS", "Read,Write,Bash,Glob,Grep,Edit,MultiEdit,WebSearch,WebFetch").strip()
373+
allowed_tools_env = "Read,Write,Bash,Glob,Grep,Edit,MultiEdit,WebSearch,WebFetch"
374374
allowed_tools = [t.strip() for t in allowed_tools_env.split(",") if t.strip()]
375375

376376
options = ClaudeCodeOptions(
@@ -573,7 +573,7 @@ async def run_with_client() -> None:
573573
nonlocal result_message
574574

575575
# Allow configuring tools via env; default to common ones
576-
allowed_tools_env = os.getenv("CLAUDE_ALLOWED_TOOLS", "Read,Write,Bash,WebSearch").strip()
576+
allowed_tools_env = "Read,Write,Bash,Glob,Grep,Edit,MultiEdit,WebSearch,WebFetch"
577577
allowed_tools = [t.strip() for t in allowed_tools_env.split(",") if t.strip()]
578578

579579
options = ClaudeCodeOptions(

0 commit comments

Comments
 (0)