agent-emacs
Installation
SKILL.md
Agent Emacs: The Living Workspace
This skill provides a persistent, high-performance Emacs environment designed specifically for AI agents. It replaces fragmented CLI tools with a unified "Living Image" workflow.
Core Concepts
- The Daemon: All work happens inside a persistent Emacs daemon (
emacs-agent.service). - The Socket: Communication is handled via
emacsclient -s /tmp/emacs0/server. - Buffers as State: Files, terminal outputs, and remote connections are treated as persistent buffers. State is maintained between agent turns.
Operational Workflow
1. Structural Editing
Do not use regex for complex code changes. Use ELisp forms to manipulate the AST.
emacsclient -s /tmp/emacs0/server --eval "(with-current-buffer \"main.lisp\" (goto-char (point-max)) (insert \"\n(new-function)\"))"