#17: Output Styles šØ
Today we'll look at output styles, a way to change how Claude Code talks to us for a whole session without repeating ourselves in every prompt.
An output style is a set of instructions that sets Claude's role, tone, and response format. There are four built-in ones besides the default, and we can write our own. Let's take a look.
The Built-In Styles
Claude Code starts in Default. Each of the other four keeps the default instructions and adds its own:
- Proactive starts working right away and makes reasonable assumptions about routine decisions instead of asking.
- Concise leads with the result and skips the preamble, narration, and recap.
- Explanatory adds short
Insightblocks explaining the choices behind the code. - Learning explains its choices too, and leaves small pieces of code for us to write.
Proactive doesn't change our permission mode, so permission prompts show up the same as before. It's still told to check with us before deleting data or touching production.
Switching Styles
The quickest way is the command:
/output-style concise
/output-styleWith no argument it lists what's available and marks the current one. We can also pick from /config under Output style. Both save our choice to .claude/settings.local.json, and the new style kicks in with our next message.
Setting A Default
To make a style stick across projects, we set outputStyle in our user settings:
{
"outputStyle": "Explanatory"
}The value is case-sensitive here. explanatory doesn't match anything, so we'd quietly get Default instead. (The /output-style command ignores case, so it's only the settings file that's picky.)
The Learning Style
This one's fun for picking up a new codebase. Claude handles the routine work, and when it hits a real design decision, it leaves a TODO(human) comment in the file and asks us to fill it in:
ā Learn by Doing
Context: validateFile() handles images but not documents yet.
Your Task: In upload.js, implement the "document" case.
Look for TODO(human).Claude waits until we tell it we're done, then responds with an Insight about our code and carries on. Neat!
Writing Our Own
A custom style is a Markdown file in ~/.claude/output-styles/ or the project's .claude/output-styles/:
---
name: Diagrams first
description: Lead every explanation with a diagram
keep-coding-instructions: true
---
When explaining code or data flow, start with a
Mermaid diagram, then explain in prose.The file name becomes the style name unless we set name. The important field is keep-coding-instructions. Without it, a custom style drops Claude Code's built-in software engineering instructions, which makes sense for something like a writing assistant, but not for a coding style.
Watch Out
Claude Code reads style files when it starts, so a style we create or edit mid-session needs a restart before it shows up.
Output styles are instructions, so nothing forces them. For something that has to happen every single time, a hook is the better tool. For what Claude should know about our project, that's still CLAUDE.md. They also only apply to the main conversation (and forks of it). Regular subagents run their own system prompt.
More info about output styles can be found at the Claude Code docs.