You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts/experimental-features.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Treat them differently from normal config:
30
30
31
31
## Local model lean mode
32
32
33
-
`agents.defaults.experimental.localModelLean: true` is a pressure-release valve for weaker local-model setups. When it is on, OpenClaw drops three default tools — `browser`, `cron`, and `message` — from the agent's tool surface for every turn. Nothing else changes. Use `agents.list[].experimental.localModelLean` to enable or disable the same behavior for one configured agent.
33
+
`agents.defaults.experimental.localModelLean: true` is a pressure-release valve for weaker local-model setups. When it is on, OpenClaw drops three default tools — `browser`, `cron`, and `message` — from the agent's tool surface for every turn. When Tool Search is enabled, OpenClaw also keeps `exec` directly visible instead of hiding it behind the catalog, so small coding models still have an obvious shell path for local workspace checks and simple live-data probes. Use `agents.list[].experimental.localModelLean` to enable or disable the same behavior for one configured agent.
34
34
35
35
### Why these three tools
36
36
@@ -40,7 +40,7 @@ These three tools have the largest descriptions and the most parameter shapes in
40
40
- The model picking the right tool vs. emitting malformed tool calls because there are too many similar-looking schemas.
41
41
- The Chat Completions adapter staying inside the server's structured-output limits vs. tripping a 400 on tool-call payload size.
42
42
43
-
Removing them does not silently rewire OpenClaw — it just makes the tool list shorter. The model still has `read`, `write`, `edit`, `exec`, `apply_patch`, web search/fetch (when configured), memory, and session/agent tools available.
43
+
Removing them does not silently rewire OpenClaw — it just makes the tool list shorter. The model still has `read`, `write`, `edit`, `exec`, `apply_patch`, web search/fetch (when configured), memory, and session/agent tools available. With Tool Search on, most optional tools can move into the searchable catalog, but `exec` remains a direct tool in lean mode.
Copy file name to clipboardExpand all lines: docs/gateway/local-models.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -315,7 +315,7 @@ If the model loads cleanly but full agent turns misbehave, work top-down — con
315
315
openclaw infer model run --gateway --model <provider/model> --prompt "Reply with exactly: pong" --json
316
316
```
317
317
318
-
3.**Try lean mode.** If both probes pass but real agent turns fail with malformed tool calls or oversized prompts, enable `agents.defaults.experimental.localModelLean: true`. It drops the three heaviest default tools (`browser`, `cron`, `message`) so the prompt shape is smaller and less brittle. See [Experimental Features → Local model lean mode](/concepts/experimental-features#local-model-lean-mode) for the full explanation, when to use it, and how to confirm it is on.
318
+
3.**Try lean mode.** If both probes pass but real agent turns fail with malformed tool calls or oversized prompts, enable `agents.defaults.experimental.localModelLean: true`. It drops the three heaviest default tools (`browser`, `cron`, `message`) so the prompt shape is smaller and less brittle. When Tool Search is also on, lean mode keeps `exec` directly visible instead of cataloging it, which helps coding-tuned local models find the shell path without first inventing a domain-specific tool such as `weather`. See [Experimental Features → Local model lean mode](/concepts/experimental-features#local-model-lean-mode) for the full explanation, when to use it, and how to confirm it is on.
319
319
320
320
4.**Disable tools entirely as a last resort.** If lean mode is not enough, set `models.providers.<provider>.models[].compat.supportsTools: false` for that model entry. The agent will then operate without tool calls on that model.
321
321
@@ -340,7 +340,10 @@ If the model loads cleanly but full agent turns misbehave, work top-down — con
340
340
fails on Gemma or another local model? Check the provider URL, model ref, auth
341
341
marker, and server logs first; local `model run` does not include agent tools.
342
342
If local `model run` succeeds but larger agent turns fail, reduce the agent
343
-
tool surface with `localModelLean` or `compat.supportsTools: false`.
343
+
tool surface with `localModelLean` first. With Tool Search enabled, lean mode
344
+
still leaves `exec` visible so the model can choose shell execution directly.
345
+
Use `compat.supportsTools: false` only when the model or server cannot handle
346
+
tool schemas at all.
344
347
- Tool calls show up as raw JSON/XML/ReAct text, or the provider returns an
345
348
empty `tool_calls` array? Do not add a proxy that blindly converts assistant
346
349
text into tool execution. Fix the server chat template/parser first. If the
Copy file name to clipboardExpand all lines: docs/providers/ollama.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -679,7 +679,7 @@ Use these as starting points and replace model IDs with the exact names from `ol
679
679
```
680
680
681
681
Use `compat.supportsTools: false` only when the model or server reliably fails on tool schemas. It trades agent capability for stability.
682
-
`localModelLean` removes the browser, cron, and message tools from the agent surface, but it does not change Ollama's runtime context or thinking mode. Pair it with explicit `params.num_ctx` and `params.thinking: false` for small Qwen-style thinking models that loop or spend their response budget on hidden reasoning.
682
+
`localModelLean` removes the browser, cron, and message tools from the agent surface, but it keeps `exec` directly visible when Tool Search is enabled so coding-tuned local models can still discover shell execution. It does not change Ollama's runtime context or thinking mode. Pair it with explicit `params.num_ctx` and `params.thinking: false` for small Qwen-style thinking models that loop or spend their response budget on hidden reasoning.
0 commit comments