editor-code-assistant/eca-emacs

Editor Code Assistant (ECA) integration for Emacs

What it is

ECA Emacs is an AI-powered pair-programming client for Emacs. It's the Emacs side of the ECA (Editor Code Assistant) project, which aims to give a smooth, consistent experience across different editors. It works by connecting to an external eca server program that does the heavy lifting.

What it does

  • Interactive AI chat — a dedicated chat window where you type prompts and get responses, with support for attaching files/directories as context (using @), images, and more.
  • Inline code completion — suggests code as you type, shown as ghost text.
  • Inline prompts from any buffer — ask ECA without leaving your current file; the answer streams into a small overlay above your cursor.
  • Tool calls — the AI can propose actions (like editing files) that you can approve or reject.
  • Workspace & chat management — a live dashboard showing all chats and their status (running, waiting for approval, waiting for answer), with actions like rename, fork, delete, switch model, and more.
  • Speech-to-text — optional voice input via whisper.el.
  • MCP server support — can connect to MCP (Model Context Protocol) servers, toggle them on/off, and shows their tool calls in chat.
  • Rewrite support — can rewrite code/text with configurable diff and accept/merge behavior.
  • Settings panel — a centralized UI for configuration (currently MCP servers, with more planned).

Requirements

  • Emacs 28.1 or later
  • Optional: a custom eca server binary (if you don't set one, ECA will look for eca on your $PATH, and if it's not there, download it automatically)
  • Optional: whisper.el for speech-to-text

Installation

Three supported ways:

  • MELPA: M-x package-install eca
  • use-package with built-in VC support:
    (use-package eca
      :vc (:url "https://github.com/editor-code-assistant/eca-emacs" :rev :newest))
    
  • Doom Emacs:
    (package! eca :recipe (:host github :repo "editor-code-assistant/eca-emacs" :files ("*.el")))
    

Getting started

  1. Run M-x eca — this starts the server process and initializes the workspace.
  2. A dedicated chat window (<eca-chat>) opens.
  3. Type your prompt after the > and press RET.
  4. Attach more context by typing @ and auto-completing.

Main commands

Server / process

  • eca — start server/session and open chat
  • eca-stop / eca-restart — stop or restart the server/session
  • eca-workspaces — live dashboard of all workspaces and chats
  • eca-settings — open the settings panel
  • eca-mcp-toggle-server — start/stop/connect MCP servers
  • eca-open-global-config — open the global config file

Chat

  • eca-chat-toggle-window — open/close the chat window
  • eca-chat-new / eca-chat-rename / eca-chat-clear / eca-chat-delete — manage chats
  • eca-chat-select-model / eca-chat-select-agent — change model or agent
  • eca-chat-add-context-to-system-prompt / eca-chat-add-context-to-user-prompt — attach files/dirs as context
  • eca-chat-send-prompt / eca-chat-stop-prompt — send or stop a prompt
  • eca-chat-copy-at-point — copy a code block or assistant response
  • eca-chat-tool-call-accept-all / eca-chat-tool-call-reject-next — handle pending tool calls
  • eca-chat-timeline — show prompt history as a timeline
  • eca-chat-talk — send a prompt by voice (requires whisper.el)
  • eca-chat-save-to-file — save the chat to a file

Inline prompt (from any buffer)

  • eca-chat-inline-prompt — ask ECA from any buffer; answer appears in an overlay above point
  • eca-chat-inline-reply / eca-chat-inline-dismiss / eca-chat-inline-stop — interact with the overlay
  • eca-chat-inline-menu — settings and actions for inline chats
  • eca-chat-inline-approve-tool-call / eca-chat-inline-reject-tool-call — handle tool calls from the overlay

Configuration highlights

There are many variables, grouped by area:

  • Server: eca-custom-command (custom server command), eca-server-download-method, eca-extra-args, etc.
  • Chat appearance: eca-chat-window-side (left/right/top/bottom), eca-chat-window-width/height, eca-chat-parent-mode, eca-chat-tab-line, eca-chat-hide-markdown-markup, etc.
  • Chat behavior: eca-chat-auto-revert-changed-files, eca-chat-history-page-size, eca-chat-restore-on-restart, eca-chat-stream-flush-interval, etc.
  • Completion: eca-completion-idle-delay (0 = immediate, nil = disabled), eca-completion-syntax-highlight, eca-completion-overlay-dim-ratio.
  • Inline prompt: eca-chat-inline-max-lines, eca-chat-inline-wrap-column, eca-chat-inline-model/agent/variant.
  • Rewrite: eca-rewrite-prompt-prefix, eca-rewrite-diff-tool, eca-rewrite-finished-action, etc.
  • Misc: eca-buttons-allow-mouse (whether buttons can be clicked).

Keybindings

A transient menu with common commands is available via M-x eca-transient-menu or by pressing C-c . in ECA windows. Many individual commands also have their own bindings (e.g. C-c C-S-o for loading older chat history).


Note: this explainer is based solely on the README content provided; it doesn't cover features not mentioned there.

관련

  • 프로젝트
  • 프로젝트
  • 프로젝트
  • 프로젝트
  • 프로젝트