emacs-secondmate  by samrawal

Emacs extension for code completion, emulating GitHub Copilot

Created 4 years ago
307 stars

Top 87.3% on SourcePulse

GitHubView on GitHub
Project Summary

Second Mate is an open-source Emacs package that provides a mini imitation of GitHub Copilot, offering code completion suggestions. It targets Emacs users seeking an integrated, local alternative to cloud-based AI coding assistants.

How It Works

The project leverages pre-trained language models, specifically Replit Code 3B or EleutherAI GPT-Neo-2.7B, hosted on Hugging Face. It runs a Python-based Flask server that serves model inferences via a REST API, which the Emacs Lisp client then queries for code suggestions. The "priming" mechanism, currently implemented in Python, aims to improve suggestion quality.

Quick Start & Requirements

  • Backend: Run serve/server.py after setting the device to "cpu" or "cuda".
  • Emacs: Customize secondmate-url in emacs/secondmate.el to the Flask server's address.
  • Dependencies: Python, Flask, Hugging Face libraries, and a compatible Emacs installation. GPU with CUDA is recommended for better performance.

Highlighted Details

  • Uses Replit Code 3B or EleutherAI GPT-Neo-2.7B models.
  • Provides code completion suggestions within Emacs.
  • Implemented as a Flask server backend and Emacs Lisp frontend.

Maintenance & Community

Information regarding maintainers, community channels, or roadmap is not available in the provided README.

Licensing & Compatibility

The license is not specified in the README. Compatibility for commercial or closed-source use is undetermined.

Limitations & Caveats

The project is described as a "mini imitation" and may not offer the same breadth or quality of suggestions as larger, cloud-based services. The "priming" functionality is subjective and may require modification. The README lacks details on model performance, setup complexity, or potential limitations.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Jared Palmer Jared Palmer(Ex-VP AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), Vincent Weisser Vincent Weisser(Cofounder of Prime Intellect), and
8 more.

llm-vscode by huggingface

0.1%
1k
VSCode extension for LLM-powered code development
Created 2 years ago
Updated 1 year ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Vincent Weisser Vincent Weisser(Cofounder of Prime Intellect), and
15 more.

codellama by meta-llama

0.0%
16k
Inference code for CodeLlama models
Created 2 years ago
Updated 1 year ago
Feedback? Help us improve.