aidermacs  by MatthewZMD

AI pair programming in Emacs, powered by Aider

created 5 months ago
743 stars

Top 47.7% on sourcepulse

GitHubView on GitHub
Project Summary

Aidermacs integrates Aider, an open-source AI pair programming tool, into Emacs, offering capabilities similar to Cursor for Emacs users. It targets developers who prefer Emacs workflows and want AI assistance for coding tasks like code generation, explanation, and refactoring.

How It Works

Aidermacs leverages Emacs' transient menu system for a Magit-like user experience. It allows users to select files for the AI to read or edit, manage sessions, and interact with AI models through various modes (Code, Chat, Architect). A key feature is the experimental "Architect Mode," which uses separate AI models for reasoning and code generation, claiming state-of-the-art results on code editing benchmarks.

Quick Start & Requirements

  • Install: Via Melpa or Non-GNU Elpa, or manual clone.
  • Requirements: Emacs ≥ 26.1, Aider, Transient.
  • Configuration: Requires setting API keys (e.g., ANTHROPIC_API_KEY, OPENROUTER_API_KEY) and optionally configuring models and modes in init.el.
  • Docs: Aider Documentation

Highlighted Details

  • Supports multiple AI backends (OpenAI, Anthropic, DeepSeek, Gemini, OpenRouter) with dynamic model selection.
  • Architect Mode uses separate models for reasoning and code generation.
  • Integrates with Emacs' Ediff for reviewing AI-generated changes.
  • Supports remote file editing via Emacs Tramp.
  • Offers file watching for AI coding instructions in comments.

Maintenance & Community

  • Community-driven development with contributions encouraged via GitHub Issues and pull requests.
  • Active community feedback cited from Reddit.

Licensing & Compatibility

  • The README does not explicitly state a license for Aidermacs itself. Aider is Apache 2.0 licensed. Compatibility for commercial use depends on the underlying AI models and Aider's license.

Limitations & Caveats

  • Architect Mode is experimental.
  • File watching currently only works in vterm mode.
  • The README notes that aidermacs-default-model, aidermacs-architect-model, etc., are ignored if a .aider.conf.yml file is used, requiring all configuration to be in the YAML file.
Health Check
Last commit

1 week ago

Responsiveness

1 day

Pull Requests (30d)
3
Issues (30d)
4
Star History
246 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), and
12 more.

opencode by sst

7.8%
16k
CLI tool for AI-assisted coding in the terminal
created 3 months ago
updated 1 day ago
Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Nat Friedman Nat Friedman(Former CEO of GitHub), and
21 more.

aider by Aider-AI

0.8%
36k
AI pair programming in your terminal
created 2 years ago
updated 2 weeks ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
9 more.

codex by openai

0.8%
32k
Coding agent CLI tool for terminal-based chat-driven development
created 3 months ago
updated 1 day ago
Feedback? Help us improve.