Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Options to override the default folder-picker and editor-open behaviour
* of the new-prompt-file actions. The agentic editor passes these to open
* files in the embedded editor and pre-resolve the target folder.
*/
export
interface
INewPromptOptions
{
readonly
?
:
URI
;
readonly
?
:
;
readonly
?
:
(
:
URI
)
=>
Promise
<
|
undefined
>
;
/**
* Override the file extension (e.g. `.md` for Claude rules instead of
* `.instructions.md`). When set, the name picker uses this extension
* instead of the default for the prompt type.
*/
readonly
?
:
string
;
}
class
AbstractNewPromptFileAction
extends
Action2
{
constructor
(
:
string
,
:
string
,
private
readonly
:
)
{
super
(
{
,
,
:
false
,
:
.
,
:
CHAT_CATEGORY
,
:
{
:
.
}
,
:
{
:
.
,
:
.
}
}
)
;
}
public
async
run
(
:
,
?
:
)
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
let
:
URI
;
let
:
string
;
if
(
?.
)
{
=
.
;
=
.
??
.
;
}
else
{
const
=
await
.
invokeFunction
(
,
this
.
)
;
if
(
!
)
{
return
;
}
=
.
;
=
.
;
}
const
=
await
.
invokeFunction
(
,
this
.
,
,
undefined
,
?.
)
;
if
(
!
)
{
return
;
}
// create the prompt file
await
.
createFolder
(
)
;
const
=
URI
.
joinPath
(
,
)
;
await
.
createFile
(
)
;
const
=
getCleanPromptName
(
)
;
let
:
|
null
|
undefined
;
if
(
?.
)
{
=
await
.
openFile
(
)
;
}
else
{
await
.
open
(
)
;
=
getCodeEditor
(
.
)
;
}
if
(
&&
.
hasModel
(
)
&&
isEqual
(
.
getModel
(
)
.
,
)
)
{
.
get
(
)
?.
apply
(
[
{
:
.
getModel
(
)
.
getFullModelRange
(
)
,
:
getDefaultContentSnippet
(
this
.
,
,
getTarget
(
this
.
,
)
)
,
}
]
)
;
}
if
(
!==
'user'
)
{
return
;
}
// due to PII concerns, synchronization of the 'user' reusable prompts
// is disabled by default, but we want to make that fact clear to the user
// hence after a 'user' prompt is create, we check if the synchronization
// was explicitly configured before, and if it wasn't, we show a suggestion
// to enable the synchronization logic in the Settings Sync configuration
const
=
.
isResourceEnablementConfigured
(
.
)
;
const
=
.
isEnabled
(
)
;
// if prompts synchronization has already been configured before or
// if settings sync service is currently disabled, nothing to do
if
(
(
===
true
)
||
(
===
false
)
)
{
return
;
}
// show suggestion to enable synchronization of the user prompts and instructions to the user
`description: \${2:Describe when to use this prompt}`
,
`---`
,
``
,
`<!-- Tip: Use /create-prompt in chat to generate content with agent assistance -->`
,
``
,
`\${3:Define the prompt content here. You can include instructions, examples, and any other relevant information to guide the AI's responses.}`
,
]
.
join
(
'\n'
)
;
case
.
:
if
(
===
.
)
{
return
[
`---`
,
`description: \${1:Describe when these instructions should be loaded}`
,
`paths:`
,
`. - "src/**/*.ts"`
,
`---`
,
``
,
`<!-- Tip: Use /create-instructions in chat to generate content with agent assistance -->`
,
``
,
`\${2:Provide coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.}`
,
]
.
join
(
'\n'
)
;
}
else
{
return
[
`---`
,
`description: \${1:Describe when these instructions should be loaded by the agent based on task context}`
,
`# applyTo: '\${1|**,**/*.ts|}' # when provided, instructions will automatically be added to the request context when the pattern matches an attached file`
,
`---`
,
``
,
`<!-- Tip: Use /create-instructions in chat to generate content with agent assistance -->`
,
``
,
`\${2:Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.}`
,
]
.
join
(
'\n'
)
;
}
case
.
:
if
(
===
.
)
{
return
[
`---`
,
`name: ${name ??'${1:agent-name}'}`
,
`description: \${2:Describe what this custom agent does and when to use it.}`
,
`tools: Read, Grep, Glob, Bash # specify the tools this agent can use. If not set, all enabled tools are allowed.`
,
`---`
,
``
,
`<!-- Tip: Use /create-agent in chat to generate content with agent assistance -->`
,
``
,
`\${4:Define what this custom agent does, including its behavior, capabilities, and any specific instructions for its operation.}`
,
]
.
join
(
'\n'
)
;
}
else
{
return
[
`---`
,
`name: ${name ??'${1:agent-name}'}`
,
`description: \${2:Describe what this custom agent does and when to use it.}`
,
`argument-hint: \${3:The inputs this agent expects, e.g., "a task to implement" or "a question to answer".}`
,
`# tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo'] # specify the tools this agent can use. If not set, all enabled tools are allowed.`
,
`---`
,
``
,
`<!-- Tip: Use /create-agent in chat to generate content with agent assistance -->`
,
``
,
`\${4:Define what this custom agent does, including its behavior, capabilities, and any specific instructions for its operation.}`
,
]
.
join
(
'\n'
)
;
}
case
.
:
return
[
`---`
,
`name: ${name ??'${1:skill-name}'}`
,
`description: \${2:Describe what this skill does and when to use it. Include keywords that help agents identify relevant tasks.}`
,
`---`
,
``
,
`<!-- Tip: Use /create-skill in chat to generate content with agent assistance -->`
,
``
,
`\${3:Define the functionality provided by this skill, including detailed instructions and examples}`
,
]
.
join
(
'\n'
)
;
default
:
throw
new
Error
(
`Unsupported prompt type: ${promptType}`
)
;
}
}
export
const
NEW_PROMPT_COMMAND_ID
=
'workbench.command.new.prompt'
;
export
const
NEW_INSTRUCTIONS_COMMAND_ID
=
'workbench.command.new.instructions'
;
export
const
NEW_AGENT_COMMAND_ID
=
'workbench.command.new.agent'
;
export
const
NEW_SKILL_COMMAND_ID
=
'workbench.command.new.skill'
;
class
NewPromptFileAction
extends
AbstractNewPromptFileAction
{
constructor
(
)
{
super
(
NEW_PROMPT_COMMAND_ID
,
localize
(
'commands.new.prompt.local.title'
,
"New Prompt File..."
)
,
.
)
;
}
}
class
NewInstructionsFileAction
extends
AbstractNewPromptFileAction
{
constructor
(
)
{
super
(
NEW_INSTRUCTIONS_COMMAND_ID
,
localize
(
'commands.new.instructions.local.title'
,
"New Instructions File..."
)
,
.
)
;
}
}
class
NewAgentFileAction
extends
AbstractNewPromptFileAction
{
constructor
(
)
{
super
(
NEW_AGENT_COMMAND_ID
,
localize
(
'commands.new.agent.local.title'
,
"New Custom Agent..."
)
,
.
)
;
}
}
class
NewSkillFileAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
NEW_SKILL_COMMAND_ID
,
:
localize
(
'commands.new.skill.local.title'
,
"New Skill File..."
)
,
:
false
,
:
.
,
:
CHAT_CATEGORY
,
:
{
:
.
}
,
:
{
:
.
,
:
.
}
}
)
;
}
public
async
run
(
:
,
?
:
)
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
let
:
URI
;
if
(
?.
)
{
=
.
;
}
else
{
const
=
await
.
invokeFunction
(
,
.
)
;
if
(
!
)
{
return
;
}
=
.
;
}
// Ask for skill name (will be the folder name)
// Per agentskills.io/specification: name must be 1-64 chars, lowercase alphanumeric + hyphens,
// no leading/trailing hyphens, no consecutive hyphens, must match folder name
const
=
await
.
input
(
{
:
localize
(
'commands.new.skill.name.prompt'
,
"Enter a name for the skill (lowercase letters, numbers, and hyphens only)"
)
,
:
localize
(
'commands.new.skill.name.placeholder'
,
"e.g., pdf-processing, data-analysis"
)
,
validateInput
:
async
(
)
=>
{
if
(
!
||
!
.
trim
(
)
)
{
return
localize
(
'commands.new.skill.name.required'
,
"Skill name is required"
)
;
}
const
=
.
trim
(
)
;
if
(
.
>
64
)
{
return
localize
(
'commands.new.skill.name.tooLong'
,
"Skill name must be 64 characters or less"
)
;
}
// Per spec: lowercase alphanumeric and hyphens only
if
(
!
VALID_SKILL_NAME_REGEX
.
test
(
)
)
{
return
localize
(
'commands.new.skill.name.invalidChars'
,
"Skill name may only contain lowercase letters, numbers, and hyphens"