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. /hooks
한국어KOEnglishEN

Cmd. /hooks

Inspect configured Claude Code hooks and diagnose missing runs by separating event matching, handler failures, and unexpected results.

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

Key takeaways

  • A configured hook is not proof that its handler ran.
  • Separate event matching from handler errors before changing the configuration.
  • Use the hook implementation guide for configuration and return-value examples.

Purpose

Inspect hook configuration and events.

/hooks

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

/hooks

Diagnose a formatter that did not run

Consider a formatter configured for PostToolUse with an Edit|Write matcher. This is a diagnostic exercise, not a measured production incident.

ObservationEvidence to collectNext step
Configuration is missing from /hooksProject and settings scopeCheck that you opened the intended project
Configuration appears, but no run is recordedActual tool name in the sessionDistinguish a Bash file change from an Edit or Write call
Handler starts and failsExit code, stderr, working directoryReproduce the handler failure with sanitized input
Handler succeeds without changing the fileTarget file and expected formatting differenceCheck whether it processed another file or had nothing to change

Record the event, matcher, and command shown by /hooks. Then request one change to a disposable file and compare the actual tool call with those settings. Opening the menu alone is not an execution test.

Keep the CLI version, project, expected result, and actual result with the reproduction. Avoid broadening the matcher until the mismatch is understood. For configuration changes, continue to the hook implementation guide.

Effects and persistence

Shows configured hooks and their triggers. Editing a hook changes what runs when its event occurs.

From v2.1.299, UserPromptSubmit precedes skill/command expansion; a skill’s own hook begins with the following prompt. v2.1.300 validates updatedInput; v2.1.302 limits concurrent prompt/agent hooks of one event to 12.

Changelog.

Cautions

Inspect event, command, and scope together. A hook can execute whenever its configured event occurs. From v2.1.286, /hooks opens on one list of configured hooks grouped by event, so viewing a hook takes one Enter instead of three. From v2.1.292, <system-reminder> tags written in a hook's output are escaped before they reach Claude.

Official sources

  • Commands
  • Hooks
  • Changelog.Md

Complete command list · Verification scope

Related docs

Cmd. /hooks

Codex Command Master · Review lifecycle hooks and manage trust or disabled state.

Hooks

Claude Code Complete Guide · Use Claude Code hooks for predictable automation and repository guardrails.

Ch11. Schedules, State, Hooks

Enterprise Eve Agent Development · Connect Eve cron schedules, durable state, and stream-event hooks to automation, memory, and audit.

Cmd. /update-config

Use the Claude Code bundled skill to edit the appropriate settings.json from a requested permission, environment, or hook change.

Cmd. /add-dir

Add a working directory for file access in this session.

Cmd. /agents

On current versions, explain how to manage subagents.

Cmd. /ide

Shows the current session's IDE connection and integration target. File edits occur through subsequent requests and tool calls.

On this page

PurposeAvailabilityExamplesDiagnose a formatter that did not runEffects and persistenceCautionsOfficial sources