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
Describe the feature or problem you'd like to solve
Custom Agent Configuration with Context Pre-loading Support
Proposed solution
Summary
Enable GitHub Copilot CLI to support custom agent configurations with context pre-loading capabilities, similar to Amazon Q Developer CLI's agent system. This would allow developers to create specialized, context-aware agents for different projects, workflows, and domains.
Problem Description
Currently, GitHub Copilot CLI operates as a stateless tool that provides command suggestions and explanations without persistent context or domain specialization. While the tool is excellent for general command-line assistance, developers working on complex projects or specialized domains face several limitations:
Current Limitations
No Persistent Context: Each interaction starts fresh without awareness of project context, previous conversations, or domain-specific requirements
One-Size-Fits-All Approach: No ability to specialize the assistant for different workflows (e.g., AWS operations, Kubernetes management, data science, etc.)
Manual Context Provision: Users must repeatedly provide the same contextual information (project structure, coding standards, environment setup) in each session
AWS DevOps Engineer: Needs agent aware of company's AWS account structure, IAM policies, and infrastructure-as-code patterns
Kubernetes Administrator: Requires agent familiar with cluster configuration, custom resources, and operational procedures
Data Scientist: Wants agent that understands project's data pipeline, ML frameworks, and analysis patterns
Enterprise Developer: Needs agent aware of corporate coding standards, security policies, and approved toolchains
Proposed Solution
Introduce a configuration system that allows users to define custom agents with pre-loaded context, similar to Amazon Q Developer CLI but adapted for GitHub Copilot CLI's command-focused interface.
Resource Loading: Automatically load specified files and patterns into agent context
Smart Indexing: Index common project patterns (README, config files, documentation)
Environment Awareness: Detect and include relevant environment variables and tool configurations
Update Detection: Refresh context when watched files change
3. Agent Selection Interface
# Use default agent
gh copilot suggest "deploy application to staging"# Use specific agent
gh copilot suggest --agent aws-devops "deploy application to staging"# Set default agent for current directory
gh copilot config set-default-agent aws-devops
# List available agents
gh copilot agent list
# Create new agent interactively
gh copilot agent create
Build on established file watching and indexing patterns
Success Metrics
Adoption: Number of custom agents created by users
Engagement: Increased session length and command success rates with context-aware agents
Satisfaction: User feedback on relevance and accuracy improvements
Enterprise Uptake: Organizational adoption and agent sharing patterns
Note: This feature would position GitHub Copilot CLI as the most advanced context-aware command-line AI assistant, combining GitHub's ecosystem integration with the flexibility demonstrated by Amazon Q Developer CLI's agent system.
Describe the feature or problem you'd like to solve
Custom Agent Configuration with Context Pre-loading Support
Proposed solution
Summary
Enable GitHub Copilot CLI to support custom agent configurations with context pre-loading capabilities, similar to Amazon Q Developer CLI's agent system. This would allow developers to create specialized, context-aware agents for different projects, workflows, and domains.
Problem Description
Currently, GitHub Copilot CLI operates as a stateless tool that provides command suggestions and explanations without persistent context or domain specialization. While the tool is excellent for general command-line assistance, developers working on complex projects or specialized domains face several limitations:
Current Limitations
Real-World Impact
Proposed Solution
Introduce a configuration system that allows users to define custom agents with pre-loaded context, similar to Amazon Q Developer CLI but adapted for GitHub Copilot CLI's command-focused interface.
Core Components
1. Agent Configuration Files
{ "name": "aws-devops", "description": "AWS infrastructure and DevOps operations assistant", "prompt": "You are an expert AWS DevOps engineer familiar with our company's cloud infrastructure patterns and security requirements.", "resources": [ "file://README.md", "file://docs/aws-architecture.md", "file://.github/workflows/*.yml", "file://terraform/**/*.tf" ], "contextPatterns": [ "**/*.tf", "**/*.yml", "**/Dockerfile*", ".aws/config" ], "settings": { "maxContextFiles": 50, "preferredShell": "bash", "environmentHints": ["AWS_PROFILE", "TERRAFORM_WORKSPACE"] } }2. Context Pre-loading System
3. Agent Selection Interface
Configuration Locations
Example Use Cases
AWS Infrastructure Agent
{ "name": "aws-infrastructure", "prompt": "Expert in AWS infrastructure automation using Terraform and CloudFormation", "resources": [ "file://infrastructure/README.md", "file://terraform/**/*.tf", "file://.aws/config" ], "contextPatterns": ["**/*.tf", "**/*.yml", "**/buildspec.yml"], "environmentHints": ["AWS_PROFILE", "AWS_REGION", "TERRAFORM_WORKSPACE"] }Kubernetes Operations Agent
{ "name": "k8s-ops", "prompt": "Kubernetes operations specialist familiar with our cluster configuration and deployment patterns", "resources": [ "file://k8s/**/*.yaml", "file://helm/**/*", "file://docs/runbooks/*.md" ], "contextPatterns": ["**/*.yaml", "**/*.yml", "**/Dockerfile*"], "environmentHints": ["KUBECONFIG", "KUBECTL_CONTEXT"] }Benefits
For Individual Developers
for Teams & Organizations
Competitive Advantages
Implementation Considerations
Phase 1: Basic Agent Support
Phase 2: Advanced Context Management
Phase 3: Enterprise Features
Relationship to Existing Work
This feature request builds upon and complements:
/add-dirworks with~but not$HOMEfor home directories #144: "Agent mode similar to Copilot in VSCode" - This proposal extends that concept with persistent, configurable agentsTechnical Feasibility
Existing Patterns
Integration Points
Success Metrics
Note: This feature would position GitHub Copilot CLI as the most advanced context-aware command-line AI assistant, combining GitHub's ecosystem integration with the flexibility demonstrated by Amazon Q Developer CLI's agent system.
Example prompts or workflows
No response
Additional context
No response