Skip to content

Allow custom agent to be specified via full qualified file path #1747

@jafreck

Description

@jafreck

Describe the feature or problem you'd like to solve

The CLI should allow users to specify their custom agent path fully

Proposed solution

Currently, copilot only allows custom agents to be referenced by name:
copilot --agent <agent>

The agents must be in one of the supported locations:
$repoRoot/.github/agents
~/.copilot/agents

This is limiting and users should be able to specify the fully qualified path to the custom agent definition:
copilot --agent /path/to/agent

This should be additive, if the fully qualified path isn't set, it should still look in the default directory locations.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agents
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions