Claude Code에서 서브에이전트와 웹 검색
Source: Dev.to
서브에이전트
서브에이전트는 각각 자체 컨텍스트에서 작업을 병렬로 실행할 수 있습니다. 일반적인 사용 사례는 다음과 같습니다:
- 파일 검색
- 코드 탐색
- 리서치
병렬 작업
모델이 자동으로 서브에이전트를 생성하도록 할 수 있습니다(예: minimax-m2.5, glm-5, kimi-k2.5) 또는 명시적으로 요청할 수 있습니다:
spawn subagents to explore the auth flow, payment integration, and notification system
create subagents to map the database queries, trace the API routes, and catalog error handling patterns
서브에이전트 트리거링
- Automatic – 특정 모델은 필요를 감지하면 자연스럽게 서브에이전트를 트리거합니다.
- Manual – 모델에 “use/spawn/create subagents”(서브에이전트 사용/생성/만들기)이라고 지시하여 서브에이전트 생성을 강제합니다.
웹 검색 통합
모델이 최신 정보가 필요할 때 Ollama가 웹 검색을 수행하고 결과를 바로 반환합니다—추가 설정이 필요 없습니다. 따라서 서브에이전트는 주제를 병렬로 조사하고 실행 가능한 결과를 제공할 수 있습니다.
예시 프롬프트
research the postgres 18 release notes, audit our queries for deprecated patterns, and create migration tasks
create 3 research agents to investigate how our top 3 competitors price their API tiers, compare against our current pricing, and draft recommendations
지원 모델
minimax-m2.5:cloudglm-5:cloudkimi-k2.5:cloud
빠른 시작
ollama launch claude --model minimax-m2.5:cloud
코딩 즐겁게!