dscli.el

dscli.el provides an Emacs interface for the dscli command-line tool, letting you use the DeepSeek programming assistant seamlessly within Emacs.

Features

  • M-x dscli-chat — interactive DeepSeek chat in a buffer
  • M-x dscli-fim — AI code completion (fill-in-the-middle) at point
  • Context awareness — automatically captures the current editing context (file location + selected region)
    • C-u M-x dscli-chat — start chat with context
    • M-x dscli-copy-context — copy editing context to the kill ring
  • Per-project sessions — independent sessions per project, no interference
  • Streaming output — real-time response rendering
  • Org-mode output--mode org support
  • Auto-save — output buffers automatically saved to prevent data loss

Installation

Requires the dscli CLI:

go install github.com/dscli/dscli@latest

Then clone and load:

git clone https://github.com/dscli/dscli.el.git ~/.emacs.d/dscli.el
(add-to-list 'load-path "~/.emacs.d/dscli.el")
(require 'dscli)

Or with use-package:

(use-package dscli
  :load-path "~/.emacs.d/dscli.el"
  :bind (("C-c c" . dscli-chat)
         ("C-c w" . dscli-copy-context)))

Current version: v0.4.5

View on GitHub