Skip to content

idea: give claude read access to buffers #73

@ElleNajt

Description

@ElleNajt

I usually have a vterm buffer open, and I'd like Claude to be able to read it. Similarly, when hacking on emacs, it would be useful to give claude access to the messages buffer.

Two potential ways to achieve this:

  • file (e.g. repo/.vterm) that Claude knows about, so e.g. a "share buffer with Claude" command that writes the buffer to a file, keeps it fresh with a hook, and sends the location of the file to the Claude buffer.
  • An MCP tool that provides read-only access to buffers.

I started a read-only emacs MCP server here: https://github.com/ElleNajt/emacs-introspection-mcp -- maybe that's the way to go, and then I just tell Claude the name of the buffer I want it to look at, and the "share buffer with Claude" just sends the buffer name to it?
(Maybe there's a more developed read-only emacs MCP server out there? When I wrote that the options I saw were much more yolo -- and when I'm fully yoloing just letting Claude run Bash(emacsclient ... ) works, but I don't always want to yolo like that...)

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions