Generate Metafiles (gen-metafiles) is a basic example of an agent-based GitHub Copilot Extension. It responds to simple identifiers in prompts, using Copilot's LLM API, and creates either examples of .gitignore and .gitattributes file or example model files with the user's name and year filled in (if appropriate). This repository can serve as an example of the building blocks of a Copilot Extension. See index.js for the main logic. (It is originally based off of the Blackbeard extension demo code.)
Note
Copilot Extensions are in public preview and may be subject to change.
All enrolled users with a GitHub Copilot Individual subscription can use Copilot Extensions. For organizations and enterprises with a Copilot Business or Copilot Enterprise subscription, organization owners and enterprise administrators can grant access to Copilot Extensions for use within their company.
Install dependencies:
npm install
To run:
npm start
or in watch mode:
npm run dev