Discover and explore top open-source AI tools and projects—updated daily.
Emacs package for AI-assisted code modification
Top 93.2% on SourcePulse
Elysium is an Emacs package designed to streamline the integration of AI-generated code modifications directly into your workflow. It targets developers seeking to leverage large language models for code assistance, enabling them to query for changes and automatically merge them within their Emacs environment.
How It Works
Elysium functions by integrating with gptel
, an Emacs interface for various LLM backends. When a user invokes elysium-query
, the package sends the current buffer's content (or a selected region) to the configured gptel
backend. The AI's suggested code changes are then presented in a separate buffer, utilizing smerge-mode
for conflict resolution and merging. This approach allows for seamless, in-editor application of AI suggestions without context switching.
Quick Start & Requirements
https://stable.melpa.org/packages/
to package-archives
and then (use-package elysium)
.gptel
and a configured LLM backend (e.g., Anthropic Claude).elysium-window-size
, elysium-window-style
, and configure gptel
with model and API key (e.g., reading from ~/secrets/claude_key
).smerge-mode
is recommended for managing changes.Highlighted Details
smerge-mode
for AI code suggestions.gptel
-compatible LLM, with Claude 3-5 Sonnet recommended for code generation.Maintenance & Community
gptel
for backend LLM interactions.Licensing & Compatibility
gptel
's licensing.Limitations & Caveats
The README suggests using regions for Claude to avoid rate limiting, implying potential issues with large buffer processing. Prompt caching is a planned feature, indicating current rate-limiting concerns might impact extensive usage. The license is not specified, which could affect commercial adoption.
3 months ago
1 week