Skip to content

Your first session

Start a session by running claude in your project directory. From there, a handful of built-in commands guide you through setup:

  • /init walks you through creating a CLAUDE.md for your project
  • /agents helps configure custom subagents
  • /doctor diagnoses common issues with your installation
  • /context shows what is using space in the context window
  • /model switches models mid-session

Claude Code can teach you how to use it — ask questions like "how do I set up hooks?" and it will explain.

terminal
# install (macOS / Linux / WSL)
curl -fsSL https://claude.ai/install.sh | bash
# start a session in your project
cd ~/work/my-app
claude
# one-shot / scripted usage
claude -p "summarize the failing tests"

Question 1Which command creates a CLAUDE.md for your project interactively?

Question 2What does /context show?