03Topic 3 of 16

Claude Code commands

Hooks, subagents, slash commands, CLAUDE.md, permissions, context, and costs.

14 plates · 46 min to read them all


  1. 03.01 How to Set Up a CLAUDE.md That Actually Helps Run /init, keep CLAUDE.md under 200 lines, and confirm it loaded with /context. Plus .claude/rules for path-scoped instructions and @path imports. 4 min
  2. 03.02 Create a Custom Slash Command in Claude Code Drop a Markdown file in .claude/commands/ and the filename becomes the command. $0 is the first positional argument, and skills are now preferred. 3 min
  3. 03.03 How to Configure Hooks in Claude Code Hooks run a shell command on Claude Code events. Note $CLAUDE_FILE_PATHS no longer exists — read the file path from the JSON on stdin instead. 4 min
  4. 03.04 How to Use Subagents in Claude Code A subagent is a separate Claude with its own context window. Write one as a Markdown file in .claude/agents/ — note /agents is no longer a wizard. 3 min
  5. 03.05 Manage Context in Claude Code: /clear, /compact Use /clear between tasks, /compact within one, /context to see what fills the window, and claude -c to resume. Keeps long sessions fast and cheap. 3 min
  6. 03.06 How to Track and Cut Claude Code Token Usage Run /usage to see session tokens, cost and plan limits — /cost is now just an alias. Then cut waste with /clear, subagents and the right model. 3 min
  7. 03.07 Control What Claude Code Can Do: Permissions Claude Code now starts in auto mode on Pro, Max and Team plans. Shift+Tab to switch, and write allow/deny rules that actually match the command. 4 min
  8. 03.08 Claude Code settings.json: Which File, Which Key The four settings files Claude Code reads, which one wins when they disagree, and the handful of keys worth setting on day one. 3 min
  9. 03.09 Claude Code Skills and Plugins Skills are folders with a SKILL.md. Plugins bundle skills, agents and hooks for sharing. Install one from a marketplace, then write your own. 4 min
  10. 03.10 Claude Code usage limits and how to track them What session, weekly, and per-model limits mean on Pro and Max, how /usage shows your plan usage, and what to do when you hit a limit. 3 min
  11. 03.11 Pick the right Claude model in Claude Code Switch between Opus, Sonnet, and Haiku with /model, set a default, and match the model to the job without guessing at prices or benchmarks. 3 min
  12. 03.12 Claude Code memory: the CLAUDE.md hierarchy and /memory Claude Code concatenates CLAUDE.md from managed policy, your home dir, the project, then CLAUDE.local.md. Inspect it with /memory and @path imports. 3 min
  13. 03.13 Change how Claude Code responds with output styles List, switch, and build output styles in Claude Code with /output-style, and see how a style differs from CLAUDE.md and the system prompt. 3 min
  14. 03.14 Fix Claude Code usage/rate limit reached Hit a usage or rate limit in Claude Code? What the session, weekly, and per-model limits mean, and the fastest ways to get working again. 3 min

Keep going

Other topics

All 152 plates →
  1. 01 Install & set up 7
  2. 02 First steps 4
  3. 04 Workflows 7
  4. 05 MCP 9
  5. 06 Claude 2
  6. 07 ChatGPT 6
  7. 08 Cursor 4
  8. 09 Local LLMs 19
  9. 10 Prompting 9
  10. 11 Choosing tools 7
  11. 12 AI media 14
  12. 13 Everyday tasks 4
  13. 14 Other coding agents 11
  14. 15 Building with the API 23
  15. 16 Hugging Face 12

↑↓ move↵ openalt+↵ copy first command

Keyboard

⌘/ctrl+K or /
Search all guides
alt+↵
In search: copy the guide's first command
j / k
Move through a list of guides
c
On a guide: copy its first command
t
Toggle light / dark
?
This list