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
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,17 +30,24 @@ 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 keeps the core coding/status surface but drops heavyweight web, media, channel, scheduler, node, and orchestration tools from the agent's tool surface for every turn. Use `agents.list[].experimental.localModelLean` to enable or disable the same behavior for one configured agent.
34
34
35
-
### Why these three tools
35
+
### What it trims
36
36
37
-
These three tools have the largest descriptions and the most parameter shapes in the default OpenClaw runtime. On a small-context or stricter OpenAI-compatible backend that is the difference between:
37
+
Lean mode trims tool families that tend to be noisy for small-context or stricter OpenAI-compatible backends:
38
+
39
+
- Web and browser tools: `browser`, `web_fetch`, `web_search`, `x_search`.
- Tool schemas fitting cleanly in the prompt vs. crowding out conversation history.
40
47
- The model picking the right tool vs. emitting malformed tool calls because there are too many similar-looking schemas.
41
48
- The Chat Completions adapter staying inside the server's structured-output limits vs. tripping a 400 on tool-call payload size.
42
49
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.
50
+
Removing them does not silently rewire OpenClaw — it just makes the tool list shorter. The model still has core coding tools such as `read`, `write`, `edit`, `exec`, `apply_patch`, and `process`, plus lightweight status/planning tools such as `session_status`and `update_plan`. Plugin-owned memory tools stay available unless you narrow them separately with `tools.profile`, `tools.allow`, or `tools.deny`.
44
51
45
52
### When to turn it on
46
53
@@ -94,7 +101,7 @@ Restart the Gateway after changing the flag, then confirm the trimmed tool list
94
101
openclaw status --deep
95
102
```
96
103
97
-
The deep status output lists the active agent tools; `browser`, `cron`, and `message` should be absent when lean mode is on.
104
+
The deep status output lists the active agent tools. Heavyweight web, media, channel, scheduler, node, and orchestration tools should be absent when lean mode is on.
Copy file name to clipboardExpand all lines: docs/gateway/local-models.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
@@ -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 keeps core coding/status tools but trims heavyweight web, media, channel, scheduler, node, and orchestration tools 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.
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.
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` keeps core coding/status tools but removes heavyweight web, media, channel, scheduler, node, and orchestration tools from the agent surface. 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.
"Per-agent override for lean local-model mode. Enable it for one smaller local-model agent without trimming tools from every agent.",
255
+
"Per-agent override for lean local-model mode. Enable it for one smaller local-model agent without trimming heavyweight web, media, channel, and orchestration tools from every agent.",
256
256
"agents.defaults.contextLimits":
257
257
"Focused per-agent-context budget defaults for selected high-volume excerpts and injected prompt blocks. Use this to tune bounded read/injection sizes without reopening any unbounded call paths.",
"Experimental agent-default flags. Keep these off unless you are intentionally testing a preview surface.",
1129
1129
"agents.defaults.experimental.localModelLean":
1130
-
"Experimental local-model prompt trim. When enabled, OpenClaw drops heavyweight default tools like browser, cron, and message for weaker or smaller local-model backends.",
1130
+
"Experimental local-model prompt trim. When enabled, OpenClaw keeps core coding/status tools but drops heavyweight web, media, channel, scheduler, and orchestration tools for weaker or smaller local-model backends.",
0 commit comments