Skip to content

Ability to set agent to use #547

Description

@IeuanWalker

In the CLI you can set the agent you want to use -
Image

From what i can see with the SDK you can only give it a list of Agents to use -

    public List<CustomAgentConfig>? CustomAgents { get; set; }

With no option to set which one to use manually. In the custom agent model there is an Infer boolean property which means when set to false that agent wont be used automatically, but without a way to manually set one whats the point of it?

public bool? Infer { get; set; }

Also based on the docs should Infer be changed to DisableModelInvocation, to match the docs -
https://docs.github.com/en/copilot/reference/custom-agents-configuration#:~:text=disable%2Dmodel%2Dinvocation,to%20true.

Activity

  1. github-actions commented on Feb 23, 2026

    @github-actions
    Contributor

    Thanks for opening this issue, @IeuanWalker!

    You've raised a great point about the ability to manually select which custom agent to use (similar to the CLI), and also highlighted a potential naming inconsistency with the Infer property vs the documented DisableModelInvocation.

    Labels applied:

    • enhancement — Feature request for manual agent selection
    • sdk/dotnet — .NET SDK specific
    • documentation — Property naming alignment with docs

    The team will review this and provide feedback on the proposed enhancements.

    AI generated by Issue Triage Agent

  2. SteveSandersonMS commented on Feb 23, 2026

    @SteveSandersonMS
    Contributor

    This will be supported once #544 is merged.

  3. IeuanWalker commented on Feb 23, 2026

    @IeuanWalker
    ContributorAuthor

    Thanks @SteveSandersonMS

    2 questions if dont mind answering -

    • The plan mode in the CLI is that just a built-in agent?
    • Does the SDK automatically pick up instruction files in the working directory you give it? Or do you have to manually pick them up and feed them into the SystemMessage property?
  4. added 4 commits that reference this issue on Mar 8, 2026
    e745d22
    ba658f9
    d77ec60
    c61475f
  5. added a commit that references this issue on Mar 8, 2026
    7766b1a
  6. added a commit that references this issue on Aug 4, 2026
    a2ccb0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions