Checked against Anthropic’s own pages

Claude Cheat Codes: Real Commands, Features and Myths

There are no secret Claude codes. What exists is a documented set of Claude Code slash commands, keyboard shortcuts, Claude app features and prompt habits. This page lists the real ones with their caveats, lets you copy them, and says plainly which popular claims are myths.

Claude Code commands vary by version, plan and platform. Type / in Claude Code to see the list your own install offers.

Are there secret Claude codes?

No. Anthropic’s commands reference lists every command it documents. The few hidden ones are documented commands kept out of the menu on purpose, and they run when you type the full name.

Open the commands reference

How to see your own list

In Claude Code, type / at the start of a message. The menu shows the commands and skills available to you. Availability depends on platform, plan and environment, so your list can differ from this page. A command only runs when it starts your message.

Claude Code slash commands

Each row comes from Anthropic’s commands reference or the page named in the row. Click a command to copy it, or copy a whole section as a short list for your notes. Version numbers are Claude Code versions as Anthropic states them.

Context and sessions

Clear, shrink, check, rewind and branch a conversation.

Source: Claude Code: commands reference

  • Starts a new conversation with empty context. Project memory (CLAUDE.md) stays.

    Aliases: /reset, /new. An optional name labels the old chat in the /resume picker. Costs nothing.

  • Summarizes the conversation so far to free context. Optional focus text steers the summary.

    On a long session this is itself a large request, because it reads everything.

    Source
  • Shows current context usage as a colored grid with optimization suggestions.

    all expands the breakdown in fullscreen mode.

  • Sets how full the context window gets before auto-compact runs (for example /autocompact 500k).

    Needs v2.1.221 or later. Accepts 100K tokens or more.

    Source
  • Rolls code and/or conversation back to a checkpoint, or summarizes from a chosen message.

    Aliases: /checkpoint, /undo. Also Esc twice on an empty prompt. It does not track files changed only by Bash commands or by subagents: use git for those.

    Source
  • Resumes a conversation by ID or name, or opens the session picker.

    Alias: /continue.

  • Branches the current conversation to try another direction while keeping the original.

    The original stays reachable via /resume.

  • Copies the conversation into a new background session and keeps you working here.

    If agent view is turned off, it starts a forked subagent instead.

  • Renames the current session. Without a name it generates one.

    The name is capped at 200 characters (v2.1.221 or later).

  • Asks a side question without adding it to the conversation history.

    Single turn and no tools, per Anthropic’s power-user tips.

    Source
  • Generates a one-line summary of the current session on demand.

  • Exports the conversation as plain text to a file or a clipboard dialog.

  • Copies the last (or Nth-latest) assistant response and offers a picker for code blocks.

Memory and project setup

Give Claude project memory, folders, skills and tool access.

Source: Claude Code: commands reference

  • Generates a starter CLAUDE.md by analyzing the codebase. If one exists, it suggests improvements.

    CLAUDE_CODE_NEW_INIT=1 gives an interactive flow that also covers skills and hooks.

    Source
  • Edits CLAUDE.md files, toggles auto memory and shows auto memory entries.

    Auto memory is on by default in local sessions.

    Source
  • Adds a working directory for file access.

    Most .claude/ configuration in the added directory is not discovered.

  • Moves the session to a new working directory and keeps the conversation.

  • Lists available skills. Press t to sort by token count.

  • Prints a reminder to ask Claude to create or manage subagents (or edit .claude/agents/).

    Changed: on v2.1.197 and earlier it opened an interactive management UI.

  • Manages MCP server connections and OAuth. Supports reconnect, enable and disable.

  • Views hook configurations.

  • Opens Settings, or sets a value directly (for example /config model=sonnet).

    Alias: /settings.

  • Manages allow, ask and deny rules for tool permissions.

    Alias: /allowed-tools.

Model and effort

Choose the model, how hard it thinks and how its answers read.

Source: Claude Code: commands reference

  • Switches the model and saves it as the default for new sessions. With no argument it opens a picker (press s to switch for this session only).

    Documented aliases: default, best, fable, sonnet, opus, haiku, opusplan, sonnet[1m], opus[1m]. Which version an alias resolves to varies by provider.

    Source
  • Sets the effort level: low to xhigh, max, or auto. status prints the current one.

    max is session-only. Available levels vary by model (Opus 4.6 and Sonnet 4.6 have no xhigh). /effort ultracode toggles ultracode (the on and off arguments need v2.1.284 or later).

    Source
  • Toggles fast mode.

    Also Option+O (macOS) or Alt+O.

  • Enables the advisor tool, which consults a second model at key moments.

    The argument forms need v2.1.260 or later. fable needs Fable access.

  • Lists output styles or switches to one (for example /output-style concise).

    Needs v2.1.269 or later. Built in: Proactive, Concise, Explanatory and Learning, plus Default.

    Source

Plan, safety and review

Look before Claude edits, and check the result afterwards.

Source: Claude Code: commands reference

  • Enters plan mode from the prompt and can start a task right away.

    Same mode as cycling with Shift+Tab.

    Source
  • Toggles sandbox mode.

    Supported platforms only.

  • Shows changes in your working tree, including Claude’s edits so far.

  • Reviews the current diff (or a PR, branch or path) for correctness bugs. Flags: --fix, --comment, effort levels, and ultra for a cloud review.

    Alias: /review. It is a skill. ultra runs a multi-agent cloud review.

  • Analyzes the changes on the current branch for security vulnerabilities.

    Needs an origin remote.

  • Reviews changed code for reuse, simplification and efficiency, then applies fixes.

    A skill. It does not look for correctness bugs.

Usage and limits

See what you have used, what counts, and what to do at a limit.

Source: Claude Code: commands reference

  • Shows session cost, plan usage limits and activity stats. On paid plans it adds a breakdown of what counts against your limits.

    Aliases: /cost and /stats. The session cost figure is based on API tokens. Subscribers see plan usage bars instead.

    Source
  • Configures usage credits, or requests them from your admin, when you hit a limit.

    Previously /extra-usage. Not available with API key auth.

    Source
  • Shows ways to keep working when a claude.ai usage limit blocks a request: wait and auto-continue, add credits, or upgrade.

    Needs a claude.ai subscription. The wait options need v2.1.234 or later.

    Source
  • Opens Settings on the Status tab: version, model, account, connectivity.

    Works while Claude is responding.

  • Runs a setup checkup for install, settings, extension and CLAUDE.md problems and proposes fixes.

    Alias: /checkup. The prompt-audit subcommand needs v2.1.283 or later.

  • Generates an HTML report analyzing your recent sessions on this machine.

    Not available in cloud sessions. Costs tokens.

    Source

Background work and automation

Hand work to background agents, repeat it, or schedule it.

Source: Claude Code: commands reference

  • Splits a large change into 5 to 30 independent units. Each runs in a background subagent in its own worktree.

    A skill. Needs git or a WorktreeCreate hook.

  • Fans out web searches, cross-checks sources and writes a cited report.

    A bundled dynamic workflow.

  • Keeps Claude working across turns until a stated condition is met.

    clear, stop, off and cancel remove it.

  • Runs a prompt repeatedly while the session stays open.

    A skill. Alias: /proactive.

  • Creates, updates, lists or runs cloud scheduled tasks.

    Alias: /routines.

  • Detaches the session to run as a background agent and frees the terminal.

    Alias: /bg.

  • Views and manages background work in the current session.

    Alias: /bashes.

  • Makes the session available for Remote Control from claude.ai.

    Alias: /rc. Needs a claude.ai subscription.

  • Pulls a cloud session into this terminal.

    Alias: /tp. Needs a claude.ai subscription.

  • Launch and drive your app to see a change working, beyond passing tests.

    Both are skills.

Terminal, account and help

Setup, appearance, feedback and signing in.

Source: Claude Code: commands reference

  • Shows help and available commands.

  • Installs a Shift+Enter newline keybinding in VS Code, Cursor, Devin Desktop, Alacritty or Zed.

    In Apple Terminal it turns off the audible bell instead.

  • Toggles voice dictation.

    Dictation only: the spoken conversations of the Claude apps are a separate feature. Needs a Claude.ai account.

    Source
  • Configures the status line.

  • Opens your keyboard shortcuts file.

  • Changes the color theme (includes auto, colorblind-accessible and custom themes).

  • Sets the terminal UI renderer and relaunches into it.

    classic needs v2.1.327 or later.

  • Teaches Claude Code features through short interactive lessons.

  • Send feedback or a bug report with session context after a consent screen.

    /share is an alias of /bug. Before v2.1.212, /bug and /share were aliases of /feedback.

  • Sign in or out of your Anthropic account.

  • Exits the CLI.

    Alias: /quit. In an attached background session it detaches instead.

Claude Code keyboard shortcuts

On macOS, shortcuts that use Option or Alt, such as Alt+P, need Option set as Meta in your terminal. Option+T works without that.

Interrupt, rewind and exit

Source: Claude Code: interactive mode and shortcuts

  • Esc

    Interrupts Claude mid-turn. Work done so far is kept. Also closes a dialog.

    On a permission prompt, Esc declines the action.

  • Esc Esc

    With text in the prompt: clears it (the draft is saved and Up recalls it). With an empty prompt: opens the rewind menu.

    Behaves differently in vim mode (the menu opens from NORMAL mode).

  • Ctrl+C

    Interrupts a running operation. When idle, the first press clears the input and the second exits.

  • Ctrl+D

    Exits Claude Code (press twice within 800 ms).

    With text in the prompt it deletes the next character instead.

Modes, model and thinking

Source: Claude Code: interactive mode and shortcuts

  • Shift+Tab

    Cycles permission modes: default (labeled Manual), acceptEdits, plan, then auto and further modes where available.

    On Windows without VT input mode use Alt+M. At the plan approval prompt it approves the plan.

  • Option+P (macOS)orAlt+P

    Switches the model without clearing your prompt.

  • Option+T (macOS)orAlt+T

    Toggles extended thinking.

    No effect on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models, which always use extended thinking.

  • Option+O (macOS)orAlt+O

    Toggles fast mode.

View, edit and background

Source: Claude Code: interactive mode and shortcuts

  • Ctrl+O

    Toggles the transcript viewer (tool usage, timestamps, model per message).

  • Ctrl+R

    Reverse-searches your command history.

  • Ctrl+GorCtrl+X Ctrl+E

    Opens the prompt in your default text editor.

  • Ctrl+B

    Backgrounds running Bash commands and agents.

    Tmux users press it twice.

  • Ctrl+T

    Shows or hides Claude’s task checklist.

    Not the background-task view (that is /tasks).

  • Ctrl+S

    Stashes the prompt. Press again on an empty prompt to restore it.

  • Ctrl+L

    Redraws the screen without losing history.

  • Ctrl+VorCmd+V (iTerm2)orAlt+V (Windows, WSL)

    Pastes an image from the clipboard as an [Image #N] chip.

  • Ctrl+EnterorCtrl+X Ctrl+S

    Sends queued messages now.

    Needs v2.1.275 or later.

  • Ctrl+ACtrl+ECtrl+KCtrl+UCtrl+WCtrl+Y

    Readline-style line editing: start of line, end of line, delete to end, delete to start, delete back to whitespace, paste deleted text.

New lines and prefixes

Source: Claude Code: interactive mode and shortcuts

  • \thenEnter

    New line in the prompt. Works in all terminals.

  • Shift+Enter

    New line. Native in iTerm2, WezTerm, Ghostty, Kitty, Warp and Windows Terminal 1.25 or later.

    Other terminals: run /terminal-setup.

  • Option+Enter

    New line on macOS.

    Needs Option set as Meta.

  • Ctrl+J

    New line in any terminal, without configuration.

  • /

    At the start of a message: opens commands and skills.

    A command only runs when it starts your message.

  • !

    At the start of a message: shell mode. Runs a command directly and adds its output to the session.

  • @

    File path mention with autocomplete.

  • ?

    On empty input: toggles the shortcut help panel.

  • Space

    Hold or tap: voice dictation.

    Needs voice dictation enabled (/voice).

Renamed, changed or removed

Older guides still list these. Anthropic’s commands reference says:

  • /pr-commentsRemoved in v2.1.91. Ask Claude directly to view PR comments instead.
  • /vimRemoved in v2.1.92. Toggle Vim and Normal editing via /config, then Editor mode.
  • /ultraplanRemoved. Use plan mode instead.
  • /extra-usageNow /usage-credits.
  • /cost, /statsNow aliases of /usage.
  • /reviewNow an alias of /code-review.
  • /agentsNo longer an interactive UI after v2.1.197. It prints a reminder to ask Claude instead.
  • /design-login, /design-syncTied to the standalone Claude Design site at claude.ai/design, which the page says closes by December 14, 2026.
Source

Claude app features that work like shortcuts

These are settings and features rather than typed commands. Plans and platforms are quoted as the help pages state them. If a page does not say, this page does not either.

Memory, projects and context

Projects

What it does
A workspace with its own knowledge base and instructions. Claude uses the project knowledge in every chat in the project.
Plans and platforms, as documented
All users, including Free (Free can create up to five projects). Team and Enterprise can share projects. Web, Desktop and mobile.
Caveats
On paid plans, retrieval (RAG) mode turns on automatically when project knowledge nears the context limit. One help article suggests project instructions are paid-only, so check your own account.
Source 1Source 2

Project memory

What it does
Each project has its own memory. Inside a project Claude uses that memory plus your non-project account memory, not other projects’ memory.
Plans and platforms, as documented
Memory is on by default for Free, Pro, Max and Ultra on web, Desktop and mobile.
Caveats
Turn off “Use account memory” on the project page to separate the project fully.
Source

Memory

What it does
Claude saves memory as individual topics during chats. View, edit, pause or reset it under Settings > Your Claude.
Plans and platforms, as documented
On by default for Free, Pro, Max and Ultra (web, Desktop and the latest mobile app). Team and Enterprise owners control it.
Caveats
Reset permanently deletes all memories, including project memories. Sensitive topics are excluded by default. Deleting a chat does not delete memory entries made from it.
Source

Chat search (“Search and reference chats”)

What it does
Claude searches past chats and references them in new ones.
Plans and platforms, as documented
Paid plans only (Pro, Max, Ultra, Team, Enterprise). Web, Desktop and mobile.
Caveats
Searches do not cross project boundaries. Toggle it under Settings > Your Claude.
Source

Incognito chat

What it does
A chat that is not saved to history or memory and is never searched later. Open it with the ghost icon on a new chat outside a project.
Plans and platforms, as documented
Available to all users.
Caveats
Team and Enterprise incognito chats still appear in data exports and are retained for at least 30 days for safety.
Source

Memory off for one chat

What it does
Turn memory off for a single chat via the + menu before the first message. The setting locks once the chat starts.
Plans and platforms, as documented
Web, Desktop and the latest mobile app.
Caveats
Unlike incognito, the chat stays in history and is searchable.
Source

Memory import and export

What it does
Paste exported text from another AI service to create memory entries. Export your memory via Manage, or ask Claude to write it out.
Plans and platforms, as documented
Free, Pro, Max, Ultra, Team and Enterprise. Web and Claude Desktop.
Caveats
Import is labeled experimental and may not always work. Memory favors work topics.
Source

Instructions for Claude (profile)

What it does
Account-wide instructions applied to all conversations (Settings > Your Claude).
Plans and platforms, as documented
Plan availability is not stated on the page.
Caveats
Older layouts call it “Account” and “Instructions for Claude”.
Source

Create, research and connect

Skills in Claude

What it does
Packaged specialized knowledge and workflows, including tone and format changes. Built-in skills cover Excel, Word, PowerPoint and PDF.
Plans and platforms, as documented
Free, Pro, Max, Ultra, Team and Enterprise (Enterprise owners must enable it).
Caveats
Needs code execution (“Create and edit files”) switched on. Toggle under Customize > Skills.
Source

Create and edit files

What it does
Claude runs code in a private environment to make .xlsx, .pptx, .docx and PDF files, charts and scripts, and to process CSV data.
Plans and platforms, as documented
Free, Pro, Max, Ultra, Team and Enterprise. Web, Desktop and mobile. On by default on individual plans (Settings > Capabilities, labeled “Create and edit files”).
Caveats
30 MB per file for uploads and downloads. It uses more of your usage allowance than regular chat.
Source

Artifacts

What it does
Substantial standalone content (documents, slides, designs, code, small apps) that opens beside the chat. Editable, exportable and shareable.
Plans and platforms, as documented
Creating artifacts in chat works on Free, Pro, Max, Ultra, Team and Enterprise. The data template, connected apps and stored data need Pro or higher.
Caveats
Needs code execution or file creation enabled. Sheets, Whiteboards and Motion are beta. Legacy artifacts (before September 16, 2026) can no longer be newly created.
Source

Research

What it does
Runs multiple dependent searches (and connected tools) and produces an in-depth cited report. Turn it on via + then Research.
Plans and platforms, as documented
Paid plans (Pro, Max, Ultra, Team, Enterprise). Web, Desktop and mobile. Needs web search on.
Caveats
Runs on Claude Opus 5.5 (falls back to Opus 4.8) regardless of your chat model. It can use limits faster. On mobile it searches the web only, not connectors.
Source

Web search

What it does
Claude searches the web when helpful and cites sources. On the older layout: + then Web search.
Plans and platforms, as documented
Plan-by-plan availability is not itemized on the page. It notes that Free account limits include search and fetch. Team and Enterprise owners must enable it first.
Caveats
In the new Claude experience there is no toggle: Claude searches when it judges that helpful. It counts toward usage limits.
Source

Which one to use: search, thinking or research

What it does
Web search for lookups of 1 to 2 tool calls. Extended thinking for deep reasoning without new information. Research for 5 or more tool calls and about 1 to 3 minutes of work.
Plans and platforms, as documented
Not stated on the page.
Caveats
You can combine thinking with research.
Source

Connectors

What it does
Let Claude read and act in your apps (Gmail, Drive, Slack and others) with your permissions. Find the directory under + then Connectors, or Customize > Connectors.
Plans and platforms, as documented
Web connectors for all users on web, Desktop and mobile. Custom remote MCP connectors on Free, Pro, Max, Ultra, Team and Enterprise (Free is limited to one). Team and Enterprise owners must enable them first.
Caveats
The help center calls connectors token-intensive and suggests On demand mode with 10 or more connectors. Anthropic has not verified custom connectors.
Source 1Source 2

Voice mode

What it does
Spoken conversations. Switch between voice and text in one chat. Hands-free (default) or push-to-talk.
Plans and platforms, as documented
All plans. Claude Mobile, Desktop and web (beta).
Caveats
Non-English languages are beta. It counts toward usage limits. Claude Fable is not currently available in voice mode. Voice language is set separately from display language. Audio is not kept by default.
Source

Model, thinking and Claude Code behavior

Model, effort and thinking menu

What it does
The menu next to the send button sets the model, the effort (Low, Medium, High, Extra high, Max where offered) and thinking on or off. Changes apply from the next response.
Plans and platforms, as documented
Plans are not itemized. Enterprise admins may restrict it.
Caveats
Thinking cannot be turned off on Fable 5.2, Haiku 5.5, Sonnet 5.5, Opus 5.5, Fable 5.1 or Opus 5: lower the effort instead. Higher effort uses more tokens and reaches limits faster.
Source

Claude Code output styles

What it does
Built-in styles (Proactive, Concise, Explanatory, Learning) change role, tone and response format for a session.
Plans and platforms, as documented
Claude Code. /output-style needs v2.1.269 or later.
Caveats
A style is an instruction Claude follows, not a guarantee. Custom styles are Markdown files in .claude/output-styles.
Source

Claude Code permission modes

What it does
Manual (named default in settings), Accept edits, Plan, Auto and Don’t ask, plus one mode that skips permission prompts.
Plans and platforms, as documented
Auto is the default for interactive terminal and VS Code sessions from v2.1.283, on every plan and provider.
Caveats
The mode that skips prompts needs an isolated container or VM and cannot be switched into mid-session.
Source

Claude Code CLAUDE.md and auto memory

What it does
CLAUDE.md holds instructions you write. Auto memory holds notes Claude writes itself.
Plans and platforms, as documented
Auto memory is on by default in local sessions.
Caveats
Aim for under 200 lines per CLAUDE.md. The first 200 lines or 25 KB of the auto memory file MEMORY.md load at session start.
Source

Claude Code extended thinking, effort and ultrathink

What it does
An effort slider (/effort, or the arrows in /model). Toggle thinking with Option+T or Alt+T. The word ultrathink in a prompt requests deeper reasoning for that turn only.
Plans and platforms, as documented
Thinking cannot be turned off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models. Defaults: medium for Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, xhigh for Opus 4.7.
Caveats
ultrathink is documented in the terminal (v2.1.311 or later), VS Code and the desktop Code tab (v2.1.316 or later). CLAUDE_CODE_DISABLE_ULTRATHINK=1 turns it off.
Source 1Source 2

Prompt habits that work

These come from Anthropic’s own prompting guidance. The example prompts are ours: they apply one habit each, and they do not promise any result. Replace the [brackets] with your own details.

Say what you actually want

Be clear and direct, and test the prompt on a colleague

Why it works: The docs compare Claude to a brilliant new employee who lacks your context. If a colleague would be confused by your prompt, Claude will be too.

Example prompt

Write a [150]-word update about [feature] for [audience]. Tone: [plain and calm]. It must end with the one decision the reader has to make: [decision].
Source

Ask explicitly for extras

Why it works: Claude does what is asked. If you want more than the minimum, request it rather than expecting Claude to infer it.

Example prompt

Build a one-page overview of [topic]. Go beyond the basics: add a short glossary and three open questions a newcomer would ask.
Source

Give numbered steps when order matters

Why it works: Sequential lists or bullets help when the order or completeness of steps matters.

Example prompt

Do these steps in order:
1. Read the notes below.
2. List every decision that was made.
3. List every open question with its owner.
4. Write a three-line summary.

[Paste your notes here]
Source

Add context and the reason behind an instruction

Why it works: Claude can generalize from the explanation. The docs’ example: say the output is read aloud, so avoid ellipses.

Example prompt

Write the script for this voice message: [topic]. A text-to-speech tool will read it aloud, so avoid ellipses and abbreviations.
Source

Use direct action verbs when you want edits made

Why it works: “Can you suggest changes” may get suggestions only. “Change this function” gets the change.

Example prompt

Change this function so it returns an empty list when the input is empty, and make the edit directly: [paste function]
Source

Say “be ambitious” when you want the fuller version (Claude Code)

Why it works: Claude reads requests conservatively. This tells it about scope, which only you know.

Example prompt

Add a settings screen to [app]. Be ambitious: treat this as a complete feature, not a minimal patch.
Source

Batch related questions and front-load background (claude.ai)

Why it works: Fewer back-and-forth messages use less of your allowance.

Example prompt

Here is the full background: [background]. Please answer all three questions in one reply:
1. [question one]
2. [question two]
3. [question three]
Source

Give structure and examples

Show 3 to 5 examples, wrapped in example tags

Why it works: The docs call examples one of the most reliable ways to steer format, tone and structure. Make them relevant, diverse and structured.

Example prompt

Label each support message as billing, bug or question. Reply with the label only.

<examples>
<example>Message: I was charged twice. Label: billing</example>
<example>Message: The export button does nothing. Label: bug</example>
<example>Message: Can I use the app offline? Label: question</example>
</examples>

Message: [paste message]
Source

Structure with XML-style tags

Why it works: Separate tags reduce misinterpretation when a prompt mixes instructions, context, examples and inputs. Use consistent, descriptive names.

Example prompt

<instructions>Summarize the email in three bullet points.</instructions>
<context>I am the account manager. The customer is unhappy about a late delivery.</context>
<email>[paste email]</email>
Source

Give Claude a role

Why it works: A role in the system prompt focuses behavior and tone. Even one sentence helps.

Example prompt

You are a careful copy editor for a B2B software company. Edit the text below for clarity and keep my meaning.

[paste text]
Source

Say what to do, not what to avoid

Why it works: The docs’ example: ask for smoothly flowing prose instead of saying “do not use markdown”.

Example prompt

Write your answer as smoothly flowing prose paragraphs.
Source

Match your prompt’s style to the output you want

Why it works: Removing markdown from your prompt can reduce markdown in the answer.

Example prompt

I would like a short explanation of how a heat pump works, for a homeowner. Please answer in plain paragraphs, in the same plain style as this message.
Source

Work with long documents

Put long documents at the top, your question at the end

Why it works: For inputs of 20k+ tokens, putting the long data first and the query last improved quality by up to 30 percent in the docs’ tests.

Example prompt

<document>
[paste the long document]
</document>

Question: [your question about the document]
Source

Ask Claude to quote the relevant passages first

Why it works: Quoting first helps Claude focus on the relevant content and ignore the rest.

Example prompt

<document>
[paste the long document]
</document>

First, quote the passages that are relevant to my question inside <quotes> tags. Then answer the question.

Question: [your question]
Source

Reasoning and checking

Prefer a general nudge to think thoroughly over a hand-written step plan

Why it works: The docs say a general instruction often beats a prescribed step-by-step plan, because Claude’s reasoning often exceeds what a human would prescribe.

Example prompt

Think carefully about this before you answer.

Problem: [describe the problem]
Source

Ask for step-by-step reasoning when thinking is off

Why it works: The docs’ fallback: ask Claude to think before answering and put the final answer in answer tags, so you can extract it.

Example prompt

Think it through step by step first. Then put only the final answer inside <answer> tags.

Question: [your question]
Source

Ask Claude to self-check before finishing

Why it works: The docs say that appending a verify-against-criteria line catches errors reliably, especially in code and math. They name Claude Opus 5 as an exception that verifies on its own.

Example prompt

[your task]

Before you finish, check your answer against these criteria: [criteria]. Fix anything that fails.
Source

Draft, review and refine as separate steps

Why it works: A self-correction chain: generate, have Claude review against criteria, then refine. The docs describe separate API calls so you can inspect each stage.

Example prompt

Message 1: Draft [the document].
Message 2: Review your draft against these criteria: [criteria]. List what falls short.
Message 3: Rewrite the draft and fix every point from your review.
Source

Ask for a short summary of the work if you want visibility

Why it works: Newer models are less verbose and may skip summaries after tool use unless asked.

Example prompt

When you finish, give me a short summary of what you did and what you changed.
Source

Claude Code habits

Name the file, the symptom and what “fixed” looks like

Why it works: A specific prompt gives Claude information it cannot get from the repo and saves a correction round.

Example prompt

[Symptom in one sentence]. Look in [path/to/file]. Fixed means: [observable result].
Source

Give Claude a pass/fail check and ask for the evidence

Why it works: If Claude can run a test or build, it can close the loop itself. “All tests pass” alone tells you little, so ask for the command and its output.

Example prompt

Fix the failing test in [file]. Run [test command] and show me the command and its output once it passes.
Source

Have Claude interview you before building

Why it works: The docs suggest asking Claude to interview you until it could write the spec, saving it as SPEC.md, then starting a fresh session to build.

Example prompt

I want to build [idea]. Interview me until you could write the spec. Then save it as SPEC.md.
Source

Only write down what Claude cannot find in the repo

Why it works: The test for a CLAUDE.md line: could Claude find this by reading the code, and would it look? If both are yes, leave it out.

Example prompt

Review my CLAUDE.md. For each line, ask: could you find this by reading the code, and would you look? Propose removing every line where both answers are yes.
Source

Steer early: watch the first minute, Esc on drift, /clear after two failed corrections

Why it works: A third correction adds to a conversation that already contains two failed attempts. A fresh prompt with what you learned works better.

Example prompt

Start fresh. Goal: [goal]. What we learned: [what failed and why]. Constraint: [constraint].
Source

Myths vs facts

The popular claims below do not match what Anthropic documents. The right column says what the official pages state instead, and where.

Common Claude myths and what Anthropic’s documentation says
“There is a trick to reset the 5-hour limit early.”The five-hour window starts at your first message and fully resets five hours later. Weekly limits reset at a fixed time assigned to your account. The documented ways to get more: wait for the reset, upgrade (it applies immediately), or turn on usage credits (paid plans). Anthropic may adjust limits at its discretion.Source
“Switching to a cheaper model gets you past a session or weekly limit.”Session and weekly limits are a window shared across all models, so /model does not restore access. Only after a model-family message (“You’ve hit your Opus limit” or the Sonnet equivalent) does switching to a model outside that family keep you working.Source
“Secret codes or hidden commands unlock hidden modes.”The commands reference lists every command it documents. The only hidden ones are documented commands kept out of the menu by design (for example /heapdump and /setup-bedrock), which run when you type the full name. Availability varies by plan, platform and environment, which is why / shows different lists for different users.Source
“Typing ‘think hard’, ‘think harder’ or ‘think more’ makes Claude think deeper.”Claude Code recognizes ultrathink only. “think”, “think hard” and “think more” are passed through as ordinary prompt text. The real control is the effort level.Source 1Source 2
“ALL CAPS, IMPORTANT and MUST make Claude obey.”Current models follow plainly worded lines. Piling on emphasis mostly makes Claude over-apply the rule. For a rule that cannot bend, use a hook or a deny rule. The prompting guide also says to soften aggressive language such as “CRITICAL: You MUST” for Opus 4.5 and 4.6.Source 1Source 2
“Jailbreak prompts and developer-mode strings unlock restricted behavior.”The Usage Policy prohibits deliberately getting around product restrictions or guardrails, and names jailbreaking and prompt injection for harmful outputs. Anthropic says its Safeguards Team monitors and may warn, throttle, limit, suspend or terminate access. A block by a real-time safeguard alone does not mean a violation.Source
“Multiple accounts, shared logins or reselling access stretch your limits.”The Usage Policy prohibits creating or coordinating multiple accounts to evade detection or product guardrails, and reselling or proxying access (including routing requests through consumer subscriptions) by unauthorized means. The Consumer Terms prohibit sharing account login details and, apart from API keys or explicit permission, automated or non-human access. Neither text, as read, names usage-limit evasion specifically.Source 1Source 2
“A longer CLAUDE.md with more rules works better, and its rules are always followed.”Aim for under 200 lines per file: longer files use more context and reduce adherence. CLAUDE.md and auto memory are context, not enforced configuration. To block an action regardless of what Claude decides, use a PreToolUse hook. Describing file layout Claude can read itself is advice you can stop following.Source 1Source 2
“/cost shows what my subscription is spending.”The Session block in /usage shows API token usage and is intended for API users. Pro, Max and Ultra subscribers get usage bars and a breakdown instead. The dollar figure is a local list-price estimate.Source
“Max effort for everything is best.”Higher effort uses more tokens and reaches limits faster. Defaults suit everyday tasks and extend usage limits. Anthropic’s power-user tips say max uses up limits quickly, so enable it per session.Source 1Source 2
“One endless chat is cheapest and best.”Long conversations that trigger automatic context management use more of your limit. Start a new conversation when you near it. In Claude Code every request resends the whole conversation, so unrelated tasks keep costing tokens.Source 1Source 2
“Prefilling the start of Claude’s reply forces a format.”Prefilled responses on the last assistant turn are no longer supported on Claude 4.6 and later models via the API: the request returns a 400 error. This concerns the API only.Source

Claude limits basics

Anthropic’s help articles state no fixed message counts, so this page prints no numbers. These are the documented rules.

How limits work

  • Two kinds of limit

    On paid plans there are usage limits (how much you can use Claude over time) and length limits (how long one chat can get).

    Source
  • The five-hour session

    The session limit resets every five hours. The period starts when you send your first message and fully resets five hours later. Check “Current session” in Settings > Usage.

    Source
  • Weekly limits

    Weekly limits apply across all models. Some plans also have a separate weekly limit for Fable (Anthropic’s Claude Code article names Max and Ultra). Each account has a fixed weekly reset time, shown in Settings > Usage. It does not shift with when you started or subscribed.

    Source 1Source 2
  • Verified Ultra accounts

    They have no five-hour session limit. They still have a weekly limit.

    Source 1Source 2
  • One shared pool

    Claude on web, desktop and mobile and Claude Code in the terminal and IDEs draw from the same limits on Pro, Max and Ultra. Pro, Max and Ultra also cover Claude Code in VS Code, Cursor and JetBrains. If ANTHROPIC_API_KEY is set, Claude Code bills API usage instead of using the subscription.

    Source 1Source 2
  • What drives usage

    Conversation length and complexity, the features you use, the model, and the effort level. Anthropic’s best-practices article adds message length, attachment size, tools such as Research and web search, artifacts and multi-step tasks. Research can use limits faster than normal chat, and file creation uses more than regular chat.

    Source 1Source 2
  • Wrap-up allowance in Claude Code

    If you hit the five-hour limit mid-response, Claude Code may finish the current step. It counts toward the weekly limit, applies once per weekly period on Pro, can recur on Max, and verified Ultra accounts do not get it. It is rolling out gradually.

    Source
  • Length limits

    This is the context window. The newest models on paid plans support up to 1M tokens, others 500K or 200K. With code execution on, Claude summarizes earlier messages automatically near the limit, and longer conversations that trigger this use more of your usage limit.

    Source
  • Limits can change

    Anthropic may adjust limits at its discretion to manage capacity, for example with weekly or monthly caps or limits on specific models or features.

    Source

If you hit a limit: the documented options

  1. Wait for the reset.Source 1Source 2
  2. Upgrade. It applies immediately.Source 1Source 2
  3. Turn on usage credits to keep working at standard API rates (paid plans). In Claude Code that is /usage-credits.Source 1Source 2
  4. Claude Code v2.1.234 or later: automatic continue waits in the open session and continues after the reset. It stops after three automatic continuations. /rate-limit-options shows the choices.Source
  5. To stay inside your plan and avoid API-credit prompts in Claude Code: decline the prompts, or run claude logout and then claude login with plan credentials only.Source

Documented ways to use less

Documented ways to use less of your Claude allowance
Start a new conversationIf you are nearing your usage limit in a long chat, start fresh. In Claude Code run /clear between unrelated tasks.Source 1Source 2
Use ProjectsProject files are used via retrieval, so only relevant content loads into the context window. Uploaded project documents are cached, so reuse counts less against limits while the cache is active. Caches expire after inactivity, so the first message after a long break counts the content in full again.Source 1Source 2
Keep project instructions short and remove unused project filesPut general context in the instructions and task-specific text in the chat. Clean up files regularly.Source
Lower the effort or turn thinking offUse lower effort for routine tasks. Turn thinking off where a toggle exists. Where thinking is always on, lower the effort instead.Source
Turn off tools you do not needDisable connected apps when you do not need them, and ask Claude not to search the web when you do not need current information. The article calls tools and connectors token-intensive.Source
Choose the model on purposeAnthropic’s Claude Code docs say Sonnet handles most coding tasks at lower cost than Opus. Reserve Opus for complex architecture or multi-step reasoning. Subagents can use model: haiku. /model opusplan plans with Opus and executes with Sonnet.Source 1Source 2
Batch requests, front-load context, review before sendingGroup related tasks in one message. Send full text or code in one message.Source
Check consumptionSettings > Usage on claude.ai. In Claude Code, /usage shows a breakdown by skill, subagent, plugin and MCP server and flags patterns at 10% or more. The Pro and Max Claude Code article says /status, while the Claude Code docs say /usage for plan limits, and this page follows the Claude Code docs.Source 1Source 2
Keep CLAUDE.md lean and move specialist instructions to skillsStay under 200 lines. Skills load only when invoked.Source
Trim MCP overheadDisable unused servers via /mcp. CLI tools such as gh are more context-efficient than MCP servers. /context shows what is using space.Source
Use plan mode and specific promptsPlan before large changes (Shift+Tab). Vague prompts trigger broad scanning.Source
Mind idle time and the cacheThe subscription cache lasts about an hour, API-key sessions about five minutes. The first message after the cache expires reprocesses the full context. Loops, goal check-ins, subagents and idle sessions keep spending.Source 1Source 2

More on Claude limits

Sources

Every row above links to the page it comes from. These are all the pages used.

Left out on purpose

  • Numeric limits. Anthropic’s help articles state no message counts, hours or token counts per plan, so none are printed.
  • Styles in claude.ai. We found no current help center article for them, so they are not listed. Claude Code output styles are real and documented above.
  • The old # prefix to save a line to memory. The current memory page does not document it. It says to ask Claude to remember something or use /memory.
  • Per-model usage multipliers, for example Opus versus Sonnet in Claude Code. We found none in the articles.

How to verify: open a linked page and search for the command, setting or sentence. Anthropic can change these pages at any time, so the date at the top is the day we checked them.

Keep going

Practice it, then keep the habit

Monday letter