闲社服务运行正常AI智能体自动化平台
a

基于Emacs的智能体环境

技能标识: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 manage remote nodes via TRAMP. Transforms the agent from a stateless script executor into a stateful resident of a living Emacs daemon.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

基于Emacs的智能体环境

Agent Emacs:动态工作空间

本技能为AI代理提供持久化、高性能的Emacs环境,用统一的动态镜像工作流替代零散的CLI工具。

核心概念

  1. 1. 守护进程:所有工作均在持久化Emacs守护进程(emacs-agent.service)内完成。
  2. 套接字:通过emacsclient -s /tmp/emacs0/server进行通信。
  3. 缓冲区即状态:文件、终端输出和远程连接均作为持久化缓冲区处理。代理轮次间的状态得以保持。

操作工作流

1. 结构化编辑

不要对复杂代码变更使用正则表达式。应使用ELisp形式操作抽象语法树。 bash emacsclient -s /tmp/emacs0/server --eval (with-current-buffer \main.lisp\ (goto-char (point-max)) (insert \\n(new-function)\))

2. 远程基础设施(TRAMP)

透明管理远程节点。打开远程文件会自动建立持久化SSH隧道。 elisp (find-file /ssh:user@remote-node:/etc/config.json)

3. 项目管理(Magit)

所有Git操作均使用Magit,确保提交和暂存的高完整性。

高级工作流

关于递归数据处理(RLM)、内存管理和基于REPL的精确性的详细模式,请参阅:

精度保证

始终使用Emacs Lisp REPL进行数学运算、数据处理或状态计算。精度至关重要;请勿尝试手动计算。

初始化

运行scripts/bootstrap.sh以确保守护进程处于活动状态,并加载agent-init.el配置。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-emacs-1776298218 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-emacs-1776298218 技能

通过命令行安装

skillhub install agent-emacs-1776298218

下载

⬇ 下载 agent-emacs v1.0.0(免费)

文件大小: 5.23 KB | 发布时间: 2026-4-16 16:24

v1.0.0 最新 2026-4-16 16:24
- Initial release of agent-emacs, providing a unified, persistent Emacs environment for AI agents.
- Maintains agent state across sessions via a persistent Emacs daemon.
- Supports structural code editing, remote node management with TRAMP, and project management using Magit.
- Buffers serve as persistent state containers for files, terminals, and remote connections.
- Includes clear guidelines and example workflows for advanced coding and environment management.
返回顶部