Skip to main content
reopt Handbook
reopt Handbook
Claude Code Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Flags

Task guides

Core command basicsStarting and resuming workSkills and Custom CommandsAutomation and Web CommandsOperations and Safety CommandsCustom commands and skillsMCP connections and commands

Conversation and context

Cmd. /add-dirCmd. /backgroundCmd. /compactCmd. /contextCmd. /copyCmd. /exportCmd. /forkCmd. /importCmd. /initCmd. /memoryCmd. /recapCmd. /renameCmd. /resumeCmd. /rewindCmd. claude purge

Planning and execution

Cmd. /autofix-prCmd. /batchCmd. /desktopCmd. /goalCmd. /loopCmd. /planCmd. /remote-envCmd. /scheduleCmd. /tasksCmd. /teleportCmd. /workflows

Review and verification

Cmd. /code-reviewCmd. /runCmd. /run-skill-generatorCmd. /security-reviewCmd. /simplifyCmd. /verify

Models and settings

Cmd. /claude-apiCmd. /configCmd. /effortCmd. /fastCmd. /modelCmd. /output-styleCmd. /update-config

Permissions and integrations

Cmd. /agentsCmd. /hooksCmd. /ideCmd. /mcpCmd. /permissionsCmd. /pluginCmd. /reload-pluginsCmd. /reload-skillsCmd. /sandboxCmd. /skillsCmd. /web-setup

Status and diagnostics

Cmd. /debugCmd. /diffCmd. /doctorCmd. /fewer-permission-promptsCmd. /release-notesCmd. /team-onboarding

Display and input

Cmd. /colorCmd. /focusCmd. /keybindingsCmd. /powerupCmd. /statuslineCmd. /terminal-setupCmd. /themeCmd. /tui

Account and usage

Cmd. /upgradeCmd. /usageCmd. /usage-credits

Legacy

Cmd. /costCmd. /pr-commentsCmd. /reviewCmd. /statsCmd. /ultrareviewCmd. /vimCmd. /approved-toolsCmd. /commandsCmd. /extra-usageCmd. /settingsCmd. /tagCmd. /todos

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Claude Code Command Master›Cmd. /compact
한국어KOEnglishEN

Cmd. /compact

Summarize the current conversation to free context.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • Summarize the current conversation to free context.
  • Check the input surface and availability before using the examples below.

Purpose

Summarize the current conversation to free context.

/compact [instructions]

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-10-23 · Claude Code 2.1.308

The installed command menu and account or organization settings determine availability.

Examples

/compact Preserve the migration decisions and failing test names

Effects and persistence

Replaces older conversation context with a summary. Identify decisions and constraints that must survive before compacting.

Cautions

Preserve essential decisions and constraints explicitly; a summary may omit details from earlier turns.

Official sources

  • Commands
  • Context Window#What Survives Compaction
  • Changelog.Md

Complete command list · Verification scope

Related docs

Cmd. /release-notes

Displays selected release notes in the transcript without adding them to model conversation context.

Cmd. /export

Copy or save the current conversation as plain text.

Context Management

Claude Code Complete Guide · Keep Claude Code sessions accurate through memory, compaction, and concise handoffs.

Complete command list

Codex Command Master · Every Codex CLI slash command on one page: syntax, kind, and availability for all 57 official rows, plus examples, effects, and cautions by category.

Context Management: The New Core Skill

Developer Unlearning · Decide what AI needs to know, what to omit, and when to reset context.

Cmd. /background

Detach the current session as a background agent (/bg).

Cmd. /context

Visualize context usage and heavy contributors.

On this page

PurposeAvailabilityExamplesEffects and persistenceCautionsOfficial sources