Claude Code Tools.El banner
brewski82 brewski82

Claude Code Tools.El

Git community

Description

A robust Emacs integration for Claude Code that supports multiple concurrent sessions, Magit integration, and git worktree workflows.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

claude-code-tools.el

Tools for working with [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview) within Emacs.

Overview

This package provides a set of convenient functions for interacting with the Claude Code CLI from within Emacs. It allows you to:

  • Open Claude Code sessions in a vterm buffer
  • Support multiple, concurrent Claude Code sessions for different projects
  • Send messages to Claude Code
  • Send buffer contents, regions, or contextual information to Claude Code (including from Magit diff views)
  • Execute one-shot commands using Claude Code
  • Easily manage multiple Claude Code sessions

Requirements

  • Emacs 28.1 or later
  • magit
  • vterm
  • The Claude Code CLI tool (claude) installed and available in your PATH

Installation

Manual Installation

Clone this repository:

git clone https://github.com/brewski82/claude-code-tools.el.git

Add the following to your Emacs configuration:

(add-to-list 'load-path "/path/to/claude-code-tools.el")
(require 'claude-code-tools)

Using package.el with vc-install (Emacs 30+)

;; Install directly from GitHub
(package-vc-install '(claude-code-tools :url "https://github.com/brewski82/claude-code-tools.el"))

;; Then in your init.el:
(require 'claude-code-tools)
(global-set-key (kbd "C-c c") 'claude-code-tools-run-claude-code-menu) ;; or your preferred key

Using straight.el

(use-package claude-code-tools
  :straight (:type git :host github :repo "brewski82/claude-code-tools.el" :branch "main"
                   :files ("*.el" (:exclude ".gitignore")))
  :bind ("C-c c" . claude-code-tools-run-claude-code-menu)
  :config
  ;; Optional configuration here
  )

Usage

Interactive Commands

  • claude-code-tools-claude-code-vterm: Open a Claude Code session in a vterm buffer
  • claude-code-tools-send-to-claude: Send a message to Claude Code
  • claude-code-tools-send-to-claude-with-buffer: Send the current buff