← Blog

How-to5 min read

How to use Claude Code: your first session, permission modes, and undoing changes

A beginner's guide to Claude Code after you install it: your first session, permission modes, CLAUDE.md, undoing changes with /rewind, and the commands you'll use.

A new session in Mirasim, with Mira Bot's welcome beside itA new session in Mirasim, with Mira Bot's welcome beside it

The short answer

Open a terminal in your project folder and run claude. The first time, sign in with a Claude Pro, Max, Ultra, Team or Enterprise plan, or an Anthropic Console account. Then talk to it the way you'd talk to a colleague: ask what the project does, then ask for one specific change. Claude Code reads the files it needs on its own.

  1. Ask before you change anything

    Start with "what does this project do?" or "explain the folder structure". Letting Claude explore first gives better changes later.

  2. Ask for one specific change

    "Fix the login bug where users see a blank screen after a wrong password" works better than "fix the bug". Claude shows the change and, in the default mode, asks before applying it.

  3. Review, then commit

    Run /diff to see what changed, or just ask "what files have I changed?". Then ask Claude to commit with a descriptive message.

Permission modes: how much Claude does without asking

Press Shift+Tab to switch the mode of the session you're in.

ModeRuns without askingGood for
Default (manual)Reading files in your projectUnfamiliar code, sensitive work
acceptEditsReads, file edits and common file commands such as mkdir and mvIterating on code you're reviewing
planReading, to propose a plan before any editExploring before you change things
autoEverything, with safety checks in the backgroundLong tasks, fewer prompts
bypassPermissionsEverything, with no checksIsolated containers and virtual machines only

Tell Claude how your project works: CLAUDE.md

Run /init and Claude reads your codebase and writes a starting CLAUDE.md: build commands, how to run the tests, the conventions it found. Edit it and commit it, and every session starts from it. Preferences only you need go in CLAUDE.local.md, which you keep out of Git.

Undo a change with /rewind

Claude Code saves a checkpoint before each message you send. Run /rewind (or /undo), or press Esc twice in an empty prompt, to go back: rewind the code, the conversation, or both.

Make Claude Code reply in Chinese

settings.json in the .claude folder in your home folder (every project) or in a project
{
  "language": "chinese"
}

Claude Code passes the language value to Claude as an instruction to always reply in that language, so any language name works, such as "chinese" or "japanese"; it isn't checked, so a typo goes through as written. The same value sets the language of voice dictation and of automatic session titles. It changes the language Claude replies in, not Claude Code's own interface. You can also write a line such as “Always reply in Simplified Chinese.” in your CLAUDE.md.

The commands you'll use most

CommandWhat it does
/modelSwitch the model and save it as your default
/planEnter plan mode, optionally with a task
/diffReview the changes in your working tree
/reviewRun a code review
/compactSummarize the conversation to free up context
/contextSee how much of the context is in use
/usageSession cost and your plan's usage limits
/clearStart a new conversation; /resume brings the old one back
claude -cFrom the terminal: continue the last conversation in this folder
claude -p "…"From the terminal: ask once and exit, for scripts

Type / to see every command and skill available to you; Tab completes, and ↑ brings back earlier prompts.

Claude Code next to other agents in Mirasim

Mirasim is a desktop app for macOS, Windows and Linux that runs Claude Code itself. If you already installed Claude Code, Mirasim uses that copy and your existing sign-in. Claude Code can sit in a pane next to Codex or another agent, and you can follow the same sessions from your phone. Mirasim is not an Anthropic product.

Questions

Do I need to add files to the context myself?
No. Claude Code reads your project files as it needs them.
How do I continue yesterday's conversation?
Run claude -c in the same folder to continue the latest one, or claude -r and pick one. Inside a session, /resume opens the same list.
Can I use Claude Code without a Claude subscription?
Yes: with an Anthropic Console account and prepaid API credits, or through Amazon Bedrock, Google Cloud or Microsoft Foundry.

Sources

Checked on November 25, 2026 against Anthropic's documentation at code.claude.com/docs/en: quickstart, permission modes, memory, checkpointing and the commands reference. Claude Code changes quickly, so check those pages for the latest.

Keep reading