Table of Contents
OpenClaw has released v2026.12.1, moving Code Mode and Tool Search out of Labs and making agent Templates available without an experimental opt-in. The update changes how agents coordinate multi-step work, find connected tools, and share reusable setups.
Alongside the three headline features, it addresses interrupted commands, model fallback, installation failures, and messaging reliability.
The release includes 3,184 pull requests, 280 direct commits, and contributions from 180 people.
Code Mode Coordinates Tools Through JavaScript
In Code Mode, the model writes a small JavaScript program that can discover tools, call them, and process their results. Most enabled tools move into a searchable catalog instead of appearing individually with their full instructions and input definitions in the model's prompt.
That gives the agent a way to use loops, combine returned data, apply conditional logic, and run independent calls in parallel within one execution. A workflow that retrieves several records and combines their results can therefore perform more of that coordination in code, reducing the number of separate model round trips.
The model primarily interacts through exec, which runs the program, and wait, which resumes work when nested tool calls are still pending. Tools whose structured results cannot cross the JavaScript environment's JSON bridge remain directly visible. Model Context Protocol, or MCP, tools are available through their own namespace in the catalog.
Tool calls still pass through OpenClaw's normal execution controls, including permissions, approvals, and session ownership. Code Mode changes how the model organizes work, not which capabilities it is authorized to use.
Execution settings are separate from tool authorization. The default Node executor uses node:vm in a worker thread for trusted execution; it is not a security boundary. OpenClaw also provides a QuickJS executor for hardened guest isolation.
Code Mode is now managed under Settings > Agents > Agent defaults > Tools. With no explicit global setting, it uses an Auto tier that activates only for models OpenClaw has marked as preferred Code Mode performers. Agent-level and model-level overrides take precedence.
The release also lets users steer an active conversation while a long-running command continues, without stopping or restarting it. Fallback models can finish a turn after a completed read-only step, while silent commands reach their own timeout and interactive questions remain active while awaiting input.
Tool Search Loads Capabilities as Needed
Tool Search addresses the overhead of large tool catalogs without requiring the model to write JavaScript. Instead of supplying every connected tool's full definition on each turn, OpenClaw gives the agent structured controls to search for a capability, inspect its inputs, and call it.
Tool definitions consume part of a model's context alongside messages, documents, and results. Deferring those definitions keeps a large collection of integrations available without loading all of their details before the agent knows which ones it needs.
OpenClaw's embedded and Copilot runs use structured Tool Search automatically when its setting is unset. Enabled Code Mode takes precedence, and Codex retains its native tool surface. Users who want direct tool definitions can disable Tool Search explicitly.
The catalog remains subject to tool policy, so denied tools do not become discoverable merely because search is enabled. Local Ollama models also keep web_search, web_fetch, memory_search, and memory_get directly visible by default.
Several fixes target the results and execution paths behind discovery. Long web pages and paged MCP results now use the active model's full tool-result budget rather than hitting a fixed 20,000-character cutoff. Dynamically loaded tools such as web_search work through OpenAI-compatible proxies, including LiteLLM. Repeatable polling tools remain directly visible so waiting for a background job does not incorrectly trigger the repeated-call limit.
Templates Package Agent Setups for Reuse
Templates bundle instructions, skills, plugins, and scheduled work into a starting point for another agent. They can also declare workspace files and MCP servers, but do not copy the source agent's conversations, memory, or credentials.
Adding a Template creates an ordinary agent with its own setup. It does not establish a continuously synchronized copy of the original. Adding the same Template again creates another agent, and adopting a newer Template release means adding it as a new agent.
Users can browse Templates under Customize > Templates. The redesigned catalog uses compact rows, a single-column detail page, and expandable automations. The Share action in an agent's menu starts packaging its setup, while the bundled create-template skill can prepare a private draft from a plain-language description for review before publication.
Developers can add an unpublished local project to a running Gateway with openclaw templates add ./my-template, without publishing it or restarting the Gateway. The directory must be accessible on the Gateway host. The Control UI also offers an Import flow for Template archives.
The update is available through the project's GitHub releases. Installation fixes include restoring the terminal command after native Gateway installation and running TypeScript declaration generation single-threaded on hosts with less than 13 GiB of usable memory, allowing source builds and Git updates to finish on 8 GiB machines without exhausting memory.