privy  by srikanth235

Open-source VS Code extension for local code completion

created 1 year ago
977 stars

Top 38.6% on sourcepulse

GitHubView on GitHub
Project Summary

Privy is an open-source VS Code extension providing local, privacy-focused AI code completion and chat functionalities, serving as an alternative to cloud-based services like GitHub Copilot. It empowers developers to leverage large language models (LLMs) directly on their machines for enhanced productivity and data security.

How It Works

Privy integrates with local LLM inference engines like Ollama, llamafile, and llama.cpp. Users select and configure specific LLMs for code completion and chat, with recommendations provided for models like DeepSeek Coder and CodeLlama. The extension facilitates real-time code suggestions and a Copilot-style chat interface for code explanation, debugging, and unit test generation.

Quick Start & Requirements

  • Installation: Install via the Visual Studio Code Marketplace or Open VSX Registry.
  • Prerequisites: Requires a local LLM inference engine (Ollama highly recommended) and compatible LLM models (e.g., deepseek-coder:1.3b-base for low VRAM usage).
  • Configuration: Set privy.provider (e.g., ollama) and privy.providerUrl (default http://localhost:11434) in VS Code settings. Configure privy.autocomplete.model and privy.model with chosen LLM names.
  • Resources: LLM model size dictates VRAM and computational requirements.

Highlighted Details

  • Local execution ensures data privacy.
  • Supports real-time code completion and AI-powered chat.
  • Features include code explanation, bug finding, and unit test generation.
  • Keyboard shortcuts for inline completion and chat initiation.

Maintenance & Community

The project acknowledges contributions from multiple individuals and is inspired by RubberDuck AI. A contributing guide and "good first issues" are available for community involvement.

Licensing & Compatibility

The license is not explicitly stated in the README, which may require further investigation for commercial use or closed-source linking.

Limitations & Caveats

The README notes that AI responses may be inaccurate, especially for less common topics or detailed conversations. It advises users not to blindly trust answers and to use separate chat threads for different topics to improve accuracy.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
18 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.