-
Notifications
You must be signed in to change notification settings - Fork 0
Remove TodoWrite from allowed permissions in Claude subprocess #159
Copy link
Copy link
Closed
Description
Problem
Agents use TodoWrite 7+ times per task despite prompt saying "at most twice". Prompt-based bans don't work — the agent reads "you can use TodoWrite twice" instead of "don't use it".
What to do
In src/daemon.ts, in the runClaude() function where the Claude subprocess is spawned, add TodoWrite to the denied permissions list.
Find where settings.json is written for the workspace (around line 1039-1069). Add TodoWrite to the deny list so Claude physically cannot call it.
Alternatively, if Claude's --print mode supports --disallowedTools, use that flag.
Acceptance
- Agent cannot call TodoWrite at all
- No prompt changes needed — tool is simply unavailable
- Verify by checking agent logs after a task completes: zero TodoWrite calls
Reactions are currently unavailable