-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Issue Description
Migrate Legacy Chatmodes to Agent Mode
Description
GitHub Copilot is transitioning from the legacy Chatmodes format (*.chatmode.md) to the unified Agent model (*.agent.md).
To align this repository with the current Copilot extensibility model, we should migrate all existing chatmodes, update tool definitions, and refresh documentation accordingly.
This work includes:
- Verify all
*.chatmode.mdfiles are migrated to.agent.mdin.github/agents/ - Ensure agent frontmatter schema (
agent-frontmatter.schema.json) is properly configured with modern agent properties (name, description, argument-hint, tools, model, target, mcp-servers, handoffs) - Mark chatmode schema as DEPRECATED with clear migration guidance to agent schema
- Update schema mapping to remove chatmode pattern and properly map
*.agent.mdfiles to agent schema - Update scripts to discover and validate agents instead of chatmodes:
Prepare-Extension.ps1- Remove chatmode discovery logic, consolidate to agents onlyValidate-MarkdownFrontmatter.ps1- Update pattern matching from*.chatmode.mdto*.agent.md
- Update extension packaging:
.vscodeignore- Change from.github/chatmodes/**to.github/agents/**PACKAGING.md- Remove chatmodes references, update to agents only
- Update all documentation to reference "agents" instead of "chatmodes":
- Contributing documentation (chatmodes.md, ai-artifacts-common.md, prompts.md, instructions.md, README.md)
- Getting started documentation (README.md, first-workflow.md)
- All installation method guides (peer-clone, submodule, mounted, git-ignored, codespaces, extension, multi-root)
- Pull request template
- Update configuration files:
- Workspace
.vscode/settings.json- Change paths from chatmodes to agents - Spell checker dictionary - Remove "chatmode" and "chatmodes" terms
hve-core-installeragent - Update all embedded configuration examples
- Workspace
- Remove or update all code and config references that rely on legacy chatmodes
Justification
GitHub and VS Code have consolidated extensibility under the Copilot Agent model. Agents are the officially supported mechanism for defining behavior, tools, and workflows, while chatmodes are deprecated. GitHub’s documentation specifies:
- VS Code auto-discovers agent definitions in
.github/agents/ - Tools must use the fully qualified naming schema defined for agents
- GitHub has already migrated its own repositories to
.agent.md, replacing chatmodes entirely
Migrating now ensures compatibility with the current Copilot platform, avoids reliance on deprecated features, and positions the project to adopt ongoing improvements in the agent ecosystem.
Acceptance Criteria
- All chatmode files replaced with
.agent.mdequivalents in.github/agents/ - Agent frontmatter schema (
agent-frontmatter.schema.json) properly configured - Chatmode schema marked as DEPRECATED with migration guidance
- Schema mapping updated to map
*.agent.mdfiles to agent schema - Scripts updated:
Prepare-Extension.ps1discovers agents (not chatmodes) - Scripts updated:
Validate-MarkdownFrontmatter.ps1validates*.agent.mdpatterns - Extension packaging updated:
.vscodeignoreandPACKAGING.mdreference.github/agents/ - All documentation paths updated from
.github/chatmodes/to.github/agents/ - All installation method docs updated (peer-clone, submodule, mounted, codespaces, etc.)
- Contributing documentation updated to use "agent" terminology throughout
- PR template updated to reference agents instead of chatmodes
- Workspace settings updated to reference
.github/agents/ - Spell checker dictionary cleaned (chatmode/chatmodes terms removed)
- hve-core-installer agent updated with correct paths in example configurations
- Agent definitions validate correctly in VS Code
- CI passes successfully after migration