Skip to content

Commit 84122fc

Browse files
committed
fix: explicitly allow Claude CLI tools for non-interactive runs
Pass an explicit allowed tool list when building Claude commands so Bash and other expected tools are consistently available across environments.
1 parent 31b6033 commit 84122fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/agents/claude/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export function buildClaudeCommand(
166166
): { args: string[]; command: string } {
167167
const args = [...baseArgs];
168168
const prompt = args.pop();
169+
args.push("--tools", "default");
170+
args.push("--allowedTools", "Bash,Glob,Grep,Read,Edit,Write,WebFetch,Task,TodoWrite,NotebookEdit,TaskOutput,TaskStop,ToolSearch,Skill,AskUserQuestion");
169171
if (prompt !== undefined) {
170172
args.push("--permission-mode", permissionMode, "--", prompt);
171173
} else {

0 commit comments

Comments
 (0)