diff --git a/src/create-prompt/index.ts b/src/create-prompt/index.ts index c21d83138..38144ce39 100644 --- a/src/create-prompt/index.ts +++ b/src/create-prompt/index.ts @@ -56,9 +56,6 @@ export function buildAllowedToolsString( "Bash(git add:*)", "Bash(git commit:*)", `Bash(${GIT_PUSH_WRAPPER}:*)`, - "Bash(git status:*)", - "Bash(git diff:*)", - "Bash(git log:*)", "Bash(git rm:*)", ); } diff --git a/src/modes/tag/index.ts b/src/modes/tag/index.ts index 14af9afef..bfbeaea54 100644 --- a/src/modes/tag/index.ts +++ b/src/modes/tag/index.ts @@ -139,9 +139,6 @@ export async function prepareTagMode({ "Bash(git add:*)", "Bash(git commit:*)", `Bash(${gitPushWrapper}:*)`, - "Bash(git status:*)", - "Bash(git diff:*)", - "Bash(git log:*)", "Bash(git rm:*)", ); } else { diff --git a/test/create-prompt.test.ts b/test/create-prompt.test.ts index 3bf8b6cd4..cc3f30637 100644 --- a/test/create-prompt.test.ts +++ b/test/create-prompt.test.ts @@ -1017,9 +1017,6 @@ describe("buildAllowedToolsString", () => { expect(result).toContain("Bash(git add:*)"); expect(result).toContain("Bash(git commit:*)"); expect(result).toContain("scripts/git-push.sh:*)"); - expect(result).toContain("Bash(git status:*)"); - expect(result).toContain("Bash(git diff:*)"); - expect(result).toContain("Bash(git log:*)"); expect(result).toContain("Bash(git rm:*)"); // Comment tool from minimal server should be included