Plan Mode 심층 분석

Claude Code의 Plan Mode 완전 정복 — 먼저 계획한 뒤 실행해 더 잘 통제하고 효율적으로 AI 코딩하기

업데이트 2026-11-27

API 키가 필요하신가요? 회원가입 →엔드포인트 & Base URL →

이 페이지 목차

Plan Mode 심층 가이드

이런 경험 해보신 적 있나요? Claude Code에 코드 수정을 도와달라고 요청했다가, Claude Code가 엄청나게 빠르게 여러 파일을 바꾸고 나서야 흐름을 벗어났다는 사실을 알게 된 경험은요? 또는 수정 도중 의존성을 놓쳤다는 사실을 깨닫고 모든 변경 사항을 되돌려야 했던 경험도 있으신가요?

Plan Mode는 이런 문제를 해결하기 위해 만들어졌습니다. Claude가 먼저 자세한 실행 계획을 세우고, 검토하고 승인한 뒤에만 작업을 시작할 수 있게 하여 “화살표를 쏜 다음 과녁을 그리는” 방식을 “행동하기 전에 철저히 계획하는” 방식으로 바꿉니다.

Plan Mode란

Plan Mode와 기본 모드 비교

기본 모드에서는 Claude Code가 사고와 실행을 동시에 진행합니다. 코드를 분석하고, 파일을 편집하고, 명령을 실행하면서 이러한 작업이 서로 섞여 진행됩니다. 간단한 작업에는 매우 효율적이지만, 복잡한 작업에서는 “한 단계씩” 처리하는 방식으로 이어질 수 있습니다.

Plan Mode는 완전히 다릅니다.

기능 기본 모드 Plan Mode
실행 사고와 실행을 동시에 진행 먼저 계획하고 승인 후 실행
파일 작업 파일을 즉시 읽고 씀 읽기 전용, 분석 및 검색만 수행
명령 실행 명령을 직접 실행할 수 있음 변경을 유발하는 명령을 실행하지 않음
적합한 작업 간단한 편집, 빠른 수정 여러 파일 리팩터링, 복잡한 기능 개발
위험 관리 권한 시스템에 의존 계획 단계에서는 무위험

쉽게 말하면, Plan Mode의 Claude은 공책만 든 건축가와 같습니다. 현장을 꼼꼼히 조사하고(코드 읽기, 파일 검색), 자세한 설계 도면을 그리지만(실행 계획), 벽돌을 하나도 놓지 않습니다.

실행 전에 계획하는 이유

실행 전에 계획할 때의 이점은 단순한 “안전성”을 훨씬 넘어섭니다.

  1. 전체적인 관점: Claude이 누락을 중간에 발견하는 대신 먼저 모든 관련 파일을 살펴보고 전체적인 이해를 구축함
  2. 검토 가능한 계획: 실행 전에 계획을 검토하여 잠재적인 문제를 찾고 피드백을 제공할 수 있음
  3. 재작업 감소: 의존성 충돌과 인터페이스 불일치를 계획 단계에서 발견할 수 있음
  4. 이해 일치: 계획을 읽어 Claude의 프로젝트 이해가 올바른지 확인할 수 있음
  5. 재사용 가능: 좋은 계획을 비슷한 작업을 위한 참조 템플릿으로 저장할 수 있음

Plan Mode 사용 시점

Plan Mode를 강력히 권장하는 경우:

  • 5개가 넘는 파일을 수정하는 경우
  • 핵심 모듈이나 공개 인터페이스를 수정하는 경우
  • 새 기능을 추가하는 경우(데이터베이스, API 등 포함)
  • 기존 코드 구조를 리팩터링하는 경우
  • 원인을 알 수 없는 버그를 수정하는 경우(먼저 조사해야 함)
  • 아직 프로젝트에 익숙하지 않아 Claude이 구조를 먼저 정리해 주도록 해야 하는 경우

기본 모드를 바로 사용할 수 있는 경우:

  • 특정 작은 버그를 수정하는 경우
  • 단일 파일의 로컬 콘텐츠를 수정하는 경우
  • 주석이나 문서를 추가하는 경우
  • 간단한 서식 지정 또는 이름 변경을 하는 경우

Plan Mode 사용법

Shift+Tab으로 모드 전환

Plan Mode를 시작하는 것은 매우 간단합니다. Claude Code의 입력 필드에서 Shift+Tab을 누르면 다음 순서로 모드가 전환됩니다.

auto → default → acceptEdits → plan → auto → ...

Claude Code 2.1.283부터 대화형 세션은 auto로 시작하므로 plan까지는 세 번 눌러야 합니다(default에서 두 번). bypassPermissions는 --dangerously-skip-permissions 또는 --allow-dangerously-skip-permissions로 시작할 때만 순환에 포함됩니다.

입력 필드 왼쪽에 plan을 표시하는 모드 표시기가 보이면 Plan Mode에 진입한 것입니다.

프롬프트에 계획하려는 의도를 직접 밝힐 수도 있습니다.

Please help me create a plan first, don't modify the code directly. I want to add email verification to the user system.

팁: 언제든 Escape를 누르면 기본 모드로 돌아갈 수 있습니다.

Plan Mode에서 Claude의 동작

Plan Mode에 진입하면 Claude의 기능이 제한됩니다.

할 수 있는 작업:

  • 모든 파일 읽기
  • 코드 검색(Grep, Glob)
  • 프로젝트 구조 분석
  • Git 기록 보기
  • 웹 정보 검색
  • 자세한 실행 계획 생성

하지 않는 작업:

  • 파일 생성 또는 수정
  • 부작용을 유발할 수 있는 명령 실행
  • 의존성 패키지 설치
  • 빌드 또는 테스트 실행

따라서 Plan Mode에서는 Claude이 어떤 코드든 안전하게 탐색하도록 할 수 있어, 실수로 “미끄러지듯” 무언가를 변경할 걱정이 없습니다.

계획 보기 및 편집

Claude이 생성한 계획은 일반적으로 다음 구조를 포함합니다.

## Execution Plan: Add Email Verification Feature

### Goal
Add email verification to the user registration flow.

### Impact Analysis

- Files to modify: 6
- Files to create: 3
- Database changes: 1 new table needed
- Risk points: Existing users are not affected, but migration scripts are needed

### Execution Steps

**Phase 1: Database Layer**
1. Create migration script for `email_verifications` table
2. Modify `users` table, add `email_verified` field

**Phase 2: Backend Logic**
3. Create new `email_verification_service.py`
4. Modify `auth_router.py`, add verification-related endpoints
5. Modify `user_service.py`, trigger verification email in registration flow

**Phase 3: Frontend Adaptation**
6. Modify registration page, add verification prompts
7. Create new email verification page
8. Modify routing configuration

### Risks and Notes

- SMTP configuration must be prepared in advance
- Need to consider expiration time for verification links
- Existing users should skip verification

계획에 피드백을 제공할 수 있습니다.

The plan looks good overall, but I have a few adjustments:
1. No need to create a new verification page, just use the existing toast notification
2. Set verification link expiration to 24 hours
3. Don't modify the users table in phase 1, use the status in email_verifications table instead
Please update the plan.

Claude은 피드백에 따라 계획을 수정하며 만족할 때까지 조정합니다.

계획 승인 및 실행 시작

계획이 올바른지 확인한 후 Shift+Tab을 눌러 실행하려는 모드(예: auto 또는 default)로 전환한 다음 Claude에 계획 실행을 요청합니다.

The plan looks good, please start executing according to the plan. Start with phase one.

단계별로 실행하도록 선택할 수도 있습니다.

Execute phase one (database layer) first, then stop and let me verify.

Plan Mode 실습 안내

예제 1: 기존 프로젝트에 사용자 인증 추가

현재 인증 메커니즘이 없는 FastAPI 프로젝트가 있고 JWT 인증을 추가해야 한다고 가정해 보겠습니다.

1단계: Plan Mode로 전환하고 요구 사항 설명

My FastAPI project has no user authentication currently. Please help me create a plan to add a JWT-based user authentication system.
Requirements:

- User registration and login
- JWT token issuance and verification
- Route protection (some endpoints require login)
- Use SQLAlchemy to manage user table
Please analyze the existing code structure first, then create a detailed execution plan.

2단계: Claude이 프로젝트 분석 후 계획 생성

Claude이 먼저 프로젝트 구조를 조사합니다.

I have analyzed your project structure. Here are my findings and execution plan:

## Current Project Analysis

- Framework: FastAPI 0.115.x
- Database: Existing SQLAlchemy configuration (database.py), using PostgreSQL
- Existing models: Product, Order (in models/ directory)
- Routers: product_router.py, order_router.py (both without authentication protection)
- Dependency management: Using requirements.txt

## Execution Plan

### Phase 1: Infrastructure (2 files)
1. Add python-jose[cryptography], passlib[bcrypt] to requirements.txt
2. Add JWT-related configuration items to config.py (SECRET_KEY, ALGORITHM, TOKEN_EXPIRE)

### Phase 2: User Model and Database (2 files)
3. Create new models/user.py — User model
4. Create new alembic migration script

### Phase 3: Authentication Logic (3 files)
5. Create new services/auth_service.py — password hashing, JWT issuance/verification
6. Create new schemas/auth.py — request/response models
7. Create new routers/auth_router.py — /register, /login, /me endpoints

### Phase 4: Route Protection (3 files)
8. Create new dependencies/auth.py — get_current_user dependency
9. Modify product_router.py — write operations require authentication
10. Modify order_router.py — all operations require authentication

### Risk Notes

- SECRET_KEY in config.py must use environment variables, cannot be hardcoded
- Existing API clients need to adapt to authentication headers
- Recommend verifying in test environment first

3단계: 검토 및 실행

The plan is good. Two adjustments:
1. Don't use alembic, use SQLAlchemy's create_all directly
2. Read operations on product_router don't need authentication, only create and delete need it
Everything else looks fine, please execute the plan.

예제 2: 대규모 모듈 리팩터링

프로젝트에 분할하고 리팩터링해야 하는 3000줄의 utils.py 파일이 있다고 가정해 보겠습니다.

Plan Mode 진입:

utils.py has ballooned to 3000 lines with everything mixed in. Please help me analyze this file and create a refactoring plan to split it into multiple modules with clear responsibilities. Requirements:
1. Analyze the responsibilities of all functions in utils.py
2. Design a new module structure
3. List all files that import utils.py and their affected imports
4. Ensure all existing functionality remains unaffected after refactoring

Claude은 다음과 같은 계획을 생성합니다.

## utils.py Refactoring Plan

### Current State Analysis
utils.py contains 47 functions, which can be categorized into 5 types based on their responsibilities:

| Category | Function Count | Example Functions |
|----------|---------------|-------------------|
| String processing | 12 | slugify, truncate, sanitize_html |
| Date and time | 8 | parse_date, format_datetime, get_timezone |
| File operations | 9 | read_file, ensure_dir, get_file_hash |
| Data validation | 11 | validate_email, validate_phone, check_url |
| HTTP utilities | 7 | retry_request, parse_response, build_url |

### Import Analysis
A total of 23 files import utils.py, detailed list as follows:
(List each file and the specific functions used...)

### New Module Structure
utils/
├── __init__.py      # Re-exports for backward compatibility
├── strings.py       # String processing
├── datetime.py      # Date and time
├── files.py         # File operations
├── validators.py    # Data validation
└── http.py          # HTTP utilities

### Execution Steps
(List step by step...)

### Backward Compatibility Strategy
Keep all original exports in utils/__init__.py:
from .strings import *
from .datetime import *
...
This way, undiscovered references won't break.

예제 3: 여러 파일에 걸친 버그 수정

사용자가 “주문 금액이 가끔 잘못 계산된다”고 보고하지만 문제가 어디에서 발생하는지 확실하지 않습니다.

Plan Mode 진입:

Users report that order amounts are occasionally calculated incorrectly, but not every time. Please help me investigate this issue:
1. Find all code involved in amount calculations
2. Analyze possible causes of occasional errors
3. Create a fix plan

Claude은 Plan Mode에서 심층적으로 분석합니다.

## Bug Investigation Report

### Amount Calculation Related Code
After comprehensive search, code related to amount calculations is distributed across 4 files:

- order_service.py:calculate_total() — main calculation logic
- discount_service.py:apply_discount() — discount calculation
- tax_service.py:calculate_tax() — tax calculation
- cart_service.py:get_cart_total() — cart total

### Issues Found
**Root cause: Floating point precision problem**

In order_service.py line 127:
  total = sum(item.price * item.quantity for item in items)

Python's floating point arithmetic has precision issues:
  >>> 0.1 + 0.2
  0.30000000000000004

When orders contain multiple items with decimal amounts, cumulative errors may cause the final amount to be off by 1 cent.

**Secondary issue: Discount calculation order**
discount_service.py's discount calculation is executed after tax_service.py's tax calculation,
but in some concurrent scenarios, the order may be reversed (because they are called asynchronously).

### Fix Plan
1. Change all amount calculations to use Decimal type
2. Modify the call order of discount and tax to be synchronous and sequential
3. Add unit tests for amount consistency

이 예제는 버그 조사에서 Plan Mode가 얼마나 유용한지 보여줍니다. Claude은 코드를 급히 변경하지 않고 먼저 철저한 분석을 수행합니다.

Plan 모드 모범 사례

1. "어떻게" 대신 "왜"를 설명하세요

권장하지 않음:

Please add a verify_email method to user.py that accepts a token parameter,
queries the email_verifications table, and if the token matches and hasn't
expired, sets user.email_verified to True.

권장:

We need to allow users to verify their email addresses. Users will receive
an email with a verification link after registration. After clicking the
link, their email status becomes verified. Please help me plan the implementation.

왜일까요? "왜"를 설명하면 Claude가 최적의 해결책을 설계할 여지가 더 많아져요. 생각하지 못한 엣지 케이스를 발견하거나 더 우아한 구현을 제안할 수도 있어요. 구체적인 구현 세부 사항을 지정하면 Plan 모드의 가치가 크게 줄어들어요.

2. 계획에서 위험 지점을 식별하도록 Claude에게 요청하세요

Claude에게 위험 분석을 적극적으로 요청하세요:

Please pay special attention to the following in the plan:
1. What existing functionality might this modification break?
2. Are there configuration files that need to be modified together?
3. Do database changes require migration scripts?
4. Are there any concurrency safety concerns?

3. 복잡한 계획은 단계별로 실행하세요

큰 작업의 경우 계획 전체를 한 번에 실행하지 마세요. 독립적으로 검증할 수 있는 단계로 나누세요:

This plan has 4 phases, please execute as follows:

- Stop after completing each phase
- Report the completion status of that phase
- Wait for my confirmation before continuing to the next phase

이 방식의 장점은 특정 단계에서 문제가 생겼을 때 대량의 변경 사항을 되돌리지 않고도 제때 수정할 수 있다는 거예요.

4. 계획을 Git 브랜치와 결합하세요

최적의 워크플로는 Plan 모드에서 계획 생성 → 새 브랜치 생성 → 새 브랜치에서 실행 → 코드 리뷰 → 병합이에요.

# Create plan in Plan mode first
(Switch to Plan mode, describe requirements, review plan)

# After satisfied, switch back to default mode
Please create a new branch feature/email-verification first, then execute the plan.

실행 중에 계획이 잘못되었다는 걸 발견하면 언제든 메인 브랜치로 돌아가 다시 시작할 수 있어요.

Plan 모드와 직접 코딩

Plan 모드가 필요 없는 경우

  • 파일 하나나 두 개를 수정하는 단순한 작업
  • 무엇을 어떻게 바꿀지 명확히 아는 경우
  • 주석 추가나 문구 수정 같은 비기능적 변경
  • 명령 실행(의존성 설치, 테스트 실행 등)

Plan 모드가 필요한 경우

  • 5개 이상의 파일을 건드리는 변경
  • 공개 인터페이스나 핵심 모듈 수정
  • 프로젝트 구조에 아직 충분히 익숙하지 않은 경우
  • 버그 원인을 알 수 없어 먼저 조사해야 하는 경우
  • 여러 해결책 사이의 트레이드오프를 평가해야 하는 경우

판단 참고

What is your task?
│
├─ Simple modification (1-2 files, clear direction)
│   → Default mode, start directly
│
├─ Medium task (3-5 files, clear logic)
│   → Can use Plan mode first for quick scan, then switch to execute
│
└─ Complex task (multiple files, uncertain solutions, high risk)
    → Must use Plan mode, plan in detail before executing

고급 팁

1. CLAUDE.md로 계획 템플릿 커스터마이즈하기

프로젝트의 CLAUDE.md에 계획 요구 사항을 정의하면 모든 Plan 모드가 일관된 형식을 따르게 할 수 있어요:

## Plan Mode Requirements

When entering Plan mode, please generate plans according to the following template:

### Required Sections
1. **Current State Analysis**: Current code structure and relevant files
2. **Solution Design**: Specific implementation approach, including alternatives
3. **Impact Scope**: Which files will be modified, which features will be affected
4. **Risk Assessment**: Possible issues and countermeasures
5. **Execution Steps**: In sequential order, each step verifiable independently
6. **Testing Plan**: How to verify the correctness of changes

### Format Requirements

- Each execution step should indicate the files involved
- New files should be marked with [NEW]
- Files to modify should be marked with [MODIFY]
- Risk points should be marked with High/Medium/Low severity

이 내용을 CLAUDE.md에 추가하면 Plan 모드를 사용할 때마다 Claude가 이 템플릿에 맞춰 계획을 정리해요.

2. Plan 모드에서 탐색에 서브 에이전트 활용하기

Plan 모드에서는 Claude에게 서브 에이전트(Agent 도구)를 사용해 더 깊이 탐색하도록 요청할 수 있어요:

Before creating the plan, please help me figure out the following:
1. What does the current database schema look like? Use a sub-agent to analyze all model files
2. What is the list of existing API endpoints? Use a sub-agent to scan all router files
3. What third-party libraries does the project use? Check requirements.txt or pyproject.toml

서브 에이전트는 별도의 컨텍스트에서 이러한 탐색 작업을 수행한 뒤 결과를 메인 세션에 요약해 주므로, Claude가 더 정확한 계획을 세울 수 있어요.

3. 계획 저장하고 재사용하기

좋은 계획은 참고 템플릿으로 저장할 수 있어요. Claude에게 계획을 Markdown 파일로 내보내 달라고 요청하면 돼요:

Please save the plan we just created to docs/plans/add-email-verification.md.
We can reference it when working on similar features in the future.

다음에 비슷한 요구 사항을 만나면 바로 참고할 수 있어요:

Please refer to the plan structure in docs/plans/add-email-verification.md
and create a similar plan for SMS verification.

4. 코드 리뷰에 Plan 모드 활용하기

Plan 모드의 읽기 전용 특성은 코드 리뷰에 아주 잘 맞아요:

(Enter Plan mode)

Please review all service files in the src/services/ directory, focusing on:
1. Is error handling comprehensive?
2. Are there any SQL injection risks?
3. Are there unclosed resources (database connections, file handles)?
4. Do async code have race conditions?
Please provide a detailed review report and improvement suggestions.

Plan 모드는 어떤 파일도 수정하지 않으므로, Claude가 실수로 "편의상" 뭔가를 바꾸지 않을까 걱정하지 않고 프로덕션 코드를 안전하게 리뷰하게 할 수 있어요.

5. 긴 Plan 세션에서는 /compact와 결합하기

Plan 모드의 탐색 과정은 컨텍스트를 많이 소비할 수 있어요(특히 많은 파일을 분석한 뒤에는 더 그래요). 컨텍스트가 부족하다고 느껴지면 계획을 완료한 뒤 실행 전에 /compact를 사용할 수 있어요:

/compact Keep the complete execution plan and impact analysis, compress the intermediate exploration process

이렇게 하면 실행 단계에 충분한 컨텍스트 공간이 남아요.

자주 묻는 질문

Q: Plan 모드에서 Claude가 실수로 파일을 수정하나요?

A: 아니요. Plan 모드는 시스템 수준에서 모든 쓰기 작업을 금지해요. Claude는 어떤 파일이든 읽을 수 있지만, 어떤 내용도 생성, 수정, 삭제할 수 없어요.

Q: 계획을 만든 뒤 기본 모드로 전환해 실행하면 Claude가 계획을 여전히 기억하나요?

A: 네. /clear로 기록을 지우지 않았다면 모드를 전환해도 컨텍스트가 사라지지 않아요. 계획은 여전히 대화 기록에 남아 있고, Claude는 계획을 그대로 실행할 수 있어요.

Q: Plan 모드에서 MCP 도구를 사용할 수 있나요?

A: 읽기 전용 MCP 도구(검색, 문서 조회 등)는 사용할 수 있지만, 부작용을 일으키는 도구는 사용할 수 없어요.

Q: 계획이 마음에 들지 않으면 Claude에게 다시 계획해 달라고 할 수 있나요?

A: 물론이에요. 만족할 때까지 Claude에게 계획 수정을 반복해서 요청할 수 있어요. Plan 모드는 위험이 전혀 없으므로 자유롭게 탐색하고 조정할 수 있어요.

Q: 팀 협업에서 플랜을 어떻게 공유하나요?

A: Claude에게 계획을 Markdown 파일로 저장해 Git 저장소에 커밋하도록 요청할 수 있어요. 계획 내용을 PR 설명에 직접 포함해 코드 리뷰를 수월하게 할 수도 있어요.

QCode 시작하기

Claude Code, Codex 등에 API 키 하나를 쓰세요. 토큰 단위로 과금하며 모델별 가격은 qcode.cc/models에 있어요

엔터프라이즈 →