Kno2gether kno2gether.com ↗ Try Knotie free
Cheat Sheet

The /config Cheat-Sheet: Change Any Claude Code Setting Mid-Session

Claude Code v2.1.181 added a one-line command — /config key=value — that sets any setting from the prompt, with no restart and no editing settings.json. Here's the exact syntax, the keys worth flipping on the fly, and when to reach for each.

Start free with Knotie
01

START HEREThe 20-second version

Until recently, changing a Claude Code setting meant the same annoying ritual: quit your session, open settings.json, edit the value, save, and start over — losing your place mid-task. Claude Code v2.1.181 (released 2026-06-17) killed that ritual with one tiny command. Type /config key=value right in the prompt and it sets any setting on the spot — no exit, no file edit, no restart. The changelog's own example is /config thinking=false: turn off extended thinking for a quick, throwaway task, then flip it back on with /config thinking=true when you want depth again. You're steering the model live instead of babysitting a config file. It works everywhere Claude Code runs: the normal interactive chat, headless runs with claude -p, and Remote Control sessions.
  • The command: /config key=value — set any setting from the prompt, mid-session
  • The example everyone uses: /config thinking=false (fast, no extended thinking) ↔ /config thinking=true (deep reasoning back on)
  • No more: quitting, editing settings.json, or restarting just to flip one setting
  • Where it works: interactive chat, headless -p, and Remote Control
Source: the official Claude Code changelog (code.claude.com/docs/en/changelog), entry v2.1.181 dated 2026-06-17. Exact wording: "Added /config key=value syntax to set any setting from the prompt (e.g. /config thinking=false) — works in interactive, -p, and Remote Control."
02

HOW IT WORKSThe exact syntax (and what it replaces)

The shape is dead simple: a slash, the word config, then a key=value pair with no spaces around the =. `` /config thinking=false ` That applies immediately, in the same session you're already working in. Before v2.1.181, the equivalent meant editing settings.json and relaunching — which dropped your context and your train of thought. Now the change is a single line you can fire between prompts. The headline word in the changelog is any: /config sets any setting from the prompt, not a hand-picked few. The most common one to flip live is thinking`, but the mechanism is general — the value you pass is whatever that setting accepts (here, a boolean).
Before v2.1.181With /config
Quit the sessionStay in the session
Open and edit settings.jsonType one line in the prompt
Save the fileIt applies on the spot
Restart Claude CodeNo restart — keep your place
No spaces around the =. The value matches what the setting expects (e.g. thinking takes true/false).
03

THE WORKED EXAMPLEThe move that pays off most: thinking on/off

Extended thinking is brilliant when you want depth — debugging a gnarly race condition, planning a refactor. It's overkill when you just want a one-liner renamed or a quick fact. Paying the latency of deep reasoning on a throwaway task is wasted time. So: drop into a fast mode for the quick stuff, then climb back to depth when it matters — without ever leaving the session. - /config thinking=false — extended thinking off. Claude answers fast instead of pausing to reason it all out. Great for quick edits, renames, lookups, and 'just do the obvious thing' tasks. - /config thinking=true — extended thinking back on. Deep reasoning returns for the hard problems. The point isn't the one setting — it's that you can now tune the model's behaviour as you work, matching the tool to the task in real time.
  1. Mid-session, before a quick throwaway task: /config thinking=false
  2. Do the fast work — Claude responds without the extended-thinking pause
  3. Hit a hard problem? /config thinking=true and deep reasoning is back on
  4. Never quit, never edit a file, never restart
thinking is the changelog's own example. The same /config mechanism applies to other settings too — this is just the one you'll reach for most.
04

EVERY MODEWhere it works — and where it fits

/config isn't limited to the interactive REPL. Per the changelog it works in three places, which is what makes it genuinely useful for automation as well as hands-on coding: - Interactive chat — the normal Claude Code session. - Headless -pclaude -p non-interactive runs (scripts, CI, agents). You can shape behaviour per-invocation without touching shared config. - Remote Control — Remote Control sessions honour it too. That last point matters: because the same command works in headless and remote contexts, you can flip a setting for a single automated run without permanently changing your settings.json for every other session.
  • Interactive chat — the everyday session
  • Headless claude -p — scripts, CI, agent runs
  • Remote Control — remote sessions
Same one-liner, three contexts. Per-run overrides without editing shared config.
05

TAKE THIS WITH YOUMake it stick: a one-line habit

The whole trick collapses to a single habit worth memorising: when you want to change how Claude Code behaves right now, don't reach for the settings file — type /config key=value. The one to internalise first is the thinking toggle, because you'll use it daily: `` /config thinking=false # quick task, answer fast /config thinking=true # hard problem, reason deeply `` Keep this page next to your terminal. As you discover other settings worth flipping on the fly, the syntax never changes — only the key and the value do.
v2.1.181 also shipped other changes (Bun 1.4, a sandbox.allowAppleEvents opt-in, a CLAUDE_CLIENT_PRESENCE_FILE env var, and line-by-line streaming of long paragraphs) — but /config is the one that changes your day-to-day flow.

Get the next drop

New AI build guides + the occasional bonus template. No spam, unsubscribe anytime.

By submitting you agree to our Privacy Policy & Terms. Unsubscribe anytime.

Want this running under YOUR brand?

Knotie is a white-label AI platform — resell voice agents, chat agents, and automations under your own brand, your domain, your prices. Built-in credit billing means you keep the margin. Start free.

Start free with Knotie