ReadonlyonReadonlyonEvent fired when a prompt fragment is changed
Creates a customization based on a built-in fragment
The ID of the built-in fragment to customize
OptionaldefaultContent: stringOptional default content for the customization
Creates a per-agent file at <parentDirectory>/agents/<agent.id>/agent.md from the given
description, then opens it. Replaces a previously existing agent.md for the same id.
The prompt-templates scope (e.g. workspace .prompts/ or the global templates dir)
The agent description to serialize
The URI of the created file
Creates a new customization for a prompt fragment
The fragment ID to customize
OptionaldefaultContent: stringOptional default content for the customization
Edits the built-in customization of a prompt fragment
The prompt fragment ID to edit
OptionaldefaultContent: stringOptional default content for the customization
Edits a specific customization of a prompt fragment
The prompt fragment ID
The customization ID to edit
Gets the active customized prompt fragment for a given ID
The prompt fragment ID
The active customized fragment or undefined if none exists
Gets all customizations for a prompt fragment ordered by priority
The prompt fragment ID
Array of customized fragments ordered by priority (highest first)
Gets all custom agent descriptions
Array of custom agent descriptions
Gets the locations of custom agent configuration files. Each scope contributes both an
agents/ directory entry and a legacy customAgents.yml entry, discriminated by
CustomAgentsLocation.kind.
Array of locations with their kind and existence status
Gets the IDs of all prompt fragments that have customizations
Array of prompt fragment IDs
Gets information about the description of a customization
The fragment ID
The customization ID
Description of the customization
Gets information about the source/type of a customization
The fragment ID
The customization ID
Type of the customization source
Gets the fragment ID from a resource identifier
Resource identifier (implementation specific)
Fragment ID or undefined if not found
Checks if a prompt fragment has customizations
The prompt fragment ID
Whether the fragment has any customizations
Migrates every reachable customAgents.yml to the per-agent agents/<id>/agent.md layout.
The user's original content is never deleted: on success (or on partial failure when no backup
exists yet) the YAML is renamed to customAgents.yml.bak; if a .bak already exists it is not
overwritten and the YAML is left in place.
Idempotent — rerunning never overwrites an already-migrated agent file.
The URI of the customAgents.yml file to open or create
Use createCustomAgentFile to author agents in the new
<scope>/agents/<id>/agent.md layout. Kept so legacy callers continue to work
until they are migrated.
Opens an existing customAgents.yml file at the given URI, or creates a new one if it doesn't exist.
Resets a fragment to its built-in version by removing all customizations
The fragment ID to reset
Removes a specific customization of a prompt fragment
The prompt fragment ID
The customization ID to remove
Resets to a specific customization by removing higher-priority customizations
The fragment ID
The customization ID to reset to
Event fired when custom agents are modified