microsoft/hve-core

Public

mirrored from https://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
docs/659-role-based-docs-lifecycle-guides

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/linting/schemas/agent-frontmatter.schema.json

114lines · modecode

1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://github.com/microsoft/hve-core/schemas/agent-frontmatter.schema.json",
4 "title": "Agent File Frontmatter Schema",
5 "description": "Frontmatter schema for .agent.md files per VS Code custom agent specification",
6 "type": "object",
7 "required": [
8 "description"
9 ],
10 "properties": {
11 "description": {
12 "type": "string",
13 "minLength": 1,
14 "description": "A brief description of the custom agent, shown as placeholder text in the chat input field"
15 },
16 "name": {
17 "type": "string",
18 "description": "The name of the custom agent. If not specified, the file name is used"
19 },
20 "argument-hint": {
21 "type": "string",
22 "description": "Optional hint text shown in the chat input field to guide users on how to interact with the custom agent"
23 },
24 "tools": {
25 "type": "array",
26 "items": {
27 "type": "string"
28 },
29 "description": "A list of tool or tool set names available for this custom agent. Can include built-in tools, tool sets, MCP tools, or tools contributed by extensions"
30 },
31 "agents": {
32 "type": "array",
33 "items": {
34 "type": "string"
35 },
36 "description": "A list of agent names available as subagents. Use * to allow all agents, or an empty array [] to prevent subagent use"
37 },
38 "model": {
39 "oneOf": [
40 {
41 "type": "string"
42 },
43 {
44 "type": "array",
45 "items": {
46 "type": "string"
47 }
48 }
49 ],
50 "description": "The AI model to use. Specify a single model name or a prioritized list of models. If not specified, the currently selected model is used"
51 },
52 "user-invocable": {
53 "type": "boolean",
54 "description": "Controls whether the agent appears in the agents dropdown (default is true). Set to false for subagent-only agents"
55 },
56 "disable-model-invocation": {
57 "type": "boolean",
58 "description": "Prevents the agent from being invoked as a subagent by other agents (default is false)"
59 },
60 "infer": {
61 "type": "boolean",
62 "description": "Deprecated. Use user-invocable and disable-model-invocation instead"
63 },
64 "target": {
65 "type": "string",
66 "enum": [
67 "vscode",
68 "github-copilot"
69 ],
70 "description": "The target environment or context for the custom agent"
71 },
72 "mcp-servers": {
73 "type": "array",
74 "items": {
75 "type": "object"
76 },
77 "description": "Optional list of Model Context Protocol (MCP) server config json to use with custom agents in GitHub Copilot"
78 },
79 "handoffs": {
80 "type": "array",
81 "items": {
82 "type": "object",
83 "required": [
84 "label",
85 "agent"
86 ],
87 "properties": {
88 "label": {
89 "type": "string",
90 "description": "The display text shown on the handoff button"
91 },
92 "agent": {
93 "type": "string",
94 "description": "The target agent identifier to switch to"
95 },
96 "prompt": {
97 "type": "string",
98 "description": "The prompt text to send to the target agent"
99 },
100 "send": {
101 "type": "boolean",
102 "description": "Optional boolean flag to auto-submit the prompt (default is false)"
103 },
104 "model": {
105 "type": "string",
106 "description": "Optional language model override for handoff execution"
107 }
108 }
109 },
110 "description": "Optional list of suggested next actions or prompts to transition between custom agents"
111 }
112 },
113 "additionalProperties": true
114}