HomeClaude Code Guide
AI TOOLING GUIDE

Claude Code Explained — Every Feature, Every Use Case

By EcrioniX · Updated July 2026

Claude Code has grown from a simple terminal chatbot into a full agentic development environment — slash commands, permission modes, MCP integrations, recurring automation, subagents, hooks, and persistent memory. This guide explains every major feature, what it's actually for, and when engineers reach for it.

What Is Claude Code?

Claude Code is Anthropic's official agentic coding tool. Unlike a typical chat assistant, it can directly read, write, and edit files, run shell commands, search the web, and orchestrate multi-step engineering tasks — all inside your actual project, under permission controls you configure. It runs as a CLI in the terminal, as IDE extensions (VS Code, JetBrains), as a desktop app, and as a web app.

The feature set below is organized the way engineers actually encounter it: commands you type, modes that control autonomy, integrations that extend its reach, and background systems (memory, hooks) that make it behave consistently across sessions.

Claude Code agentic core Slash Commands Permission Modes MCP Servers Hooks Subagents /loop Automation Memory & CLAUDE.md

Slash Commands — The Command Palette

Slash commands are typed directly into the prompt and trigger a specific action instead of a normal conversational turn. Here are the ones engineers use daily:

CommandWhat it doesUse case
/modelSwitch the active model (Opus, Sonnet, Haiku, etc.)Drop to a faster/cheaper model for simple tasks, or up to a stronger one for hard problems
/agentsCreate, edit, or list custom subagentsDefine a project-specific reviewer or specialist agent
/clearWipe the conversation and start freshStarting an unrelated task without old context interfering
/compactSummarize and shrink the current contextLong sessions approaching the context limit
/permissionsView and edit tool permission rulesAllow/deny specific Bash commands or file paths
/hooksManage lifecycle hooksReload hook config after editing settings.json
/mcpManage connected MCP serversAdd, remove, or inspect external tool integrations
/memoryView or edit persistent memory filesCorrect something Claude remembered incorrectly
/initGenerate a starter CLAUDE.md for the repoBootstrapping project instructions on a new codebase
/reviewReview a GitHub pull requestAutomated PR review before merging
/resumeResume a previous sessionPicking up work from yesterday without re-explaining context
/rewindRoll back files to a prior checkpointUndo a bad edit without manual git surgery
/costShow token usage and cost for the sessionMonitoring spend on long agentic runs
/configQuick access to common settings (theme, model, etc.)Fast tweaks without hand-editing settings.json
/vimToggle vim keybindings in the input boxVim users who want modal editing in the prompt
/doctorDiagnose installation/environment issuesDebugging a broken or misconfigured install
/pr-commentsFetch review comments from a GitHub PRAddressing reviewer feedback without leaving the terminal
/security-reviewRun a security-focused review of pending changesCatching injection, auth, or secrets issues before merging
/bugReport a bug directly to AnthropicFlagging a Claude Code issue with session context attached
/add-dirGrant access to an additional directoryWorking across a monorepo or a linked sibling project
/exportExport the current conversation transcriptSharing a session or archiving a completed task
/statusShow account, model, and connection statusQuick health check of the current session
/output-styleChange how responses are formattedSwitching to a terser or more explanatory style
/statuslineConfigure the custom status lineShowing git branch, cost, or custom info in the prompt bar
/terminal-setupConfigure terminal key bindings (e.g. Shift+Enter)Fixing newline/submit behavior in certain terminals
/ideConnect to a running IDE instanceGetting diagnostics and open-file context from VS Code/JetBrains
/login / /logoutSwitch or sign out of an accountSwapping between personal and team/enterprise accounts
/upgradeUpgrade your planMoving from a free/lower tier to unlock higher usage limits
Custom commandsProject- or user-defined slash commands (Markdown files)Standardizing a recurring workflow, e.g. /deploy-staging

Custom slash commands are just Markdown files with optional frontmatter, stored in .claude/commands/ (project) or ~/.claude/commands/ (personal) — any team can define its own without writing code.

Permission Modes — Controlling Autonomy

Every action Claude Code takes — editing a file, running a command, pushing to git — is filtered through a permission mode. This is the single most important safety lever in the tool.

🔒
DefaultPrompts before anything risky or irreversible. Safest starting point for any new project.
📋
Plan ModeFully read-only. Claude researches and proposes a plan; nothing changes until you approve it.
Accept EditsAuto-approves file edits, but still asks before shell commands and destructive git ops.
Bypass PermissionsZero prompts, full autonomy. Only for trusted, sandboxed, or CI environments — never on production credentials.

A project's CLAUDE.md file can pre-authorize specific categories of actions (e.g. "always commit and push without asking"), which is how teams run Claude Code close to fully autonomously on a given repo while still keeping a written record of what was pre-approved.

MCP — Model Context Protocol

MCP is an open standard that lets Claude Code talk to external tools and data sources through one consistent interface, instead of Anthropic building a custom integration for every possible service.

Shell — adding an MCP server
claude mcp add github --url https://mcp.github.com
claude mcp add postgres --command "npx @modelcontextprotocol/server-postgres"
claude mcp list

Common MCP servers connect Claude Code to:

Because MCP is an open protocol, any team can write a server for their own internal systems and Claude Code will use it the same way it uses an official one.

/loop — Recurring Automation

/loop repeats a prompt or slash command on an interval — either a fixed cadence you specify, or a self-paced schedule the model chooses based on what it's waiting for.

Example — /loop usage
/loop 5m /babysit-prs
/loop /check-deploy-status   (model self-paces the interval)

Typical uses: polling a CI pipeline until it finishes, checking for new pull-request comments, or running a recurring maintenance routine (e.g. a nightly dependency audit) without a human re-triggering it each time.

Subagents — Delegating Work

Subagents are specialized agents Claude Code can spawn mid-task, each with its own context window and its own tool access. This keeps large investigations from bloating the main conversation's context.

Agent typeBest for
ExploreFast, read-only code search — locating files, symbols, or patterns across a large codebase
PlanArchitecture and implementation planning before writing any code
general-purposeOpen-ended multi-step research or execution tasks
Custom agents (via /agents)Project-specific roles — e.g. a dedicated code-reviewer, security auditor, or test-runner

Subagents can run in the foreground (you wait for the result before continuing) or background (you keep working, and get notified when it finishes) — useful for parallelizing independent research or long-running builds.

Hooks — Automating Reactions to Events

Hooks run a command automatically at specific points in Claude Code's lifecycle — before or after a tool call, when a session starts, or when Claude finishes a turn.

settings.json — auto-format after every edit
{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{ "type": "command", "command": "prettier --write \"$FILE\"" }]
    }]
  }
}

Common hook use cases: auto-formatting code after every edit, logging every shell command Claude runs, blocking a specific dangerous command pattern outright, or running the test suite automatically after a change.

Memory — Persistent Context Across Sessions

Claude Code can maintain a file-based memory system that persists across separate conversations — remembering user preferences, past feedback, and ongoing project context so you don't have to re-explain them every session.

This is distinct from CLAUDE.md, which is checked into the repo and read by every contributor's Claude Code session — memory is personal and persists for one user across their own sessions.

Skills — Reusable Specialized Capabilities

Skills package specialized knowledge or workflows that Claude invokes by name — for example a data-visualization skill that enforces consistent chart design, or a code-review skill with a structured findings format. Skills can be built-in, project-specific, or installed from a plugin marketplace.

Artifacts — Shareable Web Output

Instead of dumping HTML into the chat, Claude Code can render a page as an Artifact — a hosted, shareable web view (dashboards, reports, diagrams, small tools). Each redeploy updates the same URL, so it behaves like a lightweight, disposable web app rather than a one-off file.

Workflows — Multi-Agent Orchestration

Workflows (sometimes triggered with the keyword "ultracode") coordinate multiple agents and a higher reasoning effort automatically for large, ambiguous tasks — planning, delegating, and merging work across subagents without you manually spinning each one up.

Background Tasks & Notifications

Long commands, subagents, and monitors can run in the background while you keep working in the foreground. Claude Code notifies you when they finish instead of blocking the conversation — useful for builds, test suites, deployments, or a Monitor watching logs for a specific event.

Checkpointing — /rewind

Claude Code snapshots file state before edits, so /rewind can restore a previous checkpoint if a change goes wrong — a safety net that doesn't require manual git stashing or reset.

Plugins & Marketplaces

Plugins bundle skills, commands, agents, and MCP servers together for one-click installation from a marketplace — letting teams distribute a whole workflow (not just one script) to every contributor on a project.

Quick Reference

FeatureOne-line summary
Slash commandsTyped shortcuts for specific actions (/model, /clear, /review, etc.)
Permission modesControls how much Claude can do without asking (default → plan → accept edits → bypass)
MCPOpen protocol connecting Claude to external tools and data sources
/loopRepeats a task on a recurring or self-paced interval
SubagentsSpecialized agents spawned for isolated research or execution
HooksCommands that run automatically at lifecycle events
MemoryPersistent, personal context across sessions
SkillsReusable, invocable specialized capabilities
ArtifactsShareable, redeployable hosted web pages
WorkflowsAutomatic multi-agent orchestration for large tasks
Background tasksLong-running work with completion notifications instead of blocking
/rewindRestore files to a pre-edit checkpoint
PluginsBundled skills + commands + agents + MCP, installed from a marketplace

🎯 Key Takeaways

Frequently Asked Questions

What is Claude Code?
Claude Code is Anthropic's official agentic coding tool. It runs in a terminal, IDE extension, desktop app, or web browser and can read, write, and edit files, run shell commands, search the web, and orchestrate multi-step engineering tasks autonomously, always under permission controls you configure.
What is MCP in Claude Code?
MCP (Model Context Protocol) is an open standard that lets Claude Code connect to external tools and data sources — GitHub, Slack, databases, Figma, Linear, or custom internal APIs — through a consistent interface, without Anthropic having to build a bespoke integration for every service.
What does /loop do in Claude Code?
/loop repeats a prompt or slash command on a recurring interval, either fixed (e.g. every 5 minutes) or self-paced by the model. It is used for polling tasks like watching a CI run, checking for new PR comments, or periodically running a maintenance routine.
What are subagents in Claude Code?
Subagents are specialized agents Claude Code can spawn for a task — such as Explore (fast read-only code search), Plan (architecture planning), or a custom code-reviewer agent. They run with their own context window and tool access, letting the main session delegate work without polluting its own context.
Are Claude Code's permission modes safe?
Yes, by design. Default mode prompts before risky actions. Plan mode is fully read-only until you approve a plan. Accept Edits auto-approves file changes but still asks before shell commands. Bypass Permissions mode removes all prompts and should only be used in trusted, sandboxed, or CI environments.