Implement simplified custom instructions system for Copilot agent mode#1
Draft
Implement simplified custom instructions system for Copilot agent mode#1
Conversation
Co-authored-by: JoshMcMillen <47542371+JoshMcMillen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] I think we need to pair this down and make it a little more simple. In it's current form it only effect ask mode. We need it to effect agent mode. I checked and found documentation for how we can do that. So let's simplify and make this work within thi...
Implement simplified custom instructions system for Copilot agent mode
Aug 2, 2025
JoshMcMillen
approved these changes
Aug 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The current BrewHand extension only affects "ask mode" (chat participant @brewhand) and has grown overly complex with iterative workflows, budget management, and heavy AI response enhancement systems. Users requested a simpler approach that works with Copilot's "agent mode" (inline suggestions) using VS Code's native custom instructions system.
Solution
This PR completely refactors the extension to focus on VS Code's native custom instructions system, making BrewHand's quality standards and shell awareness available to all Copilot suggestions, not just chat interactions.
Key Changes
🎯 Custom Instructions Management
CustomInstructionsManagerclass generates.vscode/copilot-instructions.mdfiles🧹 Simplified Architecture
🔧 Enhanced User Experience
Example Generated Instructions
The system automatically generates instructions like:
Migration Path
brewhand-extension-complex.tsfor referenceTesting
Impact
Before: BrewHand only enhanced chat interactions (@brewhand) with complex workflow management
After: BrewHand enhances ALL Copilot suggestions through native custom instructions, with much simpler user experience
This addresses the core request to "pair this down and make it a little more simple" while making it "effect agent mode" through VS Code's established custom instructions system.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
update.code.visualstudio.comnode ./out/src/test/runTest.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.