YA Copilot (Yet Another Copilot) is an open source copilot alternative, it is a VSCode extension that uses the Anthropic API to provide AI assistance.
Start by setting your anthropic API key in the extension settings
ya-copilot.setApiKey
: Set your Anthropic API keyya-copilot.clearMessages
: Clear the chatboxya-copilot.generateDocumentation
: Generate documentation for the selected code snippet
This extension contributes the following settings:
ya-copilot.apikey
: Your Anthropic API keyya-copilot.model
: Anthropic model to use default toclaude-3-5-sonnet-20240620
ya-copilot.maxTokens
: Max tokens to use default to512
ya-copilot.edgeCases
: Include the edge cases in the responce default tofalse
ya-copilot.deepExplanation
: Include the deep explanation in the responce for the complex parts default tofalse
ya-copilot.commonIgnoredFolders
: Patterns to ignore when generating the file tree for the prompt in order to avoid having a really long input prompt, if .gitignore was not available default to[".git", ".github", "node_modules", "out", "dist", "vendor", ".vscode-test", ".vscode", "build"]
ya-copilot.debug
: Enable debug mode (show the full prompt in the chatbox) default tofalse
Install dependencies by:
pnpm install
Then run and debug extension like in official documentation
pnpm release