Skip to content

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

@doggy8088

Description

@doggy8088

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions