Claude Code output styles: built-ins and custom style files
The five built-ins, /output-style and where it saves, a custom style file and its frontmatter, the keep-coding-instructions catch, and styles vs CLAUDE.md.
An output style is a saved set of instructions that sets Claude’s role, tone and response format for every response in a Claude Code session. It does not change permissions, tools or the model. Besides Default there are four built-ins: Proactive (starts work without asking routine questions), Concise (result first, no preamble or recap), Explanatory (adds Insight blocks) and Learning (leaves small pieces of code for you to write). Switch with /output-style concise (Claude Code 2.1.269 or later) or /config → Output style; both save "outputStyle" to the project’s .claude/settings.local.json, and the setting is case-sensitive. A custom style is a Markdown file in ~/.claude/output-styles/ or .claude/output-styles/ with optional name, description and keep-coding-instructions frontmatter. Output styles were deprecated in October 2025 and restored days later; as of Claude Code 2.1.330 (November 2026) they are a current feature.
Default and the four built-in styles
Per Anthropic’s output styles documentation as of Claude Code 2.1.330, each built-in keeps Claude Code’s standard engineering instructions and adds its own on top. The second column is what to write in the outputStyle setting, exactly as shown.
| Style | Setting value | What changes | Worth knowing |
|---|---|---|---|
Default | leave the key unset | Nothing: no style instructions are added, and Claude works from the standard system prompt | Listed as default in /output-style, so you switch back to it the same way |
Proactive | Proactive | Claude starts implementing as soon as you send a task, assumes the routine decisions, and doesn’t go into plan mode unless you ask for a plan | Your permission mode is unchanged, so permission prompts appear as before. Before deleting data or changing a shared or production system it is told to check with you in the chat, which is an instruction, not a prompt |
Concise | Concise | The first sentence says what happened; no lead-in, step-by-step narration or closing recap; a simple question gets one to three sentences | Needs 2.1.237 or later. Error reports, failing test output, security warnings, destructive-action confirmations and anything you ask to have explained stay full length |
Explanatory | Explanatory | Does the task as Default would and adds two or three points on why, in a block labelled ★ Insight | The insights stay in the conversation; they are not written into your files as comments. More output tokens |
Learning | Learning | The same insights, plus Claude leaves a few lines with a real design decision for you, marked TODO(human) in the file | Claude stops and waits until you say you’ve written your part, then comments on it and carries on |
Proactive is not auto mode. Auto mode decides which tool calls run without asking you; Proactive only changes how readily Claude gets on with the work. Anthropic’s permission modes page draws the line from the other side: auto mode already nudges Claude to keep working without clarifying questions, and Proactive is the choice “for stronger autonomous behavior in a mode that still prompts you.” The modes themselves, and what each lets through, are in Claude Code and Codex without permission prompts.
Switching style, and where the choice is saved
/output-style <style>, for example/output-style concise. With no argument it lists the styles and marks the current one. The command ignores case, and needs Claude Code 2.1.269 or later./config→ Output style in the terminal, a picker that opens on your current style with each style’s description under its name.- VS Code: type
/in the prompt box and choose Output styles, which lists your custom styles too (2.1.257 or later). - Desktop app: set
outputStylein a settings file;/configthere opens the app’s settings rather than a menu. - Remote Control from the mobile app or the web: only the built-in styles can be listed and picked.
The command and the menus all write the choice to .claude/settings.local.json in the project you are in: your own file, kept out of git, applying to that project only. By hand it is one key:
{
"outputStyle": "Concise"
}CopiedThe value is case-sensitive. "concise" matches no style and gives you Default, so check the case first when a style seems to do nothing. For a custom style, the value is the style’s name, or its file name when the frontmatter has none.
A default for every project goes in ~/.claude/settings.json. That is the lowest level in Claude Code’s settings precedence (managed, command line, project local, shared project, user), so once you have picked a style in a project with the command or the menu, that project’s local file wins over your user default. Since 2.1.327, /config adds a note when other settings override a row. The same applies to a team: an outputStyle committed in .claude/settings.json is everyone’s starting point, and anyone’s own pick overrides it for them.
Mid-session, a new style applies from your next message. Claude Code delivers it as a message in the conversation, so the switch does not throw away the prompt cache. Before 2.1.251 (August 2026) the change waited until /clear or a new session.
For one run only, without writing to any file, pass the key with --settings, which takes inline JSON whose values override your own settings files for that session:
claude -p --settings '{"outputStyle":"Concise"}' "Summarise why the last CI run failed"Copied/output-style also works inside claude -p. In the TypeScript Agent SDK, the key goes in the settings option (settings: { outputStyle: "Explanatory" }), not as a top-level option, and output styles load when settingSources includes 'user' or 'project', per the SDK’s system prompt page.
Writing a custom style
A custom style is one Markdown file: YAML frontmatter, then the instructions in plain prose. Where you save it decides who gets it:
| Level | Folder | Who gets it |
|---|---|---|
User | ~/.claude/output-styles/ | You, in every project on this machine; under CLAUDE_CONFIG_DIR if you set it |
Project | .claude/output-styles/ | Everyone who works in the repository, once committed. A project style beats a user style of the same name |
Managed | .claude/output-styles/ inside the managed settings directory (/etc/claude-code/ on Linux and WSL) | Every user an organisation deploys it to |
Plugin | output-styles/ in the plugin | Whoever enables the plugin; listed as <plugin>:<name> |
In a repository with nested .claude/ folders, Claude Code loads every .claude/output-styles/ from your working directory up to the repository root, and on a name clash the one closest to where you started wins. On a server, the user folder is in the home directory of the account that runs claude, so a style written on your laptop is not there until you copy it, the same as your user CLAUDE.md.
An example, for reading replies on a phone over SSH. Save it as ~/.claude/output-styles/phone.md:
---
name: Phone
description: Short lines and no tables, for reading replies on a phone
keep-coding-instructions: true
---
The person reading your replies is on a phone screen in a terminal.
- Put the outcome in the first line: what changed, what failed, or the answer.
- Use short paragraphs and flat bullet lists. Do not use tables or ASCII diagrams.
- Quote at most a few lines of any file or command output, and say where the rest is.
- When you need a decision from me, end with one question I can answer in a word or two.CopiedThen restart Claude Code. The terminal reads style files at startup, so a file created or edited during a session does not appear until the next one. After that, /output-style phone selects it, or "outputStyle": "Phone" in a settings file. In VS Code, Build a custom style in the Output styles menu writes the file for you (2.1.261 or later). Getting into a session from a phone in the first place is covered in Claude Code from your phone.
The frontmatter, and the keep-coding-instructions catch
Every field is optional, and the names are lower-case with hyphens:
| Field | What it does | Default |
|---|---|---|
name | The style’s name in the picker, and the value outputStyle must match | The file name |
description | The line shown under the name in the picker | None |
keep-coding-instructions | true keeps Claude Code’s section of software engineering instructions alongside your style | false |
force-for-plugin | Plugin styles only: true applies the style whenever the plugin is enabled, overriding the user’s outputStyle. If several enabled plugins set it, the first one loaded wins | false |
Mistakes fail quietly. A misspelled field is ignored without an error, and YAML that doesn’t parse still loads the style under its file name with no fields set; claude --debug shows the parse error.
The catch is in keep-coding-instructions. A custom style without it drops Claude Code’s section of software engineering instructions, “such as how to scope changes, write comments, and verify work.” But that section exists only in the full system prompt, and Claude Code has two. According to the environment variables reference, Haiku 4.5, Sonnet 5, Opus 4.7 and earlier models in those families get the full prompt by default, and newer models get a shorter one. Opus 5.5, the default model on every plan and provider except Microsoft Foundry, is newer, so on it the field changes nothing: the coding section is absent with or without it. To make the field mean something, start Claude Code with the full prompt:
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 claudeCopiedAnthropic’s advice stands either way: set it when you are changing how Claude communicates but still want it coding the same way, and leave it out for a style where Claude won’t be doing software engineering (a writing assistant, a data analyst). Whichever you choose, a custom style keeps Claude Code’s tool guidance and built-in safety instructions, which is the difference from --system-prompt: that flag replaces the whole prompt, tool guidance and safety instructions included.
What a style changes, and what it leaves alone
A style changes the instructions Claude gets and nothing else. The frontmatter has no field for tools, permissions or a model, and Anthropic’s own note is that a style “doesn’t guarantee that something always happens or never happens.” Nor does its text sit inside the system prompt: the Agent SDK docs list “Output style instructions” among the system reminders Claude Code sends “in the conversation, not in the system prompt”, with every request. What it does to the system prompt itself is the coding-section removal above.
- Subagents don’t get it. A subagent runs on its own system prompt, so your style doesn’t shape its replies. A fork, which inherits the whole conversation, is the exception. A subagent that should answer in a set format needs that written into its own definition (Claude Code subagents).
- CLAUDE.md still loads whichever style is active.
- Permissions are untouched. Even Proactive leaves the permission mode alone, and a style that tells Claude not to edit files is a request, where plan mode actually holds edits back.
- It costs tokens. A style’s instructions are input on every request, softened by prompt caching after the first; Default adds none. Explanatory and Learning write longer replies, so more output tokens; Concise fewer.
Output style, CLAUDE.md, --append-system-prompt, a skill or a subagent
They all put instructions in front of Claude. What differs is when they apply and how they arrive, from Anthropic’s docs as of November 2026:
| Applies | How it reaches Claude | Reach for it when | |
|---|---|---|---|
Output style | Every response in the main conversation, one style at a time, switchable | A reminder in the conversation with each request; a custom style can also drop the full prompt’s coding section | You keep asking for shorter answers, more explanation, one format, or a role other than software engineer |
| Every session, whatever style is active | “Delivered as a user message after the system prompt” | Facts about the project: build commands, conventions, layout | |
--append-system-prompt | The session you launch with it | Appended to the system prompt itself, removing nothing | A script or one launch needs extra rules; Anthropic suggests it for instructions you want “at the system prompt level” |
| Only when invoked, or when the task matches its description | Injected as a user message at that point | Instructions for one kind of task, such as a release checklist | |
Subagent | Only the work handed to it | Its own system prompt, in a separate context, returning a summary | A focused helper with its own instructions, model and tools |
The test Anthropic’s feature overview gives between the first two: if it is true of the project whatever style you’re in, it belongs in CLAUDE.md; if it is about the response itself and you might want it off again, it is a style. None of these is enforced. Something that must happen every time, such as formatting after each edit, is a hook.
Styles that come with a plugin
A plugin ships styles as Markdown files in its output-styles/ folder, in the same format, or wherever its manifest’s outputStyles key points (which replaces the folder scan). They appear in /output-style beside your own, named <plugin>:<name>, as in my-plugin:terse. One field matters to anyone installing a plugin: a style with force-for-plugin: true is applied whenever the plugin is enabled and overrides your own outputStyle, so a plugin can change how Claude talks to you without your selecting it. Disabling the plugin takes it away. Packaging and installing plugins is in Claude Code plugins.
When a style doesn’t seem to apply
- Check the name’s case in
outputStyle:Explanatory, notexplanatory. - Restart after creating or editing the file; the terminal reads style files only at startup.
- Look for a file that overrides yours: a project’s
settings.local.jsonbeats your user default, a project style beats a user style of the same name, and a plugin’s forced style beats both. - Run
/status. Since 2.1.327 it lists broken output style files, along with broken agents, skills and commands. - Run
claude --debugto see a YAML parse error in the frontmatter. - Check where the reply came from. A subagent’s reply ignores your style by design.
- Update if you are on an older release. 2.1.238 fixed custom, project and plugin styles “drifting back to the default voice mid-session,” and before 2.1.251 a switch waited for
/clearor a new session. See updating Claude Code. - Rule your configuration out:
claude --safe-modestarts with custom output styles, CLAUDE.md, skills, plugins and hooks off; only hooks your organisation’s managed policy sets still run.
To see the active style at all times, a custom status line can print it: Claude Code passes it to the script as output_style.name. And /doctor prompt-audit (2.1.283 or later) checks your styles for stale or contradictory instructions along with your CLAUDE.md files, proposing edits without making them.
Deprecated, then back: where output styles stand
Output styles were deprecated once, and the /output-style command later, and both came back. From the Claude Code changelog, with each release’s date from the npm registry:
| Version | Released | Change |
|---|---|---|
1.0.81 | Aug 14, 2025 | Output styles released, with the built-in Explanatory and Learning styles |
2.0.30 | Oct 30, 2025 | Output styles deprecated, pointing to --system-prompt-file, --system-prompt, --append-system-prompt, CLAUDE.md or plugins instead |
2.0.32 | Nov 3, 2025 | “Un-deprecate output styles based on community feedback” |
2.1.73 | Mar 11, 2026 | The /output-style command deprecated in favour of /config; the style fixed at session start for prompt caching |
2.1.237 | Aug 19, 2026 | Built-in Concise style added |
2.1.251 | Aug 28, 2026 | A style switched mid-session applies from the next message (per the docs) |
2.1.269 | Sep 11, 2026 | /output-style [name] back, to list and switch styles, including over Remote Control and in headless sessions |
So as of 2.1.330, released November 20, 2026, output styles are not deprecated, and /output-style is back beside /config and the outputStyle setting.