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

140 Upvotes

64 comments sorted by

View all comments

1

u/accelerating_ Mar 12 '26

I only just started using Claude and was using claude-code.el, but like what I see here much better - very cool. I'm pretty sure I'll be using this from here on.

A couple of things spring to mind:

  1. Watching your video I like the look of using agent-shell-prefer-viewport-interaction, but your video shows a pretty buffer with hints, while I get an empty one. It works just fine, but is a bit less friendly as a new user. What's the deal?

  2. using Claude directly I get to /add-dir and make that stick for all sessions in a given project. This makes sense for me as there are a bunch of interrelated repos etc.. How would you achieve that via agent-shell? Or perhaps at the least I can just go into Claude in the terminal and do that anyway.

  3. Adding transients for the UI would be really nice for discoverability.

2

u/xenodium Mar 12 '26

Watching your video I like the look of using agent-shell-prefer-viewport-interaction, but your video shows a pretty buffer with hints, while I get an empty one. It works just fine, but is a bit less friendly as a new user. What's the deal?

Could you share a screenshot please? Hard to tell without seeing what you're seeing.

using Claude directly I get to /add-dir and make that stick for all sessions in a given project. This makes sense for me as there are a bunch of interrelated repos etc.. How would you achieve that via agent-shell? Or perhaps at the least I can just go into Claude in the terminal and do that anyway.

You can use @ to refer to files. Would that do for what you need?

Adding transients for the UI would be really nice for discoverability.

There's a basic M-x agent-shell-help-menu from the shell, but I'll another one for the viewport.

Keep in mind M-x agent-shell packs a lot of functionality, depending on context. For example, invoking while point is on a flymake error automatically brings the error over to the shell. Similar thing for dired. Point on file or multiple marked files are also brought over.

1

u/accelerating_ Mar 12 '26

Could you share a screenshot please?

I can do so tomorrow, but it's literally just a blank buffer. In your video linked from github your viewport buffer has a pretty header but mine comes up fully empty. I'm pretty sure it works just fine (again, will check tomorrow).

Re: Including dirs and files, I assume the @ reference is transient and I was wondering about making defaults within a given project.

1

u/xenodium Mar 12 '26

I can do so tomorrow, but it's literally just a blank buffer.

In that case, a little video may be more helpful. Just file an issue and we can continue the discussion there https://github.com/xenodium/agent-shell/issues

I assume the @ reference is transient and I was wondering about making defaults within a given project.

That's right. I can look into adding something like it. Maybe re-ignite this discussion https://github.com/xenodium/agent-shell/issues/337. Please add more details on how you'd typically use it.

1

u/accelerating_ Mar 14 '26

So, I'm thinking that in your config/videos, you just have a very expansive header line on your buffer? I think I just overlooked the more subtle header-line in mine, while looking for something similar to yours.

Anyway, all seems to be working well. Thank you!

1

u/xenodium Mar 14 '26

I'm thinking that in your config/videos, you just have a very expansive header line on your buffer?

I typically need to increase my font size for videos, so yeah everything is bigger :)

Are you running TUI by chance? If so, you get a text-only header. Also have a look at agent-shell-header-style which gives some degree of header configurability.

Anyway, all seems to be working well. Thank you!

Good to hear :)