Convert verbose GitHub tool lists to toolsets in 9 workflows - #3022
Merged
pelikhan merged 3 commits intoNov 3, 2025
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…se toolsets Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [q] Q Workflow Optimization - Convert GitHub tool lists to toolsets
Convert verbose GitHub tool lists to toolsets in 9 workflows
Nov 3, 2025
pelikhan
approved these changes
Nov 3, 2025
pelikhan
marked this pull request as ready for review
November 3, 2025 03:42
pelikhan
enabled auto-merge (squash)
November 3, 2025 03:43
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the GitHub Agentic Workflows documentation and workflow configurations to transition from granular tool permission lists to the simplified toolsets approach. The changes standardize tool configuration across all workflows by replacing individual allowed arrays with toolsets: [default], which provides access to a curated set of GitHub API tools. The documentation is also updated to reflect new features including firewall support, environment configuration, and additional frontmatter fields.
Key Changes
- Replaced granular
github.allowedarrays withtoolsets: [default]across all workflow files - Added documentation for new frontmatter fields (
reaction,manual-approval,environment,container,services,description,source,github-token,roles,strict,features) - Updated network permissions documentation to reflect AWF (Agent Workflow Firewall) support for Copilot engine
- Added
searchto the list of available GitHub toolsets - Regenerated
.lock.ymlfiles with expanded tool lists based on default toolsets
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/cli/templates/github-agentic-workflows.instructions.md | Updated documentation to add new frontmatter fields, firewall configuration, engine options, and toolset recommendations |
| .github/workflows/unbloat-docs.md | Simplified GitHub tools config from 5 specific allowed functions to toolsets: [default] |
| .github/workflows/unbloat-docs.lock.yml | Regenerated with expanded tool list (54 tools) from default toolset |
| .github/workflows/tidy.md | Simplified GitHub tools config from 3 specific allowed functions to toolsets: [default] |
| .github/workflows/tidy.lock.yml | Regenerated to use wildcard tool access (tools: ["*"]) and simplified CLI args |
| .github/workflows/technical-doc-writer.md | Simplified GitHub tools config from 6 specific allowed functions to toolsets: [default] |
| .github/workflows/technical-doc-writer.lock.yml | Regenerated to use wildcard tool access and simplified CLI args |
| .github/workflows/semantic-function-refactor.md | Simplified GitHub tools config from 2 specific allowed functions to toolsets: [default] |
| .github/workflows/semantic-function-refactor.lock.yml | Regenerated with expanded tool list (54 tools) from default toolset |
| .github/workflows/poem-bot.md | Simplified GitHub tools config from 3 specific allowed functions to toolsets: [default] |
| .github/workflows/poem-bot.lock.yml | Regenerated to use wildcard tool access and simplified CLI args |
| .github/workflows/instructions-janitor.md | Simplified GitHub tools config from 5 specific allowed functions to toolsets: [default] |
| .github/workflows/instructions-janitor.lock.yml | Regenerated with expanded tool list (54 tools) from default toolset |
| .github/workflows/go-logger.md | Simplified GitHub tools config from 2 specific allowed functions to toolsets: [default] |
| .github/workflows/go-logger.lock.yml | Regenerated with expanded tool list (54 tools) from default toolset |
| .github/workflows/dictation-prompt.md | Simplified GitHub tools config from 2 specific allowed functions to toolsets: [default] |
| .github/workflows/dictation-prompt.lock.yml | Regenerated to use wildcard tool access in MCP config |
| .github/workflows/copilot-pr-prompt-analysis.md | Simplified GitHub tools config from 6 specific allowed functions to toolsets: [default] |
| .github/workflows/copilot-pr-prompt-analysis.lock.yml | Regenerated to use wildcard tool access and simplified CLI args |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pelikhan
deleted the
copilot/fix-89615882-1036865607-fd4635c7-54b4-47b8-b743-23ababebdfbd
branch
November 3, 2025 03:44
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.
Applies the Q workflow optimization from run #19021453233 that failed to push. Converts verbose
allowed:tool lists to concisetoolsets: [default]configuration across 9 workflows.Changes
Modified workflows:
Before:
After:
Impact
context,repos,issues,pull_requests,users) provide same functionalityValidation
All 9 workflows compile successfully (0 errors, 2 expected network firewalling warnings for Claude engine).
Original prompt
This section details on the original issue you should resolve
<issue_title>[q] Q Workflow Optimization - Convert GitHub tool lists to toolsets</issue_title>
<issue_description># Q Workflow Optimization Report - November 3, 2025
Executive Summary
Optimized 9 agentic workflows by converting verbose GitHub tool
allowed:lists to concisetoolsets:configuration, reducing code by ~50 lines while improving maintainability.Triggering Context
/qcommand in discussion 🏥 Safe Output Health Report - November 3, 2025 #3015@heiskrInvestigation Summary
Data Sources Analyzed
gh aw statusgithub: allowed:instead oftoolsets:Key Findings from Live Data
1. Compilation Status Improved
All previously uncompiled workflows now compile successfully:
2. Toolset Conversion Opportunities
Found 9 workflows using verbose
allowed:lists that benefit from conversion totoolsets::unbloat-docs.md
toolsets: [default]semantic-function-refactor.md
toolsets: [default]go-logger.md
toolsets: [default]dictation-prompt.md
toolsets: [default]technical-doc-writer.md
toolsets: [default]instructions-janitor.md
toolsets: [default]poem-bot.md
toolsets: [default]copilot-pr-prompt-analysis.md
toolsets: [default]tidy.md
toolsets: [default]Changes Made
Modified Workflows (.github/workflows/)
copilot-pr-prompt-analysis.md
search_pull_requests,pull_request_read,list_pull_requests,get_file_contents,list_commits,get_commit→toolsets: [default]dictation-prompt.md
get_file_contents,search_code→toolsets: [default]go-logger.md
get_file_contents,search_code→toolsets: [default]instructions-janitor.md
list_commits,get_commit,get_file_contents,search_code,get_latest_release→toolsets: [default]poem-bot.md
get_repository,issue_read,pull_request_read→toolsets: [default]semantic-function-refactor.md
get_file_contents,search_code→toolsets: [default]technical-doc-writer.md
issue_read,get_pull_request,pull_request_read,get_file_contents,list_commits,add_reaction→toolsets: [default]tidy.md
list_pull_requests,pull_request_read,search_pull_requests→toolsets: [default]unbloat-docs.md
get_repository,get_file_contents,list_commits,get_pull_request,search_pull_requests→toolsets: [default]Default Toolsets Coverage
The
[default]toolsets include:context,repos,issues,pull_requests,usersAll tools from the converted
allowed:lists are covered by these default toolsets, ensuring no functionality is lost.Benefits Achieved
Code Reduction
Maintainability Improvements
toolsets: [default]instead of multi-line tool listsFuture-Proofing
[default]get the same tool access💡 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.