Conversation
…ns by default Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] - Convert the "--instructions" flag in the "gh aw compile" command to "--no-instructions" and always write instructions by default
- write both the github Agentic workflows instruction file, and the create agentic workflow prompt file
Convert --instructions flag to --no-instructions and write instructions by default
Sep 30, 2025
Collaborator
|
@copilot find all instances of |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Fixed in commit 2512d24. Updated all
All tests pass and the build is successful. |
pelikhan
approved these changes
Oct 1, 2025
Collaborator
|
@copilot make sure the --no-emit flag also disables instructions |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Fixed in commit dcfda0c. The When
Tested behavior:
|
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.
Changes
This PR converts the
--instructionsflag in thegh aw compilecommand to--no-instructionsand changes the default behavior to always write instruction files unless explicitly disabled.New Default Behavior
By default,
gh aw compilenow automatically creates:.github/instructions/github-agentic-workflows.instructions.md- Custom Copilot instructions for workflow authoring.github/prompts/create-agentic-workflow.prompt.md- Copilot Chat prompt template enabling the/create-agentic-workflowcommandUsage
Motivation
The GitHub Copilot instructions significantly improve the developer experience when authoring agentic workflows in VS Code. These files:
.github/workflows/*.mdfiles/create-agentic-workflowcommandBy making this the default behavior, users get these benefits without needing to remember an additional flag.
Technical Details
writeInstructionstoskipInstructionswith inverted logicCompileWorkflows,ensureCopilotInstructions, andensureAgenticWorkflowPrompt--instructionsreferences in Makefile and CLI documentation--no-emitflag: When using--no-emitfor validation-only mode, instruction files are also skipped (along with lock files)Backward Compatibility
Users who previously used
gh aw compilewithout the--instructionsflag will now see instruction files created. Users who want the old behavior can use--no-instructionsto skip file generation.Testing
--no-instructionsbehaviors work correctly--no-emitskips both lock files and instruction filesOriginal prompt
💡 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.