copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

The --agent flag should put just the Agent Name only

Open doggy8088 opened this issue 2 months ago • 0 comments

Describe the feature or problem you'd like to solve

I wish Copilot CLI can simplify the agent usage

Proposed solution

I have a agent here: .github/agents/Plan.agent.md.

When I want to assign this agent in prompt mode. I have to do this:

copilot --agent Plan.agent -p 'I hope that all the listing pages in the backend can automatically submit queries when search conditions change.'

I wish it can change to:

sh
copilot --agent Plan -p 'I hope that all the listing pages in the backend can automatically submit queries when search conditions change.'

Right now, the error will shown:

No such agent: Plan, available: CSharpExpert.agent, Plan.agent, architect.agent, sql-master-ro.agent, sql-master.agent
Image

Example prompts or workflows

N/A

Additional context

N/A

doggy8088 avatar Nov 04 '25 17:11 doggy8088