Introduction
채팅 세션에서 subagents를 사용하면 격리된 에이전트에게 작업을 위임하기 위해 별도의 컨텍스트 창을 활용할 수 있습니다. subagent는 사용자 피드백에 구애받지 않고 독립적으로 작동하며, 최종 결과를 기본 채팅 세션으로 반환합니다.
Subagents은 이러한 경우에 가장 적합합니다.
- 주 세션을 중단하지 않고 연구 또는 분석과 같은 복잡한 다단계 작업을 위임하려고 합니다.
- 기본 컨텍스트 창을 어지럽히는 많은 양의 정보 또는 여러 문서를 처리해야 합니다.
- 컨텍스트를 함께 혼합하지 않고도 다른 접근 방식이나 관점을 독립적으로 탐색하려고 합니다.
Subagents은 주 세션과 동일한 도구 및 AI 모델을 사용하지만, 별도의 subagents을 생성할 수는 없습니다.
Subagents are available in Visual Studio Code, JetBrains IDEs, Xcode, and Eclipse. They are not currently available in Visual Studio. The steps to enable and invoke them differ by editor, so click the tabs above for instructions for your IDE.
For the agent session that subagents are delegated from, see Using agent mode in your IDE.
Enabling subagents
- In the Copilot Chat window, click the tools icon.
- Enable the
runSubagenttool.
If you use custom prompt files or custom agents, ensure you specify the runSubagent tool in the tools frontmatter property. See 에 대한 사용자 지정 에이전트 만들기 Copilot cloud agent, and Use prompt files in VS Code in the Visual Studio Code documentation.
Invoking subagents
Subagents은 다음과 같은 다양한 방법으로 호출할 수 있습니다.
-
자동 위임. Copilot은 요청 설명, 구성된 custom agents의 설명 필드, 현재 상황, 사용 가능한 도구 등을 분석하여 자동으로 subagent을 선택합니다. 예를 들어, 이 프롬프트는 자동으로 리팩터링 전문가 인 custom agent에게 작업을 위임합니다.
Suggest ways to refactor this legacy code. -
직접 호출. 프롬프트 내에서 subagent를 직접 호출할 수 있습니다.
Use the testing subagent to write unit tests for the authentication module. -
Calling the #runSubagent tool.
Evaluate the #file:databaseSchema using #runSubagent and generate an optimized data-migration plan.
When the subagent completes its task, its results appear back in the main chat session, ready for follow-up questions or next steps.
Further reading
To use subagents, you must have custom agents configured in your environment. See Using custom agents in your IDE.
Enabling subagents
- Click Tools in the menu bar, then click GitHub Copilot, then Edit Settings.
- In the popup menu, click Chat, then click the Enable Subagent checkbox.
Invoking subagents
Subagents은 다음과 같은 다양한 방법으로 호출할 수 있습니다.
-
자동 위임. Copilot은 요청 설명, 구성된 custom agents의 설명 필드, 현재 상황, 사용 가능한 도구 등을 분석하여 자동으로 subagent을 선택합니다. 예를 들어, 이 프롬프트는 자동으로 리팩터링 전문가 인 custom agent에게 작업을 위임합니다.
Suggest ways to refactor this legacy code. -
직접 호출. 프롬프트 내에서 subagent를 직접 호출할 수 있습니다.
Use the testing subagent to write unit tests for the authentication module.
When the subagent completes its task, its results appear back in the main chat session, ready for follow-up questions or next steps.
Further reading
To use subagents, you must have custom agents configured in your environment. See Using custom agents in your IDE.
Enabling subagents
- Click Editor in the menu bar, then click GitHub Copilot then Open GitHub Copilot for Xcode Settings.
- Click Advanced in the chat panel, then under Chat Settings click the Enable Subagents toggle.
Invoking subagents
Subagents은 다음과 같은 다양한 방법으로 호출할 수 있습니다.
-
자동 위임. Copilot은 요청 설명, 구성된 custom agents의 설명 필드, 현재 상황, 사용 가능한 도구 등을 분석하여 자동으로 subagent을 선택합니다. 예를 들어, 이 프롬프트는 자동으로 리팩터링 전문가 인 custom agent에게 작업을 위임합니다.
Suggest ways to refactor this legacy code. -
직접 호출. 프롬프트 내에서 subagent를 직접 호출할 수 있습니다.
Use the testing subagent to write unit tests for the authentication module.
When the subagent completes its task, its results appear back in the main chat session, ready for follow-up questions or next steps.
Further reading
To use subagents, you must have custom agents configured in your environment. See Using custom agents in your IDE.
Enabling subagents
- Click the icon in the status bar.
- In the popup menu, click Edit Preferences.
- Under Chat, click the Enable sub-agent check box.
Invoking subagents
Subagents은 다음과 같은 다양한 방법으로 호출할 수 있습니다.
-
자동 위임. Copilot은 요청 설명, 구성된 custom agents의 설명 필드, 현재 상황, 사용 가능한 도구 등을 분석하여 자동으로 subagent을 선택합니다. 예를 들어, 이 프롬프트는 자동으로 리팩터링 전문가 인 custom agent에게 작업을 위임합니다.
Suggest ways to refactor this legacy code. -
직접 호출. 프롬프트 내에서 subagent를 직접 호출할 수 있습니다.
Use the testing subagent to write unit tests for the authentication module.
When the subagent completes its task, its results appear back in the main chat session, ready for follow-up questions or next steps.