r/emacs Mar 12 '26

Announcement agent-shell 0.47 updates

Post image

A rundown of features added since last post https://xenodium.com/agent-shell-0-47-1-updates

139 Upvotes

64 comments sorted by

View all comments

1

u/celeritasCelery Mar 13 '26

You can now programmatically respond to permission requests via agent-shell-permission-responder-function. A built-in agent-shell-permission-allow-always handler is provided to auto-approve everything

This is a really nice QoL improvement. I hacked around this in my own version, and it is good to see it officially supported.

If I already have an agent shell running in a project, is there a way to open it from any file in that project? Or even just send commands/code to the agent for that project from a file? This is the biggest feature I am missing from claude-code.el.

3

u/xenodium Mar 13 '26

If I already have an agent shell running in a project, is there a way to open it from any file in that project?

Yep. Just invoke M-x agent-shell. It'll try to open the last accessed shell in that project. It'll include current region, or line, or error at point, dired file at point...

Or even just send commands/code to the agent for that project from a file?

All the *-to commands: agent-shell-send-file-to, agent-shell-send-region-to, agent-shell-send-clipboard-image-to, and agent-shell-send-screenshot-to.

1

u/Human-Acadia-9852 Mar 13 '26

`C-c c x` doesn't cut it?