13 Claude Code Commands Every Beginner Should Know (With Real Examples)
By AarviTex
If you've just started using Claude Code, you've probably noticed there's a lot more to it than just typing questions. There's a whole set of slash commands shortcuts that start with { / } that unlock the real power of Claude Code. This guide walks you through all 13 of the most useful ones. By the end, you'll know exactly which command to reach for and when.
GROUP 1: EVERYDAY ESSENTIALS
/memory
Make Claude remember facts/preferences in CLAUDE.md.
When to use it: To persist project-specific rules across sessions.
/model
Switch AI model (e.g., Sonnet to Haiku).
When to use it: When you need faster responses or deeper reasoning.
/rewind
Undo and roll back conversation or code changes.
When to use it: If the AI takes a wrong turn and you need a reset.
GROUP 2: POWER MOVES
/plan
See a step-by-step plan before Claude acts.
When to use it: For complex refactors where you need to verify intent.
/goal
Set a finish condition and let Claude work autonomously.
When to use it: When you want Claude to complete a task without hand-holding.
/agents
Create specialized subagents for specific tasks.
When to use it: To delegate parts of a project to isolated expert instances.
/background
Run a task in the background while you keep working.
When to use it: For long-running tests or data processing.
GROUP 3: CONTEXT & COST CONTROL
/context
See how full the context window is.
When to use it: To prevent performance drops due to context bloat.
/compact
Summarize conversation to free up space.
When to use it: During long sessions to keep Claude focused and cheap.
/usage
Check session cost and plan limits.
When to use it: To stay within budget and monitor token consumption.
GROUP 4: SAFETY & AUTOMATION
/branch
Create a safe copy of the conversation to try risky changes.
When to use it: Before experimenting with destructive code changes.
/security-review
Scan pending changes for security issues before shipping.
When to use it: Final check before committing sensitive code.
/loop
Run a prompt repeatedly on an interval.
When to use it: For monitoring logs or waiting for a specific build state.
The "Daily Flow" Routine
/plan to see intent before Claude acts
/goal to set a finish line
/context to check memory usage
/compact to trim context
/rewind if Claude wanders off track
/security-review before shipping
/usage to check session cost
Ready to Master the Modern Tech Stack?
Explore AarviTex's Cloud, DevOps, and AI courses to stay ahead of the curve with expert-led training.
Explore Our Courses