Demonstrates the proposed Chat Prompt Files API to register providers for custom agents, instructions, and prompt files with dynamic content.
Three provider types, each with dynamic content generation:
- Custom Agent (customAgentProvider.ts) - Workspace statistics with folder names and counts
- Instructions (instructionsProvider.ts) - Active editor context including current file and language
- Prompt Files (promptFileProvider.ts) - Time-based greetings and contextual suggestions
Static files are contributed via package.json. Providers demonstrate dynamic content using data URIs.
npm installto install dependenciesnpm run watchto compileF5to launch with the extension- Open the chat panel to see the contributed prompts
vscode.chat.registerCustomAgentProvider()vscode.chat.registerInstructionsProvider()vscode.chat.registerPromptFileProvider()