Claude Code 101로 돌아가기Back to Claude Code 101
Module 09 — 끝판왕 기능Ultimate Features

고급 기능Advanced Features &
팀 협업Team Collaboration

Worktree, Teleport, Fast Mode, Remote Control, Settings — Claude Code의 끝판왕 기능들Worktree, Teleport, Fast Mode, Remote Control, Settings — Claude Code's ultimate features

Worktree 알아보기Learn about Worktree Fast Mode →
스크롤scroll
01

Worktree 격리Worktree Isolation

본 프로젝트를 건드리지 않고 안전한 실험 공간에서 작업하세요.Work in a safe experiment space without touching your main project.

"실험실" 비유로 이해하기Understanding it with the "Laboratory" analogy

과학자가 실험할 때, 본 연구실의 시약을 직접 섞지 않습니다. 별도의 실험실에서 먼저 시도하죠.

Worktree도 마찬가지입니다. 현재 프로젝트 코드를 복사해서 격리된 작업 공간을 만들고, 거기서 마음껏 실험합니다.
실험이 성공하면 본 프로젝트에 머지하고, 실패하면 그냥 삭제하면 됩니다. — 본 코드는 단 한 줄도 다치지 않습니다.

When a scientist experiments, they don't mix reagents directly in the main lab. They try it first in a separate laboratory.

Worktree works the same way. It copies your current project code to create an isolated workspace, where you can experiment freely.
If the experiment succeeds, merge it into the main project. If it fails, just delete it. — Not a single line of your original code is touched.

Worktree 작업 흐름Worktree Workflow

1

격리된 Worktree 생성Create Isolated Worktree

Claude Code에서 Worktree 모드를 시작하면, 현재 브랜치를 기반으로 격리된 작업 공간이 만들어집니다.Starting Worktree mode in Claude Code creates an isolated workspace based on the current branch.

Terminal
# Worktree 모드로 Claude Code 시작 claude -w # 또는 대화 중에 worktree 요청 "worktree에서 이 리팩토링 작업 해줘"
2

격리 공간에서 작업Work in Isolated Space

Worktree 안에서는 파일 수정, 삭제, 구조 변경 등 무엇이든 자유롭게 할 수 있습니다. 원본에는 영향이 없습니다.Inside the Worktree, you can freely modify, delete, or restructure files. The original is unaffected.

Worktree 내부Inside Worktree
# 격리된 공간의 경로 .claude/worktrees/my-experiment/ # 이 안에서 마음껏 작업 claude "아키텍처를 MVVM에서 TCA로 전환해줘" # 원본은 전혀 영향 없음!
3

결과 확인Verify Results

작업이 끝나면 빌드, 테스트를 실행해서 결과를 검증합니다.When work is done, run builds and tests to verify the results.

4

머지 또는 삭제Merge or Delete

성공하면 원본 브랜치에 머지하고, 실패하면 Worktree를 삭제합니다. 세션 종료 시 유지/삭제를 선택할 수 있습니다.If successful, merge into the original branch. If not, delete the Worktree. At session end, you can choose to keep or remove it.

Terminal
# 성공 → 머지 git merge my-experiment-branch # 실패 → 삭제 (세션 종료 시 자동 안내) "Keep or remove this worktree?" → Remove
🧪
이럴 때 Worktree를 쓰세요: 위험한 리팩토링, 실험적 기능 개발, 대규모 아키텍처 변경 등 "혹시 실패하면 어쩌지?"가 걱정될 때. 원본 코드를 전혀 건드리지 않으므로 마음 편하게 도전할 수 있습니다.Use Worktree when: You're worried about risky refactoring, experimental feature development, or large-scale architecture changes. Since the original code is never touched, you can take on challenges with peace of mind.

심화: 병렬 에이전트 + Worktree 격리Deep Dive: Parallel Agents + Worktree Isolation

서브에이전트를 isolation: "worktree"로 실행하면, 각 에이전트가 독립된 작업 디렉토리에서 동시에 작업합니다. 서로의 파일 변경이 간섭하지 않습니다.Running sub-agents with isolation: "worktree" gives each agent an independent working directory. File changes don't interfere with each other.

병렬 Worktree 에이전트 예시Parallel Worktree Agent Example
# 프롬프트: 여러 작업을 동시에 워크트리에서 실행Prompt: run multiple tasks simultaneously in worktrees "다음 3가지를 각각 워크트리에서 병렬로 실행해줘: 1. 로그인 모듈에 2FA 추가 2. API 응답 캐싱 레이어 구현 3. 테스트 커버리지 80% 달성" # Claude가 내부적으로 수행하는 동작:What Claude does internally: [Agent 1] worktree: feature/2fa로그인 모듈 작업Login module work [Agent 2] worktree: feature/caching캐싱 레이어 작업Caching layer work [Agent 3] worktree: feature/tests테스트 작성Test writing # 각각 독립된 브랜치에서 작업 → 간섭 없음!Each on independent branch → no interference!

격리의 장점Benefits of Isolation

에이전트 A가 수정한 파일을 에이전트 B가 덮어쓰는 일이 없습니다. 각자 독립된 git 브랜치에서 작업하므로, 완료 후 개별적으로 리뷰하고 머지할 수 있습니다.

Agent A's file edits won't be overwritten by Agent B. Each works on an independent git branch, so you can review and merge individually after completion.

주의사항Cautions

각 워크트리는 독립된 컨텍스트를 사용하므로, 동시에 3개 에이전트를 돌리면 토큰 사용량도 3배입니다. API 사용자는 비용에 주의하세요.

Each worktree uses independent context, so running 3 agents simultaneously means 3x token usage. API users should watch costs.

심화: 백그라운드 에이전트 활용Deep Dive: Background Agent Usage

느린 작업(빌드, 테스트, 대규모 탐색)은 백그라운드로 돌려놓고, 메인 에이전트는 다른 작업을 계속할 수 있습니다.Slow operations (builds, tests, large searches) can run in the background while the main agent continues other work.

백그라운드 실행 패턴Background Execution Pattern
# 패턴 1: Ctrl+B로 현재 작업을 백그라운드로Pattern 1: Send current work to background with Ctrl+B "전체 프로젝트에서 사용하지 않는 import를 정리해줘" 실행 시작 후After execution starts Ctrl+B → 백그라운드 전환Switch to background 새 프롬프트 입력 가능You can now enter new prompts # 패턴 2: 프롬프트에서 직접 백그라운드 요청Pattern 2: Request background directly in prompt "테스트를 백그라운드로 돌려놓고, 그동안 README.md를 업데이트해줘" → Claude가 서브에이전트를 백그라운드로 실행 runs a sub-agent in background # 패턴 3: 빌드+작업 병행Pattern 3: Build + work in parallel "npm run build를 백그라운드로 돌리면서 다음 기능 구현을 시작해줘. 빌드 실패하면 알려줘."
실전 조합: 백그라운드 에이전트 + Worktree를 함께 쓰면, 메인 브랜치에서 작업하면서 동시에 워크트리에서 실험적 작업을 백그라운드로 돌릴 수 있습니다. "메인 작업은 계속하면서, 워크트리에서 이 리팩토링을 백그라운드로 시도해줘"처럼 요청하세요. Power combo: Using background agents + Worktree together lets you work on the main branch while simultaneously running experimental work in a worktree background. Try: "Continue main work while trying this refactoring in a worktree background."
02

Teleport

로컬 ↔ 웹 세션을 자유롭게 이동하세요. 터미널에서 하던 작업을 웹으로, 웹에서 하던 작업을 터미널로.Move freely between local ↔ web sessions. Continue terminal work on the web, or web work in the terminal.

"작업 포탈" 비유로 이해하기Understanding it with the "Portal" analogy

게임에서 포탈을 타면 다른 세계로 순간이동하듯이,
Teleport를 사용하면 터미널에서 하던 작업을 웹 브라우저로, 또는 웹에서 하던 작업을 터미널로 순간이동할 수 있습니다.

작업 컨텍스트가 통째로 이동하기 때문에, 대화 히스토리를 다시 설명할 필요가 없습니다.

Just like stepping through a portal in a game teleports you to another world,
Teleport lets you instantly move work from the terminal to a web browser, or from the web to the terminal.

The entire work context moves with you, so there's no need to re-explain the conversation history.

Teleport 작업 흐름Teleport Workflow

1

세션 시작Start Session

터미널(Claude Code CLI)이나 웹(claude.ai)에서 작업을 시작합니다.Start working in the terminal (Claude Code CLI) or on the web (claude.ai).

2

Teleport 명령Teleport Command

작업 환경을 전환하고 싶을 때 Teleport 명령을 사용합니다.Use the Teleport command when you want to switch environments.

Terminal
# 터미널 → 웹으로 이동 /teleport # URL이 생성됨 https://claude.ai/teleport/abc123...
3

URL로 연결Connect via URL

생성된 URL을 브라우저에서 열면 동일한 컨텍스트로 작업을 이어갈 수 있습니다.Open the generated URL in a browser to continue work in the same context.

4

다른 환경에서 작업 계속Continue in New Environment

이전 대화 히스토리와 컨텍스트가 그대로 유지된 채 새로운 환경에서 이어서 작업합니다.Continue working in the new environment with the previous conversation history and context fully intact.

👥
팀 협업 팁: Teleport URL을 팀원에게 공유하면, 내가 작업하던 세션의 컨텍스트를 팀원이 이어받아 작업할 수 있습니다. "이 코드 좀 봐줘"를 넘어서 "내 작업 세션 자체"를 공유하는 겁니다.Team collaboration tip: Share the Teleport URL with teammates so they can pick up where you left off in your session. It goes beyond "take a look at this code" — you're sharing your entire work session.
03

Agent Teams

여러 Claude 에이전트가 동시에 협업하는 멀티에이전트 오케스트레이션.Multi-agent orchestration where multiple Claude agents collaborate simultaneously.

"프로젝트 팀" 비유로 이해하기Understanding via the "Project Team" Analogy

혼자서 프론트엔드, 백엔드, QA, 문서화를 다 하면 시간이 오래 걸립니다.

Agent Teams는 PM(메인 에이전트)이 작업을 분배하고,
프론트엔드 개발자, 백엔드 개발자, QA 엔지니어가 각자의 Worktree에서 동시에 작업합니다.

마치 실제 개발팀처럼, 각 에이전트가 전문 영역을 맡아 병렬로 처리합니다.

Doing frontend, backend, QA, and documentation alone takes a long time.

Agent Teams has the PM (main agent) distribute work,
while the frontend developer, backend developer, and QA engineer work simultaneously in their own Worktrees.

Just like a real dev team, each agent handles their specialty area in parallel.

장점: 병렬 처리Advantage: Parallel Processing

여러 에이전트가 동시에 작업하므로, 순차적으로 처리하는 것보다 훨씬 빠릅니다. 프론트엔드 수정과 백엔드 수정을 동시에 진행할 수 있습니다.Multiple agents work simultaneously, making it much faster than sequential processing. Frontend and backend changes can proceed at the same time.

🎯

장점: 전문화Advantage: Specialization

각 에이전트에게 특정 역할과 컨텍스트를 부여할 수 있습니다. 프론트엔드 전문 에이전트는 UI/UX에만 집중하고, 백엔드 에이전트는 API에만 집중합니다.Each agent can be given a specific role and context. The frontend specialist focuses only on UI/UX, while the backend agent focuses only on APIs.

💰

주의점: 비용Caution: Cost

여러 에이전트가 동시에 동작하므로 API 사용량이 늘어납니다. 간단한 작업에는 단일 에이전트가 더 효율적일 수 있으니, 복잡한 작업에만 사용하세요.Running multiple agents simultaneously increases API usage. A single agent may be more efficient for simple tasks, so use this only for complex work.

주의점: 충돌 가능성Caution: Conflict Risk

여러 에이전트가 같은 파일을 수정하면 머지 충돌이 발생할 수 있습니다. 작업 영역을 명확히 분리하고, 메인 에이전트가 조율하도록 설계하세요.If multiple agents modify the same file, merge conflicts can occur. Clearly separate work areas and design the main agent to coordinate.

Agent Teams 사용 예시Agent Teams Usage Example
# 메인 에이전트에게 팀 작업 요청 claude "이 프로젝트를 리팩토링해줘. 프론트엔드, 백엔드, 테스트를 병렬로 처리해." # Claude가 자동으로 서브에이전트를 생성 Agent 1 (Frontend): UI 컴포넌트 리팩토링 Agent 2 (Backend): API 엔드포인트 정리 Agent 3 (Test): 테스트 커버리지 확대 # 각 에이전트는 별도 Worktree에서 독립 작업 # 메인 에이전트가 결과를 취합 & 머지
04

커스텀 슬래시 커맨드Custom Slash Commands

.claude/commands/ 디렉토리에 마크다운 파일을 넣으면, 나만의 슬래시 커맨드가 됩니다.Place markdown files in the .claude/commands/ directory to create your own slash commands.

만드는 법How to Create

1

폴더 생성Create Folder

프로젝트 루트에 .claude/commands/ 디렉토리를 만듭니다.Create the .claude/commands/ directory in the project root.

Terminal
mkdir -p .claude/commands
2

.md 파일 작성Write the .md File

파일 이름이 곧 커맨드 이름이 됩니다. 내용에는 Claude가 수행할 작업을 적습니다.The filename becomes the command name. Write the task you want Claude to perform in the content.

.claude/commands/review.md
# 코드 리뷰 현재 스테이징된 변경사항을 리뷰해줘. ## 리뷰 기준 - 버그 가능성이 있는 코드 - 성능 이슈 - 네이밍 컨벤션 위반 - 테스트 누락 ## 출력 포맷 파일별로 정리하되, 심각도를 HIGH / MEDIUM / LOW로 분류. 마지막에 전체 요약을 1~2문장으로 작성.
.claude/commands/test.md
# 테스트 생성 $ARGUMENTS 파일에 대한 유닛 테스트를 작성해줘. ## 규칙 - 테스트 프레임워크: 프로젝트에서 사용 중인 것 - 엣지 케이스 포함 - 각 테스트에 한글 설명 주석 추가 - 성공/실패 케이스 모두 작성
.claude/commands/deploy.md
# 배포 체크리스트 배포 전 아래 항목을 확인해줘: 1. 모든 테스트 통과 여부 확인 2. 린트 에러 없는지 확인 3. 환경변수 설정 누락 없는지 확인 4. 마이그레이션 필요 여부 확인 5. 문제가 없으면 "배포 준비 완료" 메시지 출력
3

사용하기Using the Command

Claude Code 대화 중에 슬래시(/)로 시작하면 자동 완성됩니다.During a Claude Code conversation, start with a slash (/) and it will autocomplete.

Claude Code CLI
# 커스텀 커맨드 사용 /review ← 코드 리뷰 실행 /test src/utils.ts ← 특정 파일 테스트 생성 /deploy ← 배포 체크리스트 실행
👥
팀 공유 팁: .claude/commands/ 디렉토리를 Git에 커밋하면, 팀 전체가 동일한 커스텀 커맨드를 사용할 수 있습니다. 팀의 워크플로우를 코드로 관리하세요.Team sharing tip: Commit the .claude/commands/ directory to Git and the entire team can use the same custom commands. Manage your team's workflow as code.
05

1M 컨텍스트 & 플러그인1M Context & Plugins

Extended Context Window방대한 코드베이스도 한 번에 파악합니다.Grasp even massive codebases all at once.

모델별 컨텍스트 크기 비교Context Size Comparison by Model

모델Model 컨텍스트 윈도우Context Window 대략적 코드량Approx. Code Volume
GPT-4 128K tokens ~300 파일~300 files
Claude 3.5 Sonnet 200K tokens ~500 파일~500 files
Claude (Extended) 1M tokens ~2,500 파일~2,500 files
Claude Code + 탐색Claude Code + Exploration 1M+ (도구 활용tool-assisted) 사실상 무제한Effectively unlimited
🔍

전체 코드베이스 분석Full Codebase Analysis

대규모 프로젝트의 아키텍처를 한눈에 파악할 수 있습니다. "이 프로젝트의 전체 구조를 설명해줘"라고 하면, 수천 개의 파일을 탐색하고 종합적인 분석을 제공합니다.Understand the architecture of large-scale projects at a glance. Say "explain the full structure of this project" and it will explore thousands of files to provide a comprehensive analysis.

🔄

대규모 리팩토링Large-Scale Refactoring

API 변경, 네이밍 컨벤션 통일, 디자인 패턴 적용 등 프로젝트 전반에 걸친 변경을 안전하게 수행합니다. 모든 관련 파일을 파악하고 일관성 있게 수정합니다.Safely perform project-wide changes like API updates, naming convention unification, and design pattern application. Identify all related files and modify them consistently.

💡
중요 포인트: 컨텍스트 윈도우가 아무리 커도 /compact 전략은 여전히 중요합니다. 불필요한 컨텍스트를 줄이면 응답 품질이 올라가고, 비용도 절약됩니다. 대용량 컨텍스트는 "필요할 때 쓸 수 있는 여유"이지, "항상 다 채워야 하는 공간"이 아닙니다.Key point: No matter how large the context window, the /compact strategy still matters. Reducing unnecessary context improves response quality and saves cost. A large context is "room available when needed," not "a space that must always be filled."
06

Fast Mode

/fast 명령 한 번으로 응답 속도를 2.5배 향상시키세요. 빠른 반복 작업과 라이브 디버깅에 최적화되어 있습니다.Boost response speed 2.5x with a single /fast command. Optimized for rapid iteration and live debugging.

Fast Mode란?What is Fast Mode?

Fast Mode는 다른 모델이 아닙니다. 동일한 Opus 4.6 모델을 사용하되, 비용 효율성보다 속도를 우선시하는 다른 API 구성을 사용합니다.

동일한 품질과 기능을 얻으며, 응답만 더 빠릅니다. 활성화되면 프롬프트 옆에 ↯ 아이콘이 나타납니다.

Fast Mode is not a different model. It uses the same Opus 4.6 model but with a different API configuration that prioritizes speed over cost efficiency.

You get the same quality and capabilities, just with faster responses. When active, a ↯ icon appears next to the prompt.

Fast Mode 켜기 / 끄기Toggle Fast Mode On / Off

CLI에서 /fast를 입력해 Tab을 눌러 전환합니다. 또는 settings.json에 설정으로 고정할 수 있습니다.In the CLI, type /fast and press Tab to toggle. Or fix it permanently in settings.json.

CLI / settings.json
# CLI에서 토글 /fast ← 켜기 / 끄기 # settings.json에서 항상 켜두기 { "fastMode": true }
📊

언제 쓸까?When to Use?

Fast Mode는 응답 지연 시간이 비용보다 중요한 상황에 최적입니다.Fast Mode is ideal when response latency matters more than cost.

적합Good for
  • 코드 변경에 대한 빠른 반복Rapid iteration on code changes
  • 라이브 디버깅 세션Live debugging sessions
  • 긴급 마감이 있는 시간 민감 작업Time-sensitive tasks with urgent deadlines
비적합Not ideal for
  • 장기 자동화 작업 (비용 부담)Long-running automation tasks (cost burden)
  • 배치 처리 / CI·CD 파이프라인Batch processing / CI·CD pipelines
  • 비용 민감 워크로드Cost-sensitive workloads
💰
비용 트레이드오프: Fast Mode는 표준 Opus 4.6보다 토큰당 가격이 더 높습니다. 대화 중간에 전환하면 전체 컨텍스트에 대해 Fast Mode 요금이 적용됩니다. 세션 시작 시 활성화하는 것이 비용 효율적입니다. 속도 제한 도달 시 자동으로 표준 모드로 폴백됩니다.Cost trade-off: Fast Mode has a higher per-token price than standard Opus 4.6. Switching mid-conversation applies Fast Mode pricing to the entire context. Activating at session start is more cost-efficient. Automatically falls back to standard mode when rate limits are reached.
07

Remote Control

로컬 터미널 세션을 폰이나 브라우저에서 원격으로 이어받으세요. 자리를 벗어나도 Claude Code 작업을 계속할 수 있습니다.Continue your local terminal session remotely from your phone or browser. Keep working on Claude Code even when away from your desk.

"원격 데스크탑" 비유로 이해하기Understanding via the "Remote Desktop" Analogy

마치 원격 데스크탑처럼, 로컬에서 실행 중인 Claude Code 세션을 클라우드를 통해 어디서든 접근할 수 있습니다.

사무실 컴퓨터에서 작업을 시작하고, 이동 중에 폰으로 이어받아 계속하고, 집에서 다시 PC로 돌아올 수 있습니다.

Just like remote desktop, you can access your locally running Claude Code session from anywhere via the cloud.

Start work on your office computer, continue on your phone while commuting, and return to your PC at home.

1

Remote 모드로 세션 시작Start Session in Remote Mode

로컬 터미널에서 --remote 플래그로 Claude Code를 시작합니다.Start Claude Code in the local terminal with the --remote flag.

Terminal
claude --remote # 또는 기존 세션에서 Remote Control 활성화
2

claude.ai/code에서 이어받기Pick Up at claude.ai/code

브라우저 또는 폰에서 claude.ai/code에 접속하여 Remote Control 옵션으로 로컬 세션에 연결합니다.Access claude.ai/code from a browser or phone and connect to the local session via the Remote Control option.

3

/teleport로 웹 → 로컬 이동Move Web → Local with /teleport

반대 방향도 가능합니다. 웹 세션에서 /teleport 명령을 사용하면 해당 세션을 로컬 터미널로 이동시킬 수 있습니다.The reverse is also possible. Use the /teleport command in a web session to move that session to the local terminal.

Web Session (claude.ai)
# 웹 세션을 로컬 터미널로 이동 /teleport # 로컬 터미널에서 세션이 이어집니다
📱
활용 시나리오: 회의실에서 폰으로 코드 리뷰를 지시하고, 사무실 돌아와서 터미널로 이어받아 실행 → 이동 중 브라우저로 PRD 분석 지시 → 귀가 후 로컬에서 코드 결과 확인. 작업 컨텍스트가 끊기지 않습니다.Usage scenario: Direct a code review on your phone in a meeting room, return to the office and continue in the terminal → Direct PRD analysis from a browser while commuting → Check code results locally after getting home. Work context never breaks.
08

키보드 단축키Keyboard Shortcuts

Claude Code를 더 빠르게 조작하는 필수 단축키들. 손이 키보드를 떠나지 않아도 됩니다.Essential shortcuts for faster Claude Code operation. Keep your hands on the keyboard.

단축키Shortcut 기능Function 상황Context
Shift + Tab 권한 모드 순환 (Auto Accept → Manual → Plan Only)Cycle permission modes (Auto Accept → Manual → Plan Only) 권한 제어Permission Control
Ctrl + B 현재 작업을 백그라운드로 이동 — 다른 작업 시작 가능Move current task to background — start another task 멀티태스킹Multitasking
Esc Claude 응답 중단 (생성 중인 응답 즉시 중지)Stop Claude response (immediately stop generation) 중단Stop
Esc × 2 마지막 파일 변경 취소 (Undo last file change)Undo last file change 실행 취소Undo
Ctrl + R 대화 히스토리 검색 (터미널에서 이전 명령 탐색)Search conversation history (navigate previous commands in terminal) 히스토리History
🎮

권한 모드 순환 (Shift+Tab)Permission Mode Cycle (Shift+Tab)

Shift+Tab을 누를 때마다 권한 모드가 순환됩니다. Auto Accept(자동 승인) → Manual(매번 확인) → Plan Only(계획만 보기) 순으로 전환됩니다. 위험한 작업 전엔 Manual로 전환하세요.Each Shift+Tab press cycles through permission modes: Auto AcceptManual (confirm each time) → Plan Only (view plan only). Switch to Manual before risky operations.

Esc 두 번으로 되돌리기Undo with Double Esc

Claude가 파일을 잘못 수정했을 때 Esc를 두 번 연속 누르면 마지막 파일 변경이 취소됩니다. 실수로 중요한 코드가 바뀌었을 때 빠른 복구 수단입니다. Worktree와 함께 쓰면 더욱 안전합니다.When Claude incorrectly modifies a file, press Esc twice in a row to undo the last file change. A quick recovery tool when important code is accidentally changed. Even safer when used with Worktree.

출력 스타일 변경: /output-style 명령으로 Claude의 응답 형식을 변경할 수 있습니다. 마크다운, 일반 텍스트, 간결 모드 등 상황에 맞게 조절하세요.Output style change: Use the /output-style command to change Claude's response format. Adjust to markdown, plain text, concise mode, etc. as needed.
09

설정 & 구성Settings & Configuration

settings.json과 환경 변수로 Claude Code 동작을 세밀하게 제어하세요. 개인·프로젝트·팀 단위로 계층적으로 적용됩니다.Control Claude Code behavior in detail with settings.json and environment variables. Applied hierarchically at personal, project, and team levels.

설정 파일 위치 및 범위Settings File Locations and Scope

범위Scope 파일 위치File Location 적용 대상Applies To Git 공유Git Sharing
User ~/.claude/settings.json 모든 프로젝트All projects 비공유Not shared
Project .claude/settings.json 이 저장소 전체Entire this repo 공유 가능Shareable
Local .claude/*.local.* 이 저장소의 나만Only me in this repo gitignored
Managed 시스템 관리 (IT 배포)System managed (IT deployment) 머신의 모든 사용자All users on machine IT 배포IT Deployed

주요 settings.json 키Key settings.json Keys

~/.claude/settings.json 또는or .claude/settings.json
{ "autoMemoryEnabled": true, // 자동 메모리 수집 여부 "cleanupPeriodDays": 30, // 오래된 데이터 정리 주기(일) "fastMode": false, // Fast Mode 기본값 "fastModePerSessionOptIn": false, // 세션마다 Fast Mode 재확인 "permissions": { "allow": [ // 항상 허용할 작업 "Bash(npm run test)", "Read(./**)" ], "deny": [ // 항상 차단할 작업 "Bash(rm -rf *)" ] } }

환경 변수 (Environment Variables)Environment Variables

환경 변수Environment Variable 설명Description
ANTHROPIC_MODEL 기본 모델 지정 (예: claude-opus-4-5)Specify default model (e.g., claude-opus-4-5)
CLAUDE_CODE_DISABLE_AUTO_MEMORY 1로 설정 시 자동 메모리 수집 비활성화Set to 1 to disable auto memory collection
CLAUDE_CODE_DISABLE_FAST_MODE 1로 설정 시 Fast Mode 완전 비활성화Set to 1 to fully disable Fast Mode
ANTHROPIC_API_KEY Anthropic API 키 (Console API 사용 시)Anthropic API key (when using Console API)

모델 전환Model Switching

세션 중 언제든 /model 명령으로 모델을 바꿀 수 있습니다. CLI 플래그로도 지정 가능합니다.Change the model anytime during a session with the /model command. Can also be specified via CLI flags.

Terminal / CLI
# 세션 중 모델 전환 /model ← 대화형으로 선택 # 시작 시 모델 지정 claude --model claude-opus-4-5 # 환경 변수로 기본 모델 고정 export ANTHROPIC_MODEL=claude-opus-4-5
우선순위: 설정은 Managed(최고) > CLI 인수 > Local > Project > User(최저) 순으로 적용됩니다. 더 구체적인 범위가 상위 범위를 덮어씁니다. /config 명령으로 현재 설정 상태를 탭 인터페이스로 확인하고 수정할 수 있습니다.Priority: Settings are applied in order: Managed (highest) > CLI args > Local > Project > User (lowest). More specific scopes override higher ones. Use the /config command to view and edit the current config state via a tab interface.
10

Headless / 프로그래매틱 모드Headless / Programmatic Mode

-p 플래그로 Claude Code를 스크립트, 자동화, CI/CD 파이프라인에 직접 통합하세요.Directly integrate Claude Code into scripts, automation, and CI/CD pipelines with the -p flag.

Headless 모드란?What is Headless Mode?

대화형 REPL 없이 단일 명령으로 Claude를 호출하는 모드입니다. 파이프(|)로 데이터를 넘기거나, 셸 스크립트에서 호출하거나, GitHub Actions에서 자동 실행할 수 있습니다.

Claude가 자동화 도구가 되는 겁니다.

A mode that calls Claude with a single command without an interactive REPL. You can pipe data via (|), call it from shell scripts, or auto-run it in GitHub Actions.

Claude becomes an automation tool.

활용 예시Usage Examples

1

로그 실시간 모니터링Real-time Log Monitoring

앱 로그를 실시간으로 Claude에게 넘겨 에러 발생 시 즉시 알림을 받습니다.Stream app logs to Claude in real time and get instant notifications when errors occur.

Terminal
tail -f app.log | claude -p "에러가 발생하면 즉시 알려줘"
2

코드 변경 자동 리뷰Automated Code Change Review

커밋 전 git diff를 Claude에게 넘겨 보안 이슈나 버그를 자동으로 검토합니다.Pass git diff to Claude before committing to automatically review for security issues or bugs.

Terminal
git diff main | claude -p "보안 이슈가 있는지 리뷰해줘"
3

셸 스크립트 통합Shell Script Integration

자동화 스크립트 안에서 Claude를 서브루틴처럼 호출해 분석, 변환, 요약 작업을 수행합니다.Call Claude like a subroutine within automation scripts to perform analysis, transformation, and summarization tasks.

deploy.sh
#!/bin/bash # 배포 전 자동 코드 리뷰 REVIEW=$(git diff HEAD~1 | claude -p "심각한 문제가 있으면 ABORT, 없으면 OK만 응답해") if [ "$REVIEW" = "ABORT" ]; then echo "배포 중단: Claude가 문제 감지" exit 1 fi echo "배포 진행..."
🤖
CI/CD 통합: claude -p "..."는 표준 exit code를 반환합니다. 성공 시 0, 실패 시 1. 이를 활용해 PR 자동 리뷰, 테스트 분석, 릴리즈 노트 생성 등을 파이프라인에 통합할 수 있습니다.CI/CD integration: claude -p "..." returns standard exit codes. 0 for success, 1 for failure. Use this to integrate PR auto-review, test analysis, release note generation, and more into your pipeline.
11

통합: GitHub Actions & Chrome 확장Integrations: GitHub Actions & Chrome Extension

Claude Code를 GitHub 워크플로우브라우저에 직접 통합하여 개발 사이클 전체에 AI를 연결하세요.Directly integrate Claude Code into GitHub workflows and the browser to connect AI across your entire development cycle.

📦

GitHub Actions 자동화GitHub Actions Automation

PR이 열릴 때마다 Claude가 자동으로 코드를 리뷰하고 댓글을 달게 설정할 수 있습니다. 팀 리뷰 부담을 크게 줄여줍니다.Configure Claude to automatically review code and post comments whenever a PR is opened. Greatly reduces the team's review burden.

.github/workflows/claude-review.yml
on: pull_request: types: [opened, synchronize] jobs: claude-review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Claude PR Review run: | git diff origin/main | \ claude -p "이 PR을 리뷰하고 GitHub 댓글 형식으로 피드백을 작성해줘"
🧩

Chrome 확장 (Beta)Chrome Extension (Beta)

라이브 웹 앱을 디버깅할 때 Claude가 브라우저 DOM, 콘솔 에러, 네트워크 요청에 직접 접근할 수 있습니다.When debugging a live web app, Claude can directly access the browser DOM, console errors, and network requests.

Beta DOM 접근DOM Access 콘솔 에러 분석Console Error Analysis

프로덕션 버그를 재현하면서 Claude에게 "이 에러가 왜 나는지 분석해줘"라고 하면, 실제 브라우저 상태를 기반으로 정확한 원인을 찾아줍니다.While reproducing a production bug, ask Claude "analyze why this error is occurring" and it will find the exact cause based on the actual browser state.

베타 기능: Chrome 확장은 현재 베타 상태입니다. 기능과 가용성이 변경될 수 있습니다.Beta feature: The Chrome extension is currently in beta. Features and availability may change.
12

자주 묻는 질문Frequently Asked Questions

고급 기능에 대해 가장 많이 궁금해하는 것들The most common questions about advanced features

Git branch는 같은 작업 디렉토리에서 브랜치만 전환하는 것이고, Worktree는 물리적으로 별도의 디렉토리를 만들어서 작업합니다. Branch를 전환하면 현재 작업 중인 파일이 바뀌지만, Worktree는 원본 디렉토리는 그대로 두고 별도 공간에서 작업하므로 두 작업을 동시에 진행할 수 있습니다. Claude Code의 Worktree 모드는 이 Git Worktree 기능을 활용하여, 안전한 격리 환경에서 에이전트가 자유롭게 코드를 수정할 수 있도록 합니다.Git branch only switches branches within the same working directory, while Worktree creates a physically separate directory to work in. Switching branches changes the files you're currently working on, but Worktree leaves the original directory intact and works in a separate space, so you can work on both simultaneously. Claude Code's Worktree mode leverages this Git Worktree feature to let agents freely modify code in a safe, isolated environment.
기술적으로는 여러 개의 서브에이전트를 동시에 실행할 수 있지만, 일반적으로 3~5개 정도가 효율적입니다. 너무 많은 에이전트를 동시에 실행하면 API 비용이 급증하고, 머지 충돌 가능성도 높아집니다. 메인 에이전트가 작업을 잘 분배하도록 명확한 지시를 주는 것이 중요합니다. 시스템 리소스(CPU, 메모리)도 고려해야 합니다.Technically multiple sub-agents can run simultaneously, but 3–5 is generally the efficient range. Running too many agents at once causes API costs to spike and increases the risk of merge conflicts. It's important to give clear instructions so the main agent distributes work well. System resources (CPU, memory) should also be considered.
네! .md 파일 안에서 $ARGUMENTS 플레이스홀더를 사용하면, 슬래시 커맨드 뒤에 입력한 텍스트가 해당 위치에 삽입됩니다. 예를 들어 /test src/utils.ts라고 입력하면, test.md 안의 $ARGUMENTS가 "src/utils.ts"로 치환됩니다. 이를 통해 하나의 커맨드를 다양한 대상에 재사용할 수 있습니다.Yes! Using the $ARGUMENTS placeholder inside the .md file inserts the text typed after the slash command at that position. For example, typing /test src/utils.ts replaces $ARGUMENTS in test.md with "src/utils.ts". This lets you reuse a single command for various targets.
Teleport URL은 일회용이며 시간 제한이 있습니다. URL을 아는 사람만 접근할 수 있고, 한 번 사용되면 만료됩니다. 다만, URL 자체를 공유할 때는 주의가 필요합니다. 민감한 코드가 포함된 세션의 URL을 불특정 다수에게 공개하는 것은 피해야 합니다. 팀 내부에서 신뢰할 수 있는 사람에게만 공유하세요. Anthropic의 보안 정책에 따라 데이터는 암호화되어 전송됩니다.Teleport URLs are single-use and time-limited. Only someone with the URL can access it, and it expires after one use. However, care is needed when sharing the URL itself. Avoid publicly sharing URLs for sessions containing sensitive code. Only share with trusted people within your team. Data is transmitted encrypted according to Anthropic's security policy.

요약하면 이겁니다Here's the Summary

Worktree = 안전한 실험 공간
Teleport = 환경 간 순간이동
Agent Teams = 멀티에이전트 병렬 처리
커스텀 슬래시 = 나만의 워크플로우 자동화
Fast Mode = 2.5배 빠른 응답속도
Remote Control = 폰/브라우저에서 이어받기
Headless 모드 = CI/CD 완전 자동화
Worktree = Safe Experimentation Space
Teleport = Instant Travel Between Environments
Agent Teams = Multi-Agent Parallel Processing
Custom Slash = Your Own Workflow Automation
Fast Mode = 2.5x Faster Response Speed
Remote Control = Pick Up From Phone/Browser
Headless Mode = Full CI/CD Automation

이 기능들을 조합하면, Claude Code는 단순한 코딩 도우미가 아니라
팀 전체의 개발 생산성 플랫폼이 됩니다.
Combining these features, Claude Code becomes not just a coding assistant,
but a development productivity platform for the entire team.

이전: 실전 워크플로우Prev: Real-World Workflow 다음: 실전 프로젝트Next: Real-World Project