Skip to content

Update agent frontmatter options to remove deprecated "infer"#1024

Closed
Anddd7 wants to merge 1 commit intogithub:mainfrom
Anddd7:deprecated-infer-agent-instruction
Closed

Update agent frontmatter options to remove deprecated "infer"#1024
Anddd7 wants to merge 1 commit intogithub:mainfrom
Anddd7:deprecated-infer-agent-instruction

Conversation

@Anddd7
Copy link
Contributor

@Anddd7 Anddd7 commented Mar 16, 2026

  • Removed 'infer' option and replaced it with 'user-invocable' and 'disable-model-invocation'.
  • Clarified the purpose of new options for better usability.
  • Updated guidelines to reflect changes in agent invocation behavior.

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

Additional Notes

https://code.visualstudio.com/docs/copilot/customization/custom-agents#_custom-agent-file-structure

infer | Deprecated. Use user-invocable and disable-model-invocation instead. Previously, infer: true (the default) made the agent both visible in the picker and available as a subagent. infer: false hid it from both. The new fields give you independent control: use user-invocable: false to hide from the picker while still allowing subagent invocation, or disable-model-invocation: true to prevent subagent invocation while keeping it in the picker.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

* Removed 'infer' option and replaced it with 'user-invocable' and 'disable-model-invocation'.
* Clarified the purpose of new options for better usability.
* Updated guidelines to reflect changes in agent invocation behavior.
@Anddd7 Anddd7 requested a review from aaronpowell as a code owner March 16, 2026 06:52
Copilot AI review requested due to automatic review settings March 16, 2026 06:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the custom agent authoring guidelines to reflect the deprecation of the infer frontmatter flag and document the newer agent-invocation controls.

Changes:

  • Removed infer from the frontmatter example.
  • Documented user-invocable and disable-model-invocation options and their defaults.
  • Updated the agent creation checklist to reference the new invocation controls.

Comment on lines 27 to 29
tools: ['read', 'edit', 'search']
model: 'Claude Sonnet 4.5'
target: 'vscode'
@Anddd7 Anddd7 closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants