Crates.io | lsp-ai |
lib.rs | lsp-ai |
version | 0.7.0 |
source | src |
created_at | 2024-06-07 01:42:58.54877 |
updated_at | 2024-09-05 15:05:10.897424 |
description | LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them. |
homepage | |
repository | https://github.com/SilasMarvin/lsp-ai |
max_upload_size | |
id | 1264324 |
size | 409,298 |
Empowering not replacing programmers.
| Documentation | Blog | Discord |
LSP-AI is an open source language server that serves as a backend for AI-powered functionality in your favorite code editors. It offers features like in-editor chatting with LLMs and code completions. Because it is a language server, it works with any editor that has LSP support.
The goal of LSP-AI is to assist and empower software engineers by integrating with the tools they already know and love, not replace software engineers.
A short list of a few of the editors it works with:
It works with many many many more editors.
Chat directly in your codebase with your favorite local or hosted models.
Chatting with Claude Sonnet in Helix
Create custom actions to do code refactoring, code completions and more!
Using Claude Sonnet to perform refactoring with chain of thought prompting in Helix
LSP-AI can work as an alternative to Github Copilot.
https://github.com/SilasMarvin/lsp-ai/assets/19626586/59430558-da23-4991-939d-57495061c21b
On the left: VS Code using Mistral Codestral. On the right: Helix using stabilityai/stable-code-3b
Note that speed for completions is entirely dependent on the backend being used. For the fastest completions we recommend using either a small local model or Groq.
See the wiki for instructions on:
tl;dr LSP-AI abstracts complex implementation details from editor specific plugin authors, centralizing open-source development work into one shareable backend.
Editor integrated AI-powered assistants are here to stay. They are not perfect, but are only improving and early research is already showing the benefits. While several companies have released advanced AI-powered editors like Cursor, the open-source community lacks a direct competitor.
LSP-AI aims to fill this gap by providing a language server that integrates AI-powered functionality into the editors we know and love. Here’s why we believe LSP-AI is necessary and beneficial:
Unified AI Features:
Simplified Plugin Development:
Enhanced Collaboration:
Broad Compatibility:
Flexible LLM Backend Support:
Future-Ready:
There is so much to do for this project and incredible new research and tools coming out everyday. Below is a list of some ideas for what we want to add next, but we welcome any contributions and discussion around prioritizing new features.