Complete infer to disable-model-invocation migration in GitHub org custom agents#3466
Open
Complete infer to disable-model-invocation migration in GitHub org custom agents#3466
Conversation
Co-authored-by: pwang347 <8560030+pwang347@users.noreply.github.com>
Co-authored-by: pwang347 <8560030+pwang347@users.noreply.github.com>
Co-authored-by: pwang347 <8560030+pwang347@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address feedback on agent migration and skills folder implementation
Complete infer to disable-model-invocation migration in GitHub org custom agents
Feb 5, 2026
pwang347
approved these changes
Feb 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR completes the migration from the deprecated infer field to disable-model-invocation for GitHub organization custom agents. The backend API still sends the infer field, but the frontend now properly maps it to the new attribute when generating agent markdown files.
Changes:
- Map backend's
inferfield todisable-model-invocationattribute in generated frontmatter (infer: false→disable-model-invocation: true, whileinfer: trueor undefined omits the attribute) - Update
planAgentProvider.tsto usedisableModelInvocationinstead of the deprecatedinferfield - Add comprehensive test coverage for both
infer: trueandinfer: falsecases - Update agent customization documentation to reflect the new attributes (
user-invokableanddisable-model-invocation) - Add support for additional skill directory locations (
.agents/skills/and.claude/skills/)
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/platform/github/common/githubService.ts |
Add deprecation documentation for the infer field with mapping semantics |
src/extension/agents/vscode-node/githubOrgCustomAgentProvider.ts |
Implement mapping logic from infer to disable-model-invocation in markdown generation |
src/extension/agents/vscode-node/test/githubOrgCustomAgentProvider.spec.ts |
Add tests for infer: true (omit attribute) and infer: false (output disable-model-invocation: true) |
src/extension/agents/vscode-node/planAgentProvider.ts |
Migrate from infer to disableModelInvocation in plan agent configuration |
assets/prompts/skills/agent-customization/primitives/agents.md |
Update documentation to replace deprecated infer values with user-invokable and disable-model-invocation attributes |
assets/prompts/skills/agent-customization/primitives/skills.md |
Add support for .agents/skills/ and .claude/skills/ directory locations |
assets/prompts/skills/agent-customization/SKILL.md |
Update quick reference table to include new skill locations |
vijayupadya
approved these changes
Feb 5, 2026
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.
The migration from
infertodisable-model-invocationwas incomplete—generateAgentMarkdown()still generated the deprecatedinferattribute in frontmatter for custom agents fetched from GitHub organizations.Changes
Mapping logic in
githubOrgCustomAgentProvider.ts:infer: false→disable-model-invocation: trueinfer: true|undefined→ omit attribute (default behavior)inferoutputInterface documentation in
githubService.ts:inferfield as@deprecatedwith mapping semanticsTest coverage:
infer: trueproduces no attribute outputinfer: falseproducesdisable-model-invocation: trueExample
Backend response with
infer: false:Generated frontmatter:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.