Hacker News new | ask | show | jobs
by weavermarquez 10 days ago
I had problems with agent-shell because background processes blocked user input, and a bunch of other papercuts e.g. AskUserQuestionTool; lack of multimedia inputs and outputs or other niceties like tool/skill search/attachments/image-copy-paste in user inputs; inconvenient buffer switching behaviour when handling tabs + windows + project views.

Alternatively, claude-code.el had other issues like flickering on libvterm and EAT with evil mode; and edge cases with properly integrating libghostty with all keybindings in doom evil keybinds. I suppose I could fix those with coding agents now.

1 comments

agent-shell author here. Curious, how long since you last took it for a spin? Many of the features mentioned have been supported for a while now.
I'm not the person you're responding to but thank you for your work on agent-shell. It's made simple agentic coding within emacs a breeze for me. I moved off of agent-shell for very complex work (needing more than a few long-running agents) and use herdr for that instead. Some pain points I have encountered:

- With ACP/Anthropic being used, I cannot interject a running prompt without cancelling the current run with C-c C-c. I can only "queue" messages which sends them when the agent is finished. But when I tried the CC harness, I liked how you could do Ctrl+Enter to immediately send the prompt interrupting any running step instead. It sounds more sensible than queuing up a lot of unrelated messages that can become outdated by the time the agent finishes the foreground task.

- The biggest issue with doing C-c C-c to interrupt a running agent, and why I avoid doing that to fix the above issue, is that (with ACP/Anthropic endpoints at least) it kills running background processes too. There is no distinction between "interrupt the foreground prompt" and "interrupt this or all background jobs". You cannot see a list of the background jobs (to my knowledge) and cannot pick which jobs to cancel, it cancels everything. Also agent-shell doesn't notify you that it killed these background jobs either upon C-c C-c. So I would frequently lose work I thought was running for several hours.

- As far as I know, there is no way to move a foreground tool call to the background, like with the CC harness (Ctrl+B), so that I can prompt something else. It has to go into the queue.

- With herdr (and this might not be in scope of agent-shell), I liked agents being able to manage the session panes and send messages to each other. When I use agent-shell my impression is I am limited to one agent shell in one worktree.

- Related to the above issue, subagent output is interleaved with the foreground agent output and it becomes confusing to follow due to lack of agent identifiers. With herdr I can go to another agent, watch its output and send messages to it directly. With agent-shell I have less control and have to ask the main agent to communicate with them.

- (Also not sure if it's in agent-shell's scope) Suspend/resume is more convenient with herdr, if I close emacs I lose the running agent sessions too and have to restore them all by hand. With herdr I can detach/reattach even if my terminal process dies, and from cold startup one command restores both the pane layout and all the agent sessions automatically.

I'm pretty sure I've been using latest, but correct me if any of these have been fixed with a later release. Still, I can see how any number of these could be limitations with ACP over Anthropic's proprietary harness, and that's understandable.

Check out https://xenodium.com/agent-shell-0-78-updates

In more recent builds, you have a persistent shell prompt, so you can always write a new prompt and press RET to queue.

Alternatively, you can M-RET to steer (no need to C-c C-c to influence course), which sounds like what you're after?

> if I close emacs I lose the running agent sessions too and have to restore them all by hand.

By hand, you mean M-x agent-shell and choose an existing session? Something else?