On TypeScript Agent SDK 0.3.233 and later, or Python Agent SDK 0.2.139 and later, the following tools aren’t available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, or later versions of those families unless you opt in:
TodoWriteTaskCreateTaskGetTaskUpdateTaskList
TodoWrite only when you set CLAUDE_CODE_ENABLE_TASKS=0.Model availability
On the models that don’t get the task-tracking tools, you see notool_use blocks for them in the message stream unless you opt in. If you point cli_path in Python or pathToClaudeCodeExecutable in TypeScript at your own Claude Code install, you get whichever tools that install provides. To get the same tools as on other models, do one of the following:
- Name one of the tools in the
allowedToolsoption,allowed_toolsin Python - List the tools in the
toolsoption, which restricts the session’s built-in tools to the ones it names. Include the tools you want alongside the other built-in tools you use - Set
CLAUDE_CODE_ENABLE_TODO_TOOLS=1in theenvoption, as the examples on this page do. In TypeScript,envreplaces the subprocess environment, so spread...process.envto keep inherited variables. In Python,envis merged on top of the inherited environment
Todo Lifecycle
Claude moves each todo through a predictable lifecycle:- Created: Claude adds the todo as
pendingwhen it identifies a task - Activated: Claude sets the todo to
in_progresswhen it starts the work