Skip to content

Claude How ToClaude How To

Claude Code Feature Catalog ​

Quick reference guide to all Claude Code features: commands, agents, skills, plugins, and hooks.

Navigation: Commands | Permission Modes | Subagents | Skills | Plugins | MCP Servers | Hooks | Memory | New Features


Summary ​

FeatureBuilt-inExamplesTotalReference
Slash Commands60+868+01-slash-commands/
Subagents691504-subagents/
Skills20 bundled62603-skills/
Plugins-3307-plugins/
MCP Servers-4405-mcp/
Hooks33 events114406-hooks/
Memory7 types31002-memory/
Total12644170

Slash Commands ​

Commands are user-invoked shortcuts that execute specific actions.

Built-in Commands ​

CommandDescriptionWhen to Use
/helpShow help informationGet started, learn commands
/btwEphemeral side question — doesn't pollute main contextQuick tangent questions
/chromeConfigure Chrome integrationBrowser automation
/clearClear conversation historyStart fresh, reduce context
/diffInteractive diff viewer. In the fullscreen TUI (v2.1.260+) it opens a diff panel beside the conversation that stays open and refreshes each time Claude edits a file or runs a command; the classic renderer opens the viewer in place of the prompt insteadReview changes
/configView/edit configurationCustomize behavior
/statusShow session statusCheck current state
/agentsRemoved: the wizard went in v2.1.198 and the command left the / menu and /help in v2.1.281 — ask Claude to create or manage subagents, or edit .claude/agents/Manage subagents by asking Claude
/skillsList available skillsSee auto-invoke capabilities
/hooksList configured hooksDebug automation
/insightsAnalyze session patternsSession optimization
/install-slack-appInstall Claude Slack appSlack integration
/keybindingsCustomize keyboard shortcutsKey customization
/mcpList MCP serversCheck external integrations
/memoryView loaded memory filesDebug context loading
/mobileGenerate mobile QR codeMobile access
/passesShare a free week of Claude Code with friends (eligible accounts only)Referrals
/pluginManage pluginsInstall/remove extensions
/planEnter planning modeComplex implementations
/proactiveAlias for /loop (v2.1.105)Same as /loop
/recapShow session recap when returning to a sessionAfter being away, get context on what was done
/rewindRewind to checkpointUndo changes, explore alternatives
/checkpointAlias for /rewindSame as /rewind
/costShortcut alias that opens the cost tab of /usage (v2.1.118+)Monitor spending
/contextShow context window usageManage conversation length
/exportExport conversationSave for reference
/usage-creditsConfigure extra usage limits (renamed from /extra-usage in v2.1.144; old name still works as alias)Rate limit management
/feedbackSubmit feedback or bug reportReport issues
/loginAuthenticate with AnthropicAccess features
/logoutSign outSwitch accounts
/sandboxToggle sandbox modeSafe command execution
/doctorRun diagnosticsTroubleshoot issues
/reload-pluginsReload installed plugins. Since v2.1.221 most installs activate immediately; only needed when the install summary says Run /reload-plugins to activate. Available in headless sessions since v2.1.260+, so it appears in the Claude Code Desktop and SDK command listsPlugin management
/reload-skillsRe-scan skill directories without restarting (v2.1.152); since v2.1.304 it sends Claude only new or changed skills, and compaction re-sends the skill list on its ownSkill management
/workflowsView running and completed dynamic workflow runs (v2.1.154)Multi-agent orchestration
/release-notesShow release notesCheck new features
/remote-controlEnable remote controlRemote access
/permissionsManage permissionsControl access
/auto-mode-setupDraft autoMode.environment entries from your project and recent sessions, review them, and save to your user settings. Pro/Max/Ultra/Team v2.1.228+ (v2.1.233+ on native Windows); Enterprise or Console API key v2.1.283+; on Bedrock, Vertex, Foundry and telemetry-off sessions v2.1.304+; not in cloud sessionsTeach auto mode about your environment
/renameRename current sessionOrganize sessions
/resumeResume previous sessionContinue work
/restartRestart Claude Code and resume this session, applying an installed update (alias /update). Pro/Max/Ultra plans, native install on macOS or Linux (not WSL), v2.1.288+After the footer says an update has installed
/tui [default|fullscreen]Set the terminal UI renderer (fullscreen = flicker-free alt-screen); bare /tui prints the active oneFlicker-free rendering in fullscreen/tmux
/tasksView background tasksMonitor async operations
/schedule [description]Create, update, list, or run cloud scheduled tasks (formerly routines) that run on Anthropic's cloud on a schedule, API call, or GitHub event. Alias: /routinesRecurring automation that runs without your machine
/copyCopy last response to clipboardShare output quickly
/teleport (alias /tp)Resume a Claude Code on the web session in this terminal; opens a picker. Requires a claude.ai subscriptionContinue work remotely
/desktopOpen Claude Desktop appSwitch to desktop interface
/themeChange color theme; v2.1.118 added custom named themes via ~/.claude/themes/<name>.json (plugins can ship a themes/ dir)Customize appearance
/usageCanonical command for usage/cost/stats — merged /cost and /stats into a single tabbed view (v2.1.118); as of v2.1.149 the cost view breaks spending down by category (skills, subagents, plugins, per-MCP-server). In the VSCode extension (v2.1.174), the /usage (Account & usage) dialog adds an attribution breakdown — cache misses, long-context cost, subagents, and per-skill / per-agent / per-plugin / per-MCP usage over 24h and 7d windows. Since v2.1.305 each /usage recommendation is a one-line fix and pressing f applies the ones it can (the same fixes appear in /doctor and the VS Code dialog)Monitor quota and costs
/focusToggle focus view (distraction-free output display)Reduce visual noise during long tasks
/forkCopy the conversation into a new independent background session (v2.1.212+)Explore alternatives in parallel
/subtaskSpawn a forked subagent that inherits the conversation and reports back (v2.1.212+)Delegate a side task without losing your place
/statsShortcut alias that opens the stats tab of /usage (v2.1.118+)Review session metrics
/statuslineConfigure status lineCustomize status display
/stickersCheck Claude Code sticker availabilityFun rewards
/fastToggle fast output mode; applies to Fable 5.2 (v2.1.321+), Opus 5.5 (the default since v2.1.280), Opus 5, and Opus 4.8 (Opus 4.8 fast mode is deprecated as of October 30, 2026 and will be removed on November 30, 2026; migrate to Opus 5.5)Speed up responses
/terminal-setupConfigure terminal integrationSetup terminal features
/undoAlias for /rewind (v2.1.108)Same as /rewind
/upgradeOpen the upgrade page to switch to a higher planPlan upgrades
/team-onboardingGenerate a teammate ramp-up guide from this project's Claude Code usageOnboarding new teammates (v2.1.101)
/code-review ultraRun a cloud multi-agent code review over your current changes. /ultrareview remains as an alias; /code-review ultra is the preferred invocation. Includes 3 free runs on Pro, Max, and Ultra, then requires usage creditsDeep pre-merge review across multiple agents (v2.1.112)
/fewer-permission-promptsScan transcripts and propose a prioritized allowlist for common read-only toolsReduce repeat permission prompts in a project (v2.1.112)
/skill-doctorShow which loaded skills go unused and what they cost in context. Opens in the /plugin manager's Stats tab; prints as text under -pPrune skills you no longer need (v2.1.252+)

Custom Commands (Examples) ​

CommandDescriptionWhen to UseScopeInstallation
/optimizeAnalyze code for optimizationPerformance improvementProjectcp 01-slash-commands/optimize.md .claude/commands/
/prPrepare pull requestBefore submitting PRsProjectcp 01-slash-commands/pr.md .claude/commands/
/generate-api-docsGenerate API documentationDocument APIsProjectcp 01-slash-commands/generate-api-docs.md .claude/commands/
/commitCreate git commit with contextCommit changesUsercp 01-slash-commands/commit.md .claude/commands/
/push-allStage, commit, and pushQuick deploymentUsercp 01-slash-commands/push-all.md .claude/commands/
/doc-refactorRestructure documentationImprove docsProjectcp 01-slash-commands/doc-refactor.md .claude/commands/
/setup-ci-cdSetup CI/CD pipelineNew projectsProjectcp 01-slash-commands/setup-ci-cd.md .claude/commands/
/unit-test-expandExpand test coverageImprove testingProjectcp 01-slash-commands/unit-test-expand.md .claude/commands/

Scope: User = personal workflows (~/.claude/commands/), Project = team-shared (.claude/commands/)

Reference: 01-slash-commands/ | Official Docs

Quick Install (All Custom Commands):

bash
cp 01-slash-commands/*.md .claude/commands/

Permission Modes ​

Claude Code supports 6 permission modes that control how tool use is authorized.

ModeDescriptionWhen to Use
manualPrompt for each tool callReviewing every action yourself (shown as Manual since v2.1.200; config value is still default, manual is an alias). Since v2.1.283, auto is the built-in starting mode for interactive terminal and VS Code sessions; claude -p and Agent SDK runs start in Manual since v2.1.302, so calls needing approval are denied unless something approves them
acceptEditsAuto-accept file edits, prompt for othersTrusted editing workflows
planResearch and propose a plan; no source edits until you approve itPlanning and exploration
autoAll actions, with background safety classifier checksLong tasks, reducing prompt fatigue
bypassPermissionsSkip permission prompts; deny rules and the actions no mode auto-approves (such as critical-path rm) still prompt or denyCI/CD, headless environments
dontAskSkip tools that would require permissionNon-interactive scripting

Note: auto mode requires an eligible plan, model, and provider — see 09-advanced-features/. Use bypassPermissions only in trusted, sandboxed environments.

Reference: Official Docs


Subagents ​

Specialized AI assistants with isolated contexts for specific tasks.

Nested spawning is on by default, depth 3 (v2.1.219): Subagents can spawn their own subagents up to three layers below the main conversation. Set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH to change the limit, or 1 to disable nesting. (History: v2.1.172–v2.1.216 nested by default up to 5 layers with no way to change it; v2.1.217 made nesting opt-in at depth 1; v2.1.219 set the default to 3.) See 04-subagents/README.md for the Agent(agent_type) syntax that restricts which subagents a given subagent may spawn.

Built-in Subagents ​

AgentDescriptionToolsModelWhen to Use
general-purposeMulti-step tasks, researchAll toolsInherits modelComplex research, multi-file tasks
PlanImplementation planningRead, Glob, Grep, BashInherits modelArchitecture design, planning
ExploreCodebase explorationRead, Glob, GrepInherits (capped at Opus)Quick searches, understanding code
claudeCatch-all for tasks that don't fit a more specialized agentAll toolsInherits modelTasks with no specialized agent; default agent for a dispatched background session
statusline-setupStatus line configurationBash, Read, WriteSonnetConfigure status line display
claude-code-guideHelp and documentationRead, Glob, GrepHaikuGetting help, learning features

Subagent Configuration Fields ​

FieldTypeDescription
namestringAgent identifier
descriptionstringWhat the agent does
modelstringModel override (sonnet, opus, haiku, fable, a full model ID, or inherit)
toolsarrayAllowed tools list
effortstringEffort level (low, medium, high, xhigh, max; depends on model)
initialPromptstringFirst user turn auto-submitted when the agent runs as the main session agent (--agent)
disallowedToolsarrayTools explicitly denied to this agent

Custom Subagents (Examples) ​

AgentDescriptionWhen to UseScopeInstallation
code-reviewerComprehensive code qualityCode review sessionsProjectcp 04-subagents/code-reviewer.md .claude/agents/
clean-code-reviewerClean Code principles reviewMaintainability reviewProjectcp 04-subagents/clean-code-reviewer.md .claude/agents/
test-engineerTest strategy & coverageTest planningProjectcp 04-subagents/test-engineer.md .claude/agents/
documentation-writerTechnical documentationAPI docs, guidesProjectcp 04-subagents/documentation-writer.md .claude/agents/
secure-reviewerSecurity-focused reviewSecurity auditsProjectcp 04-subagents/secure-reviewer.md .claude/agents/
implementation-agentFull feature implementationFeature developmentProjectcp 04-subagents/implementation-agent.md .claude/agents/
debuggerRoot cause analysisBug investigationUsercp 04-subagents/debugger.md .claude/agents/
data-scientistSQL queries, data analysisData tasksUsercp 04-subagents/data-scientist.md .claude/agents/
performance-optimizerProfiling & performance tuningBottleneck investigationProjectcp 04-subagents/performance-optimizer.md .claude/agents/

Scope: User = personal (~/.claude/agents/), Project = team-shared (.claude/agents/)

Reference: 04-subagents/ | Official Docs

Quick Install (All Custom Agents):

bash
cp 04-subagents/*.md .claude/agents/

Skills ​

Auto-invoked capabilities with instructions, scripts, and templates.

Example Skills ​

SkillDescriptionWhen Auto-InvokedScopeInstallation
code-review-specialistComprehensive code review"Review this code", "Check quality"Projectcp -r 03-skills/code-review-specialist .claude/skills/
brand-voiceBrand consistency checkerWriting marketing copyProjectcp -r 03-skills/brand-voice .claude/skills/
doc-generatorAPI documentation generator"Generate docs", "Document API"Projectcp -r 03-skills/doc-generator .claude/skills/
refactorSystematic code refactoring (Martin Fowler)"Refactor this", "Clean up code"Usercp -r 03-skills/refactor ~/.claude/skills/
claude-mdCreate or update CLAUDE.md files"Create CLAUDE.md", "Audit CLAUDE.md"Projectcp -r 03-skills/claude-md .claude/skills/
blog-draftDraft a blog post from ideas and resources"Write a blog post", "Draft an article"Usercp -r 03-skills/blog-draft ~/.claude/skills/

Scope: User = personal (~/.claude/skills/), Project = team-shared (.claude/skills/)

Skill Structure ​

~/.claude/skills/skill-name/
├── SKILL.md          # Skill definition & instructions
├── scripts/          # Helper scripts
└── templates/        # Output templates

Skill Frontmatter Fields ​

Skills support YAML frontmatter in SKILL.md for configuration:

FieldTypeDescription
namestringSkill display name
descriptionstringWhat the skill does
when_to_usestringTrigger phrases or example requests appended to description
effortstringEffort level (low, medium, high, xhigh, max; depends on model)
shellstringShell for inline !`command` blocks (bash default, or powershell)

Reference: 03-skills/ | Official Docs

Quick Install (All Skills):

bash
cp -r 03-skills/* ~/.claude/skills/

Bundled Skills ​

SkillDescriptionWhen Auto-Invoked
/artifact-capabilitiesLoad the reference for the runtime capabilities a published artifact can use (connectors, file downloads)Before building an artifact page that uses one
/artifact-diagramming (v2.1.221+)Load diagramming guidance for artifacts: when a diagram helps, what to draw, inline SVG legible in light and dark themesDrawing a diagram in an artifact
/batchSplit a large change into 5–30 independent units, each run by a background subagent in its own worktreeLarge parallel refactors
/claude-api [subcommand]Build apps with Claude API. Subcommands include migrate, api-version (update code to a newer API version such as 2026-10-21, v2.1.307+), managed-agents-secure (compare a Managed Agents agent's settings with Anthropic's security guide; needs the ant CLI, v2.1.304+) and latency-optimize (find where your Claude API code makes people wait and try faster settings against your eval, v2.1.319+)API development
/claude-in-chrome [task]Carry out a task in your browser (test a page, fill a form, read console logs) via Claude in Chrome. Available when Chrome integration is enabledBrowser tasks
/dataviz [request]Design guidance for charts, graphs, and dashboards: chart form, color by role, palette validation for colorblind safety and contrastBuilding a chart or dashboard
/debug [description]Turn on debug logging for the session and troubleshoot from the session debug logDebugging Claude Code itself
/design (v2.1.265+)Create a multi-artboard design canvas — UI mockups, screen flows, landing pages, posters — refined visually instead of in code. Pro/Max/Ultra/Team/EnterpriseDesigning a screen or page you would rather tweak by hand than in HTML
/design-sync [hint]Convert your repo's React design system and upload it to Claude Design so its designs use your real components. Anthropic API only. Standalone Claude Design (claude.ai/design) closes December 14, 2026.Syncing a design system to Claude Design
/design-loginAuthorize design-system access for /design-sync (signs in to the standalone claude.ai/design site, which closes by December 14, 2026)Before running /design-sync
/design consent, /design revokeGrant Claude access to Claude Design, or withdraw it. When Claude asks you to run /design consent, type it at the prompt yourselfGiving or removing Claude Design access
/doctor [prompt-audit [path]]Setup checkup that diagnoses installation, settings, extension, and CLAUDE.md problems and proposes fixes. Alias: /checkupTroubleshooting your setup
/fewer-permission-promptsScan transcripts and propose a prioritized allowlistReduce repeat permission prompts
/loopRun prompts on intervalRecurring tasks
/runLaunch this project's app to see a change runningVerifying a change in the real app
/run-skill-generatorTeach /run//verify how to handle a specific projectFirst-time project setup for /run
/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [pr#|branch|path]Review the current diff — or a PR, branch, or path — for correctness bugs. --fix applies findings, --comment posts them as inline PR comments. With no level given it reuses the last one you typed (v2.1.223). Lower effort levels moved to a background subagent in v2.1.218; high, xhigh, and max followed in v2.1.232, so review output no longer fills the conversationAfter writing code, before landing a PR
/slides [brief] (v2.1.265+)Make a new presentation as a Claude Slides artifact from your brief. Needs artifacts and the Slides templateCreating a slide deck
/simplify (distinct again since v2.1.154)Cleanup-only review (reuse / simplification / efficiency / altitude) that applies the fixes; does not hunt bugsTidying code without a bug hunt
/update-config [request]Describe a settings change (allow a command, set an env var, add a hook) and Claude edits the matching settings.jsonChanging settings without hand-editing JSON
/verifyBuild, run, and observe the app to confirm a fix worksValidating a fix end-to-end
/workflow-authoring (v2.1.248+)Load the reference for writing dynamic workflow scripts (script API, resume, quality patterns). Available when dynamic workflows are enabledWriting or editing a workflow script

Plugins ​

Bundled collections of commands, agents, MCP servers, and hooks.

Example Plugins ​

PluginDescriptionComponentsWhen to UseScopeInstallation
pr-reviewPR review workflow3 commands, 3 agents, GitHub MCPCode reviewsProjectclaude --plugin-dir ./07-plugins/pr-review
devops-automationDeployment & monitoring4 commands, 3 agents, 2 hooksDevOps tasksProjectclaude --plugin-dir ./07-plugins/devops-automation
documentationDoc generation suite4 commands, 3 agents, GitHub MCP, templatesDocumentationProjectclaude --plugin-dir ./07-plugins/documentation

Scope: Project = team-shared, User = personal workflows

Plugin Structure ​

text
my-plugin/
├── .claude-plugin/
│   └── plugin.json   # Manifest file (the only file in .claude-plugin/)
├── commands/         # Slash commands
├── agents/           # Subagents
├── skills/           # Skills (<name>/SKILL.md)
├── hooks/
│   └── hooks.json    # Hook configuration
├── .mcp.json         # MCP configurations
├── bin/              # Executables
└── scripts/          # Utility scripts

Reference: 07-plugins/ | Official Docs

Plugin Management Commands:

bash
/plugin list              # List installed plugins
/plugin install <name>    # Install plugin
/plugin uninstall <name>  # Uninstall plugin
claude plugin update <name>   # Update a plugin (CLI; the /plugin update slash form is referenced in prose but not in the command reference)

MCP Servers ​

Model Context Protocol servers for external tool and API access.

Common MCP Servers ​

ServerDescriptionWhen to UseScopeInstallation
GitHubPR management, issues, codeGitHub workflowsLocalclaude mcp add github -- npx -y @modelcontextprotocol/server-github
DatabaseSQL queries, data accessDatabase operationsLocalclaude mcp add db -- npx -y @modelcontextprotocol/server-postgres
FilesystemAdvanced file operationsComplex file tasksLocalclaude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem
SlackTeam communicationNotifications, updatesProjectConfigure in settings
Google DocsDocument accessDoc editing, reviewProjectConfigure in settings
AsanaProject managementTask trackingProjectConfigure in settings
StripePayment dataFinancial analysisProjectConfigure in settings
MemoryPersistent memoryCross-session recallUserConfigure in settings
Context7Library documentationUp-to-date docs lookupUserConfigure in settings (third-party server)

Scope: Local = default for claude mcp add with no --scope (only you, this project; ~/.claude.json), Project = team (.mcp.json, --scope project), User = personal (~/.claude.json, --scope user), Built-in = pre-installed

MCP Configuration Example ​

json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

Reference: 05-mcp/ | MCP Protocol Docs

Quick Install (GitHub MCP):

bash
export GITHUB_TOKEN="your_token" && claude mcp add github -- npx -y @modelcontextprotocol/server-github

Hooks ​

Event-driven automation that executes shell commands on Claude Code events.

Hook Events ​

EventDescriptionWhen TriggeredUse Cases
SessionStartSession begins/resumesSession initializationSetup tasks
SetupRepository setup or maintenance runOnly with --init-only, or --init/--maintenance with -pProvision tooling, install deps
InstructionsLoadedInstructions loadedCLAUDE.md or rules file loadedCustom instruction handling
UserPromptSubmitBefore prompt processing (and, since v2.1.299, before a skill or custom command expands)User sends messageInput validation
UserPromptExpansionA typed slash command (skill, custom command, or MCP prompt) expands into a promptAfter UserPromptSubmit, before the expanded prompt reaches ClaudeBlock direct /command use, add per-skill context, log commands
PreToolUseBefore tool executionBefore any tool runsValidation, logging
PermissionRequestPermission dialog shownBefore sensitive actionsCustom approval flows
PermissionDeniedUser denies a permission promptAfter permission declineLogging, analytics, policy enforcement
PostToolUseAfter tool succeedsAfter any tool completesFormatting, notifications
PostToolUseFailureTool execution failsAfter tool errorError handling, logging
PostToolBatchAfter a batch of tool uses completesEnd of a tool batchAggregate reporting, batched validation
NotificationNotification sentClaude sends notificationExternal alerts
MessageDisplayAssistant message text is displayedWhile the message rendersTransform or hide displayed text
SubagentStartSubagent spawnedSubagent task startsInitialize subagent context
SubagentStopSubagent finishesSubagent task completeChain actions
StopClaude finishes respondingResponse completeCleanup, reporting
StopFailureAPI error ends turnAPI error occursError recovery, logging
TeammateIdleTeammate agent idleAgent team coordinationDistribute work
TaskCompletedTask marked complete (only fires when the todo tools are enabled — see Hooks)Task donePost-task processing
TaskCreatedTask created via TaskCreate (only fires when the todo tools are enabled — see Hooks)New task createdTask tracking, logging
ConfigChangeConfiguration updatedSettings modifiedReact to config changes
CwdChangedWorking directory changesDirectory changedDirectory-specific setup
DirectoryAddedNew working directory registered mid-session/add-dir or SDK register_repo_rootSet up tooling for the new directory
FileChangedWatched file changesFile modifiedFile monitoring, rebuild
PreCompactBefore compact operationContext compressionState preservation
PostCompactAfter compaction completesCompaction donePost-compact actions
PreModelSwitchBefore a requested model switch is appliedModel switch requestedGate or veto model changes
PostModelSwitchAfter the session's model changesModel switch completedLog or react to model changes
WorktreeCreateWorktree being createdGit worktree createdSetup worktree environment
WorktreeRemoveWorktree being removedGit worktree removedCleanup worktree resources
ElicitationMCP server requests inputMCP elicitationInput validation
ElicitationResultUser responds to elicitationUser respondsResponse processing
SessionEndSession terminatesSession terminationCleanup, save state

Example Hooks ​

HookDescriptionEventScopeInstallation
pre-tool-check.shBlocks/warns on risky Bash commandsPreToolUse:BashUsercp 06-hooks/pre-tool-check.sh ~/.claude/hooks/
security-scan.shSecurity scanningPostToolUse:WriteProjectcp 06-hooks/security-scan.sh .claude/hooks/
format-code.shAuto-formattingPostToolUse:WriteUsercp 06-hooks/format-code.sh ~/.claude/hooks/
validate-prompt.shPrompt validationUserPromptSubmitProjectcp 06-hooks/validate-prompt.sh .claude/hooks/
context-tracker.pyToken usage trackingUserPromptSubmit, StopUsercp 06-hooks/context-tracker.py ~/.claude/hooks/
context-tracker-tiktoken.pyToken usage tracking (tiktoken, ~90-95% accuracy)UserPromptSubmit, StopUsercp 06-hooks/context-tracker-tiktoken.py ~/.claude/hooks/
pre-commit.shPre-commit validationPreToolUse:BashProjectcp 06-hooks/pre-commit.sh .claude/hooks/
log-bash.shCommand loggingPostToolUse:BashUsercp 06-hooks/log-bash.sh ~/.claude/hooks/
dependency-check.shVulnerability scan on manifest changesPostToolUse:WriteProjectcp 06-hooks/dependency-check.sh .claude/hooks/
notify-team.shTeam notifications on git pushPostToolUse:BashProjectcp 06-hooks/notify-team.sh .claude/hooks/
session-end.shCaptures progress when a session endsSessionEndUsercp 06-hooks/session-end.sh ~/.claude/hooks/

Scope: Project = team (.claude/settings.json), User = personal (~/.claude/settings.json)

Hook Configuration ​

json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          { "type": "command", "command": "~/.claude/hooks/pre-tool-check.sh" }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Write",
        "hooks": [
          { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
        ]
      }
    ]
  }
}

Reference: 06-hooks/ | Official Docs

Quick Install (All Hooks):

bash
mkdir -p ~/.claude/hooks && cp 06-hooks/*.sh ~/.claude/hooks/ && chmod +x ~/.claude/hooks/*.sh

Memory Files ​

Persistent context loaded automatically across sessions.

Memory Types ​

TypeLocationScopeWhen to Use
Managed PolicyOrg-managed policiesOrganizationEnforce org-wide standards
Project./CLAUDE.mdProject (team)Team standards, project context
Project Rules.claude/rules/Project (team)Modular project rules
User~/.claude/CLAUDE.mdUser (personal)Personal preferences
User Rules~/.claude/rules/User (personal)Modular personal rules
Local./CLAUDE.local.mdLocal (git-ignored)Machine-specific local overrides (gitignored). Documented at https://code.claude.com/docs/en/memory as a supported per-developer override file.
Auto MemoryAutomaticSessionAuto-captured insights and corrections

Scope: Organization = managed by admins, Project = shared with team via git, User = personal preferences, Local = not committed, Session = auto-managed

Reference: 02-memory/ | Official Docs

Quick Install:

bash
cp 02-memory/project-CLAUDE.md ./CLAUDE.md
cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md

New Features ​

FeatureDescriptionHow to Use
/focusToggle focus view for distraction-free output display (v2.1.110)Run /focus to reduce visual noise during long tasks
/proactiveAlias for /loop — same recurring-task behavior (v2.1.105)Use /proactive interchangeably with /loop
/recapShow a session recap when returning to an existing session (v2.1.108)Run /recap after being away to get context on what was done
/tuiSet the terminal UI renderer: /tui fullscreen for flicker-free rendering, /tui default to switch back; bare /tui prints the active renderer (v2.1.110)Use /tui fullscreen in fullscreen terminals or tmux
/undoAlias for /rewind (v2.1.108)Use /undo, /checkpoint, or /rewind interchangeably
Monitor ToolWatch a background command's stdout stream and react to events instead of polling (v2.1.98+)Use the Monitor tool via Advanced Features
Output StylesChange Claude's role, tone, and default response format via the system prompt. Built-ins: Default, Proactive, Explanatory, Learning, Concise/config → Output style, set outputStyle, or run /output-style (re-added in v2.1.269 after removal in v2.1.91). See Advanced Features
Status LineRender a custom status line from a command that receives session, model, cost, and context JSON on stdin/statusline or the statusLine setting. See Advanced Features
Community MarketplaceThird-party plugins that passed Anthropic's automated validation, each pinned to a commit SHA/plugin marketplace add anthropics/claude-plugins-community, then /plugin install <name>@claude-community
/team-onboardingAuto-generate a teammate ramp-up guide from the project's Claude Code setup (v2.1.101)Run /team-onboarding in your project
Remote ControlControl Claude Code sessions remotely via API. No longer a research preview — any machine running claude remote-control shows up as a device card in the Claude app's Code tab, so a session can be started on it from a phoneRun claude remote-control on the machine, then pick its device card in the Claude app. See Advanced Features
Web SessionsRun Claude Code in a cloud sessionStart one with claude --cloud "task" or at claude.ai/code
Desktop AppNative desktop application for Claude CodeUse /desktop or download from Anthropic website
Cross-Session MessagingSessions can message each other — including your other machines and cloud sessions — discovered via ListAgents (v2.1.224+ on macOS/Linux; native Windows v2.1.234+)See Advanced Features; control inbound with crossSessionInbound
Self-Hosted RunnerRun Claude Code web, mobile, and desktop sessions on your own machines or containers (v2.1.224+, Team/Enterprise)claude self-hosted-runner setup; see CLI
archive plugin sourceInstall a plugin from an HTTPS zip, optionally pinned by sha256 (v2.1.224+)See Plugins
command plugin sourceA locally installed tool prints the plugin directory path (v2.1.229+)See Plugins
Marketplace owner wildcards"owner/*" allows or blocks every marketplace repo under a GitHub owner — strictKnownMarketplaces and blockedMarketplaces only (v2.1.223+)See Plugins
Sandbox credential maskingSandboxed commands read a sentinel while the proxy substitutes the real secret on egress (v2.1.221+, Linux/WSL)See Advanced Features
Agent TeamsCoordinate multiple agents working on related tasksConfigure teammate agents that collaborate and share context
Task ListBackground task management and monitoringUse /tasks to view and manage background operations
Prompt SuggestionsContext-aware command suggestionsSuggestions appear automatically based on current context
Git WorktreesIsolated git worktrees for parallel developmentUse worktree commands for safe parallel branch work
SandboxingIsolated execution environments for safetyUse /sandbox to toggle; runs commands in restricted environments
MCP OAuthOAuth authentication for MCP serversConfigure OAuth credentials in MCP server settings for secure access
MCP Tool SearchSearch and discover MCP tools dynamicallyUse tool search to find available MCP tools across connected servers
Scheduled Tasks (session-scoped)Set up recurring tasks inside a session with /loop and cron tools; for cloud scheduled tasks (formerly routines) use /scheduleUse /loop 5m /command or CronCreate tool
Chrome IntegrationDrive your own Chrome/Edge (visible window, your logins) via the Claude in Chrome extensionUse --chrome flag or /chrome command
Keyboard CustomizationCustomize keybindings including chord supportUse /keybindings or edit ~/.claude/keybindings.json
Auto ModeFully autonomous operation with background safety classifier checksShift+Tab to cycle to it, or --permission-mode auto
ChannelsMulti-channel communication (Telegram, Slack, etc.) (Research Preview)Configure channel plugins; March 2026
Voice DictationVoice input for promptsUse microphone icon or voice keybinding
Agent Hook TypeHooks that spawn a subagent instead of running a shell commandSet "type": "agent" in hook configuration
Prompt Hook TypeHooks that send a prompt to a Claude model for single-turn evaluation; the model returns its decision as JSONSet "type": "prompt" in hook configuration
MCP ElicitationMCP servers can request user input during tool executionHandle via Elicitation and ElicitationResult hook events
Plugin LSP SupportLanguage Server Protocol integration via pluginsConfigure LSP servers in plugin.json for editor features
Managed Drop-insOrganization-managed drop-in configurations (v2.1.83)Admin-configured via managed policies; auto-applied to all users
claude plugin initScaffold a new plugin in .claude/skills; such plugins auto-load with no marketplace (v2.1.157)Run claude plugin init <name>
Auto Mode on third-party providersAvailable by default on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, and signed-in Claude apps gateway sessions, where the supported models are Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 (v2.1.293+), and the Fable models (opt-in required v2.1.158–v2.1.206; removed in v2.1.207 — CLAUDE_CODE_ENABLE_AUTO_MODE is still accepted but has no effect)Shift+Tab to cycle to it, or --permission-mode auto
Immediate Dialog Commands/permissions can be opened while Claude is working (rule changes apply to the rest of the turn), and the /add-dir, /autocompact, /theme, /help, /config, and /advisor dialogs open mid-turn in the fullscreen TUI instead of queuing until Claude finishes responding (/bug already did this since v2.1.232) (v2.1.234)Run one of these commands while Claude is working. See Slash Commands
CLAUDE_CODE_PROJECT_DIR_NAMEEnv var controlling per-project transcript directory naming (v2.1.234)Set in your shell/env before launching Claude Code; ignored unless CLAUDE_CONFIG_DIR is also set. See CLI
Goal Check-In ThresholdWhile a /goal is active, Claude checks in with a status update if a background task makes no progress for 30+ minutes, instead of continuing silently; tune with CLAUDE_CODE_GOAL_CHECKIN_MINUTES, or set to 0 to disable (v2.1.234)Set CLAUDE_CODE_GOAL_CHECKIN_MINUTES=<n> alongside an active /goal. See Slash Commands
Usage-Limit Auto-ContinueClaude Code auto-continues a session when a claude.ai usage limit resets, if it was blocked on that limit (v2.1.234)On by default; turn it off in /config → "Continue automatically at usage limit". See Advanced Features
spellcheck settingUnderlines misspelled words in the prompt input using whichever of aspell, hunspell, or ispell is on your PATH; off by default (v2.1.235)Install a checker, then set "spellcheck": { "enabled": true } in ~/.claude/settings.json. User, --settings, and managed settings only — ignored in project settings. See Advanced Features
Agent Teams Default ModelThe "Default teammate model" /config setting was removed; teammates now inherit the team lead's model by default unless the spawn call specifies one explicitly (v2.1.234)See Subagents — Agent Teams
/designDesign canvas — a multi-artboard visual design (UI mockups, screen flows, landing pages, posters) built on artifacts and refined visually rather than in code. Requires v2.1.265+; Pro/Max/Ultra/Team/EnterpriseRun /design in the CLI or the Desktop app. See Slash Commands
notify_when_idleCross-session SendMessage input that asks another session on the same machine to send one notice when it next goes idle — opt-in, one-shot, no polling (v2.1.236). Related: ListAgents reports the session's own name and lists live teammates, and Windows gained cross-session messaging (v2.1.239)Pass notify_when_idle to SendMessage. See Advanced Features
Plugin manifest fieldsplugin.json accepts workflows, channels, dependencies (semver), outputStyles, keywords, metadata, lspServers, and experimental.themes / experimental.monitors. CLI gained claude plugin new, remove/rm, prune/autoremove, and the flags --with, -f/--force, --available, --push, --dry-runSee Plugins
Restricted ModeRemoves the built-in tools that run commands or code (such as Bash and PowerShell) and WebFetch unless --tools names them individually (not via the default preset); ignores user, project, and local settings (managed settings and --settings still apply); confines file tools to the working directories; refuses bypassPermissions; and refuses to create cloud sessions (v2.1.248+)claude --restricted, or CLAUDE_CODE_RESTRICTED=1. See CLI
/advisor text form/advisor, /advisor <model>, and /advisor off work as text commands in the desktop app, Remote Control, and other headless (-p / Agent SDK) sessions, not just as a dialog (v2.1.260+)Type /advisor off in a headless session. See Slash Commands

Quick Reference Matrix ​

Feature Selection Guide ​

NeedRecommended FeatureWhy
Quick shortcutSlash CommandManual, immediate
Persistent contextMemoryAuto-loaded
Complex automationSkillAuto-invoked
Specialized taskSubagentIsolated context
External dataMCP ServerReal-time access
Event automationHookEvent-triggered
Complete solutionPluginAll-in-one bundle

Installation Priority ​

PriorityFeatureCommand
1. EssentialMemorycp 02-memory/project-CLAUDE.md ./CLAUDE.md
2. Daily UseSlash Commandscp 01-slash-commands/*.md .claude/commands/
3. QualitySubagentscp 04-subagents/*.md .claude/agents/
4. AutomationHookscp 06-hooks/*.sh ~/.claude/hooks/ && chmod +x ~/.claude/hooks/*.sh
5. ExternalMCPclaude mcp add github -- npx -y @modelcontextprotocol/server-github
6. AdvancedSkillscp -r 03-skills/* ~/.claude/skills/
7. CompletePluginsclaude --plugin-dir ./07-plugins/pr-review

Complete One-Command Installation ​

Install all examples from this repository:

bash
# Create directories
mkdir -p .claude/{commands,agents,skills} ~/.claude/{hooks,skills}

# Install all features
cp 01-slash-commands/*.md .claude/commands/ && \
cp 02-memory/project-CLAUDE.md ./CLAUDE.md && \
cp -r 03-skills/* ~/.claude/skills/ && \
cp 04-subagents/*.md .claude/agents/ && \
cp 06-hooks/*.sh ~/.claude/hooks/ && \
chmod +x ~/.claude/hooks/*.sh

Additional Resources ​


Last Updated: November 14, 2026 Claude Code Version: 2.1.325 Sources: