-
Notifications
You must be signed in to change notification settings - Fork 65
Add support for --agent parameter to allow non-interactive agent selection
#386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: StevenBucher98 <[email protected]>
Co-authored-by: StevenBucher98 <[email protected]>
Co-authored-by: StevenBucher98 <[email protected]>
--agent parameter for the aish executable--agent parameter to allow non-interactive agent selection
|
@Copilot please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This PR implements support for
--agentand-acommand line parameters to allow users to specify which AI agent to use without interactive prompting.Changes Made
Command Line Interface
--agentand-aoptions to the mainaishexecutableAgent Selection Priority
Updated the agent selection logic to use the following priority order:
Implementation Details
ShellArgsclass to include the agent parameterShellclass to store and use the command-line provided agentUsage Examples
Configuration Hierarchy
The agent selection now follows this priority:
aish --agent <name>(command line)~/.aish/config.jsondefault agentBackward Compatibility
All existing functionality remains unchanged. Users who don't specify the
--agentparameter will continue to see the interactive agent selection prompt as before.Fixes #354.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
1p7vsblobprodcus324.vsblob.vsassets.iodotnet build shell/shell.sln(dns block)1s1vsblobprodcus386.vsblob.vsassets.iodotnet build shell/shell.sln(dns block)fdpvsblobprodcus345.vsblob.vsassets.iodotnet build shell/shell.sln(dns block)h6tvsblobprodcus346.vsblob.vsassets.iodotnet build shell/shell.sln(dns block)m16vsblobprodcus374.vsblob.vsassets.iodotnet build shell/shell.sln(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 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.