ZICQ
中 Log in / Sign up
Newsroom Official Agentic #Perplexity #Agent API #Code Mode #Effort Levels #Programmatic Tool Calling

Perplexity Enables Code Mode by Default for xhigh and ultra

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Perplexity has changed how two high-effort levels in its Agent API execute tools. The `xhigh` alias now resolves to `[email protected]`, while `ultra` resolves to `[email protected]`; both versions enable Code Mode by default. Responses can include `program` and `program_output` items, and callers no longer need to add `programmatic_tool_calling` to the request. For `xhigh`, `web_search`, `finance_search`, and `sandbox` are invoked only from programs. The underlying model, high reasoning effo


Perplexity has moved the xhigh and ultra effort levels in its Agent API to the December 1, 2026 versions. The change occurs at the tool-orchestration layer: Code Mode becomes the default execution path, while the underlying model, reasoning strength, and principal runtime limits remain unchanged.

What Changed

  • The xhigh alias now resolves to [email protected], and ultra now resolves to [email protected]. Both versions enable Code Mode by default.
  • Responses can contain program and program_output items. Callers no longer need to add programmatic_tool_calling to the request.
  • In the xhigh path, the model invokes web_search, finance_search, and sandbox only from programs rather than through direct tool calls.
  • The underlying model, high reasoning effort, 300-step limit, and context-compaction settings are unchanged. This is therefore not a model upgrade and does not give agents a larger execution budget.
  • Workflows that must retain direct tool calls can pin [email protected].

The unversioned xhigh and ultra names behave like movable effort-level aliases, while the dated identifiers provide version pinning. Production configurations that rely on stable semantics should treat version pinning as a compatibility control rather than an optional experiment.

Mechanism: From Direct Calls to Programmatic Orchestration

Under a direct tool-calling model, the model emits a tool request, the orchestrator executes it, returns the result to the model, and the model decides what to do next. In Code Mode, the model expresses control logic in a program item. The runtime executes that logic, exposes the result through program_output, and the model continues from those outputs.

For xhigh, the listed tools can be called only from programs. The shape of the execution trace therefore changes: clients should no longer expect traditional direct tool-call items for these paths. Search, financial-data retrieval, and sandbox interactions must instead be observed through program and program-output events. Existing tool counters, response assertions, and telemetry fields cannot be reused without adaptation.

Because the 300-step limit and context-compaction policy remain fixed, Code Mode changes how tools are executed within an agent loop rather than enlarging the loop itself. This distinction matters for systems that depend on precise step accounting, long trajectories, or frequent context compaction.

Engineering Trade-offs: Expressiveness, Latency, and Observability

The potential benefit is stronger control-flow expressiveness. Programmatic orchestration can combine conditional logic, data transformation, and multiple tool operations within one execution unit, potentially reducing some model-to-tool round trips. Tool results can also be filtered or reshaped before being returned to the model.

The new cost is equally concrete. Clients must parse additional response items and handle runtime failures, rejected tools, empty outputs, and partially completed executions. Code Mode may remove some model round trips, but it can add code-generation, parsing, and execution overhead. Whether the net latency improves depends on the number of tools, the size of their outputs, and the complexity of the control flow; the architectural shift alone does not establish a speedup.

Observability also needs to be redesigned. Traditional direct-tool events no longer fully represent execution. Tracing should record program identifiers, invoked tools, program-output status, retries, runtime duration, and context-compaction events. For financial search in particular, programmatic wrapping must not replace business-level validation of returned data.

Security boundaries cannot move into the model. Generated programs, tool results, and web content should all be treated as untrusted inputs. Tool permissions, timeouts, step limits, result sizes, and sandbox boundaries must remain server-enforced rather than relying solely on self-discipline inside generated code.

Measured Performance: No Comparable Data Yet

The announcement provides no end-to-end latency, time-to-first-token, token-consumption, task-success, program-error, tool-call, or pricing figures. Enabling Code Mode therefore cannot be treated as evidence of higher accuracy or lower cost. The unchanged high reasoning effort and 300-step limit likewise do not demonstrate an improvement in agent capability.

A more reliable evaluation would compare pinned [email protected] with [email protected] using the same model, prompts, tool permissions, context budget, and task set. At minimum, teams should record total latency, model and program execution time, tool-success rate, recovery attempts, invalid-program rate, compaction frequency, and cost per task. Results should be stratified across single-tool, multi-tool, conditional, and long-context workloads. The announcement provides an old-version pin only for xhigh; when evaluating ultra, teams should preserve the actual pre-change version identifier as their baseline rather than assume an unpublished rollback target exists.

Developer Rollout and Deployment

  1. Upgrade response handling: Support program, program_output, and final-answer items instead of reading only text or assuming tools always appear as direct calls.
  2. Test parameter redundancy: The new path does not require programmatic_tool_calling, but verify that an existing request parameter remains harmless before removing it in bulk.
  3. Define a pinning policy: Pin [email protected] for systems that depend on direct-tool events, exact step counts, or established prompt templates. Switch only after parser, telemetry, and safety controls are ready.
  4. Roll out in stages: Start with low-risk read-only tasks, then move to financial-search or longer execution chains. Define fallbacks for program errors, rejected tools, and context exhaustion.
  5. Expand execution telemetry: Represent program-level steps in traces or spans and record tool allow-list decisions, runtime duration, output size, retries, and failure classes rather than counting model tokens alone.
  6. Keep server-side controls: Continue enforcing tool permissions, the 300-step cap, context-compaction policy, timeouts, and sandbox isolation. Validate program outputs against expected schemas before they can influence privileged calls.

Bottom Line

The important change is not a stronger underlying model but Perplexity's revision of high-effort agent orchestration. Code Mode offers a more compact representation for conditional and multi-tool work, yet it also alters the response protocol, tool observability, and failure-recovery path. Production teams should not treat the default switch as an automatic optimization. Pinning a known version, establishing a controlled baseline, and measuring latency, reliability, and cost are the safer path forward.


Source: Perplexity Changelog (2026-12-02)

— END —

Tags: #Perplexity #Agent API #Code Mode #Effort Levels #Programmatic Tool Calling

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…