VS Code Planning Mode: Enhancing GitHub Copilot's Agent Capabilities

Software Development

Explore VS Code's new Planning Mode, a powerful extension for GitHub Copilot's Agent Mode. It enables structured, multi-step coding tasks by generating detailed execution plans.

Following its introduction in Visual Studio, Planning Mode has now been integrated into VS Code. This feature, sometimes colloquially referred to as 'Hannibal mode' for its strategic foresight, significantly enhances GitHub Copilot's Agent Mode. It enables the handling of complex, multi-step coding tasks through a structured methodology. Rather than immediately generating code, Planning Mode first crafts a detailed execution plan.

Implementing Planning Mode in VS Code

VS Code's implementation of Planning Mode differs from Visual Studio's. While Visual Studio offers a configuration setting with limited control, VS Code presents planning as a distinct chat mode or agent.

This approach offers explicit control over when Planning Mode is activated, which is often preferred for its clarity and flexibility.

Instead of immediate execution, the planning agent first generates a comprehensive plan and then prompts the user with follow-up questions for refinement.

Users can further modify the plan by selecting 'Open in Editor'.

Alternatively, if the plan is deemed satisfactory, the user can initiate the process by clicking 'Start Implementation'.