After using Claude Code for a while, many people run into a small annoyance: it can do the work, but its replies are too long.
You ask it to fix one test. It explains the test framework, restates the task, writes a “I will” paragraph, and only then says which file changed. The code may be fine, but the reading cost is high. In long sessions, verbose output also fills context and makes later work slower and more expensive.
Do not rely only on “be concise.” A steadier approach is layered control: use short prompts for the current task, put long-term style preferences in CLAUDE.md, use output styles for global tone, and use custom slash commands for fixed tasks such as review or test fixing.
The goal is to make Claude Code output feel like an engineering report: result first, little setup, no task restatement, and only necessary files, commands, risks, and next steps.
Quick Answer: Four Layers
| Layer | Best for | Method |
|---|---|---|
| Temporary prompt | Current turn is too verbose | Ask for result, files, validation, risks only |
CLAUDE.md |
Project-level preference | Write concise report rules and fixed format |
| Output style | Global tone and format | Define an output style |
| Custom slash command | Review, test fixing, commit summary | Save short output templates as commands |
Recommended order:
- Use a temporary prompt first.
- Move stable rules into
CLAUDE.md. - Use an output style if every project should share the style.
- Use slash commands for repeated tasks.
Quick Fix for the Current Session
Send:
|
|
For code changes:
|
|
For debugging:
|
|
This works immediately, but only for the current session. Stable preferences belong in project rules.
Put It in CLAUDE.md
Add:
|
|
For Chinese projects:
|
|
Keep CLAUDE.md short. If it becomes huge, it adds context burden. For compressing prompts and rules, see: /en/2026/07/10/ai-coding-prompt-compression-guide/.
Use Output Style
Claude Code output styles change response style: role, tone, and format. They do not teach project facts.
A concise engineering style:
|
|
Chinese version:
|
|
Put project paths, test commands, and forbidden files in CLAUDE.md, not output style.
Configure With /config
In Claude Code, use:
|
|
Then look for output style settings.
If your version supports direct key-value settings, it may support a form like:
|
|
Key names may change between versions. The safest path is to open /config and confirm the available field.
Use Custom Slash Commands
For fixed tasks, create commands such as:
|
|
Content:
|
|
Then run:
|
|
You can also create:
|
|
Recommended Output After Code Changes
Use:
|
|
Shorter:
|
|
If no validation was run:
|
|
Reduce Verbosity in Code Review
Use:
|
|
If Codex handles independent review, Claude Code can implement and Codex can review. Tool division: /en/2026/07/10/cursor-codex-claude-code-workflow-division/.
Reduce Verbosity When Fixing Tests
Use:
|
|
If token usage spikes, control log output too. See: /en/2026/07/08/claude-code-token-usage-spike-troubleshooting-faq/.
Do Not Make Everything Ultra Short
Short output is good for:
- bug fixes;
- failing tests;
- commit summaries;
- code review;
- simple command explanations;
- implementation tasks with clear scope.
Do not over-compress:
- onboarding;
- architecture tradeoffs;
- complex incident review;
- security risk analysis;
- database migration plans;
- unclear requirements.
Execution phase should be short. Design phase can be slightly longer.
Difference From caveman
The site has covered caveman, which compresses outputs from Claude Code, Codex, and other Agents: /en/2026/07/03/caveman-agent-output-compression-guide/.
This article is the manual foundation:
- temporary prompt for the current turn;
CLAUDE.mdfor project preference;- output style for global expression;
- slash commands for fixed tasks.
Use these first; if output is still too long, consider a dedicated compression tool.
Common Mistakes
Only Saying “Be Concise”
Too vague. Say:
|
|
Repeating Style Rules in Every Prompt
Move stable rules to CLAUDE.md or output style.
Putting Project Facts in Output Style
Output style controls tone and format. Project facts belong in CLAUDE.md.
Compressing Away Safety
Do not remove warnings about destructive commands, databases, permissions, production config, or file deletion.
Making It Never Explain
Better:
|
|
Copy-Paste Config
Add to CLAUDE.md:
|
|
Temporary short prompt:
|
|
Summary
When Claude Code is too verbose, do not switch tools immediately and do not force every answer to be tiny. Use layered control: temporary prompts for the current session, CLAUDE.md for project preference, output style for global expression, and slash commands for repeated tasks.
The best setting is not “as short as possible.” It is the right length at the right time: implementation and test reports should be short; architecture and risk discussions can expand.