AI Jupyter logo
AI JupyterAI developer tool intelligence
Back to guides

AI Coding Tools

Claude Code Quick Start

A practical Claude Code quick start tutorial for installing Claude Code, running your first repository task, and building a safe AI coding workflow.

Updated June 12, 202610 min read2,169 wordsIndependent editorial guide
Claude Code tutorialClaude Code quick startAI coding agentagentic coding
Hand-drawn Claude Code quick start tutorial showing install, sign in, first task, memory, and review
A practical Claude Code workflow: install, sign in, ask for one focused repository task, verify the result, and review the diff.

Claude Code is Anthropic's agentic coding tool for working inside real software projects. It can read your codebase, edit files, run commands, and integrate with developer tools such as the terminal, IDE, desktop app, browser, and GitHub workflows.

This Claude Code tutorial is written for developers who want a practical first workflow, not a hype demo. The goal is to install Claude Code, run one narrow repository task, ask it to verify the result, and review the final diff before you trust it with larger changes.

Hand-drawn Claude Code workflow map
A useful Claude Code workflow moves from install and sign in to one focused task, verification, memory, and review.

Quick Answer

Install Claude Code from the official Anthropic docs, open a terminal in your project, run claude, sign in when prompted, and start with one focused task. A good first task is not "build my app." A good first task is "explain this module," "fix one failing test," "add one small validation rule," or "review this diff for bugs."

Use this first prompt:

Goal: Explain how the upload feature works and identify the safest small improvement.

Context: Start by reading the route, service, and closest tests.

Constraints: Do not edit files yet. First summarize the flow and risks.

Done when: I have a short map of the files, likely risks, and one recommended first task.

This gives Claude Code a safe first job: understand before editing.

Install Claude Code

Use Anthropic's official setup and quickstart pages as the source of truth because install commands can change. The current Claude Code overview emphasizes native installation paths for the CLI, including shell installers, Homebrew, and WinGet.

curl -fsSL https://claude.ai/install.sh | bash
irm https://claude.ai/install.ps1 | iex
brew install --cask claude-code
winget install Anthropic.ClaudeCode

After installation, confirm the command is available:

claude --version
claude --help

If the command is not found, restart your terminal and check which environment you installed into. On Windows, confirm whether you are using PowerShell, Command Prompt, or WSL, because each can have a different PATH. Anthropic's docs also note that Git for Windows is recommended on native Windows so Claude Code can use Bash; WSL setups do not need Git for Windows.

Sign In

Open a terminal in your project directory and run:

claude

On first launch, Claude Code can open a browser-based login flow. Anthropic's identity and access docs also describe a fallback where you copy the login URL, complete the browser step, and paste a code back into the terminal if prompted.

Treat the login session as sensitive. Do not paste tokens, credential files, or terminal login output into a public issue. If you are setting this up for a team, document the intended authentication path and who owns billing or account access.

Your First Repository Task

After sign-in, stay inside a real repository. Claude Code is most valuable when it can inspect project structure, package scripts, tests, and nearby code patterns. Start with a read-only task before you ask it to edit files.

Try:

Explain this repository like I am about to make my first safe change.

Focus on:
1. The main application entry points.
2. The test commands.
3. The build command.
4. The files I should not edit casually.
5. One small improvement that would be easy to review.

This creates useful context and reduces the chance that your first edit becomes a broad rewrite.

First Edit Prompt

Once you understand the repository map, ask for a narrow change:

Goal: Fix the failing validation test shown below.

Context: Start from the test output and inspect only the related validation files first.

Constraints: Make the smallest necessary fix. Do not rename public functions. Do not add a dependency.

Done when: The related test passes, and you summarize the changed files, verification command, and remaining risk.

This prompt gives Claude Code the same structure that works well for other coding agents: goal, context, constraints, and a done condition. The done condition is the most important part. It tells the agent how to prove the work is finished.

Use Claude Code For Common Workflows

Anthropic's Claude Code documentation includes common workflows for everyday engineering tasks. The most useful beginner workflows are:

  1. Explore an unfamiliar codebase.
  2. Fix a small bug.
  3. Refactor one narrow path.
  4. Write or update tests.
  5. Create a pull request.
  6. Improve documentation.
  7. Resume a previous conversation when context matters.

For each workflow, keep the task small. A coding agent becomes more reliable when the finish line is visible. If the task is large, ask Claude Code to propose a plan first, then approve one step at a time.

Memory And Settings

Claude Code has documented memory and settings behavior. Memory can help the agent remember project context and workflow notes. Settings can control parts of the environment and behavior, including permissions and hooks.

Use these features after your first few successful tasks, not before. Beginners often make the mistake of configuring a complicated agent environment before they know their real workflow. First run a few read-only and small-edit tasks. Then move repeated instructions into memory or settings only when the repetition is obvious.

Good memory candidates include:

  1. The package manager.
  2. The test command for the current app.
  3. Files or directories that should not be edited.
  4. Team style rules that are not obvious from linting.
  5. The deployment or release checks that matter before merging.

Bad memory candidates include secrets, private tokens, temporary debug output, and instructions that are only true for one experiment.

Safe Permissions Habits

Claude Code can run commands, which is powerful and risky. For a safe first workflow, make command permissions match your confidence level.

Start with commands that inspect the repository: list scripts, run a narrow test, run a type check, or read logs that do not contain secrets. Avoid giving broad permission to destructive commands. Do not ask an agent to modify production configuration, credentials, payment logic, user authentication, or database migrations until you have a precise task and a review plan.

The simplest safety habit is this: every editing task should end with a diff review and a verification command. If the task cannot be verified locally, the final summary should say that clearly.

A Useful Day-One Workflow

Here is a practical first hour with Claude Code:

  1. Install Claude Code and run claude --help.
  2. Open a real repository and run claude.
  3. Ask for a read-only repository map.
  4. Pick one small task from the map.
  5. Ask Claude Code to edit only the related files.
  6. Ask it to run the narrowest relevant test.
  7. Review the diff before you keep the change.
  8. Save only the repeated project rules into memory or settings later.

This is slower than a flashy demo, but it is much closer to real engineering. The fastest path is not always the path that produces a diff you can safely merge.

Claude Code vs Codex For Beginners

Claude Code and Codex are both modern AI coding agents. If you are choosing between them, do not start with a broad feature checklist. Start with one repository and five tasks: explain the repo, fix one failing test, add one small feature, review one diff, and improve one documentation page.

Codex may fit better if your workflow is centered on OpenAI, ChatGPT, Codex CLI, Codex app review, AGENTS.md, and OpenAI cloud tasks. Claude Code may fit better if your workflow is centered on Anthropic, Claude Code memory and settings, Claude-native terminal work, and documented Claude Code GitHub workflows.

The best beginner move is to learn one agent deeply enough to create a repeatable workflow. Tool hopping feels productive, but reviewable diffs, passing tests, and clear project instructions matter more.

Common Mistakes

The first mistake is asking Claude Code to edit before it understands the repo. Ask for a map first.

The second mistake is giving a vague prompt such as "clean up this project." That often creates a diff that is hard to review.

The third mistake is skipping tests. If the agent edits code, ask it to run the closest relevant check.

The fourth mistake is storing sensitive information in memory or settings. Keep secrets out of agent-readable project notes.

The fifth mistake is treating the final answer as proof. The proof is the diff, the command output, and your review.

Bottom Line

Claude Code is most useful when you treat it like a careful coding teammate: give it a narrow goal, point it at relevant context, set constraints, require verification, and review the final change. Start with read-only exploration, move to one small edit, then build your memory and settings around repeated project rules.

Once that workflow works, compare it with Codex on the same repository. The winner is the agent that helps you ship a smaller, safer, verified diff with less review friction.

Official References

Decision Checklist For Claude Code Quick Start

Use this guide as a decision filter before a sales call, trial, or migration plan. For Claude Code Quick Start, the practical question is whether the topic connects Claude Code tutorial, Claude Code quick start, AI coding agent to a measurable workflow outcome. A good decision should improve delivery speed, quality, cost control, or operational confidence without creating hidden review, security, or migration work.

  • Generated changes survive code review with fewer rewrites, fewer broad diffs, and fewer style corrections.
  • The assistant understands multi-file context, tests, build failures, private repository rules, and local conventions.
  • Administrators can manage seats, data controls, policy settings, and usage visibility without blocking developers.

Pilot Plan

A useful pilot is small enough to finish quickly but realistic enough to expose integration, data, workflow, and pricing issues. Avoid demo-only tests. The trial should use real tasks, real constraints, and a baseline from the current process so the team can decide with evidence instead of impressions.

  • Give each candidate the same bug fix, failing-test repair, refactor, and explanation task.
  • Track accepted diffs, reviewer comments, rework time, test pass rate, and developer satisfaction.
  • Run the trial with senior maintainers and newer engineers because the value pattern is different for each group.

Metrics To Track

Track metrics that connect Claude Code Quick Start to outcomes a budget owner and an engineering owner can both understand. A tool can look impressive in a demo and still fail if usage is low, quality is uneven, or the cost model changes under real workload volume.

  • Accepted AI-assisted diffs, rejected suggestions, reviewer comments, and post-merge fixes.
  • Time to repair failing tests, explain unfamiliar modules, and complete safe refactors.
  • Seat utilization, premium request exhaustion, and policy exceptions for sensitive repositories.

Budget And Risk Review

Commercially useful AI tooling decisions should include the subscription or API price, but they should also include support load, review time, observability, privacy controls, switching cost, and the cost of wrong or low-quality output. Treat the first estimate as a working model and update it with production evidence.

  • Confirm private code handling, training opt-out, data retention, and enterprise policy controls.
  • Watch for over-generation: large patches that look productive but increase review cost.
  • Compare cost per accepted change rather than cost per seat alone.

Revisit the assistant after 30 days of real pull requests. A useful coding tool should reduce review latency and onboarding friction without increasing risky generated code.

Editorial note

AI Jupyter writes independent guides for technical readers. Product details, pricing, and feature names can change, so readers should verify commercial terms on the official vendor site before buying.

Reviewed by the AI Jupyter Editorial Team.