@@ -56,11 +56,11 @@ def project_dir(workspace: Path) -> Path:
5656
5757
5858# The CLI version ClaudeCodeTool names the tools of; a test holds it to the Dockerfile's CLAUDE_CODE_VERSION.
59- TOOLS_CLI_VERSION = "2.1.280 "
59+ TOOLS_CLI_VERSION = "2.1.322 "
6060# The CLI's own tools, by the names its model sees. Which of them it offers by default depends on the model, and its MCP
6161# resource tools come only with MCP servers.
6262ClaudeCodeTool = Literal ["Agent" , "Bash" , "CronCreate" , "CronDelete" , "CronList" , "Edit" , "EnterWorktree" ,
63- "ExitWorktree" , "ListAgents" , "ListMcpResourcesTool" , "NotebookEdit" , "Read" ,
63+ "ExitWorktree" , "ListAgents" , "ListMcpResourcesTool" , "Monitor" , " NotebookEdit" , "Read" ,
6464 "ReadMcpResourceDirTool" , "ReadMcpResourceTool" , "ReportFindings" , "ScheduleWakeup" ,
6565 "SendMessage" , "Skill" , "TaskCreate" , "TaskGet" , "TaskList" , "TaskStop" , "TaskUpdate" ,
6666 "WebFetch" , "WebSearch" , "Workflow" , "Write" ]
@@ -194,6 +194,8 @@ def cli_env(environ: Mapping[str, str], *, model: str | None = None, project_id:
194194 env ["ANTHROPIC_CUSTOM_HEADERS" ] = "\n " .join (f"{ name } : { value } " for name , value in headers .items ())
195195 if max_thinking_tokens :
196196 env ["MAX_THINKING_TOKENS" ] = str (max_thinking_tokens )
197+ # Left on, the CLI sends no MCP tool and only some of its own until the model searches for them.
198+ env .setdefault ("ENABLE_TOOL_SEARCH" , "false" )
197199 # Older CLIs prepend a changing attribution block to the system prompt on custom base URLs, which defeats the
198200 # provider's prefix cache.
199201 env ["CLAUDE_CODE_ATTRIBUTION_HEADER" ] = "0"
@@ -593,8 +595,8 @@ async def feed_stdin() -> None:
593595
594596# Behind a gateway the CLI gives a bare id of these a 200K window, and envs whose tool definitions alone pass that
595597# make it exit with "Autocompact is thrashing". Add a model only once the pinned CLI maps its [1m] form.
596- _NATIVE_1M_MODELS = frozenset ({"claude-opus-5" , "claude-opus-5-5" , "claude-fable-5-1" , "claude-opus-4-8 " ,
597- "claude-opus-4-7" })
598+ _NATIVE_1M_MODELS = frozenset ({"claude-opus-5" , "claude-opus-5-5" , "claude-fable-5-1" , "claude-fable-5-2 " ,
599+ "claude-opus-4-8" , "claude-opus-4- 7" })
598600
599601
600602def _with_1m_window (model : str ) -> str :
0 commit comments