microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
hve-core-v3.3.41

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

123lines · 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 "agents": {
12 "oneOf": [
13 {
14 "type": "array",
15 "items": {
16 "type": "string"
17 }
18 },
19 {
20 "type": "string",
21 "enum": [
22 "*"
23 ]
24 }
25 ],
26 "default": "*",
27 "description": "List of subagent names allowed to be invoked by this agent. Use '*' to allow all subagents."
28 },
29 "description": {
30 "type": "string",
31 "minLength": 1,
32 "description": "A brief description of the custom agent, shown as placeholder text in the chat input field"
33 },
34 "name": {
35 "type": "string",
36 "description": "The name of the custom agent. If not specified, the file name is used"
37 },
38 "argument-hint": {
39 "type": "string",
40 "description": "Optional hint text shown in the chat input field to guide users on how to interact with the custom agent"
41 },
42 "tools": {
43 "type": "array",
44 "items": {
45 "type": "string"
46 },
47 "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"
48 },
49 "model": {
50 "oneOf": [
51 {
52 "type": "string"
53 },
54 {
55 "type": "array",
56 "items": {
57 "type": "string"
58 }
59 }
60 ],
61 "description": "The AI model(s) to use when running the agent. If not specified, the currently selected model in model picker is used."
62 },
63 "target": {
64 "type": "string",
65 "enum": [
66 "vscode",
67 "github-copilot"
68 ],
69 "description": "The target environment or context for the custom agent"
70 },
71 "mcp-servers": {
72 "type": "array",
73 "items": {
74 "type": "object"
75 },
76 "description": "Optional list of Model Context Protocol (MCP) server config json to use with custom agents in GitHub Copilot"
77 },
78 "user-invokable": {
79 "type": "boolean",
80 "default": true,
81 "description": "Controls whether the agent appears in the UI for manual invocation."
82 },
83 "disable-model-invocation": {
84 "type": "boolean",
85 "default": false,
86 "description": "When true, prevents this agent from invoking subagents (including other custom agents). It does not affect which model this agent uses or how the model picker works."
87 },
88 "handoffs": {
89 "type": "array",
90 "items": {
91 "type": "object",
92 "required": [
93 "label",
94 "agent"
95 ],
96 "properties": {
97 "label": {
98 "type": "string",
99 "description": "The display text shown on the handoff button"
100 },
101 "agent": {
102 "type": "string",
103 "description": "The target agent identifier to switch to"
104 },
105 "prompt": {
106 "type": "string",
107 "description": "The prompt text to send to the target agent"
108 },
109 "model": {
110 "type": "string",
111 "description": "Optional model override for the handoff."
112 },
113 "send": {
114 "type": "boolean",
115 "description": "Optional boolean flag to auto-submit the prompt (default is false)"
116 }
117 }
118 },
119 "description": "Optional list of suggested next actions or prompts to transition between custom agents"
120 }
121 },
122 "additionalProperties": false
123}
124