skip to content

In OpenClaw chat, why does a message containing only `/think high` change later replies while `/think high` inside a longer request does not?

level: middleimportance: should knowfreq 7%

answer

  1. stripped before the model
  2. directive-only versus inline
  3. the model exception
  4. session, agent or global scope
  5. status to read it back

basics

~20 s

OpenClaw strips directives such as /think and /verbose from a message before the model sees it. Sent alone, most directives are saved as the session's setting and acknowledged; mixed into a request, they apply to that one message only.

solid answer

~50 s

OpenClaw treats `/think`, `/fast`, `/verbose`, `/trace`, `/reasoning`, `/elevated`, `/exec`, `/model` and `/queue` as **directives**: the Gateway strips them before the model sees the text. In a directive-only message most of them persist to the session and the Gateway replies with an acknowledgement such as `Thinking level set to high.`; inside a normal message they act as an inline hint for that message and do not persist. Two exceptions matter. An authorized inline `/model` still persists the session's model, and `/exec security=... ask=...` applies only to its own message even when sent alone. `/think default` clears the session override. In 2026.9.9, `/model <name>` changes only the current session unless an owner adds `-a` or `-g` or `agents.defaults.modelSelectionScope` says otherwise. Directives from unauthorized senders are treated as plain text, and `/status` shows what the session now has.

go deeper

for a junior

Recall that directives like /think and /verbose never reach the model and that a directive sent alone sticks to the session while one inside a request applies to that message only.

for a middle

Explain the stripping step, the acknowledgement, the inline /model exception and the /exec security exception, and how /think default clears an override. Mention /status to read the result back.

for a senior

Show you can debug a surprise: a setting that did not stick was sent inline, a model change applied late because a run was active, or the sender was unauthorized, so the directive was treated as plain text.

for a principal

Decide who may change models and defaults from chat: keep -a and -g for owners, set or leave modelSelectionScope deliberately, and use commands.allowFrom when channel admission should not grant directive rights.

## Three kinds of slash input OpenClaw's Gateway reads slash input before any model sees a message, and it sorts it into three kinds: | Kind | Examples | How it behaves | |---|---|---| | **Commands** | `/new`, `/reset`, `/compact`, `/stop` | Must be the only content of the message; handled by the Gateway | | **Directives** | `/think`, `/fast`, `/verbose`, `/trace`, `/reasoning`, `/elevated`, `/exec`, `/model`, `/queue` | Stripped from the message; may persist session settings | | **Inline shortcuts** | `/help`, `/commands`, `/status`, `/whoami` | Run immediately, even inside a longer message, and are stripped | The question is about the middle row. A directive never reaches the model as text: the Gateway removes the recognised directive and its arguments, leaves the rest of the message's spacing intact, and applies the setting. ## Directive-only versus inline - **Directive-only message.** When the message is nothing but directives, they persist to the session (apart from the `/exec` exception below) and the Gateway acknowledges them, for example `Thinking level set to high.`. Later turns in that session use the new level until you change or clear it. - **Inline in a normal message.** When the directive sits inside a request (`/think high summarise this contract`), it is an inline hint for that message only. The next message falls back to whatever the session already had. - **Invalid values** are rejected with a hint, and the session state is left unchanged. For thinking, the resolution order makes this concrete: an inline directive wins for its own message, then the session override set by a directive-only message, then the per-agent `thinkingDefault`, the model's `params.thinking`, the global `agents.defaults.thinkingDefault`, and finally the provider's default. ## The exceptions worth remembering - **`/model` inline still persists.** An authorized inline `/model` (or a configured `/<alias>`) changes the session's model selection even when other text follows it. - **`/exec security=... ask=...` never persists.** Those options apply only to the message they arrive with, even in a directive-only message; `/exec host=... node=...` does persist placement. - **Clearing is explicit.** `/think default` (aliases include `inherit` and `clear`) removes the session override; `/think off` stores an explicit off. Sending `/think` with no argument shows the current level. ## Model selection scope | Command | Effect in 2026.9.9 | |---|---| | `/model <model>` | Changes only this session, unless `agents.defaults.modelSelectionScope` is set to `agent` or `global` | | `/model <model> -s` | Changes only this session, whatever the configured scope | | `/model <model> -a` | Also requests an update to this agent's configured primary (owner or admin) | | `/model <model> -g` | Also requests an update to the shared default, `agents.defaults.model` (owner or admin) | | `/model default -s` | Clears this session's selection without writing defaults | If a run is active when you switch, the change is marked pending and applied at the next clean retry point. Changing the model inside an established session is an advanced move, because context limits and prompt-cache behaviour differ between models. ## Reading back what the session has 1. `/status` reports the session's model, context usage and toggles, plus provider usage where tracking is enabled. 2. `/think` or `/verbose` with no argument shows that one setting. 3. `/usage off|tokens|full` sets a per-response usage footer for the session, and `/usage reset` returns it to the configured default. ## Who may send directives Directives apply only to authorized senders. When `commands.allowFrom` is configured it is the only allowlist; otherwise authorization follows the channel allowlists and pairing. A directive from anyone else is treated as plain text rather than applied. In group chats, keep `/reasoning`, `/verbose` and `/trace` off: they can reveal internal reasoning or plugin diagnostics to the room.

  • How do you undo a session thinking override in OpenClaw so the configured default applies again?
    Send `/think default` as its own message; `inherit`, `clear`, `reset` and `unpin` are accepted aliases. That removes the session override, so the per-agent `thinkingDefault`, the model's `params.thinking` or the global default applies again. `/think off` is different: it stores an explicit off. Sending `/think` with no argument shows the level in effect.
  • What happens if you send `/model` while an OpenClaw run is still in progress?
    The selection is recorded, but the switch is marked pending and applied at the next clean retry point; if the agent is idle, the next run uses it right away. Choosing the model when a session is created is preferred, because context limits, tool behaviour and prompt caching can differ between models.

  • Any /think inside a message permanently changes the session's thinking level.
  • The model reads /think high in the text and decides how hard to think.
  • An inline /model, like an inline /think, applies to that one message only.
  • In 2026.9.9 a bare /model always rewrites the agent's configured default model.
  • Sending /exec security=full on its own changes the security mode for later turns.
  • Directives from unauthorized senders are rejected with an error message.

Assumes OpenClaw 2026.9.9; the /model scope flags -s, -a and -g and agents.defaults.modelSelectionScope are recent additions, so older releases may treat /model differently.