Claude Code is not autocomplete — it’s something you hand a task to. “Find and fix the cause of this bug”, “add tests for this folder”: work that spans several files, it explores and edits on its own.

Install and run

  npm install -g @anthropic-ai/claude-code
cd ~/projects/my-app
claude
  

Besides the terminal, it’s available as a desktop app (Mac/Windows), on the web (claude.ai/code), and as VS Code and JetBrains extensions.

What it suits

Good fitPoor fit
Refactoring across many filesSingle-line completion (Copilot is faster)
Getting oriented in an unfamiliar repoPrecise algorithms with one right answer
Writing tests and chasing failuresDesign work where requirements aren’t settled
Repetitive migration workIrreversible production operations

The basic loop

  > Summarise the authentication flow in this project
> Raise test coverage in src/auth, focusing on failure cases
> Commit what you just changed
  

Give instructions in plain language; it reads files, shows a plan, and edits after you approve. Because edits are confirmed first, you can decline anything you didn’t want.

Common commands

CommandAction
/helpList available commands
/clearReset conversation context (when the topic changes)
/configChange the model and settings
/initAnalyse the repo and generate CLAUDE.md
EscInterrupt what it’s doing
Ctrl+C twiceQuit

Supplying context with CLAUDE.md

CLAUDE.md at the repository root is read automatically every session. Put your team’s rules there and you stop repeating yourself.

  # Project rules

- The package manager is pnpm. Do not use npm commands.
- Tests: `pnpm test`. They must pass before committing.
- API response types live only in src/types/api.ts.
- Never edit migration files; create new ones.
  

Getting good results

  • Cut the work small. “This module first” beats “refactor everything.”
  • Tell it how to verify. Give it the test or lint command and it will check its own work and fix what broke.
  • Use /clear often. Leftover context from an earlier topic sends it into the wrong files.
  • Let git be the safety net. Commit before you start and you can always back out.

A caution

Always read and test what it generates. For anything hard to reverse — deletions, deploys, database migrations — verify yourself before running it.

Next

If you want suggestions as you type → GitHub Copilot

Last updated 19 Aug 2026, 00:00 UTC. history