fix: disallow JSON generation in Claude Code from running any tools #4062
ClosedDDeenis(GitHub profile, opens in a new tab)wants to merge 3 commits into
main fromrefs/pull/4062/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
- apps/server/src/textGeneration/ClaudeTextGeneration.ts line 229Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -169,4 +169,4 @@169169 resolveClaudeApiModelId(modelSelection),170170 ...(cliEffort ? ["--effort", cliEffort] : []),171171 ...(settingsJson ? ["--settings", settingsJson] : []),172- "--dangerously-skip-permissions",172+ "--tools",
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/server/src/textGeneration/ClaudeTextGeneration.ts line 97Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -46,3 +46,19 @@4646 import { makeClaudeEnvironment } from "../provider/Drivers/ClaudeHome.ts";47474848 const CLAUDE_TIMEOUT_MS = 180_000;49+const CLAUDE_TEXT_GENERATION_DISALLOWED_TOOLS = [50+ "Agent",51+ "Bash",52+ "Edit",53+ "Glob",54+ "Grep",55+ "Monitor",56+ "NotebookEdit",57+ "PowerShell",58+ "Read",59+ "Skill",60+ "WebFetch",61+ "WebSearch",62+ "Workflow",63+ "Write",64+].join(",");
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
356d6000-9c25-49e7-a32b-cab16aab0a00You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share