cxone-demo
A demo GitHub Copilot extension showcasing chat agents, prompts, and instructions.
Features
This extension provides:
Chat Agent
- demo-chatagent - A demo chat agent for testing purposes
Prompts
- demo-prompt - Demo prompt
- info - Display information about the current project (reads package.json, README.md, and lists directories)
- hello - A simple greeting command to test the plugin is working
- echo - Echo back the provided arguments to demonstrate argument handling
Instructions
- demo-instruction - Demo instruction for Copilot
Usage
Using Prompts
In VS Code with GitHub Copilot Chat, you can invoke prompts using:
/info
/hello
/echo Hello World
Using the Chat Agent
Mention the agent in Copilot Chat:
@demo-chatagent help me with something
Requirements
- VS Code ^1.106.1
- GitHub Copilot extension
Installation
- Install the extension in VS Code
- Ensure GitHub Copilot is installed and configured
- Open Copilot Chat and start using the prompts and agents
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch for changes
npm run watch
# Run linting
npm run lint
# Run tests
npm test
Release Notes
0.0.2
- Added
info prompt for project information
- Added
hello greeting prompt
- Added
echo prompt for argument demonstration
0.0.1
- Initial release with demo chat agent, prompt, and instruction
| |