Skip to content

Commit 0e5c81a

Browse files
authored
Merge pull request #121 from odefun/feat/claude-explicit-permissions-177167
fix: explicitly allow Claude CLI tools for non-interactive runs
2 parents 2ba5d76 + cef6504 commit 0e5c81a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ode",
3-
"version": "0.0.81",
3+
"version": "0.0.82",
44
"description": "Coding anywhere with your coding agents connected",
55
"module": "packages/core/index.ts",
66
"type": "module",

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)