[copilot-cli-research] Copilot CLI Deep Research - 2026-04-20 #27434
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Copilot CLI Deep Research Agent. A newer discussion is available at Discussion #27681. |
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-04-20
Repository: github/gh-aw
Scope: 197 total workflows, 90 using Copilot engine (46%)
Previous Analysis: 2026-04-19 (Run §24639070790)
📊 Executive Summary
Research Topic: Copilot CLI Feature Optimization
Key Findings: Strong growth in custom agent adoption (+200%); cache-memory continues to surge (+24%); 5 persistent zero-adoption gaps now spanning 5+ analysis runs;
mcp-scriptsandmax-continuationsremain critically underused.Primary Recommendation: Begin using
engine.api-targetfor enterprise workflows and expandmax-continuationsfor long-horizon tasks — both are Copilot-exclusive capabilities being completely ignored.The repository has grown to 197 workflows (90 Copilot-engine, 46%) and shows encouraging improvement in custom agent file adoption (7→21, +200%) and persistent data usage via cache-memory (80→99, +24%). However, five core Copilot capabilities have shown zero adoption across every analysis run:
engine.versionpinning,engine.api-target,mcp-gateway,network.blocked, and themcp-scriptsexpansion feature. Most concerning ismax-continuationsremaining at just 2 workflows despite being Copilot's unique autopilot capability for complex multi-step tasks.Critical Findings
🔴 High Priority Issues
1.
engine.versionpinning — 0% for 5+ consecutive runsNo workflows pin their Copilot CLI version. Current default:
1.0.21. Any CLI release could silently break workflows.2.
max-continuations— 2 workflows only (was 3, slight regression)Copilot's flagship autopilot feature (
--autopilot --max-autopilot-continues N) is nearly unused. Onlysmoke-copilot(max: 2) andtest-quality-sentinel(max: 40) use it. Every complex research or multi-phase workflow is missing out.3.
network.blocked— 0% for 5+ runsThe domain blocklist feature (
network.blocked:) provides defense-in-depth against data exfiltration. Zero workflows use it despite being well-documented.🟡 Medium Priority Opportunities
4. 5/11 custom agent files still unused
.github/agents/contains 11 agent files, but 5 remain completely unused:grumpy-reviewer.agent.md— code review criticw3c-specification-writer.agent.md— spec writingcreate-safe-output-type.agent.md— safe output scaffoldingcustom-engine-implementation.agent.md— engine developmentinteractive-agent-designer.agent.md— agent design helper5.
engine.api-target— 0% for 5+ runsEnterprise GHEC/GHES users cannot configure a custom API endpoint. The feature is fully implemented and documented, but no examples exist.
6.
mcp-scripts— 1 shared file onlyThe
mcp-scripts:feature allows defining dynamic MCP tool scripts. Only one shared file (shared/github-queries-mcp-script.md) demonstrates this pattern. Theshared/gh.mdandshared/go-make.mdfiles have it too, but it's massively underutilized given its power.View Full Analysis
1️⃣ Current State Analysis
View Copilot CLI Capabilities Inventory
Copilot CLI Capabilities Inventory
Current Version:
1.0.21(default in gh-aw)Auto-managed CLI flags (gh-aw handles these automatically):
--add-dir /tmp/gh-aw/--log-level all --log-dir--disable-builtin-mcps--no-ask-user--agent <id>engine.agent--autopilot --max-autopilot-continues Nmax-continuations: N--allow-tool/--allow-all-toolstools:config--no-custom-instructionsengine.bare: true--share--block-domainsnetwork.blocked:User-configurable engine options:
Tool capabilities:
bash:— Shell commands (with optional allowlist)edit:— File write accessweb-fetch:— HTTP fetchweb-search:— Web search (via MCP)github:— GitHub MCP server (with toolsets)playwright:— Browser automationmcp-scripts:— Dynamic tool definitionscache-memory:— Cross-run file persistenceSandbox options:
sandbox.agent: awf— Network firewall (default)sandbox.agent: false— Disable agent sandboxsandbox.agent: srt— Alternative sandbox (rarely used)View Usage Statistics
Usage Statistics (as of 2026-04-20)
Copilot Feature Adoption (per workflow, all 197):
strict:mount-as-clis:safe-outputs:timeout-minutes:cache-memorynetwork:sandbox:(explicit)engine.agentmodel:overrideengine.bare:max-continuations:engine.args:engine.env:web-fetch:mcp-scripts:engine.version:engine.api-target:network.blocked:features.mcp-gateway:2️⃣ Feature Usage Matrix
--add-dir,--agent,--autopilot,--allow-tool,--no-custom-instructions,--block-domains,--share--block-domains= 0,--shareautoversion,model,args,agent,api-target,env,bare,commandversion,api-target,commandallowed,blockedallowed(103)blocked(0)max-continuations:3️⃣ Missed Opportunities
View High Priority Opportunities
🔴 High Priority
Opportunity 1: Engine Version Pinning (
engine.version)version: "1.0.21"to pin the Copilot CLI version installed at runtimeDefaultCopilotVersiongh-aw hardcodes. A new CLI release can break prompt interpretation, tool behavior, or MCP compatibility silentlydependabot-style update workflowOpportunity 2:
max-continuationsfor Complex Tasks--autopilot --max-autopilot-continues Nto allow Copilot to re-run itself for multi-phase tasksrepository-quality-improver,security-compliance, ordaily-regulatorycould benefit massively — they currently complete one phase then stoprepository-quality-improver.md— multi-file analysissecurity-compliance.md— multiple checksdaily-regulatory.md— multi-repo reviewci-coach.md— iterative improvementOpportunity 3:
network.blockedfor Defense-in-DepthView Medium Priority Opportunities
🟡 Medium Priority
Opportunity 4:
engine.api-targetfor Enterprise UsersOpportunity 5: Activate Unused Custom Agent Files
The following 5 agent files in
.github/agents/have never been referenced by any workflow:grumpy-reviewer.agent.mdcode-simplifier.md,breaking-change-checker.mdw3c-specification-writer.agent.mdtechnical-doc-writer.mdimprovementscreate-safe-output-type.agent.mdcustom-engine-implementation.agent.mdinteractive-agent-designer.agent.mdworkflow-generator.md,craft.mdOpportunity 6: Expand
mcp-scriptsAdoptionmcp-scripts:lets you define custom tool scripts that the agent calls directly, avoiding full MCP server setupshared/github-queries-mcp-script.mduses this. Theshared/gh.mdandshared/go-make.mdalready demonstrate the pattern — more workflows could adopt similar lightweight toolingshared/gh.md):Opportunity 7: Narrow GitHub Toolsets Beyond
[default]toolsets: [default]with the minimum required toolsets[default]grants access to repos, issues, pull_requests, actions, and more. Most workflows only need 1-2 toolsetsdaily-compiler-quality.md(needs onlydiscussions),sub-issue-closer.md(needs onlyissues)Opportunity 8:
bareMode for Simple Tasksengine.bare: truepasses--no-custom-instructionsto Copilot, skipping AGENTS.md,.github/copilot-instructions.md, etc.poem-bot,constraint-solving-potd), analytics-only workflows, fact-generationdaily-news,poem-bot,constraint-solving-potd,daily-fact,daily-hippo-learn,smoke-copilot,smoke-claudeView Low Priority Opportunities
🟢 Low Priority
Opportunity 9: Explicit Sandbox Configuration
sandbox.agent: awfdefaultsandbox: agent: awfto any workflow that currently omits itOpportunity 10:
engine.envfor Workflow-Specific Configurationcopilot-token-audit,genaiscript,daily-integrity-analysis)Opportunity 11:
features.mcp-gatewayfor MCP Routingawmg)4️⃣ Specific Workflow Recommendations
View Workflow-Specific Recommendations
repository-quality-improver.mdmax-continuations: 5to allow multi-phase analysis → report → action cyclessecurity-compliance.mdmax-continuations: 3+network.blocked: [pastebin.com, requestbin.com]daily-compiler-quality.mdtoolsets: [discussions](good specific toolset!)engine.version: "1.0.21"to pin version for reliabilityworkflow-generator.mdagent: agentic-workflowsagent: interactive-agent-designerfor a more design-focused personacraft.mdtools.bash: ["*"](all commands allowed)engine.bare: false(already default) but addmax-continuations: 3for complex changesarchie.mdid: copilot; agent: adr-writer— this is actually using the wrong agent for generating Mermaid diagrams (adr-writer makes ADRs, not diagrams)interactive-agent-designer.agent.mdor a newdiagram-generator.agent.mdwould be more appropriate5️⃣ Trends & Insights
View Historical Trends (5 Analysis Runs)
Historical Trend Data (Apr 16–20, 2026)
Key Takeaways
6️⃣ Best Practice Guidelines
Based on 5 runs of research analysis:
engine: {id: copilot, version: "1.0.21"}to avoid silent breakage from CLI updatesmax-continuationsfor multi-phase tasks: Any workflow involving research + analysis + action cycles should usemax-continuations: 3-5[default]with only what's needed — reduces attack surface and speeds up agent initializationnetwork.blockedfor sensitive workflows: Block known exfiltration endpoints when handling untrusted inputsengine.bare: truefor creative/simple tasks: Prevents custom instructions from polluting focused workflowsmcp-scriptsfor lightweight tools: Don't stand up a full MCP server for simple CLI wrapping7️⃣ Action Items
Immediate Actions (this week):
engine.version: "1.0.21"to 3-5 critical daily workflows as a pilotgrumpy-reviewer.agent.mdincode-simplifier.mdorbreaking-change-checker.mdnetwork.blockedto 2-3 security-sensitive workflows as examplesShort-term (this month):
max-continuations: 3-5forrepository-quality-improver.mdandsecurity-compliance.md[default]to specific toolsets in top 10 workflowsengine.api-targetusage with a concrete GHEC example workflowshared/version-pins.mdto centralize version pinningLong-term (this quarter):
features.mcp-gatewayadoption plan once feature is production-readycopilot-version-updater.mdworkflow that auto-PRs version bump changesmax-continuationsfor common multi-phase patternsmcp-scriptsas a replacement forbash: [*]in tool-heavy workflowsView Supporting Evidence & Methodology
📚 References
Research Methodology
Analysis was conducted by:
copilot_engine*.go,copilot_mcp.go) to identify all available featuresdocs/src/content/docs/reference/) for features not yet reflected in workflows.github/agents/directory to identify unused custom agent filesAnalysis scope: All
.github/workflows/*.mdfiles (excludingshared/subdirectory for primary counts)References:
Beta Was this translation helpful? Give feedback.
All reactions