Skip to content

Remove TodoWrite from allowed permissions in Claude subprocess #159

@xliry

Description

@xliry

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions