You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This research reveals significant untapped potential in Copilot CLI configuration. Most workflows use the simplest engine: copilot format, missing opportunities for optimization through custom CLI arguments, plugins, version pinning, and advanced tool permissions.
Primary Recommendation: Create comprehensive documentation and examples for advanced Copilot features, particularly plugins, engine.args, and granular tool permissions. Establish best practices for version pinning to improve workflow stability.
Critical Findings
🔴 High Priority Issues
Zero Plugin Adoption (Priority: Critical)
Copilot CLI supports plugin installation via copilot plugin install
The compiler adds ~/.copilot/ to --add-dir when plugins are declared
Impact: Missing opportunities for specialized tools and capabilities
Action Required: Add plugin examples and documentation
Minimal Advanced Configuration (Priority: High)
Only 1 workflow uses engine.args despite 15+ available CLI flags
0 workflows pin Copilot version for stability
0 workflows use engine.env for custom environment variables
# Security Analyzer Agent
You are a security-focused code analyst specializing in vulnerability detection.
## Your Expertise- OWASP Top 10 vulnerabilities
- Secure coding practices
- Threat modeling
...
What: The --share flag is automatically added, but users may not know about conversation.md
Why It Matters:
conversation.md contains full agent conversation
Useful for debugging, transparency, auditing
Currently auto-generated but undocumented
Where: Documentation, workflow debugging guides
How to Implement:
Add to documentation:
## Copilot Conversation Output
Every Copilot workflow automatically generates a conversation transcript at:
- Location: `/tmp/gh-aw/sandbox/agent/logs/conversation.md`- Format: Markdown with full conversation history
- Access: Via workflow artifacts or log parsing
To access:
1. Download workflow artifacts
2. Look for `conversation.md` in logs
3. Review full agent interaction
Expected Benefits:
Better debugging workflows
Improved transparency
Easier troubleshooting
Audit trail for compliance
Opportunity 7: Use engine.env for Environment Variables
What: Zero workflows use engine.env despite support for custom environment variables
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🔍 Copilot CLI Deep Research Report
Analysis Date: February 11, 2026
Repository: github/gh-aw
Scope: 208 total workflows, 71 using Copilot engine (34.1%)
Workflow Run: §21911513931
📊 Executive Summary
Research Topic: Copilot CLI Optimization Opportunities
Key Findings:
engine.args)This research reveals significant untapped potential in Copilot CLI configuration. Most workflows use the simplest
engine: copilotformat, missing opportunities for optimization through custom CLI arguments, plugins, version pinning, and advanced tool permissions.Primary Recommendation: Create comprehensive documentation and examples for advanced Copilot features, particularly plugins,
engine.args, and granular tool permissions. Establish best practices for version pinning to improve workflow stability.Critical Findings
🔴 High Priority Issues
Zero Plugin Adoption (Priority: Critical)
copilot plugin install~/.copilot/to--add-dirwhen plugins are declaredMinimal Advanced Configuration (Priority: High)
engine.argsdespite 15+ available CLI flagsengine.envfor custom environment variablesLimited Granular Permissions (Priority: High)
tools.github.toolsets: [default]github(get_file)🟡 Medium Priority Opportunities
Custom Agent Underutilization (Priority: Medium)
engine.agentfor custom prompts.github/agents/libraryConversation Sharing Awareness (Priority: Medium)
--shareflag is automatically added, creatingconversation.md1️⃣ Current State Analysis
View Copilot CLI Capabilities Inventory
Copilot CLI Capabilities Inventory
Version Information: Latest (0.0.394 as of 2026-01-26)
Available CLI Flags (from
pkg/workflow/copilot_engine_execution.go):--add-dir (path)- Add directories to file system access--agent (identifier)- Use custom agent file--allow-tool (tool)- Grant tool permissions--allow-all-tools- Grant all tool permissions--allow-all-paths- Allow write access to all paths (for edit tool)--allow-domains (domains)- Network domain allowlist--block-domains (domains)- Network domain blocklist--disable-builtin-mcps- Disable built-in MCP servers (automatically added)--log-level (level)- Set logging verbosity--log-dir (path)- Specify log output directory--model (name)- Override AI model selection--share (path)- Generate conversation markdown (automatically added)--prompt (text)- Provide agent instructionsExtended Engine Configuration Options:
Core Features:
--allow-toolMCP Server Integration:
tools.(name).mcp.httptools.(name).mcp.commandView Usage Statistics
Usage Statistics
Workflow Distribution:
Tool Configuration Patterns:
Advanced Features:
Engine Configuration Patterns:
engine: copilot): ~70 workflowsengine.id: copilot): ~1 workflowengine.agent): 16 workflows (22.5%)engine.model): ~5 workflowsengine.args): 1 workflow (1.4%)engine.version): 0 workflows (0%)engine.env): 0 workflows (0%)2️⃣ Feature Usage Matrix
--share,--add-dir,--log-level,--disable-builtin-mcps,--allow-tool--allow-domains,--block-domains,--verbose,--debugengine.agent,engine.modelengine.version,engine.env,engine.args3️⃣ Missed Opportunities
View High Priority Opportunities
🔴 High Priority
Opportunity 1: Enable Plugin System Adoption
What: Copilot CLI supports a plugin installation system via
copilot plugin install (plugin-name)Why It Matters:
~/.copilot/to--add-dirwhen plugins are declaredWhere: Any workflow that could benefit from specialized tooling
How to Implement:
plugins:section to frontmatterExample:
Expected Benefits:
Opportunity 2: Add engine.args for Advanced CLI Control
What: Only 1 workflow uses
engine.argsto pass custom CLI flagsWhy It Matters:
Where: Workflows that need:
How to Implement:
Example Use Cases:
--add-dir /workspacefor better file discovery--verboseor--debugfor detailed logs--log-level tracefor maximum verbosityExpected Benefits:
Opportunity 3: Implement Version Pinning for Stability
What: Zero workflows pin Copilot CLI version via
engine.versionWhy It Matters:
Where: Production workflows, security-critical workflows, workflows with strict SLAs
How to Implement:
Example:
Expected Benefits:
Opportunity 4: Use Granular GitHub Tool Permissions
What: Most workflows use
tools.github.toolsets: [default]instead of specific tool allowlistsWhy It Matters:
Where: Workflows with specific GitHub API needs
How to Implement:
Example:
Expected Benefits:
View Medium Priority Opportunities
🟡 Medium Priority
Opportunity 5: Expand Custom Agent Usage
What: Only 16/71 workflows (22.5%) use
engine.agentfor custom promptsWhy It Matters:
Where: Workflows with specialized tasks (security analysis, documentation, code review, etc.)
How to Implement:
.github/agents/my-agent.agent.mdengine.agent: my-agentExample:
.github/agents/security-analyzer.agent.md:Expected Benefits:
Opportunity 6: Document Conversation Markdown Output
What: The
--shareflag is automatically added, but users may not know aboutconversation.mdWhy It Matters:
conversation.mdcontains full agent conversationWhere: Documentation, workflow debugging guides
How to Implement:
Add to documentation:
Expected Benefits:
Opportunity 7: Use engine.env for Environment Variables
What: Zero workflows use
engine.envdespite support for custom environment variablesWhy It Matters:
Where: Workflows needing custom environment configuration
How to Implement:
Expected Benefits:
Opportunity 8: Optimize --add-dir Usage
What: Limited awareness of
--add-diroptimization for large directoriesWhy It Matters:
--add-dirimproves performanceWhere: Workflows working with large codebases or monorepos
How to Implement:
Expected Benefits:
View Low Priority Opportunities
🟢 Low Priority
Opportunity 9: Explore Model Selection Strategies
What: Only ~5 workflows override the default model
Why It Matters:
Where: Cost-sensitive workflows, performance-critical workflows
How to Implement:
Expected Benefits:
Opportunity 10: Document Sandbox Modes (AWF vs SRT)
What: 19 workflows use sandbox, but limited documentation on AWF vs SRT
Why It Matters:
Where: Documentation, security guides
How to Implement:
Add comparison guide:
Expected Benefits:
4️⃣ Specific Workflow Recommendations
View Workflow-Specific Recommendations
Workflow:
agent-performance-analyzer.mdCurrent State: Standard Copilot configuration with repo-memory
Recommended Changes:
engine.versionfor stabilityengine.agent: performance-analyzerfor specialized analysisExpected Benefits: More stable performance analysis, reproducible results
Workflow:
cli-consistency-checker.mdCurrent State: Uses bash wildcard, web-fetch, edit tools
Recommended Changes:
engine.args: ["--verbose"]for better debuggingExpected Benefits: Better debugging, more consistent checks, tighter security
Workflow:
code-scanning-fixer.mdCurrent State: Security-focused with GitHub toolsets
Recommended Changes:
engine.versionfor security workflow stabilityengine.agent: security-fixerfor specialized security knowledgeExpected Benefits: More stable security fixes, tighter permissions, better security posture
Workflow:
daily-copilot-token-report.mdCurrent State: Pre-downloads logs with custom steps
Recommended Changes:
engine.versionfor consistent token countingExpected Benefits: Consistent token metrics, reusable pattern, better trend analysis
Workflow:
gpclean.mdCurrent State: Uses cache-memory for round-robin module selection
Recommended Changes:
engine.versionfor reproducible dependency analysisengine.agent: dependency-analyzerfor specialized Go knowledgeengine.argsfor custom directory access to Go module cacheExpected Benefits: Reproducible analysis, better Go expertise, optimized performance
5️⃣ Trends & Insights
View Historical Trends
First Comprehensive Analysis
This is the first comprehensive Copilot CLI research for this repository. Future analyses will track:
.github/agents/library expansionBaseline Metrics (February 2026)
Key Observations
6️⃣ Best Practice Guidelines
Based on this research, here are recommended best practices:
engine.versionfor production and security workflows to ensure reproducible behavior.github/agents/files for specialized tasks (security, docs, testing, etc.)--verboseor--debugwhen troubleshootingconversation.mdfor debugging and transparencyimports:to share common configurations7️⃣ Action Items
Immediate Actions (this week):
/gh-aw/reference/engines.mdengine.argsShort-term (this month):
.github/agents/library with common agent typesLong-term (this quarter):
View Supporting Evidence & Methodology
📚 References
pkg/workflow/copilot_engine.go,pkg/workflow/copilot_engine_execution.go,pkg/workflow/copilot_engine_tools.godocs/src/content/docs/reference/engines.md.github/workflows/*.md(208 total, 71 Copilot)/tmp/gh-aw/repo-memory/default/copilot-cli-research/Research Methodology
Data Collection
pkg/workflow/.github/workflows/docs/src/content/docs/reference/engines.mdAnalysis Techniques
Tools Used
grep,find,wc,head,tailfor workflow analysisviewtool for examining source codeValidation
References:
Beta Was this translation helpful? Give feedback.
All reactions