By Priya Raman, NBT

A common worry about using an AI coding assistant every day: the code gets written, and you learn nothing. Six months later you're maintaining a codebase you didn't really write and can't fully explain.

Claude Code has a setting aimed at exactly that, and few people turn it on. Output styles change how Claude responds for a whole session. Two of the built-in styles, Explanatory and Learning, turn it from a code generator into something closer to a pair programmer who explains as they go, or hands you the keyboard for the interesting parts.

This guide is based on Anthropic's output styles page on code.claude.com, read on 6 December 2026.

What an output style is

The docs define it as "a set of instructions that sets Claude's role, tone, and response format for every response in a session." You set it once instead of repeating "please explain what you did" in every prompt.

Claude Code starts in Default, its standard software-engineering instructions. Four built-in styles keep those instructions and add their own:

Style What changes
Proactive Starts work right away and makes reasonable assumptions instead of asking about routine decisions
Concise Leads with the result; leaves out preamble, narration and recaps
Explanatory Adds short Insight blocks explaining the choices behind the code
Learning Explains its choices and leaves small pieces of code for you to write

Explanatory: the reasoning, next to the change

In the Explanatory style, Claude does the task the way it normally would and adds a block labelled Insight before or after the code, with two or three points about your codebase or the code it wrote. The docs' example, 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. ───────────────────────────────────────────────── 

Look at what those points are. They're not "I added a function". They're facts about your project's conventions, the kind of thing a senior colleague would tell you in a code review. The docs suggest this style when you're "getting to know a codebase or want the reasoning along with the change".

When I'd use it: your first weeks in a new repo, or any time you're working in a part of the stack you don't know well, such as the build config or the auth layer.

Learning: you write the part that matters

The Learning style goes further. Claude still handles routine implementation, but when it reaches a piece with a real design decision ("error handling, a data structure, or business logic with more than one valid approach", per the docs), it leaves a few lines for you.

It marks the spot with a TODO(human) comment in the file and sends a request with three parts. The docs' example:

● 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}. 

Then it stops and waits. You write the code at the TODO(human) marker and tell Claude you're done. It responds with an Insight about your code and continues the task.

This is a clever split. The boilerplate, the part nobody learns much from, is done for you. The decision, the part where understanding actually forms, is yours. The task still gets finished.

When I'd use it: learning a new language or framework on a real project, onboarding a junior developer, or deliberately keeping your own skills sharp on a codebase you'll own for years.

How to switch

Three ways, all of which save your choice to .claude/settings.local.json for that project:

/output-style learning 

Run /output-style with no argument to list the styles and see which is active. You can also pick from a menu with /config → Output style. In the VS Code extension, open the command menu with / and choose Output styles.

Because the choice is saved per project, you can run Learning in the side project where you're learning Rust and Concise at work, without switching back and forth.

Write your own style

If none of the built-ins fit, a custom style is a Markdown file with frontmatter. Save it in ~/.claude/output-styles/ for yourself or .claude/output-styles/ for a project. Here's one for code review practice:

--- name: Reviewer in training description: Ask me to spot problems before explaining them keep-coding-instructions: true --- After you change code, don't explain it straight away. First ask me one question about a risk in the change (an edge case, a failure mode, a security concern) and wait for my answer. Then explain what you saw. 

The key field is keep-coding-instructions: true. Set it when you're changing how Claude communicates but still want it coding the same way. Leave it out only if Claude won't be doing software engineering at all, such as a writing assistant style.

What output styles can't do

The docs are clear that a style is an instruction Claude follows, not a guarantee. They map each need to the right feature:

  • What Claude should know about your project → CLAUDE.md
  • Instructions for one kind of task, like a release checklist → a skill
  • Something that must happen every time, like formatting after each edit → a hook

So don't put "always run the formatter" in an output style. Put it in a hook. Use the style for how Claude talks to you.

A suggestion for teams

If you lead a team with newer developers, try this for a sprint: newer people use Learning on tickets in an area they're learning, everyone else uses Default or Concise. The code still ships on time, and the people who need to grow get the reps.

Disclosure: we make Ninja Builder, a desktop app that runs Claude Code. It has a similar setting, Settings › General › Chats › Response style, where you pick a length, a technical level (including ELI5) and a tone, plus options like Show reasoning and Step-by-step.

For how Claude Code compares with other tools as an AI coding assistant, including Codex and Copilot CLI, see our side-by-side comparison.