Agent Lisp editing via Emacs buffers
Agents (Rose especially) burn tokens fighting parentheses when editing Lisp through generic file tools (Edit/Write/Insert). They count parens with Python, unbalance sexps, and treat code as flat text.
Emacs already understands sexp structure. Research note:
~/workbench/agent-editing-lisp.org — survey of existing skills,
design sketch for a custom skill (Eval + live buffer +
check-parens + indent before save), not scaffolded yet.
High priority: every multi-sexp Lisp edit without structural tools is wasted context. Point Rose at the skill first once it exists.
Next: draft SKILL.md (name TBD, e.g. emacs-lisp-buffer-edit);
decide global vs Rose-only vs project-local. Do not weaken the
data-ui guardrail (no Lisp edits outside web/ and
tests/helpers.lisp without permission).
Added functions to dc-ai.el to check parens and to provide deeper descriptions of what's wrong with parens. Added ~/r/elisp/ai/global.md for global information that applies to all projects.
- Slot
- 24800
- Status
- 60 Done
- Tags
- mvp, maintenance, ai
- Contributors
- Donnie