Programmatic Tool Calling
A tool-calling paradigm introduced with GPT-5.6 that allows the model to write JavaScript scripts to orchestrate tools and filter intermediate results, reducing token consumption by approximately 65%. It represents a shift in tool calling from a conversational to a programmatic approach.
Core Facts
Timeline (last 90 days)
Programmatic Tool Calling means agents invoke tools by generating code rather than relying solely on structured JSON instructions, which can handle more complex logic and reduce round-trip communication overhead.
Code Mode currently has no official benchmark figures; the "37% Token savings" circulating online comes from internal testing of Programmatic Tool Calling, which Anthropic launched in the API in November 2025 (average usage on complex research tasks dropped from 43,588 to 27,297 Tokens), and cannot be directly applied to Code Mode.
Programmatic Tool Calling is a capability Anthropic launched at the API level that allows the model to write code within a single request to orchestrate multiple tool calls; it shares the "use code instead of round-by-round reasoning" idea with Code Mode, but operates at a different level (the former targets API developers, while the latter is built into Claude Code terminal sessions).
PTC stands for Programmatic Tool Calling.
All Facts (3)
PTC stands for Programmatic Tool Calling.
65%UnverifiedProgrammatic Tool Calling means agents invoke tools by generating code rather than relying solely on structured JSON instructions, which can handle more complex logic and reduce round-trip communication overhead.
50%UnverifiedProgrammatic Tool Calling is a capability Anthropic launched at the API level that allows the model to write code within a single request to orchestrate multiple tool calls; it shares the "use code instead of round-by-round reasoning" idea with Code Mode, but operates at a different level (the former targets API developers, while the latter is built into Claude Code terminal sessions).
50%