[copilot-cli-research] Copilot CLI Deep Research - 2026-03-02 #19271
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-03-03T21:25:14.372Z.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Analysis Date: 2026-03-02
Repository: github/gh-aw
Scope: 165 total workflows, 79 using Copilot engine (48%)
Copilot CLI Version: 0.0.420 (default)
📊 Executive Summary
This first comprehensive research analysis of Copilot CLI usage in gh-aw reveals strong adoption of core features (github tools, bash, cache-memory) but significant gaps in newer capabilities. The most impactful opportunity is
copilot-requestsfeature adoption — only 52% of Copilot workflows use it, despite it simplifying auth requirements and removing the need for aCOPILOT_GITHUB_TOKENsecret. Additionally, 6 of 9 custom agent files in.github/agents/are never referenced in any workflow, representing untapped value. Themax-continuationsfeature (autopilot mode) is used in just 1 of 79 Copilot workflows, despite being particularly valuable for long-running analysis tasks.Overall, the workflow ecosystem is healthy and well-structured, but there are 8 clear opportunities to improve security, performance, and developer experience by using features that already exist in the system.
🔴 Critical Findings
High Priority
1.
copilot-requestsFeature: 52% Adoption Gap38 Copilot workflows don't use the
copilot-requestsfeature, requiring them to have aCOPILOT_GITHUB_TOKENsecret. This feature uses the GitHub Actions token directly ($\{\{ github.token }}), simplifying authentication significantly.Workflows missing
copilot-requests:daily-performance-summary.md,firewall.md,grumpy-reviewer.md,jsweep.md,layout-spec-maintainer.md,mcp-inspector.md,mergefest.md,metrics-collector.md,org-health-report.md,pdf-summary.md,plan.md,portfolio-analyst.md,pr-nitpick-reviewer.md,pr-triage-agent.md,python-data-charts.md,q.md,refiner.md,release.md, and ~20 others.2.
disable-xpia-prompt: Never UsedZero workflows use this feature flag despite it being available. Internal/trusted workflows that only process system-generated content (not user input) could safely disable the XPIA prompt for cleaner, more focused prompts.
1️⃣ Copilot CLI Capabilities Inventory
View Full Capabilities Inventory
CLI Flags (auto-configured by compiler)
--add-dir— directory access control (compiler-managed)--disable-builtin-mcps— always applied--allow-tool/--allow-all-tools— tool permissions--agent— custom agent file identifier--autopilot+--max-autopilot-continues— multi-continuation mode--allow-all-paths— write access for edit tool--log-level all --log-dir— logging--prompt— instruction deliveryEngine Configuration Options
versionmodelagent.github/agents/*.agent.md)argscommandenvmax-continuationsmax-turnsFeature Flags
copilot-requestssafe-inputsdisable-xpia-promptmcp-gatewaySandbox Options
sandbox.agent: awfsandbox.agent: srtsandbox.agent: falseAvailable Custom Agents (
.github/agents/)agentic-workflows— workflow design assistantci-cleaner— CI cleanup specialistcontribution-checker— PR contribution reviewercreate-safe-output-type— safe output implementation guidecustom-engine-implementation— engine development guidegrumpy-reviewer— critical code reviewerinteractive-agent-designer— interactive workflow designertechnical-doc-writer— documentation writerw3c-specification-writer— spec writing specialist2️⃣ Feature Usage Matrix
copilot-requestsmax-continuationssafe-inputsdisable-xpia-promptmcp-gatewayenvvarspost-stepsweb-searchtoolweb-fetchtoolplaywrighttoolMost Used Features
githubtoolbashtooledittoolcache-memorystrict: trueimportsconcurrency3️⃣ Missed Opportunities
View High Priority Opportunities
🔴 Opportunity 1:
copilot-requestsFeature — 38 Workflows Missing ItWhat: The
copilot-requestsfeature uses$\{\{ github.token }}instead ofCOPILOT_GITHUB_TOKENsecret, simplifying secrets management. It also addscopilot-requests: writepermission automatically.Why It Matters: Reduces secret management overhead. Workflows without it require
COPILOT_GITHUB_TOKENto be configured in repo secrets.How to Implement:
Caveat: Only safe for workflows that don't need an elevated PAT with broader permissions than
github.tokenprovides. Review each workflow's needs first.🔴 Opportunity 2:
max-continuations— Only 1 WorkflowWhat: The
max-continuationsconfig combined with--autopilotflag allows Copilot CLI to continue across multiple sessions, tackling complex multi-step tasks.Why It Matters: For long-running workflows (30+ minute timeouts) doing iterative work (code simplification, doc updates, analysis), autopilot mode can handle more complex tasks without manual intervention.
Where:
daily-compiler-quality.md,daily-doc-updater.md,commit-changes-analyzer.md,code-simplifier.mdare all 30+ minute workflows that could benefit.How to Implement:
View Medium Priority Opportunities
🟡 Opportunity 3: 6 Custom Agent Files Never Used
What: These
.github/agents/*.agent.mdfiles exist but are never referenced in any workflow:contribution-checker.agent.md— Could improvecontribution-check.mdworkflowcreate-safe-output-type.agent.md— Could help workflows that create safe outputscustom-engine-implementation.agent.md— Internal tooling workflowsgrumpy-reviewer.agent.md— Code review workflows likeci-coach.mdorpr-nitpick-reviewer.mdinteractive-agent-designer.agent.md— Workflow design meta-tasksw3c-specification-writer.agent.md— Documentation workflowsHow to Implement:
🟡 Opportunity 4:
safe-inputs— Only 1 WorkflowWhat: The
safe-inputsfeature validates and sanitizes inputs before they reach the AI, providing an additional layer of prompt injection protection.Why It Matters: Only
security-review.mdcurrently uses this. Any workflow triggered by external user input (slash commands, issue comments, PR content) is a candidate.Candidates:
auto-triage-issues.md,ai-moderator.md,pr-triage-agent.md,ci-coach.md.🟡 Opportunity 5: GitHub Toolsets — Some Over-Broad (
all)What: 3 workflows use
toolsets: [all]which grants access to every GitHub MCP tool. More specific toolsets reduce the attack surface.Where: Identify with:
grep -rl "toolsets: \[all\]" .github/workflows/How to Improve: Use specific toolsets:
View Low Priority Opportunities
🟢 Opportunity 6:
disable-xpia-prompt— Never UsedWhat: Disables the automatic XPIA (Cross-Prompt Injection Attack) security notice injected into every prompt.
Why: Internal workflows that only process system-generated content (e.g.,
daily-architecture-diagram.md, scheduled metrics workflows) don't need this security notice, and removing it makes prompts cleaner and more focused.How to Implement:
Caution: Only use for workflows that never process external user content.
🟢 Opportunity 7:
web-searchTool — Only 2 WorkflowsWhat: Copilot CLI has built-in web-search capability but only 2 workflows use it (
daily-news.md, one other). Many research workflows rely onweb-fetchfor specific URLs whenweb-searchwould be more flexible.Candidates:
blog-auditor.md,daily-news.md, any workflow doing external knowledge lookup.🟢 Opportunity 8: Version Pinning — 0 Workflows
What: No workflow pins a specific Copilot CLI version. All use
0.0.420(the current default).Why It Matters (optionally): For stability-critical workflows, pinning a version prevents unexpected behavior changes when the default updates.
How to Implement:
Note: Generally fine to leave at default; only consider pinning if a specific workflow breaks after upgrades.
🟢 Opportunity 9:
post-steps— Never UsedWhat: Allows custom steps to run after the agent completes (cleanup, notifications, metrics).
Candidates: Workflows that write to disk or need cleanup after runs.
4️⃣ Specific Workflow Recommendations
View Workflow-Specific Recommendations
contribution-check.mdagent: contribution-checker— there's already a dedicated agent file for this exact purposepr-nitpick-reviewer.md/grumpy-reviewer.mdagent: grumpy-reviewerto leverage the existing agent filefeatures: { copilot-requests: true }if not already presentdaily-doc-updater.md,daily-doc-healer.mdengine.max-continuations: 2to enable multi-pass improvements for comprehensive doc updatescode-simplifier.md,commit-changes-analyzer.mdmax-continuations: 3— complex code analysis and multi-file simplification would benefit from autopilot modeauto-triage-issues.md,ai-moderator.mdsafe-inputsfor prompt injection protection on user-submitted contentWorkflows using
toolsets: [all][repos, issues]) to minimize permission scope5️⃣ Trends & Insights
View Historical Context
This is the first comprehensive analysis of Copilot CLI usage in this repository. Future runs will track:
copilot-requestsfeature adoption ratemax-continuationsadoption for complex workflowsBaseline established: 2026-03-02, run §22596116311
6️⃣ Best Practice Guidelines
Based on this research, here are recommended best practices:
Always enable
copilot-requestsfor new Copilot workflows unless a PAT with elevated permissions is specifically required — it simplifies auth and reduces secrets overhead.Use custom agents for specialized tasks — The
.github/agents/directory has expert agents for code review, documentation, specification writing, and more. Check before writing a raw prompt.Prefer specific GitHub toolsets — Use
[repos, issues]over[default]over[all]. Minimize the permission surface to what the workflow actually needs.Consider
max-continuationsfor complex tasks — Workflows with 30+ minute timeouts doing iterative improvements are prime candidates for autopilot mode with 2-3 continuations.Enable
safe-inputsfor user-triggered workflows — Any workflow processing issue comments, PR content, or slash commands should usesafe-inputsfor prompt injection protection.Reserve
disable-xpia-prompt— Only use for scheduled workflows with no user-generated input. Leave the default XPIA prompt for all user-interactive workflows.7️⃣ Action Items
Immediate Actions (this week):
copilot-requests: truein the 38 copilot workflows that are missing it (batch update)contribution-check.mdto useagent: contribution-checkergrumpy-reviewer.md(orpr-nitpick-reviewer.md) to useagent: grumpy-reviewerShort-term (this month):
max-continuations: 2todaily-doc-updater.md,daily-doc-healer.md,code-simplifier.mdsafe-inputsfor user-triggered workflows (auto-triage-issues.md,ai-moderator.md)toolsets: [all]to more specific toolsets in the 3 workflows using itLong-term (this quarter):
disable-xpia-promptis appropriateView Research Methodology
Research Methodology
Data Sources:
pkg/workflow/copilot_engine*.go,pkg/workflow/copilot_mcp.go.github/workflows/*.mddocs/src/content/docs/reference/engines.mdpkg/constants/constants.gopkg/workflow/frontmatter_types.goAnalysis Techniques:
grepacross all workflow filesTools Used: bash, grep, Go source analysis
Research Persistence: Analysis saved to repo-memory branch for future trend tracking.
References:
Beta Was this translation helpful? Give feedback.
All reactions