iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🖥️

Getting Started with Claude Code

に公開
2026/02/05

Introduction

Many of you might be thinking, "Isn't it a bit late to start with Claude Code?"
However, for the early majority who are about to start exploring it, I have decided to publish this article now.
In this article, I will explain what Claude Code is and how to get started.

Overview of Claude Code

Claude Code is a development assistance tool that allows you to work while interacting in the terminal.
Unlike one-off code suggestions like GitHub Copilot, it can handle investigation, modification, verification, and summarization of changes continuously within a single session.

Role Differentiation from ChatGPT/GitHub Copilot

ChatGPT and GitHub Copilot are also frequently used in AI-assisted development. Even though Claude Code is also an "AI-assisted development tool," its strengths lie in different areas:

  • ChatGPT: Design considerations, verbalizing specifications, comparing approaches, reviewing, and organizing perspectives.
  • GitHub Copilot: Input assistance within the IDE (code completion, snippet creation, and other localized implementation support).
  • Claude Code: Advancing tasks as a series of steps: investigation in the repository → modification → verification → summarizing changes.

While Copilot is strong at "writing code," Claude Code is better suited for "advancing work." It is easy to create a division of labor where you code in the IDE, while the terminal handles investigation, execution, and organizing diffs.

Work Domains Covered

If you only view Claude Code as a tool for code generation, you will misunderstand its capabilities.
It can handle non-implementation processes such as investigation, verification, identifying root causes, and summarizing changes.

Whether you can effectively delegate these tasks depends on whether you can verbalize "what to do next and what constitutes success." Claude Code is a terminal-based CLI tool. If you are accustomed to a terminal-centric development style, that experience will serve you well.

Installation

Installation

Run the following in your terminal.
Note: npm installation is currently deprecated.

Mac

curl -fsSL https://claude.ai/install.sh | bash

Windows

# Windows PowerShell:
irm https://claude.ai/install.ps1 | iex

# WinGet (Windows):
winget install Anthropic.ClaudeCode

It updates automatically, so you can always use the latest version.

For other methods (such as Homebrew), please refer to the official documentation.
Official Documentation - Setup

Launching

Run claude in the directory of the target repository.

claude

Authentication will be required on the first launch.

Good Tasks to Try First

Initially, it is suitable to pick tasks where the results are clear and the scope of changes is unlikely to expand excessively.

1. Grasping the Repository

Examples of instructions you might give:

  • Summarize the purpose, main directories, launch method, and testing method.
  • Instead of filling in unknowns with guesses, list them as questions.

It is best to start this task in Plan mode (described later) to prevent unintended changes.

2. Fixing Failed Tests

Examples of instructions you might give:

  • Run tests and identify failed cases.
  • Briefly explain the cause.
  • Re-run after fixing and confirm they pass.
  • Summarize the changes in a bulleted list (including a draft commit message).

Since the success or failure can be clearly judged by the test results, it is suitable for checking the tool's behavior.

3. Small Changes Involving Impact Analysis

Examples of instructions you might give:

  • List the reference points associated with changing a function name or configuration key.
  • Propose a correction plan (order, verification steps, points of caution).
  • Remove unnecessary changes, split commits, and create explanatory text.

Permission and Safety Design

Claude Code is not designed to run arbitrary commands without restriction. It has a mechanism that requires permission for operations, and by default, it proceeds while granting execution permission for each command.

You can switch modes during a session with Shift+Tab (cycles through Auto Accept / Plan / Normal).

Plan mode

Plan mode is a mode limited to investigation and plan creation. It is used at the stage of establishing a policy without making file changes or executing commands.

claude --permission-mode plan

Permission Setting Policy

Executing /config during a session allows you to check and change permission settings. Settings are divided into global and project levels.

We recommend a policy of explicitly denying dangerous operations such as accessing authentication credentials and only allowing low-risk operations.

Example settings are shown below:

  • Test execution, lint execution → allow
  • Access to authentication credentials → deny
  • Destructive operations like rm or mv → ask (confirm each time)

What to Learn Next

Once you are used to the basic usage (investigation → modification → verification → summarization), we recommend learning the following topics.

MCP (External Connectivity)

A mechanism for connecting external tools and data sources (ticket management, monitoring systems, DBs, internal APIs, etc.) to Claude Code and similar tools. It is effective in environments where tasks cannot be completed with code alone.

Skills (Standardization)

Define review perspectives, PR body templates, log investigation procedures, etc., as reusable units to omit repetitive instructions. A typical use case is converting the perspectives written in CLAUDE.md into Skills.

Hooks (Event-Driven Automation)

Automatically execute checks or processes at specific timings (e.g., at the start of a session, before committing) to prevent oversight. Representative uses include automatic lint execution and commit message verification.

Subagents (Division of Roles)

By dividing work into roles such as investigator, modifier, and reviewer, you can suppress the scattering of focus. This is effective for improving visibility in long tasks or tasks with a wide scope of exploration.

Conclusion

Claude Code is a tool that allows you to handle repositories on a terminal basis, making it easy to advance through the processes of investigation, modification, verification, and summarization of changes as a series of steps. The solid way to proceed is to start with "tasks with clear results," limit the scope of permission in Plan mode, and gradually expand the scope of delegation.

GitHubで編集を提案

Discussion