/install agent-emacs
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 \"\
(new-function)\"))"
2. Remote Infrastructure (TRAMP)
Manage remote nodes transparently. Opening a remote file automatically establishes a persistent SSH tunnel.
(find-file "/ssh:user@remote-node:/etc/config.json")
3. Project Management (Magit)
Use Magit for all Git operations to ensure high-integrity commits and staging.
Advanced Workflows
For detailed patterns on recursive data processing (RLM), memory management, and REPL-based accuracy, see:
- usage.md - Low-level Lisp interaction patterns.
- agent-workflows.md - High-level operational strategies.
Guaranteed Accuracy
Always use the Emacs Lisp REPL for math, data manipulation, or status calculations. Accuracy is paramount; do not attempt manual calculations.
Initialization
Run scripts/bootstrap.sh to ensure the daemon is active and the agent-init.el configuration is loaded.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-emacs - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-emacs触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Emacs 是什么?
Unified persistent text-based environment for AI agents. Use when an agent needs to maintain state across sessions, perform structural code editing, or manag... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 496 次。
如何安装 Agent Emacs?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-emacs」即可一键安装,无需额外配置。
Agent Emacs 是免费的吗?
是的,Agent Emacs 完全免费(开源免费),可自由下载、安装和使用。
Agent Emacs 支持哪些平台?
Agent Emacs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Emacs?
由 Pi(@pitze)开发并维护,当前版本 v1.0.0。