Jun 21, 2025
This lecture provides an overview of all major commands in Claude Code, explaining their purpose, usage, and best practices for efficient workflow.
/bug
to report bugs directly to the development team./doctor
checks if your Claude Code installation has proper permissions and setup./help
lists all available commands with brief descriptions./clear
wipes the conversation history to start a new chat, reducing token usage./compact
summarizes the current chat and starts a new conversation with the summary as context; supports custom instructions./config
lets you adjust settings like autocompact, to-do usage, verbose output, theme, notifications, editor mode (normal/vim), and model selection./init
scans your codebase and creates claw.md
, summarizing project structure and key components.claw.md
file acts as persistent "memory" used at the start of new chats.claw.md
are allowed for evolving projects./login
lets you sign in via subscription or API plan./logout
logs you out and provides a session summary with costs and models used./cost
tracks API usage costs (not relevant for max/pro plan users)./model
selects the Claude model for requests; supports switching between Opus 4, Sonnet 4, and others./permissions
manages which commands Claude Code can auto-run (bash, edit/read files, web fetch, MCP tools).claw.md
) and user memory (preferences across all projects).@filename
or the hash #
shortcut in chat./mcp
connects to external Model Context Protocol servers, allowing Claude Code to interact with external systems (e.g., databases)./pr_comments
fetches pull request comments from GitHub within Claude Code./review
triggers a PR review process inside Claude Code./status
displays the current working directory, account, active memories, and model./terminal_setup
enables Option+Enter for new lines./vim
puts the editor in Vim mode for Vim key bindings./init
when starting with a new project to generate project memory./config
for your preferred workflow and enable autocompact./help
as needed.