Skip to main content

Preparing to use custom agents in your enterprise

Set up your enterprise for custom agents by configuring their source organization and repository, availability, and management permissions.

Who can use this feature?

Enterprise owners

Enterprise-level custom agents are defined in a .github-private repository within an organization in your enterprise. Preparing your enterprise involves creating that repository, configuring it as your source of governance, protecting your agent files, and deciding who can manage custom agents.

Work through the following steps to set up your enterprise.

Set up your governance repository

  1. Create a .github-private repository to house your enterprise's agent profiles, client permissions, and plugin settings.
  2. Select the repository as your source of governance so that your enterprise reads its settings from the repository.

For both steps, see Creating a .github-private repository.

Protecting your agent files using rulesets

To automatically configure a ruleset that allows only enterprise owners to edit agent profiles across your enterprise:

  1. Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
  2. At the top of the page, click AI controls.
  3. On the "Agents" tab, in the "Protect agent files using rulesets" section, click Create ruleset.

Note

  • Members of your enterprise with write access to the custom agent repository can still create pull requests proposing changes to your agent profiles. Enterprise members with bypass access to the ruleset can then merge those pull requests as they see fit.
  • Creating this ruleset will also block organization owners in your enterprise from creating or editing organization-level custom agents. To prevent this, you can edit the ruleset to target only the organization containing your enterprise-level custom agents.

Decide who manages your custom agents

To reduce your administrative burden and empower your SMEs, you can delegate the creation and management of custom agents in your enterprise by creating a team of AI managers. See Establishing AI managers in your enterprise.

If you prefer to maintain full control over your enterprise's tooling to ensure security and compliance, you can create and manage custom agents yourself. See Testing and releasing custom agents in your organization or enterprise.

Next steps

To centrally control Copilot client behavior across your enterprise, configure enterprise managed settings. See Configuring enterprise-managed settings.