Skip to main content
Skip to content

Using plan mode in your IDE

Have Copilot research a task and draft an implementation plan for your review before any code is changed.

Introduction

プラン モードを使用すると、実行する前に詳細な実装計画を作成できます。 これにより、すべての要件が考慮され、コード変更が行われる前に対処されます。 プラン エージェントは、プランがユーザーによってレビューおよび承認されるまで、コードの変更を行いません。 承認されたら、既定のエージェントにプランを渡すか、さらに絞り込み、レビュー、またはチームディスカッションのために保存することができます。

プラン エージェントは、次の目的で設計されています。

  • 読み取り専用ツールとコードベース分析を使用してタスクを包括的に調査し、要件と制約を特定します。
  • タスクを管理可能で実用的な手順に分割し、あいまいな要件に関する未解決の質問を含めます。
  • 標準化されたプラン形式に基づいて、ユーザーのレビューとイテレーションのための簡潔なプランドラフトを提示します。

Plan mode is available in Visual Studio Code, JetBrains IDEs, Xcode, and Eclipse. It is not currently available in Visual Studio. Click the tabs above for instructions for your editor.

To run a task without planning it first, see Using agent mode in your IDE.

Using the plan agent

  1. If the chat view is not already displayed, select Open Chat from the Copilot Chat menu.

  2. At the bottom of the chat view, select Plan from the agents dropdown.

  3. Type a prompt that describes a task, such as adding a feature to an existing application, refactoring code, fixing a bug, or creating an initial version of a new application.

    For example: Create a simple to-do web app with HTML, CSS, and JS files.

    After a few moments, the plan agent outputs a plan in the chat view. The plan provides a high-level summary and a breakdown of steps, including any open questions for clarification.

  4. プランを確認し、エージェントが質問した質問に回答します。

    繰り返し繰り返して要件を明確にしたり、範囲を調整したり、質問に答えたりすることができます。

  5. プランが完了したら、次のことができます。

    • Copilot Chat をエージェント モードに切り替え、実装計画に基づいて必要な変更を実装するエージェント セッションを開始するには、[ 実装の開始 ] をクリックします。
    • [エディターで開く] をクリックすると、Copilot Chat がエージェント モードに切り替わり、実装計画の詳細を含む Markdown が生成されるエージェント セッションをエディターのタブで開始します。 プランの作業を自分で開始することも、後で使用するためにプランを Markdown ファイルとして保存することもできます。

For more information, see Planning with agents in VS Code in the Visual Studio Code documentation.

Further reading

Using plan mode

  1. If it is not already displayed, open the Copilot Chat panel by clicking the GitHub Copilot Chat icon at the right side of the JetBrains IDE window.

  2. At the bottom of the Copilot Chat panel, select Plan from the agents dropdown.

  3. Type a prompt that describes a task, such as adding a feature to an existing application, refactoring code, fixing a bug, or creating an initial version of a new application.

    For example: Create a simple to-do web app with HTML, CSS, and JS files.

  4. Submit the prompt.

    After a few moments, the plan agent outputs a plan in the chat panel. The plan provides a high-level summary and a breakdown of steps, including any open questions for clarification.

  5. プランを確認し、エージェントが質問した質問に回答します。

    繰り返し繰り返して要件を明確にしたり、範囲を調整したり、質問に答えたりすることができます。

  6. プランが完了したら、次のことができます。

    • Copilot Chat をエージェント モードに切り替え、実装計画に基づいて必要な変更を実装するエージェント セッションを開始するには、[ 実装の開始 ] をクリックします。
    • [エディターで開く] をクリックすると、Copilot Chat がエージェント モードに切り替わり、実装計画の詳細を含む Markdown が生成されるエージェント セッションをエディターのタブで開始します。 プランの作業を自分で開始することも、後で使用するためにプランを Markdown ファイルとして保存することもできます。

Further reading

メモ

Plan mode is currently in パブリック プレビュー and subject to change.

Using plan mode

  1. If it is not already displayed, open the Copilot Chat window by clicking Editor in the menu bar, then clicking GitHub Copilot then Open Chat.

  2. At the bottom of the Copilot Chat window, select Plan from the agents dropdown.

  3. Type a prompt that describes a task, such as adding a feature to an existing application, refactoring code, fixing a bug, or creating an initial version of a new application.

    For example: Create a simple to-do app with Swift files.

  4. Submit the prompt.

    After a few moments, the plan agent outputs a plan in the chat panel. The plan provides a high-level summary and a breakdown of steps, including any open questions for clarification.

  5. プランを確認し、エージェントが質問した質問に回答します。

    繰り返し繰り返して要件を明確にしたり、範囲を調整したり、質問に答えたりすることができます。

  6. プランが完了したら、次のことができます。

    • Copilot Chat をエージェント モードに切り替え、実装計画に基づいて必要な変更を実装するエージェント セッションを開始するには、[ 実装の開始 ] をクリックします。
    • [エディターで開く] をクリックすると、Copilot Chat がエージェント モードに切り替わり、実装計画の詳細を含む Markdown が生成されるエージェント セッションをエディターのタブで開始します。 プランの作業を自分で開始することも、後で使用するためにプランを Markdown ファイルとして保存することもできます。

Further reading

メモ

Plan mode is currently in パブリック プレビュー and subject to change.

Using plan mode

  1. If it is not already displayed, open the Copilot Chat panel by clicking the Copilot icon () in the status bar at the bottom of Eclipse, then clicking Open Chat.

  2. At the bottom of the chat panel, select Plan from the agents dropdown.

  3. Type a prompt that describes a task, such as adding a feature to an existing application, refactoring code, fixing a bug, or creating an initial version of a new application.

    For example: Create a simple to-do app using JavaFX.

  4. Submit the prompt.

    After a few moments, the plan agent outputs a plan in the chat panel. The plan provides a high-level summary and a breakdown of steps, including any open questions for clarification.

  5. プランを確認し、エージェントが質問した質問に回答します。

    繰り返し繰り返して要件を明確にしたり、範囲を調整したり、質問に答えたりすることができます。

  6. プランが完了したら、次のことができます。

    • Copilot Chat をエージェント モードに切り替え、実装計画に基づいて必要な変更を実装するエージェント セッションを開始するには、[ 実装の開始 ] をクリックします。
    • [エディターで開く] をクリックすると、Copilot Chat がエージェント モードに切り替わり、実装計画の詳細を含む Markdown が生成されるエージェント セッションをエディターのタブで開始します。 プランの作業を自分で開始することも、後で使用するためにプランを Markdown ファイルとして保存することもできます。

Further reading