第四章:如何使用 — 子代理

出处: Chapter 4. How to Use — Sub Agents

发布: 2026年3月30日

📄 中文摘要

子代理是一种专门的人工智能助手,旨在处理Claude Code会话中的特定任务。主Claude Code相当于“总经理”,而子代理则是“团队成员”,每个子代理都有自己独特的专业领域。每个子代理都在独立的上下文窗口中运行,拥有专门的系统提示和受限的工具访问权限。这种结构使得任务的分配和执行更加高效,能够针对特定需求进行优化。

📄 English Summary

Chapter 4. How to Use — Sub Agents

A Sub Agent is a specialized AI assistant designed to handle specific tasks within a Claude Code session. The main Claude Code acts as the 'general manager,' while Sub Agents serve as 'team members,' each with their own area of expertise. Each Sub Agent operates within its own independent context window, has a dedicated system prompt, and restricted tool access. This structure enhances efficiency in task delegation and execution, allowing for optimization tailored to specific needs.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等