Skip to content
Back to skills

Agent Emacs

ASecurity

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.

  • 21 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
businessgobashnodegitperformance

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill agent-emacs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Emacs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Emacs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-agent-emacs/badge)](https://www.skillsdirectory.com/skills/modbender-agent-emacs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-emacs
description: 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.
---

# 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

1. **The Daemon**: All work happens inside a persistent Emacs daemon (`emacs-agent.service`).
2. **The Socket**: Communication is handled via `emacsclient -s /tmp/emacs0/server`.
3. **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.
```bash
emacsclient -s /tmp/emacs0/server --eval "(with-current-buffer \"main.lisp\" (goto-char (point-max)) (insert \"\n(new-function)\"))"
```

### 2. Remote Infrastructure (TRAMP)
Manage remote nodes transparently. Opening a remote file automatically establishes a persistent SSH tunnel.
```elisp
(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](references/usage.md) - Low-level Lisp interaction patterns.
- [agent-workflows.md](references/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.

Files in this skill

  • README.md1.5 KB
  • SKILL.md2.1 KB
  • references/agent-workflows.md2.3 KB
  • references/usage.md1.2 KB
  • scripts/bootstrap.sh463 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.