Update agent frontmatter options to remove deprecated "infer"#1022
Closed
Anddd7 wants to merge 1 commit intogithub:mainfrom
Closed
Update agent frontmatter options to remove deprecated "infer"#1022Anddd7 wants to merge 1 commit intogithub:mainfrom
Anddd7 wants to merge 1 commit intogithub:mainfrom
Conversation
* Removed 'infer' property and replaced it with 'user-invocable' and 'disable-model-invocation' * Clarified usage of new properties for better agent configuration * Updated guidelines to reflect changes in agent visibility and invocation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the custom agent authoring guidelines to align with the newer frontmatter options by removing the deprecated infer field and documenting the replacement visibility/invocation controls.
Changes:
- Removed
inferfrom the sample agent frontmatter. - Added documentation for
user-invocableanddisable-model-invocation, including updated checklist guidance.
| #### **disable-model-invocation** (OPTIONAL) | ||
| - Boolean controlling whether the agent can be invoked as a subagent by other agents | ||
| - Default: `false` if omitted | ||
| - Set to `true` to prevent subagent invocation while keeping it available in the picker |
Comment on lines
23
to
30
| ```yaml | ||
| --- | ||
| description: 'Brief description of the agent purpose and capabilities' | ||
| name: 'Agent Display Name' | ||
| tools: ['read', 'edit', 'search'] | ||
| model: 'Claude Sonnet 4.5' | ||
| target: 'vscode' | ||
| infer: true | ||
| --- |
Comment on lines
+63
to
+66
| #### **user-invocable** (OPTIONAL) | ||
| - Boolean controlling whether the agent appears in the agents dropdown in chat | ||
| - Default: `true` if omitted | ||
| - Set to `false` to require manual agent selection | ||
| - Set to `false` to create agents that are only accessible as subagents or programmatically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.Description
Type of Contribution
Additional Notes
https://code.visualstudio.com/docs/copilot/customization/custom-agents#_custom-agent-file-structure
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.