Skip to content
/ sage Public

Integrate LLMs into any editor that supports LSP

Notifications You must be signed in to change notification settings

everestmz/sage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sage

Integrate LLMS into any editor that supports LSP.

Read more about how & why I built sage.

Sage started off as a project to add features like LLM support to Helix, and enable features like workspace symbol search in large codebases I was working with that crippled language servers like pyright.

It's since grown into an AI multitool for any editor that supports language servers.

Features

Smart context generation

Dynamically includes the most relevant symbols in the context window, using a combination of tree-sitter and LSP clients. No need to manually @mention functions or types to include them in context!

LLM completions

Uses ollama to power on-device code completion and LLM integrations.

code action-based LLM completions

Cursor support

Supports using LLMs hosted on Cursor's cloud (via cursor-rpc.

Instant workspace symbol search

Sage can index a repository (using llmcat) to power global symbol search for language servers that don't support it (like pylsp), or for repos that are too large.

It can index a repository with >10M symbols (~20M LOC) in a few minutes, and searches through even gigabytes of symbols in milliseconds:

asciicast

About

Integrate LLMs into any editor that supports LSP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published