copilot-clone  by hieunc229

VSCode extension for code suggestion

Created 4 years ago
1,785 stars

Top 24.1% on SourcePulse

GitHubView on GitHub
Project Summary

Captain Stack is a VSCode extension designed to assist developers with code generation and suggestion, functioning as an alternative to GitHub Copilot. It targets developers seeking efficient code retrieval and AI-powered code creation directly within their IDE, offering a hybrid approach that leverages both search engine results and large language models.

How It Works

The extension operates through a dual mechanism: code search and AI code generation. For code search, it queries Google to find relevant answers on Stack Overflow and code snippets from GitHub Gist, presenting these as autocompletion suggestions. For AI code generation, it integrates with OpenAI and OpenRouter, allowing users to generate code by providing an API key and selecting a model. Users trigger these features by typing specific commands like // find {query} or // generate {query} in their VSCode editor.

Quick Start & Requirements

  • Install via VSCode Extensions marketplace.
  • Requires API keys for OpenAI or OpenRouter to use AI generation features.
  • Configuration is done through VSCode settings (Meta + ,).

Highlighted Details

  • Hybrid code suggestion: Combines Stack Overflow/GitHub Gist search with AI generation.
  • Supports OpenAI and OpenRouter for AI code generation.
  • Configurable parameters for AI output (number of results, temperature).
  • Triggered via simple comment-based commands (// find, // generate).

Maintenance & Community

The project lists contributors Kekschen, Charlie Lin, and Hieu Nguyen. Users are encouraged to open threads for feedback and discussion.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

AI generation features require users to provide their own API keys and incur associated costs. The effectiveness of code search relies on Google's indexing and Stack Overflow/GitHub Gist content quality.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 30 days

Explore Similar Projects

Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.5%
16k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
Created 1 year ago
Updated 16 hours ago
Feedback? Help us improve.