Claude Code: Quick-Start Tutorial
root
Jun 27 2026
What is Claude Code?
Claude Code is an agentic coding environment that runs in your terminal. Unlike a chatbot, it can read files, run commands, make changes, and autonomously work through complex tasks while you watch or step away.
Installation
npm install -g @anthropic-ai/claude-code
claude
Core Workflow
- Open your terminal inside a project folder
- Run
claudeto start a session - Describe your task in plain English. Claude explores, plans, and implements
Tips to Maximize Tokens
Token burn in Claude Code is compounding, not additive. Every file read and command output grows the context window permanently for that session.
| Tip | Command / Action |
|---|---|
| Compress long sessions | /compact |
| Start fresh between tasks | /clear |
| Check context usage | /context |
| Undo risky changes | /rewind |
Additional best practices:
- Keep
CLAUDE.mdlean, it loads on every turn; large files waste tokens constantly - Use subagents for investigation tasks to keep your main context clean
- Disable extended thinking for simple edits (thinking counts as output tokens)
- Compact proactively at ~70% context capacity, not at the default 95%
- Only connect MCP servers you're actively using, each one consumes context on every message
Full docs: docs.claude.com
root
Just share your knowledge!