modified
--- a/output-styles.md +++ b/output-styles.md @@ -30,7 +30,7 @@ ### Concise -In the Concise style, the first sentence of a response states what happened or what the answer is. Claude leaves out the lead-in, the step-by-step narration, and the closing recap, and answers a simple question in one to three sentences. It does the engineering work as thoroughly as in the Default style. Requires Claude Code v2.1.237 or later. Claude still writes at full length in these cases: +In the Concise style, the first sentence of a response states what happened or what the answer is. Claude leaves out the lead-in, the step-by-step narration, and the closing recap, and answers a simple question in one to three sentences. It does the engineering work as thoroughly as in the Default style. Claude still writes at full length in these cases: * **Anything you ask for** : when you ask for an explanation or more detail, Claude answers in full. * **Anything you need in order to act safely** : error reports, failing test output, security warnings, and confirmations for destructive actions keep their complete content.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -37,7 +37,7 @@ ### Explanatory -In the Explanatory style, Claude does the task the way it does in the Default style and adds short explanations of why it made the choices it made. Each explanation appears in the conversation, before or after the code it’s about, in a block labeled `Insight`. The explanations aren’t written into your files as comments. An `Insight` block carries two or three points about your codebase or the code Claude wrote, such as this one after adding an API endpoint: +In the Explanatory style, Claude does the task the way it does in the Default style and adds short explanations of why it made the choices it made. Each explanation appears in the conversation, before or after the code it’s about, in a block labeled `Insight`. An `Insight` block carries two or three points about your codebase or the code Claude wrote, such as this one after adding an API endpoint: ★ Insight ───────────────────────────────────── - Every route in this repo goes through the withAuth wrapper, so the new endpoint gets session checks without its own middleware. @@ -126,7 +126,7 @@ `name`| No| Name of the output style, shown in the `/config` picker. Default: the file name `description`| No| Description of the output style, shown in the `/config` picker `keep-coding-instructions`| No| Set to `true` to keep Claude Code’s section of built-in software engineering instructions, which only the full system prompt includes, alongside your style. See How output styles work. Default: `false` -`force-for-plugin`| No| Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded. Default: `false` +`force-for-plugin`| No| Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded. Default: `false` ## Choose between an output style and other features
modified
Show diff (149 lines)
--- a/output-styles.md +++ b/output-styles.md @@ -9,11 +9,7 @@ * For something that has to happen every time, such as formatting after each edit or blocking a command, use a [hook](</docs/en/hooks-guide>). * For skills, subagents, and the other options, see Choose between an output style and other features. -## - -​ - -Built-in output styles +## Built-in output styles Claude Code starts in the **Default** style, its standard instructions for completing software engineering tasks. Each of the four other built-in styles keeps those instructions and adds its own. This table shows what each style changes about a session and when it fits: @@ -24,38 +20,22 @@ Explanatory| Claude adds short `Insight` blocks that explain the choices behind the code it writes| You’re getting to know a codebase or want the reasoning along with the change Learning| Claude explains its choices and leaves small pieces of code for you to write yourself| You want hands-on coding practice while the task still gets done -### - -​ - -Default +### Default Default means no output style is selected. Claude Code adds no style instructions, and Claude works from Claude Code’s standard system prompt, which is written for software engineering tasks. `default` appears in the `/output-style` list with the other styles, so you select it the same way. -### - -​ - -Proactive +### Proactive In the Proactive style, Claude starts implementing as soon as you send a task. It makes reasonable assumptions about routine decisions rather than stopping to ask, and it doesn’t switch to plan mode unless you ask for a plan. You can redirect it at any point. The style’s instructions also tell Claude to check with you in the conversation before an action that deletes data or changes a shared or production system. That check is an instruction Claude follows and is separate from permission prompts. Switching to the Proactive style doesn’t change your [permission mode](</docs/en/permission-modes>). Your permission mode still decides which tool calls run without asking you, so permission prompts appear the same way they did before you switched. -### - -​ - -Concise +### Concise In the Concise style, the first sentence of a response states what happened or what the answer is. Claude leaves out the lead-in, the step-by-step narration, and the closing recap, and answers a simple question in one to three sentences. It does the engineering work as thoroughly as in the Default style. Requires Claude Code v2.1.237 or later. Claude still writes at full length in these cases: * **Anything you ask for** : when you ask for an explanation or more detail, Claude answers in full. * **Anything you need in order to act safely** : error reports, failing test output, security warnings, and confirmations for destructive actions keep their complete content. -### - -​ - -Explanatory +### Explanatory In the Explanatory style, Claude does the task the way it does in the Default style and adds short explanations of why it made the choices it made. Each explanation appears in the conversation, before or after the code it’s about, in a block labeled `Insight`. The explanations aren’t written into your files as comments. An `Insight` block carries two or three points about your codebase or the code Claude wrote, such as this one after adding an API endpoint: @@ -64,11 +44,7 @@ - Rate limits are set per route in limits.ts, which is why this change adds an entry there rather than a global default. ───────────────────────────────────────────────── -### - -​ - -Learning +### Learning In the Learning style, Claude adds the same `Insight` blocks as the Explanatory style and also asks you to write some of the code. Claude handles routine implementation itself. When it reaches a piece with a real design decision, such as error handling, a data structure, or business logic with more than one valid approach, it leaves a few lines for you. Claude marks the spot with a `TODO(human)` comment in the file, then sends a request that says what’s already built, what to write, and what to weigh: @@ -82,11 +58,7 @@ Claude then stops and waits. Write your code at the `TODO(human)` comment and tell Claude when you’re done. Claude responds with one `Insight` about your code and continues the task. -## - -​ - -Change your output style +## Change your output style Pick a style with the command, a menu, or a settings file. The command and both menus save your choice to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). @@ -103,11 +75,7 @@ The value is case-sensitive, so write the built-in names as `Proactive`, `Concise`, `Explanatory`, and `Learning`. A value that doesn’t match a style name exactly, such as `explanatory`, gives you the Default style. The `/output-style` command ignores case. To make a style your default across projects, set `outputStyle` in `~/.claude/settings.json`. A project’s own settings files [take precedence](</docs/en/settings#settings-precedence>) over that value. When you switch styles mid-session, Claude uses the new style starting with your next message. For what that first message costs in prompt caching, see [Changing output style](</docs/en/prompt-caching#changing-output-style>). Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. -## - -​ - -Create a custom output style +## Create a custom output style A custom output style is a Markdown file: frontmatter for metadata, then the instructions for Claude. In the VS Code extension, you can also create the file from the [**Output styles** menu](</docs/en/vs-code#use-the-prompt-box>) rather than writing it by hand. This requires Claude Code v2.1.261 or later. @@ -149,11 +117,7 @@ [Plugins](</docs/en/plugins/manifest-reference>) can also ship output styles in an `output-styles/` directory. -### - -​ - -Frontmatter reference +### Frontmatter reference Configure an output style with YAML [frontmatter](</docs/en/glossary#frontmatter>) between `---` markers at the top of the file. All fields are optional, and field names use lowercase words separated by hyphens. A misspelled field is ignored without an error. If the YAML doesn’t parse, the style still loads under its file name with no fields set; run `claude --debug` to see the parse error. @@ -164,11 +128,7 @@ `keep-coding-instructions`| No| Set to `true` to keep Claude Code’s section of built-in software engineering instructions, which only the full system prompt includes, alongside your style. See How output styles work. Default: `false` `force-for-plugin`| No| Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded. Default: `false` -## - -​ - -Choose between an output style and other features +## Choose between an output style and other features An output style applies to every response in a session. It’s an instruction Claude follows, so nothing enforces it. When what you want is narrower than every response, or has to happen without fail, another feature fits better. This table matches what you want to the feature that does it: @@ -183,11 +143,7 @@ These features combine. For example, you can use CLAUDE.md for what Claude should know, an output style for how it responds, and a hook for anything that has to be guaranteed. [Extend Claude Code](</docs/en/features-overview>) compares the rest of the extension features. -## - -​ - -How output styles work +## How output styles work An output style changes the instructions Claude Code gives Claude. @@ -196,11 +152,7 @@ Output styles apply to the main conversation and to a [fork](</docs/en/sub-agents#fork-the-current-conversation>), which inherits the parent’s whole conversation and system prompt. Other [subagents run their own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how they respond. Token usage depends on the style. A style’s instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. The Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. -## - -​ - -Related resources +## Related resources * [Settings](</docs/en/settings>): where the `outputStyle` field lives and how settings precedence works * [Permission modes](</docs/en/permission-modes>): how the Proactive style compares to auto mode
modified
--- a/output-styles.md +++ b/output-styles.md @@ -93,7 +93,7 @@ * **`/output-style` command**: run `/output-style <style>` to switch, for example `/output-style concise`. With no argument, the command lists the styles you can pick and marks the current one. The command also works in [non-interactive mode](</docs/en/headless>) and Agent SDK sessions, and from the mobile app or web via [Remote Control](</docs/en/remote-control#limitations>), where you can list and select only built-in styles. Requires Claude Code v2.1.269 or later. * **Terminal menu** : run `/config` and select **Output style** to pick a style from a menu. * **VS Code extension** : open the [command menu](</docs/en/vs-code#use-the-prompt-box>) with `/` and select **Output styles** to pick a style, including your custom styles. Requires Claude Code v2.1.257 or later. - * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. + * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Code** or **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. To set a style without the menu, edit the `outputStyle` field directly in a settings file:
modified
--- a/output-styles.md +++ b/output-styles.md @@ -161,7 +161,7 @@ ---|---|--- `name`| No| Name of the output style, shown in the `/config` picker. Default: the file name `description`| No| Description of the output style, shown in the `/config` picker -`keep-coding-instructions`| No| Set to `true` to keep Claude Code’s built-in software engineering instructions alongside your style. Default: `false` +`keep-coding-instructions`| No| Set to `true` to keep Claude Code’s section of built-in software engineering instructions, which only the full system prompt includes, alongside your style. See How output styles work. Default: `false` `force-for-plugin`| No| Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded. Default: `false` ## @@ -192,9 +192,9 @@ An output style changes the instructions Claude Code gives Claude. * Claude Code sends the active style’s instructions with every request. - * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. - -Output styles apply to the main conversation and to a [fork](</docs/en/sub-agents#fork-the-current-conversation>), which inherits the parent’s full conversation and system prompt. Other [subagents run their own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how they respond. Token usage depends on the style. A style’s instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. The Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. + * On the full system prompt, custom output styles leave out Claude Code’s section of built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. The shorter system prompt doesn’t include that section, so the field has no effect there. To rely on the field, set [`CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT`](</docs/en/env-vars#variables>) to `0`, which selects the full prompt on any model. + +Output styles apply to the main conversation and to a [fork](</docs/en/sub-agents#fork-the-current-conversation>), which inherits the parent’s whole conversation and system prompt. Other [subagents run their own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how they respond. Token usage depends on the style. A style’s instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. The Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -147,7 +147,7 @@ Run `/output-style <style>` in the terminal, or run `/config` and select your style under **Output style**. Claude uses the new style starting with your next message. In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change. -[Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. +[Plugins](</docs/en/plugins/manifest-reference>) can also ship output styles in an `output-styles/` directory. ### @@ -204,5 +204,5 @@ * [Settings](</docs/en/settings>): where the `outputStyle` field lives and how settings precedence works * [Permission modes](</docs/en/permission-modes>): how the Proactive style compares to auto mode - * [Plugins](</docs/en/plugins>): package and distribute output styles alongside skills, hooks, and agents + * [Plugins](</docs/en/plugins/overview>): package and distribute output styles alongside skills, hooks, and agents * [Debug your configuration](</docs/en/debug-your-config>): diagnose why an output style isn’t taking effect
modified
Show diff (194 lines)
--- a/output-styles.md +++ b/output-styles.md @@ -1,4 +1,13 @@ -Output styles change how Claude responds, not what Claude knows. They set Claude’s role, tone, and output format for every response. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. A custom output style gives Claude your own instructions and lets you choose whether to keep Claude Code’s built-in software engineering instructions. Keep them when you’re changing how Claude communicates but still coding, like always answering with a diagram. Leave them out when Claude isn’t doing software engineering at all, like a writing assistant or data analyst. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. +An output style is a set of instructions that sets Claude’s role, tone, and response format for every response in a session. Claude Code includes four built-in styles besides its default, and you can write your own. Use an output style to change the way Claude responds and works with you for a whole session, so you don’t repeat the request in each prompt. For example, a built-in style can make responses shorter, add an explanation of each change, or have Claude start work without asking routine questions. A custom style can also turn Claude into something other than a software engineer, such as a writing assistant or a data analyst. + + * To use a built-in style, pick one from the built-in output styles and switch to it. + * To write your own instructions, create a custom output style. + +An output style gives Claude instructions to follow. It doesn’t guarantee that something always happens or never happens. Some needs fit a different feature: + + * For what Claude should know about your project, use [CLAUDE.md](</docs/en/memory>). + * For something that has to happen every time, such as formatting after each edit or blocking a command, use a [hook](</docs/en/hooks-guide>). + * For skills, subagents, and the other options, see Choose between an output style and other features. ## @@ -6,12 +15,72 @@ Built-in output styles -Claude Code’s **Default** output style is its standard set of instructions, designed to help you complete software engineering tasks efficiently. There are four additional built-in output styles: - - * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so your permission mode still decides what runs without asking you. - * **Concise** : Claude leads with the result, skips preamble and narration, and keeps responses short by default, while doing the engineering work as thoroughly as in the Default style. When you ask for an explanation or more detail, Claude answers in full. Claude always keeps the complete content of error reports, security warnings, and confirmations for destructive actions. Requires Claude Code v2.1.237 or later. - * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. - * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement. +Claude Code starts in the **Default** style, its standard instructions for completing software engineering tasks. Each of the four other built-in styles keeps those instructions and adds its own. This table shows what each style changes about a session and when it fits: + +Style| What changes| Use it when +---|---|--- +Proactive| Claude starts work right away and makes reasonable assumptions rather than asking about routine decisions| You want Claude to keep working through routine decisions, and you’ll correct course if an assumption is wrong +Concise| Responses lead with the result and leave out preamble, narration, and recaps| Default responses are longer than you want +Explanatory| Claude adds short `Insight` blocks that explain the choices behind the code it writes| You’re getting to know a codebase or want the reasoning along with the change +Learning| Claude explains its choices and leaves small pieces of code for you to write yourself| You want hands-on coding practice while the task still gets done + +### + +​ + +Default + +Default means no output style is selected. Claude Code adds no style instructions, and Claude works from Claude Code’s standard system prompt, which is written for software engineering tasks. `default` appears in the `/output-style` list with the other styles, so you select it the same way. + +### + +​ + +Proactive + +In the Proactive style, Claude starts implementing as soon as you send a task. It makes reasonable assumptions about routine decisions rather than stopping to ask, and it doesn’t switch to plan mode unless you ask for a plan. You can redirect it at any point. The style’s instructions also tell Claude to check with you in the conversation before an action that deletes data or changes a shared or production system. That check is an instruction Claude follows and is separate from permission prompts. Switching to the Proactive style doesn’t change your [permission mode](</docs/en/permission-modes>). Your permission mode still decides which tool calls run without asking you, so permission prompts appear the same way they did before you switched. + +### + +​ + +Concise + +In the Concise style, the first sentence of a response states what happened or what the answer is. Claude leaves out the lead-in, the step-by-step narration, and the closing recap, and answers a simple question in one to three sentences. It does the engineering work as thoroughly as in the Default style. Requires Claude Code v2.1.237 or later. Claude still writes at full length in these cases: + + * **Anything you ask for** : when you ask for an explanation or more detail, Claude answers in full. + * **Anything you need in order to act safely** : error reports, failing test output, security warnings, and confirmations for destructive actions keep their complete content. + +### + +​ + +Explanatory + +In the Explanatory style, Claude does the task the way it does in the Default style and adds short explanations of why it made the choices it made. Each explanation appears in the conversation, before or after the code it’s about, in a block labeled `Insight`. The explanations aren’t written into your files as comments. An `Insight` block carries two or three points about your codebase or the code Claude wrote, such as this one after adding an API endpoint: + + ★ Insight ───────────────────────────────────── + - Every route in this repo goes through the withAuth wrapper, so the new endpoint gets session checks without its own middleware. + - Rate limits are set per route in limits.ts, which is why this change adds an entry there rather than a global default. + ───────────────────────────────────────────────── + +### + +​ + +Learning + +In the Learning style, Claude adds the same `Insight` blocks as the Explanatory style and also asks you to write some of the code. Claude handles routine implementation itself. When it reaches a piece with a real design decision, such as error handling, a data structure, or business logic with more than one valid approach, it leaves a few lines for you. Claude marks the spot with a `TODO(human)` comment in the file, then sends a request that says what’s already built, what to write, and what to weigh: + + ● Learn by Doing + + Context: The upload form is in place and calls validateFile() before accepting a file. Size and type checks work for images, but the switch statement has no handling for documents yet. + + Your Task: In upload.js, implement the case "document" branch inside validateFile(). Look for TODO(human). + + Guidance: Decide on a size limit for documents and whether the file extension has to match the MIME type. Return {valid: boolean, error?: string}. + +Claude then stops and waits. Write your code at the `TODO(human)` comment and tell Claude when you’re done. Claude responds with one `Insight` about your code and continues the task. ## @@ -19,11 +88,11 @@ Change your output style -Pick a style in one of these ways: - - * **`/output-style` command**: run `/output-style <style>` to switch, for example `/output-style concise`. With no argument, the command lists the styles you can pick and marks the current one. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). The command also works in [non-interactive mode](</docs/en/headless>) and Agent SDK sessions, and from the mobile app or web via [Remote Control](</docs/en/remote-control#limitations>), where you can list and select only built-in styles. Requires Claude Code v2.1.269 or later. - * **Terminal** : run `/config` and select **Output style** to pick a style from a menu. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). - * **VS Code extension** : open the [command menu](</docs/en/vs-code#use-the-prompt-box>) with `/` and select **Output styles** to pick a style, including your custom styles. Claude Code saves your selection to `.claude/settings.local.json`, the same file the terminal menu writes. Requires Claude Code v2.1.257 or later. +Pick a style with the command, a menu, or a settings file. The command and both menus save your choice to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). + + * **`/output-style` command**: run `/output-style <style>` to switch, for example `/output-style concise`. With no argument, the command lists the styles you can pick and marks the current one. The command also works in [non-interactive mode](</docs/en/headless>) and Agent SDK sessions, and from the mobile app or web via [Remote Control](</docs/en/remote-control#limitations>), where you can list and select only built-in styles. Requires Claude Code v2.1.269 or later. + * **Terminal menu** : run `/config` and select **Output style** to pick a style from a menu. + * **VS Code extension** : open the [command menu](</docs/en/vs-code#use-the-prompt-box>) with `/` and select **Output styles** to pick a style, including your custom styles. Requires Claude Code v2.1.257 or later. * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. To set a style without the menu, edit the `outputStyle` field directly in a settings file: @@ -32,7 +101,7 @@ "outputStyle": "Explanatory" } -When you switch styles mid-session, Claude uses the new style starting with your next message. For what that first message costs in prompt caching, see [Changing output style](</docs/en/prompt-caching#changing-output-style>). Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. +The value is case-sensitive, so write the built-in names as `Proactive`, `Concise`, `Explanatory`, and `Learning`. A value that doesn’t match a style name exactly, such as `explanatory`, gives you the Default style. The `/output-style` command ignores case. To make a style your default across projects, set `outputStyle` in `~/.claude/settings.json`. A project’s own settings files [take precedence](</docs/en/settings#settings-precedence>) over that value. When you switch styles mid-session, Claude uses the new style starting with your next message. For what that first message costs in prompt caching, see [Changing output style](</docs/en/prompt-caching#changing-output-style>). Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. ## @@ -84,16 +153,35 @@ ​ -Frontmatter - -Output style files support these frontmatter fields: - -Frontmatter| Purpose| Default +Frontmatter reference + +Configure an output style with YAML [frontmatter](</docs/en/glossary#frontmatter>) between `---` markers at the top of the file. All fields are optional, and field names use lowercase words separated by hyphens. A misspelled field is ignored without an error. If the YAML doesn’t parse, the style still loads under its file name with no fields set; run `claude --debug` to see the parse error. + +Field| Required| Description ---|---|--- -`name`| Name of the output style, if not the file name| Inherits from file name -`description`| Description of the output style, shown in the `/config` picker| None -`keep-coding-instructions`| Keep Claude Code’s built-in software engineering instructions| `false` -`force-for-plugin`| Plugin output styles only: apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded.| `false` +`name`| No| Name of the output style, shown in the `/config` picker. Default: the file name +`description`| No| Description of the output style, shown in the `/config` picker +`keep-coding-instructions`| No| Set to `true` to keep Claude Code’s built-in software engineering instructions alongside your style. Default: `false` +`force-for-plugin`| No| Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded. Default: `false` + +## + +​ + +Choose between an output style and other features + +An output style applies to every response in a session. It’s an instruction Claude follows, so nothing enforces it. When what you want is narrower than every response, or has to happen without fail, another feature fits better. This table matches what you want to the feature that does it: + +You want| Use| Why it fits +---|---|--- +Every response in a certain voice, length, or format, or Claude in a different role| An output style| It applies to the whole session, and you switch styles with one command +Claude to know your project’s conventions, commands, and structure| [CLAUDE.md](</docs/en/memory>)| It holds what Claude should know about the codebase, and it stays loaded whichever style you pick +Instructions for one kind of task, such as a release checklist or a review procedure| A [skill](</docs/en/skills>)| Claude loads it only when you invoke it or the task matches, so it doesn’t shape unrelated responses +Something to happen every time without exception, such as formatting after each edit or blocking a command| A [hook](</docs/en/hooks-guide>)| Claude Code runs a hook itself at a lifecycle event, so it doesn’t depend on Claude following an instruction +A helper with its own instructions, model, and tools for a focused task| A [subagent](</docs/en/sub-agents>)| It runs in a separate context with its own system prompt and returns a summary to your conversation +An addition to Claude’s instructions that you pass when you start Claude Code| [`--append-system-prompt`](</docs/en/cli-reference#system-prompt-flags>)| It appends to the system prompt without removing anything + +These features combine. For example, you can use CLAUDE.md for what Claude should know, an output style for how it responds, and a hook for anything that has to be guaranteed. [Extend Claude Code](</docs/en/features-overview>) compares the rest of the extension features. ## @@ -104,26 +192,9 @@ An output style changes the instructions Claude Code gives Claude. * Claude Code sends the active style’s instructions with every request. - * When you select a style other than Default, Claude Code also reminds Claude of the style during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. Output styles apply to the main conversation and to a [fork](</docs/en/sub-agents#fork-the-current-conversation>), which inherits the parent’s full conversation and system prompt. Other [subagents run their own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how they respond. Token usage depends on the style. A style’s instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. The Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. - -## - -​ - -Comparisons to related features - -Several features customize how Claude Code behaves. Output styles change Claude Code’s default instructions and apply to every response. The others add instructions without changing the defaults, or scope them to a specific task. - -Feature| How it works| Use it when ----|---|--- -Output styles| Changes Claude Code’s default instructions| You want a different role, tone, or default response format every turn -[CLAUDE.md](</docs/en/memory>)| Adds a user message after the system prompt| Claude should always know your project conventions and codebase context -`--append-system-prompt`| Appends to the system prompt without removing anything| You want a one-off addition passed as a [CLI flag](</docs/en/cli-reference#system-prompt-flags>) at launch -[Agents](</docs/en/sub-agents>)| Runs a subagent with its own system prompt, model, and tools| You want a separately scoped helper for a focused task -[Skills](</docs/en/skills>)| Loads task-specific instructions when invoked or relevant| You have a reusable workflow ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -21,11 +21,10 @@ Pick a style in one of these ways: + * **`/output-style` command**: run `/output-style <style>` to switch, for example `/output-style concise`. With no argument, the command lists the styles you can pick and marks the current one. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). The command also works in [non-interactive mode](</docs/en/headless>) and Agent SDK sessions, and from the mobile app or web via [Remote Control](</docs/en/remote-control#limitations>), where you can list and select only built-in styles. Requires Claude Code v2.1.269 or later. * **Terminal** : run `/config` and select **Output style** to pick a style from a menu. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). * **VS Code extension** : open the [command menu](</docs/en/vs-code#use-the-prompt-box>) with `/` and select **Output styles** to pick a style, including your custom styles. Claude Code saves your selection to `.claude/settings.local.json`, the same file the terminal menu writes. Requires Claude Code v2.1.257 or later. * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. - -The standalone `/output-style` command was deprecated in v2.1.73 and removed in v2.1.91. Use `/config` or edit the `outputStyle` setting directly. To set a style without the menu, edit the `outputStyle` field directly in a settings file: @@ -77,7 +76,7 @@ Switch to your style -Run `/config` in the terminal and select your style under **Output style**. Claude uses the new style starting with your next message. In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change. +Run `/output-style <style>` in the terminal, or run `/config` and select your style under **Output style**. Claude uses the new style starting with your next message. In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change. [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -1,4 +1,4 @@ -Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. A custom output style adds your instructions to the system prompt and lets you choose whether to keep Claude Code’s built-in software engineering instructions. Keep them when you’re changing how Claude communicates but still coding, like always answering with a diagram. Leave them out when Claude isn’t doing software engineering at all, like a writing assistant or data analyst. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. +Output styles change how Claude responds, not what Claude knows. They set Claude’s role, tone, and output format for every response. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. A custom output style gives Claude your own instructions and lets you choose whether to keep Claude Code’s built-in software engineering instructions. Keep them when you’re changing how Claude communicates but still coding, like always answering with a diagram. Leave them out when Claude isn’t doing software engineering at all, like a writing assistant or data analyst. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. ## @@ -6,7 +6,7 @@ Built-in output styles -Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are four additional built-in output styles: +Claude Code’s **Default** output style is its standard set of instructions, designed to help you complete software engineering tasks efficiently. There are four additional built-in output styles: * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so your permission mode still decides what runs without asking you. * **Concise** : Claude leads with the result, skips preamble and narration, and keeps responses short by default, while doing the engineering work as thoroughly as in the Default style. When you ask for an explanation or more detail, Claude answers in full. Claude always keeps the complete content of error reports, security warnings, and confirmations for destructive actions. Requires Claude Code v2.1.237 or later. @@ -33,7 +33,7 @@ "outputStyle": "Explanatory" } -When you switch styles mid-session, Claude uses the new style starting with your next message. The style is part of the system prompt, so that first message rebuilds the [prompt cache](</docs/en/prompt-caching#changing-output-style>) once. Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. +When you switch styles mid-session, Claude uses the new style starting with your next message. For what that first message costs in prompt caching, see [Changing output style](</docs/en/prompt-caching#changing-output-style>). Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. ## @@ -41,7 +41,7 @@ Create a custom output style -A custom output style is a Markdown file: frontmatter for metadata, then the instructions to add to the system prompt. +A custom output style is a Markdown file: frontmatter for metadata, then the instructions for Claude. In the VS Code extension, you can also create the file from the [**Output styles** menu](</docs/en/vs-code#use-the-prompt-box>) rather than writing it by hand. This requires Claude Code v2.1.261 or later. 1 @@ -102,13 +102,13 @@ How output styles work -Output styles directly modify Claude Code’s system prompt. +An output style changes the instructions Claude Code gives Claude. - * Claude Code adds the output style’s custom instructions to the system prompt. + * Claude Code sends the active style’s instructions with every request. * When you select a style other than Default, Claude Code also reminds Claude of the style during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. -Output styles apply to the main conversation only: a [subagent runs its own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how subagents respond. A [fork](</docs/en/sub-agents#fork-the-current-conversation>) is the exception, because it inherits the parent’s full system prompt. Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens, and the Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. +Output styles apply to the main conversation and to a [fork](</docs/en/sub-agents#fork-the-current-conversation>), which inherits the parent’s full conversation and system prompt. Other [subagents run their own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how they respond. Token usage depends on the style. A style’s instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. The Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. ## @@ -116,13 +116,13 @@ Comparisons to related features -Several features customize how Claude Code behaves. Output styles modify the system prompt directly and apply to every response. The others add instructions without changing the default system prompt, or scope them to a specific task. +Several features customize how Claude Code behaves. Output styles change Claude Code’s default instructions and apply to every response. The others add instructions without changing the defaults, or scope them to a specific task. Feature| How it works| Use it when ---|---|--- -Output styles| Modifies the system prompt| You want a different role, tone, or default response format every turn +Output styles| Changes Claude Code’s default instructions| You want a different role, tone, or default response format every turn [CLAUDE.md](</docs/en/memory>)| Adds a user message after the system prompt| Claude should always know your project conventions and codebase context -`--append-system-prompt`| Appends to the system prompt without removing anything| You want a one-off addition for a single invocation +`--append-system-prompt`| Appends to the system prompt without removing anything| You want a one-off addition passed as a [CLI flag](</docs/en/cli-reference#system-prompt-flags>) at launch [Agents](</docs/en/sub-agents>)| Runs a subagent with its own system prompt, model, and tools| You want a separately scoped helper for a focused task [Skills](</docs/en/skills>)| Loads task-specific instructions when invoked or relevant| You have a reusable workflow
modified
--- a/output-styles.md +++ b/output-styles.md @@ -33,7 +33,7 @@ "outputStyle": "Explanatory" } -Output style is part of the system prompt, which Claude Code reads once at session start. Changes take effect after `/clear` or a new session. See [How Claude Code uses prompt caching](</docs/en/prompt-caching#changing-output-style>) for what an output style change does to the cache. +When you switch styles mid-session, Claude uses the new style starting with your next message. The style is part of the system prompt, so that first message rebuilds the [prompt cache](</docs/en/prompt-caching#changing-output-style>) once. Before v2.1.251, the new style applied only after you ran `/clear` or started a new session. ## @@ -77,7 +77,7 @@ Switch to your style -Run `/config` in the terminal and select your style under **Output style** , or set `outputStyle` in a settings file to the style’s name. It takes effect after `/clear` or the next time you start a session. +Run `/config` in the terminal and select your style under **Output style**. Claude uses the new style starting with your next message. In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change. [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -22,6 +22,7 @@ Pick a style in one of these ways: * **Terminal** : run `/config` and select **Output style** to pick a style from a menu. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). + * **VS Code extension** : open the [command menu](</docs/en/vs-code#use-the-prompt-box>) with `/` and select **Output styles** to pick a style, including your custom styles. Claude Code saves your selection to `.claude/settings.local.json`, the same file the terminal menu writes. Requires Claude Code v2.1.257 or later. * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. The standalone `/output-style` command was deprecated in v2.1.73 and removed in v2.1.91. Use `/config` or edit the `outputStyle` setting directly.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -103,8 +103,8 @@ Output styles directly modify Claude Code’s system prompt. - * Claude Code adds each output style’s custom instructions to the end of the system prompt. - * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. + * Claude Code adds the output style’s custom instructions to the system prompt. + * When you select a style other than Default, Claude Code also reminds Claude of the style during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. Output styles apply to the main conversation only: a [subagent runs its own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how subagents respond. A [fork](</docs/en/sub-agents#fork-the-current-conversation>) is the exception, because it inherits the parent’s full system prompt. Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens, and the Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -50,7 +50,7 @@ * User: `~/.claude/output-styles` * Project: `.claude/output-styles` - * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/settings#settings-files>) + * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/managed-settings#delivery-mechanisms>) Project output styles load from every `.claude/output-styles/` between the working directory and the repository root. When more than one of these nested directories defines a style with the same name, Claude Code uses the one closest to the working directory.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -6,9 +6,10 @@ Built-in output styles -Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are three additional built-in output styles: +Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are four additional built-in output styles: * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so your permission mode still decides what runs without asking you. + * **Concise** : Claude leads with the result, skips preamble and narration, and keeps responses short by default, while doing the engineering work as thoroughly as in the Default style. When you ask for an explanation or more detail, Claude answers in full. Claude always keeps the complete content of error reports, security warnings, and confirmations for destructive actions. Requires Claude Code v2.1.237 or later. * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement. @@ -106,7 +107,7 @@ * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. -Output styles apply to the main conversation only: a [subagent runs its own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how subagents respond. A [fork](</docs/en/sub-agents#fork-the-current-conversation>) is the exception, because it inherits the parent’s full system prompt. Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. +Output styles apply to the main conversation only: a [subagent runs its own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how subagents respond. A [fork](</docs/en/sub-agents#fork-the-current-conversation>) is the exception, because it inherits the parent’s full system prompt. Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens, and the Concise style does the opposite by instructing Claude to keep responses short by default. For custom styles, output token usage depends on what your instructions tell Claude to produce. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -8,7 +8,7 @@ Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are three additional built-in output styles: - * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so you still see permission prompts before tools run. + * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so your permission mode still decides what runs without asking you. * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -18,7 +18,10 @@ Change your output style -Run `/config` and select **Output style** to pick a style from a menu. Your selection is saved to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). +Pick a style in one of these ways: + + * **Terminal** : run `/config` and select **Output style** to pick a style from a menu. Claude Code saves your selection to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). + * **Desktop app** : set the `outputStyle` field in a settings file, for example `.claude/settings.local.json`, the file the terminal menu writes. When you run `/config` there, Claude Code [opens **Settings > Claude Code**](</docs/en/desktop#what%E2%80%99s-not-available-in-desktop>) rather than a menu. The standalone `/output-style` command was deprecated in v2.1.73 and removed in v2.1.91. Use `/config` or edit the `outputStyle` setting directly. @@ -48,7 +51,7 @@ * Project: `.claude/output-styles` * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/settings#settings-files>) -Project output styles load from every `.claude/output-styles/` between the working directory and the repository root. As of v2.1.178, when more than one of these nested directories defines a style with the same name, Claude Code uses the one closest to the working directory. +Project output styles load from every `.claude/output-styles/` between the working directory and the repository root. When more than one of these nested directories defines a style with the same name, Claude Code uses the one closest to the working directory. 2 @@ -72,7 +75,7 @@ Switch to your style -Run `/config` and select your style under **Output style**. It takes effect after `/clear` or the next time you start a session. +Run `/config` in the terminal and select your style under **Output style** , or set `outputStyle` in a settings file to the style’s name. It takes effect after `/clear` or the next time you start a session. [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -99,7 +99,7 @@ Output styles directly modify Claude Code’s system prompt. - * All output styles have their own custom instructions added to the end of the system prompt. + * Claude Code adds each output style’s custom instructions to the end of the system prompt. * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -103,7 +103,7 @@ * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. -Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. +Output styles apply to the main conversation only: a [subagent runs its own system prompt](</docs/en/sub-agents#what-loads-at-startup>), so styles don’t change how subagents respond. A [fork](</docs/en/sub-agents#fork-the-current-conversation>) is the exception, because it inherits the parent’s full system prompt. Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -47,6 +47,8 @@ * User: `~/.claude/output-styles` * Project: `.claude/output-styles` * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/settings#settings-files>) + +Project output styles load from every `.claude/output-styles/` between the working directory and the repository root. As of v2.1.178, when more than one of these nested directories defines a style with the same name, Claude Code uses the one closest to the working directory. 2
modified
--- a/output-styles.md +++ b/output-styles.md @@ -1,9 +1,3 @@ -> ## Documentation Index -> -> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> -> -> Use this file to discover all available pages before exploring further. - Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. A custom output style adds your instructions to the system prompt and lets you choose whether to keep Claude Code’s built-in software engineering instructions. Keep them when you’re changing how Claude communicates but still coding, like always answering with a diagram. Leave them out when Claude isn’t doing software engineering at all, like a writing assistant or data analyst. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -24,7 +24,11 @@ Change your output style -Run `/config` and select **Output style** to pick a style from a menu. Your selection is saved to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). To set a style without the menu, edit the `outputStyle` field directly in a settings file: +Run `/config` and select **Output style** to pick a style from a menu. Your selection is saved to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). + +The standalone `/output-style` command was deprecated in v2.1.73 and removed in v2.1.91. Use `/config` or edit the `outputStyle` setting directly. + +To set a style without the menu, edit the `outputStyle` field directly in a settings file: { "outputStyle": "Explanatory"
modified
--- a/output-styles.md +++ b/output-styles.md @@ -14,7 +14,7 @@ Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are three additional built-in output styles: - * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This applies the same guidance as [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) without changing your permission mode, so you still see permission prompts before tools run. + * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This is stronger autonomous-execution guidance than [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) applies, and it works without changing your permission mode, so you still see permission prompts before tools run. * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement. @@ -30,7 +30,7 @@ "outputStyle": "Explanatory" } -Because the output style is set in the system prompt at session start, changes take effect the next time you start a new session. This keeps the system prompt stable throughout a conversation so prompt caching can reduce latency and cost. +Output style is part of the system prompt, which Claude Code reads once at session start. Changes take effect after `/clear` or a new session. See [How Claude Code uses prompt caching](</docs/en/prompt-caching#changing-output-style>) for what an output style change does to the cache. ## @@ -72,7 +72,7 @@ Switch to your style -Run `/config` and select your style under **Output style**. It takes effect the next time you start a session. +Run `/config` and select your style under **Output style**. It takes effect after `/clear` or the next time you start a session. [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. @@ -128,6 +128,6 @@ Related resources * [Settings](</docs/en/settings>): where the `outputStyle` field lives and how settings precedence works - * [Permission modes](</docs/en/permission-modes>): the Proactive style mirrors auto mode without changing your permission mode + * [Permission modes](</docs/en/permission-modes>): how the Proactive style compares to auto mode * [Plugins](</docs/en/plugins>): package and distribute output styles alongside skills, hooks, and agents * [Debug your configuration](</docs/en/debug-your-config>): diagnose why an output style isn’t taking effect
modified
Show diff (164 lines)
--- a/output-styles.md +++ b/output-styles.md @@ -4,7 +4,7 @@ > > Use this file to discover all available pages before exploring further. -Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format while keeping core capabilities like running scripts, reading and writing files, and tracking TODOs. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. +Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. A custom output style adds your instructions to the system prompt and lets you choose whether to keep Claude Code’s built-in software engineering instructions. Keep them when you’re changing how Claude communicates but still coding, like always answering with a diagram. Leave them out when Claude isn’t doing software engineering at all, like a writing assistant or data analyst. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. ## @@ -17,20 +17,6 @@ * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This applies the same guidance as [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) without changing your permission mode, so you still see permission prompts before tools run. * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement. - -## - -​ - -How output styles work - -Output styles directly modify Claude Code’s system prompt. - - * Custom output styles exclude instructions for coding (such as verifying code with tests), unless `keep-coding-instructions` is true. - * All output styles have their own custom instructions added to the end of the system prompt. - * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. - -Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. ## @@ -52,28 +38,41 @@ Create a custom output style -Custom output styles are Markdown files with frontmatter and the text that will be added to the system prompt: +A custom output style is a Markdown file: frontmatter for metadata, then the instructions to add to the system prompt. - --- - name: My Custom Style - description: - A brief description of what this style does, to be displayed to the user - --- +1 - # Custom Style Instructions +Create a Markdown file - You are an interactive CLI tool that helps users with software engineering - tasks. [Your custom instructions here...] - - ## Specific Behaviors - - [Define how the assistant should behave in this style...] - -You can save these files at three levels: +Save it at one of three levels. The file name becomes the style name unless you set `name` in the frontmatter. * User: `~/.claude/output-styles` * Project: `.claude/output-styles` * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/settings#settings-files>) + +2 + +Add frontmatter and instructions + +Decide whether to keep Claude Code’s software engineering instructions. Set `keep-coding-instructions: true` if you’re changing how Claude communicates but still want it coding the same way. Leave it out if Claude won’t be doing software engineering.This example leads every explanation with a diagram while keeping Claude’s coding behavior: + + --- + name: Diagrams first + description: Lead every explanation with a diagram + keep-coding-instructions: true + --- + + When explaining code, architecture, or data flow, start with a Mermaid diagram showing the structure, then explain in prose. + + ## Diagram conventions + + Use `flowchart TD` for control flow and `sequenceDiagram` for request paths. Keep diagrams under 15 nodes. + +3 + +Switch to your style + +Run `/config` and select your style under **Output style**. It takes effect the next time you start a session. [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. @@ -83,14 +82,28 @@ Frontmatter -Output style files support frontmatter for specifying metadata: +Output style files support these frontmatter fields: Frontmatter| Purpose| Default ---|---|--- `name`| Name of the output style, if not the file name| Inherits from file name `description`| Description of the output style, shown in the `/config` picker| None -`keep-coding-instructions`| Whether to keep the parts of Claude Code’s system prompt related to coding.| false -`force-for-plugin`| Plugin output styles only: apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, the first one loaded wins.| false +`keep-coding-instructions`| Keep Claude Code’s built-in software engineering instructions| `false` +`force-for-plugin`| Plugin output styles only: apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, Claude Code uses the first one loaded.| `false` + +## + +​ + +How output styles work + +Output styles directly modify Claude Code’s system prompt. + + * All output styles have their own custom instructions added to the end of the system prompt. + * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. + * Custom output styles leave out Claude Code’s built-in software engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. + +Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. ## @@ -98,26 +111,23 @@ Comparisons to related features -### +Several features customize how Claude Code behaves. Output styles modify the system prompt directly and apply to every response. The others add instructions without changing the default system prompt, or scope them to a specific task. + +Feature| How it works| Use it when +---|---|--- +Output styles| Modifies the system prompt| You want a different role, tone, or default response format every turn +[CLAUDE.md](</docs/en/memory>)| Adds a user message after the system prompt| Claude should always know your project conventions and codebase context +`--append-system-prompt`| Appends to the system prompt without removing anything| You want a one-off addition for a single invocation +[Agents](</docs/en/sub-agents>)| Runs a subagent with its own system prompt, model, and tools| You want a separately scoped helper for a focused task +[Skills](</docs/en/skills>)| Loads task-specific instructions when invoked or relevant| You have a reusable workflow + +## ​ -Output Styles vs. CLAUDE.md vs. —append-system-prompt +Related resources -Choose based on whether Claude should stop acting as a coding assistant or keep its default role and learn more. Output styles replace the software-engineering parts of Claude Code’s system prompt with your own role and voice, so use one when Claude should adopt a different identity, like a writing editor or a data-analysis assistant. CLAUDE.md and `--append-system-prompt` both keep Claude Code’s default identity and add to it, so use them when Claude should remain a coding assistant that also follows your project conventions or extra instructions. The mechanisms differ as well. Output styles edit the system prompt directly. CLAUDE.md adds its contents as a user message after the system prompt. `--append-system-prompt` appends content to the end of the system prompt without removing anything. - -### - -​ - -Output Styles vs. [Agents](</docs/en/sub-agents>) - -Use an output style to change how the main conversation responds in every session. Use a [subagent](</docs/en/sub-agents>) when you want a separately scoped helper that the main conversation delegates to. Output styles affect only the system prompt of the main agent loop. Agents handle specific tasks and can carry their own model, tools, and context about when to invoke them. - -### - -​ - -Output Styles vs. [Skills](</docs/en/skills>) - -Output styles modify how Claude responds (formatting, tone, structure) and are always active once selected. Skills are task-specific prompts that you invoke with `/skill-name` or that Claude loads automatically when relevant. Use output styles for consistent formatting preferences; use skills for reusable workflows and tasks. + * [Settings](</docs/en/settings>): where the `outputStyle` field lives and how settings precedence works + * [Permission modes](</docs/en/permission-modes>): the Proactive style mirrors auto mode without changing your permission mode + * [Plugins](</docs/en/plugins>): package and distribute output styles alongside skills, hooks, and agents + * [Debug your configuration](</docs/en/debug-your-config>): diagnose why an output style isn’t taking effect
modified
--- a/output-styles.md +++ b/output-styles.md @@ -104,7 +104,7 @@ Output Styles vs. CLAUDE.md vs. —append-system-prompt -Output styles completely “turn off” the parts of Claude Code’s default system prompt specific to software engineering. Neither CLAUDE.md nor `--append-system-prompt` edit Claude Code’s default system prompt. CLAUDE.md adds the contents as a user message _following_ Claude Code’s default system prompt. `--append-system-prompt` appends the content to the system prompt. +Choose based on whether Claude should stop acting as a coding assistant or keep its default role and learn more. Output styles replace the software-engineering parts of Claude Code’s system prompt with your own role and voice, so use one when Claude should adopt a different identity, like a writing editor or a data-analysis assistant. CLAUDE.md and `--append-system-prompt` both keep Claude Code’s default identity and add to it, so use them when Claude should remain a coding assistant that also follows your project conventions or extra instructions. The mechanisms differ as well. Output styles edit the system prompt directly. CLAUDE.md adds its contents as a user message after the system prompt. `--append-system-prompt` appends content to the end of the system prompt without removing anything. ### @@ -112,7 +112,7 @@ Output Styles vs. [Agents](</docs/en/sub-agents>) -Output styles directly affect the main agent loop and only affect the system prompt. Agents are invoked to handle specific tasks and can include additional settings like the model to use, the tools they have available, and some context about when to use the agent. +Use an output style to change how the main conversation responds in every session. Use a [subagent](</docs/en/sub-agents>) when you want a separately scoped helper that the main conversation delegates to. Output styles affect only the system prompt of the main agent loop. Agents handle specific tasks and can carry their own model, tools, and context about when to invoke them. ###
modified
--- a/output-styles.md +++ b/output-styles.md @@ -12,8 +12,9 @@ Built-in output styles -Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are two additional built-in output styles focused on teaching you the codebase and how Claude operates: +Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are three additional built-in output styles: + * **Proactive** : Claude executes immediately, makes reasonable assumptions instead of pausing for routine decisions, and prefers action over planning. This applies the same guidance as [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) without changing your permission mode, so you still see permission prompts before tools run. * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement.
modified
--- a/output-styles.md +++ b/output-styles.md @@ -68,7 +68,13 @@ [Define how the assistant should behave in this style...] -You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`). [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. +You can save these files at three levels: + + * User: `~/.claude/output-styles` + * Project: `.claude/output-styles` + * Managed policy: `.claude/output-styles` inside the [managed settings directory](</docs/en/settings#settings-files>) + +[Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. ### @@ -83,6 +89,7 @@ `name`| Name of the output style, if not the file name| Inherits from file name `description`| Description of the output style, shown in the `/config` picker| None `keep-coding-instructions`| Whether to keep the parts of Claude Code’s system prompt related to coding.| false +`force-for-plugin`| Plugin output styles only: apply this style automatically whenever the plugin is enabled, without requiring users to select it. Overrides the user’s `outputStyle` setting. If multiple enabled plugins set this, the first one loaded wins.| false ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -1,3 +1,9 @@ +> ## Documentation Index +> +> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> +> +> Use this file to discover all available pages before exploring further. + Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format while keeping core capabilities like running scripts, reading and writing files, and tracking TODOs. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -1,4 +1,4 @@ -Output styles allow you to use Claude Code as any type of agent while keeping its core capabilities, such as running local scripts, reading/writing files, and tracking TODOs. +Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format while keeping core capabilities like running scripts, reading and writing files, and tracking TODOs. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -62,7 +62,7 @@ [Define how the assistant should behave in this style...] -You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`). +You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`). [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory. ###
modified
--- a/output-styles.md +++ b/output-styles.md @@ -19,10 +19,11 @@ Output styles directly modify Claude Code’s system prompt. - * All output styles exclude instructions for efficient output (such as responding concisely). * Custom output styles exclude instructions for coding (such as verifying code with tests), unless `keep-coding-instructions` is true. * All output styles have their own custom instructions added to the end of the system prompt. * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. + +Token usage depends on the style. Adding instructions to the system prompt increases input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning styles produce longer responses than Default by design, which increases output tokens. For custom styles, output token usage depends on what your instructions tell Claude to produce. ##
modified
--- a/output-styles.md +++ b/output-styles.md @@ -32,12 +32,6 @@ Run `/config` and select **Output style** to pick a style from a menu. Your selection is saved to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). To set a style without the menu, edit the `outputStyle` field directly in a settings file: -Report incorrect code - -Copy - -Ask AI - { "outputStyle": "Explanatory" } @@ -51,12 +45,6 @@ Create a custom output style Custom output styles are Markdown files with frontmatter and the text that will be added to the system prompt: - -Report incorrect code - -Copy - -Ask AI --- name: My Custom Style
added
Show diff (123 lines)
--- a/output-styles.md +++ b/output-styles.md @@ -0,0 +1,120 @@ +Output styles allow you to use Claude Code as any type of agent while keeping its core capabilities, such as running local scripts, reading/writing files, and tracking TODOs. + +## + +​ + +Built-in output styles + +Claude Code’s **Default** output style is the existing system prompt, designed to help you complete software engineering tasks efficiently. There are two additional built-in output styles focused on teaching you the codebase and how Claude operates: + + * **Explanatory** : Provides educational “Insights” in between helping you complete software engineering tasks. Helps you understand implementation choices and codebase patterns. + * **Learning** : Collaborative, learn-by-doing mode where Claude will not only share “Insights” while coding, but also ask you to contribute small, strategic pieces of code yourself. Claude Code will add `TODO(human)` markers in your code for you to implement. + +## + +​ + +How output styles work + +Output styles directly modify Claude Code’s system prompt. + + * All output styles exclude instructions for efficient output (such as responding concisely). + * Custom output styles exclude instructions for coding (such as verifying code with tests), unless `keep-coding-instructions` is true. + * All output styles have their own custom instructions added to the end of the system prompt. + * All output styles trigger reminders for Claude to adhere to the output style instructions during the conversation. + +## + +​ + +Change your output style + +Run `/config` and select **Output style** to pick a style from a menu. Your selection is saved to `.claude/settings.local.json` at the [local project level](</docs/en/settings>). To set a style without the menu, edit the `outputStyle` field directly in a settings file: + +Report incorrect code + +Copy + +Ask AI + + { + "outputStyle": "Explanatory" + } + +Because the output style is set in the system prompt at session start, changes take effect the next time you start a new session. This keeps the system prompt stable throughout a conversation so prompt caching can reduce latency and cost. + +## + +​ + +Create a custom output style + +Custom output styles are Markdown files with frontmatter and the text that will be added to the system prompt: + +Report incorrect code + +Copy + +Ask AI + + --- + name: My Custom Style + description: + A brief description of what this style does, to be displayed to the user + --- + + # Custom Style Instructions + + You are an interactive CLI tool that helps users with software engineering + tasks. [Your custom instructions here...] + + ## Specific Behaviors + + [Define how the assistant should behave in this style...] + +You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`). + +### + +​ + +Frontmatter + +Output style files support frontmatter for specifying metadata: + +Frontmatter| Purpose| Default +---|---|--- +`name`| Name of the output style, if not the file name| Inherits from file name +`description`| Description of the output style, shown in the `/config` picker| None +`keep-coding-instructions`| Whether to keep the parts of Claude Code’s system prompt related to coding.| false + +## + +​ + +Comparisons to related features + +### + +​ + +Output Styles vs. CLAUDE.md vs. —append-system-prompt + +Output styles completely “turn off” the parts of Claude Code’s default system prompt specific to software engineering. Neither CLAUDE.md nor `--append-system-prompt` edit Claude Code’s default system prompt. CLAUDE.md adds the contents as a user message _following_ Claude Code’s default system prompt. `--append-system-prompt` appends the content to the system prompt. + +### + +​ + +Output Styles vs. [Agents](</docs/en/sub-agents>) + +Output styles directly affect the main agent loop and only affect the system prompt. Agents are invoked to handle specific tasks and can include additional settings like the model to use, the tools they have available, and some context about when to use the agent. + +### + +​ + +Output Styles vs. [Skills](</docs/en/skills>) + +Output styles modify how Claude responds (formatting, tone, structure) and are always active once selected. Skills are task-specific prompts that you invoke with `/skill-name` or that Claude loads automatically when relevant. Use output styles for consistent formatting preferences; use skills for reusable workflows and tasks.