Claude Code 101로 돌아가기Back to Claude Code 101
Module 06 · 심화 과정Module 06 · Advanced

서브에이전트 &
커스텀 에이전트
Sub-agent &
Custom Agents

Claude에게 전문 팀원을 만들어주는 방법,
내장 에이전트부터 나만의 커스텀 에이전트까지
How to create specialist team members for Claude,
from built-in agents to your own custom agents

에이전트란?What are Agents? 내장 에이전트 보기View Built-in Agents
스크롤Scroll
01

서브에이전트란?What is a Sub-agent?

한 줄 요약: Claude가 특정 작업을 처리하는 전문 AI 어시스턴트에게 일을 위임하는 것입니다.One-line summary: Claude delegates work to a specialized AI assistant that handles specific tasks.

팀장이 전문 팀원에게 일을 분배하는 것과 같습니다

서브에이전트는 자체 컨텍스트 윈도우에서 실행됩니다. 사용자 정의 시스템 프롬프트, 특정 도구 접근 권한, 독립적인 권한을 가집니다.

  👨‍💼 메인 Claude = 팀장 → 작업 파악 및 적절한 에이전트에게 위임 결정
  🧑‍💻 서브에이전트 = 전문 팀원 → 자체 컨텍스트에서 독립적으로 처리 후 결과 반환

Claude는 서브에이전트의 description 필드를 기반으로 어떤 에이전트에게 위임할지 자동으로 결정합니다.

Like a team leader distributing work to specialist team members

Sub-agents run in their own context window. They have custom system prompts, specific tool access permissions, and independent permissions.

  👨‍💼 Main Claude = Team Leader → Understands tasks and decides delegation to appropriate agents
  🧑‍💻 Sub-agent = Specialist team member → Processes independently in its own context and returns results

Claude automatically decides which agent to delegate to based on the sub-agent's description field.

🧠

컨텍스트 보존Context Preservation

탐색·구현을 주 대화에서 분리합니다. 각 에이전트는 독립적인 컨텍스트 윈도우를 가져 메인 Claude의 컨텍스트를 아낄 수 있습니다.Separates exploration and implementation from the main conversation. Each agent has its own independent context window, conserving main Claude's context.

🛡️

제약 조건 적용Apply Constraints

에이전트가 사용할 수 있는 도구를 제한합니다. 리뷰 에이전트에게 Write 도구를 빼면 코드를 읽기만 하고 수정하지 않습니다.Restricts the tools available to an agent. Removing the Write tool from a review agent makes it read-only, preventing modifications.

💸

비용 제어Cost Control

Haiku 같은 빠르고 저렴한 모델로 간단한 작업을 라우팅합니다. 탐색 작업에 Haiku를 쓰고 복잡한 작업에 Opus를 쓰는 전략이 가능합니다.Routes simple tasks to fast, cheap models like Haiku. Enables strategies like using Haiku for exploration and Opus for complex tasks.

❌ 직접 다 하기❌ Doing everything directly
"10개 파일 리팩토링 해줘" → Claude가 순차적으로 하나씩 처리 → 컨텍스트가 점점 커짐 → 뒤쪽 파일은 앞쪽 내용 잊어버림 → 시간도 오래 걸림 ⏳"Refactor these 10 files" → Claude processes them one by one → Context grows larger and larger → Forgets earlier content for later files → Takes a long time ⏳
✅ 에이전트 위임✅ Agent Delegation
"10개 파일 리팩토링 해줘" → Claude가 작업 분석 및 위임 결정 → 서브에이전트 여러 개 생성 → 각자 독립적으로 병렬 처리 → 결과를 메인에게 보고 ⚡"Refactor these 10 files" → Claude analyzes task and decides delegation → Creates multiple sub-agents → Each processes independently in parallel → Reports results to main Claude ⚡
💬
서브에이전트 vs Agent Teams: 서브에이전트는 단일 세션 내에서 작동합니다. 여러 에이전트가 별도의 세션 간에 병렬로 통신해야 하는 경우 Agent Teams를 사용합니다. 서브에이전트는 다른 서브에이전트를 생성할 수 없습니다.Sub-agents vs Agent Teams: Sub-agents operate within a single session. Use Agent Teams when multiple agents need to communicate in parallel across separate sessions. Sub-agents cannot create other sub-agents.
02

내장 서브에이전트Built-in Sub-agents

Claude Code에는 Claude가 적절할 때 자동으로 사용하는 내장 서브에이전트가 포함되어 있습니다. 각각은 부모 대화의 권한을 상속하며 추가 도구 제한이 있습니다.Claude Code includes built-in sub-agents that Claude automatically uses when appropriate. Each inherits permissions from the parent conversation and has additional tool restrictions.

🔍 Explore

코드베이스 검색 및 분석에 최적화된 빠른 읽기 전용 에이전트입니다. Claude는 변경 없이 코드베이스를 검색하거나 이해해야 할 때 Explore에 위임합니다. 탐색 결과가 주 대화 컨텍스트에서 분리됩니다.A fast, read-only agent optimized for searching and analyzing codebases. Claude delegates to Explore when it needs to search or understand a codebase without making changes. Exploration results are separated from the main conversation context.

Explore를 호출할 때 Claude는 철저함 수준을 지정합니다: 대상 조회의 경우 quick, 균형 잡힌 탐색의 경우 medium, 포괄적인 분석의 경우 very thorough.When invoking Explore, Claude specifies a thoroughness level: quick for targeted lookups, medium for balanced exploration, very thorough for comprehensive analysis.

모델: Haiku (빠름, 낮은 지연시간)Model: Haiku (fast, low latency) 도구: 읽기 전용 (Write/Edit 거부)Tools: Read-only (Write/Edit denied) 목적: 파일 검색, 코드 탐색Purpose: File search, code exploration

📋 Plan

계획을 제시하기 전에 컨텍스트를 수집하기 위해 Plan Mode 중에 사용되는 연구 에이전트입니다. Plan mode에 있고 Claude가 코드베이스를 이해해야 할 때 연구를 Plan 서브에이전트에 위임합니다.A research agent used during Plan Mode to gather context before presenting a plan. When in Plan mode and Claude needs to understand the codebase, it delegates research to the Plan sub-agent.

무한 중첩을 방지하면서(서브에이전트는 다른 서브에이전트를 생성할 수 없음) 필요한 컨텍스트를 수집합니다.Gathers necessary context while preventing infinite nesting (sub-agents cannot create other sub-agents).

모델: 주 대화에서 상속Model: Inherited from main conversation 도구: 읽기 전용 (Write/Edit 거부)Tools: Read-only (Write/Edit denied) 목적: 계획을 위한 코드베이스 연구Purpose: Codebase research for planning

⚙️ general-purpose

탐색과 작업 모두를 필요로 하는 복잡한 다단계 작업을 위한 유능한 에이전트입니다. Claude는 작업이 탐색과 수정 모두를 필요로 하거나, 결과를 해석하기 위한 복잡한 추론이 필요하거나, 여러 종속 단계가 필요할 때 이 에이전트에 위임합니다.A capable agent for complex multi-step tasks that require both exploration and action. Claude delegates to this agent when the task requires both exploration and modification, needs complex reasoning to interpret results, or involves multiple dependent steps.

모델: 주 대화에서 상속Model: Inherited from main conversation 도구: 모든 도구Tools: All tools 목적: 복잡한 연구, 다단계 작업, 코드 수정Purpose: Complex research, multi-step tasks, code modification

📦 기타 내장 에이전트Other Built-in Agents

Claude Code에는 특정 작업을 위한 추가 도우미 에이전트가 포함되어 있습니다. 이들은 일반적으로 자동으로 호출되므로 직접 사용할 필요가 없습니다.Claude Code includes additional helper agents for specific tasks. They are generally invoked automatically, so you don't need to use them directly.

에이전트Agent 모델Model Claude가 사용하는 경우When Claude uses it
Bash 상속Inherited 별도의 컨텍스트에서 터미널 명령 실행Running terminal commands in a separate context
statusline-setup Sonnet /statusline을 실행하여 상태 표시줄을 구성할 때When running /statusline to configure the status bar
Claude Code Guide Haiku Claude Code 기능에 대한 질문을 할 때When asking questions about Claude Code features
🚫
특정 내장 에이전트 비활성화: permissions.deny에 추가하면 됩니다. 예: {"permissions": {"deny": ["Agent(Explore)", "Agent(my-agent)"]}}Disable a specific built-in agent: Add it to permissions.deny. Example: {"permissions": {"deny": ["Agent(Explore)", "Agent(my-agent)"]}}
03

커스텀 에이전트 만들기Creating Custom Agents

서브에이전트는 YAML frontmatter가 있는 마크다운 파일입니다. /agents 명령으로 대화형 생성하거나, 직접 파일을 작성할 수 있습니다.Sub-agents are markdown files with YAML frontmatter. You can create them interactively with the /agents command, or write the file directly.

1

/agents 명령으로 에이전트 생성Create Agent with /agents Command

Claude Code 세션에서 /agents를 실행하면 대화형 에이전트 관리 인터페이스가 열립니다. Create new agent를 선택한 후 User-level 또는 Project-level을 선택합니다.Running /agents in a Claude Code session opens an interactive agent management interface. Select Create new agent, then choose User-level or Project-level.

Claude Code 세션Claude Code Session
/agents # 대화형 에이전트 관리 인터페이스 오픈 # - 사용 가능한 모든 에이전트 보기 (내장, 사용자, 프로젝트, 플러그인) # - 새 에이전트 만들기 (Claude 생성 또는 수동) # - 기존 에이전트 편집/삭제 # 명령줄에서 구성된 모든 에이전트 목록 보기 claude agents
2

저장 위치 선택 (범위 결정)Choose Save Location (Determine Scope)

에이전트 파일의 위치에 따라 적용 범위가 달라집니다. 팀과 공유할 프로젝트 에이전트는 버전 제어에 체크인하세요.The scope varies depending on where the agent file is located. Check project agents to share with your team into version control.

위치Location 범위Scope 우선순위Priority
--agents CLI 플래그flag 현재 세션만Current session only 1 (최고)1 (Highest)
.claude/agents/ 현재 프로젝트Current project 2
~/.claude/agents/ 모든 프로젝트 (개인)All projects (personal) 3
플러그인 agents/ 디렉토리Plugin agents/ directory 플러그인이 활성화된 위치Where the plugin is active 4 (최저)4 (Lowest)
3

마크다운 파일 작성 (YAML frontmatter)Write Markdown File (YAML frontmatter)

서브에이전트 파일은 YAML frontmatter + 마크다운 시스템 프롬프트로 구성됩니다. 파일명 = 에이전트 이름이 됩니다.A sub-agent file consists of YAML frontmatter + markdown system prompt. The filename becomes the agent name.

.claude/agents/code-reviewer.md
--- name: code-reviewer description: 코드 변경사항 리뷰 전문가. 코드 수정 후 proactively 사용하세요. tools: Read, Grep, Glob, Bash model: sonnet # sonnet, opus, haiku, inherit 중 선택 permissionMode: default # default, acceptEdits, dontAsk, bypassPermissions, plan maxTurns: 50 memory: user # user, project, local - 세션 간 지속 메모리 --- 당신은 시니어 개발자 수준의 코드 리뷰어입니다. 호출 시: 1. git diff를 실행하여 최근 변경사항 확인 2. 수정된 파일에 집중 3. 즉시 리뷰 시작 리뷰 체크리스트: - 코드가 명확하고 읽기 쉬운가 - 함수와 변수명이 적절한가 - 중복 코드는 없는가 - 오류 처리가 적절한가 - 보안 취약점은 없는가 피드백 형식: ### 🔴 반드시 수정 (버그/보안) ### 🟡 개선 제안 (구체적 코드 포함) ### 🟢 잘한 점 (2~3개)
4

에이전트 사용하기Using the Agent

저장 즉시 사용 가능합니다 (재시작 불필요). Claude가 description을 기반으로 자동 위임하거나, 직접 요청할 수 있습니다.Available immediately after saving (no restart required). Claude can auto-delegate based on the description, or you can request directly.

에이전트 호출 방법How to Invoke Agent
# 자동 위임 (description 기반으로 Claude가 자동 선택) "이 코드 리뷰해줘" → code-reviewer 에이전트 자동 위임 # 명시적 요청 "code-reviewer 에이전트로 이 PR을 리뷰해줘" # CLI --agent 플래그로 직접 실행 claude --agent code-reviewer # 적극적 사용 유도: description에 "use proactively" 문구 포함 description: "코드 리뷰 전문가. Use proactively after code changes."
04

상세 설정 옵션Detailed Configuration Options

서브에이전트의 모든 frontmatter 필드와 고급 기능을 알아봅니다.Learn about all frontmatter fields and advanced features of sub-agents.

📋 지원되는 Frontmatter 필드 전체 목록Complete List of Supported Frontmatter Fields

필드Field 필수Required 설명Description
name 필수Required 소문자 문자와 하이픈을 사용하는 고유 식별자Unique identifier using lowercase letters and hyphens
description 필수Required Claude가 이 에이전트에 위임해야 할 때 (위임 판단 기준)When Claude should delegate to this agent (basis for delegation decisions)
tools 선택Optional 허용할 도구 목록. 생략하면 모든 도구 상속. Agent(name) 구문으로 생성 가능한 서브에이전트 제한 가능List of allowed tools. If omitted, inherits all tools. Can restrict spawnable sub-agents with Agent(name) syntax
disallowedTools 선택Optional 차단할 도구 목록 (허용 목록에서 제거)List of tools to block (removed from allowlist)
model 선택Optional sonnet, opus, haiku, inherit 중 선택. 기본값: inheritChoose from sonnet, opus, haiku, inherit. Default: inherit
permissionMode 선택Optional default, acceptEdits, dontAsk, bypassPermissions, plan
maxTurns 선택Optional 에이전트가 중지되기 전의 최대 에이전트 턴 수Maximum agent turns before the agent stops
skills 선택Optional 시작 시 에이전트 컨텍스트에 로드할 Skills. 에이전트는 부모 대화에서 skill을 상속하지 않으므로 명시적으로 나열 필요Skills to load into the agent context at startup. Agents don't inherit skills from the parent conversation, so must be listed explicitly
mcpServers 선택Optional 이 에이전트에서 사용 가능한 MCP 서버 이름 목록 또는 인라인 정의List of MCP server names or inline definitions available in this agent
hooks 선택Optional 이 에이전트로 범위가 지정된 라이프사이클 hooks (PreToolUse, PostToolUse, Stop 등)Lifecycle hooks scoped to this agent (PreToolUse, PostToolUse, Stop, etc.)
memory 선택Optional 지속적 메모리 범위: user, project, local. 세션 간 학습 활성화Persistent memory scope: user, project, local. Enables learning across sessions
background 선택Optional true로 설정하면 항상 백그라운드 태스크로 실행. 기본값: falseWhen set to true, always runs as a background task. Default: false
isolation 선택Optional worktree로 설정하면 임시 git worktree에서 실행 (격리된 저장소 복사본 제공)When set to worktree, runs in a temporary git worktree (provides an isolated repo copy)

🧠 지속적 메모리 (Persistent Memory)Persistent Memory

memory 필드는 서브에이전트에 대화 간에 유지되는 지속적 디렉토리를 제공합니다. 코드베이스 패턴, 디버깅 통찰력, 아키텍처 결정 등의 지식을 시간에 따라 축적합니다.The memory field provides a persistent directory maintained between conversations for the sub-agent. Accumulates knowledge like codebase patterns, debugging insights, and architecture decisions over time.

범위Scope 저장 위치Storage Location 사용 시기When to Use
user ~/.claude/agent-memory/<name>/ 모든 프로젝트에서 학습 기억 (권장 기본값)Learned memory across all projects (recommended default)
project .claude/agent-memory/<name>/ 프로젝트별 지식, 버전 제어로 팀 공유 가능Project-specific knowledge, shareable with team via version control
local .claude/agent-memory-local/<name>/ 프로젝트별이지만 버전 제어에 포함하지 않을 때Project-specific but not to be included in version control
메모리 활용 예시
--- name: code-reviewer description: 코드 리뷰 전문가 memory: user --- 당신은 코드 리뷰어입니다. 작업을 시작하기 전에 메모리를 확인하세요. ## 메모리 관리 지침 코드베이스를 분석하면서 발견한 패턴, 컨벤션, 반복되는 문제들을 메모리에 업데이트하세요. 이것이 시간이 지남에 따라 더 효과적인 지식 기반을 만들어냅니다.

⚠️ 권한 모드 (Permission Modes)Permission Modes

모드Mode 동작Behavior
default 프롬프트를 사용한 표준 권한 확인Standard permission confirmation using prompts
acceptEdits 파일 편집 자동 수락Auto-accept file edits
dontAsk 권한 프롬프트 자동 거부 (명시적으로 허용된 도구는 여전히 작동)Auto-reject permission prompts (explicitly allowed tools still work)
bypassPermissions 모든 권한 확인 건너뛰기 (주의해서 사용)Skip all permission confirmations (use with caution)
plan Plan mode (읽기 전용 탐색)Plan mode (read-only exploration)
⚠️
주의: bypassPermissions는 모든 권한 확인을 건너뛰어 서브에이전트가 승인 없이 모든 작업을 실행할 수 있게 합니다. 신중하게 사용하세요. 부모가 bypassPermissions를 사용하면 이것이 우선하며 재정의할 수 없습니다.Warning: bypassPermissions skips all permission checks, allowing the sub-agent to execute any action without approval. Use with caution. If the parent uses bypassPermissions, it takes precedence and cannot be overridden.

📦 CLI --agents 플래그 (세션용)Flag (for sessions)

세션 중에만 사용할 에이전트를 JSON으로 전달합니다. 디스크에 저장되지 않아 빠른 테스트나 자동화 스크립트에 유용합니다.Pass agents as JSON to use only during the session. Not saved to disk, so useful for quick tests or automation scripts.

Terminal
claude --agents '{ "code-reviewer": { "description": "Expert code reviewer. Use proactively after code changes.", "prompt": "You are a senior code reviewer. Focus on code quality, security, and best practices.", "tools": ["Read", "Grep", "Glob", "Bash"], "model": "sonnet" } }'

🗂️ 에이전트 갤러리Agent Gallery

바로 활용할 수 있는 실전 에이전트 아이디어 모음입니다.A collection of practical agent ideas you can use right away.

🔍 code-reviewer

코드를 수정하지 않고 검토하는 읽기 전용 에이전트. 보안, 성능, 가독성 관점 피드백.Read-only agent that reviews code without modifying it. Feedback from security, performance, and readability perspectives.

모델:Model: sonnet
도구:Tools: Read, Grep, Glob, Bash
권한:Perms: Write/Edit 없음No Write/Edit

🐛 debugger

오류, 테스트 실패, 예상치 못한 동작 디버깅 전문가. 근본 원인 분석 후 수정.Expert debugger for errors, test failures, and unexpected behavior. Analyzes root cause then fixes.

모델:Model: inherit
도구:Tools: Read, Edit, Bash, Grep, Glob
특징:Feature: 진단 → 수정 → 검증Diagnose → Fix → Verify

📊 data-scientist

SQL, BigQuery 분석 전문가. 데이터 분석 작업과 쿼리에 proactively 사용.SQL, BigQuery analysis expert. Use proactively for data analysis tasks and queries.

모델:Model: sonnet
도구:Tools: Bash, Read, Write
특징:Feature: BigQuery CLI 활용BigQuery CLI usage

🗄️ db-reader

읽기 전용 DB 쿼리만 허용. PreToolUse hook으로 SQL 쓰기 작업 차단.Only allows read-only DB queries. Blocks SQL write operations with PreToolUse hook.

모델:Model: inherit
도구:Tools: Bash (SELECT만 허용)Bash (SELECT only)
특징:Feature: hooks로 세밀한 제어Fine-grained control with hooks

🧪 test-writer

테스트 작성 전문가. 기존 코드를 분석하여 유닛·통합 테스트를 자동 생성합니다.Test writing specialist. Analyzes existing code and auto-generates unit and integration tests.

트리거:Trigger: "테스트 작성해줘""Write tests"
출력:Output: 테스트 파일Test files
도구:Tools: Read, Write, Bash

📝 doc-writer

문서 작성 전문가. 코드를 분석하여 README, API 문서, 주석을 자동으로 생성합니다.Documentation specialist. Analyzes code and auto-generates README, API docs, and comments.

트리거:Trigger: "문서 만들어줘""Create docs"
출력:Output: 마크다운 문서Markdown docs
도구:Tools: Read, Write, Glob
05

백그라운드 실행 & 멀티태스킹Background Execution & Multitasking

서브에이전트는 포어그라운드(차단) 또는 백그라운드(동시)에서 실행할 수 있습니다.Sub-agents can run in the foreground (blocking) or background (concurrent).

🎮

포어그라운드 (Foreground)Foreground

완료될 때까지 주 대화를 차단합니다. 권한 프롬프트 및 명확한 질문이 사용자에게 전달됩니다. 결과를 즉시 확인해야 할 때 사용합니다.Blocks the main conversation until complete. Permission prompts and clarifying questions are passed to the user. Use when you need to see results immediately.

🚀

백그라운드 (Background)Background

동시에 실행되는 동안 다른 작업을 계속할 수 있습니다. Ctrl+B로 실행 중인 작업을 백그라운드로 전환할 수 있습니다.Allows you to continue other work while it runs simultaneously. Use Ctrl+B to send a running task to the background.

💡
백그라운드 에이전트 권한: 시작 전에 Claude Code가 필요한 도구 권한을 미리 요청합니다. 실행 중에는 사전 승인된 권한만 사용하고, 그 외는 자동 거부됩니다. 권한 부족으로 실패한 경우 에이전트를 재개하여 대화형 프롬프트로 다시 시도할 수 있습니다.Background agent permissions: Claude Code pre-requests necessary tool permissions before starting. During execution, only pre-approved permissions are used; others are automatically denied. If it fails due to insufficient permissions, you can resume the agent to retry with interactive prompts.
백그라운드 실행 흐름
# 1. 에이전트에게 큰 작업 시작 "이 프로젝트 전체 코드를 리뷰해줘" # 2. 작업 중에 Ctrl+B → 백그라운드로 전환! [작업이 백그라운드에서 계속 진행됨] # 3. 새 대화에서 다른 작업 진행 "README.md 업데이트해줘" # 4. 백그라운드 작업 완료 시 알림 ✅ 코드 리뷰 완료! 결과를 확인하세요. # 모든 백그라운드 작업 기능 비활성화 CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1

📊 일반적인 활용 패턴Common Usage Patterns

🧹

대량 작업 격리Isolate Bulk Operations

테스트 실행, 로그 분석처럼 많은 출력을 생성하는 작업을 서브에이전트에 위임합니다. 상세 출력은 에이전트 컨텍스트에 유지되고, 관련 요약만 주 대화로 반환됩니다.Delegate tasks that generate lots of output, like running tests or analyzing logs, to sub-agents. Detailed output stays in the agent context; only relevant summaries return to the main conversation.

"서브에이전트로 테스트 스위트를 실행하고 실패한 테스트와 오류 메시지만 보고해줘""Run the test suite with a sub-agent and report only failed tests and error messages"
🔀

병렬 연구 실행Run Parallel Research

독립적인 조사를 여러 서브에이전트가 동시에 수행합니다. 각 에이전트가 자신의 영역을 탐색한 후 결과를 종합합니다.Multiple sub-agents perform independent investigations simultaneously. Each agent explores its own area, then results are synthesized.

"인증, 데이터베이스, API 모듈을 별도 서브에이전트로 병렬 연구해줘""Research the auth, database, and API modules in parallel with separate sub-agents"

실전 시나리오: 에이전트 체인 (순차 연결)

다단계 워크플로우를 위해 에이전트를 순차적으로 연결합니다.

예시:
  1. code-reviewer 에이전트로 성능 문제 발견
  2. 결과를 받아서 optimizer 에이전트로 수정

"code-reviewer 에이전트로 성능 문제를 찾고, 그 다음 optimizer 에이전트로 수정해줘"

주의: 서브에이전트는 다른 서브에이전트를 생성할 수 없습니다. 중첩 위임이 필요하면 Skills를 사용하거나 주 대화에서 에이전트를 체인하세요.

Real Scenario: Agent Chain (Sequential Connection)

Connect agents sequentially for multi-step workflows.

Example:
  1. Find performance issues with the code-reviewer agent
  2. Take those results and fix them with the optimizer agent

"Find performance issues with the code-reviewer agent, then fix them with the optimizer agent"

Note: Sub-agents cannot create other sub-agents. If nested delegation is needed, use Skills or chain agents from the main conversation.

06

자주 묻는 질문Frequently Asked Questions

에이전트에 대해 가장 많이 궁금해하는 것들The most common questions about agents

서브에이전트는 세션 시작 시 로드됩니다. 파일을 수동으로 추가한 경우 두 가지 방법으로 즉시 로드할 수 있습니다: (1) /agents 명령을 실행하면 새 에이전트가 즉시 로드됩니다. (2) 세션을 재시작합니다. /agents로 생성한 에이전트는 저장 즉시 사용 가능합니다.Sub-agents are loaded when a session starts. If you manually added a file, there are two ways to load it immediately: (1) Run the /agents command to load new agents immediately. (2) Restart the session. Agents created with /agents are available immediately after saving.
우선순위가 높은 위치의 에이전트가 우선합니다. 우선순위 순서: CLI --agents (1위) > .claude/agents/ (2위) > ~/.claude/agents/ (3위) > 플러그인 (4위). claude agents 명령으로 소스별로 그룹화된 에이전트 목록과 재정의 현황을 확인할 수 있습니다.The agent from the higher-priority location takes precedence. Priority order: CLI --agents (1st) > .claude/agents/ (2nd) > ~/.claude/agents/ (3rd) > Plugin (4th). Use the claude agents command to see agents grouped by source and current override status.
네, 두 가지 방법으로 제한할 수 있습니다. tools 필드(허용 목록): 허용할 도구만 나열합니다. disallowedTools 필드(거부 목록): 제외할 도구를 나열합니다. 예를 들어 리뷰 에이전트에 tools: Read, Grep, Glob, Bash만 허용하면 Write나 Edit은 사용할 수 없습니다. Agent(name) 구문으로 생성 가능한 서브에이전트 유형도 제한할 수 있습니다.Yes, there are two ways to restrict. tools field (allowlist): list only the tools you allow. disallowedTools field (denylist): list tools to exclude. For example, allowing only tools: Read, Grep, Glob, Bash for a review agent means Write and Edit cannot be used. You can also restrict the types of sub-agents that can be spawned using the Agent(name) syntax.
네, 에이전트를 재개(resume)할 수 있습니다. 서브에이전트가 완료되면 Claude는 에이전트 ID를 받습니다. Claude에게 "이전 작업을 계속해줘"라고 요청하면 전체 대화 기록(모든 도구 호출, 결과, 추론)을 유지한 채로 정확히 중단된 위치에서 계속합니다. 서브에이전트 트랜스크립트는 ~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl에 저장됩니다. 동일한 세션을 재개하면 Claude Code 재시작 후에도 서브에이전트를 재개할 수 있습니다.Yes, you can resume the agent. When a sub-agent completes, Claude receives the agent ID. Asking Claude to "continue the previous work" resumes exactly where it left off, maintaining the full conversation history (all tool calls, results, and reasoning). Sub-agent transcripts are stored at ~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl. Resuming the same session allows sub-agent resumption even after restarting Claude Code.
네, 작동합니다! Claude Code는 Explore, Plan, general-purpose 같은 내장 서브에이전트를 기본으로 포함합니다. 복잡한 작업을 받으면 이 내장 에이전트들을 자동으로 활용합니다. 커스텀 에이전트는 "특정 역할과 규칙을 미리 정의"하는 것으로, 더 정밀하고 일관된 결과를 원할 때 만듭니다.Yes, they work! Claude Code includes built-in sub-agents like Explore, Plan, and general-purpose by default. When given complex tasks, it automatically utilizes these built-in agents. Custom agents "pre-define specific roles and rules" — create them when you want more precise and consistent results.
아니요, 서브에이전트는 다른 서브에이전트를 생성할 수 없습니다. 이것은 무한 중첩을 방지하기 위한 설계입니다. Agent(agent_type) 구문은 서브에이전트 정의에서는 효과가 없습니다. 중첩된 위임이 필요한 경우 Skills를 사용하거나 주 대화에서 에이전트를 체인하세요. 단, claude --agent로 주 스레드로 실행되는 에이전트는 서브에이전트를 생성할 수 있습니다.No, sub-agents cannot create other sub-agents. This is by design to prevent infinite nesting. The Agent(agent_type) syntax has no effect in sub-agent definitions. If nested delegation is needed, use Skills or chain agents from the main conversation. However, agents run as the main thread with claude --agent can create sub-agents.

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

내장 에이전트 = Explore, Plan, general-purpose 기본 제공
커스텀 에이전트 = .claude/agents/에 마크다운 하나
핵심 가치 = 병렬 처리 + 전문 분야 특화 + 컨텍스트 분리
지속 학습 = memory 필드로 세션 간 지식 축적
Built-in Agents = Explore, Plan, general-purpose provided by default
Custom Agents = One markdown file in .claude/agents/
Core Value = Parallel processing + Domain specialization + Context separation
Continuous Learning = Accumulate knowledge across sessions with the memory field

시작이 어려우면, Claude에게 이렇게 말해보세요:
"/agents 명령으로 코드 리뷰 에이전트를 만들어줘"
If you're not sure where to start, try saying this to Claude:
"Create a code review agent with the /agents command"

이전: MCP 서버 연결Prev: MCP Server Connection 다음: Skills 완전 가이드Next: Complete Skills Guide