logoalt Hacker News

edgyquantyesterday at 2:19 PM6 repliesview on HN

What are people’s workflows for using eMacs with generative coding? I’m trying to get a workflow where I can generate code and approve it like a PR (maybe leave comments for a next round of generation) but I’m new to eMacs and the ai coding package isn’t working with the latest eMacs


Replies

remedanyesterday at 2:26 PM

Agent Shell connected via ACP to local Claude Code.

https://github.com/xenodium/agent-shell

show 2 replies
banjomonsteryesterday at 2:47 PM

I’ve been using gptel, I’ll have it generate org babel blocks I can tangle (write to files) or have it use tools to write and edit files in the project I’m working in, and then review with magit.

sebastianavinayesterday at 3:09 PM

I use windows 11, wsl2, WezTerm.

emacs -nw directly on the shell.

its like working on a linux computer, but from windows.

I run vterm inside emacs, and claude code inside vterm. I have special commands for extracting file routes, and flow between dired and magit. Everything runs like magic.

I also have copilot-chat and copilot-mode installed. From time to time I use it to review what claude has done, or to chat a little bit.

show 1 reply
jwryesterday at 4:20 PM

I use cLaude cOde in my eMacs (through ghostel, which is unbelievably great!) to generate code :-)

I then use mAgit to review it.

show 1 reply
bryanlarsenyesterday at 2:49 PM

IMO, generative coding on Emacs works nicely because magit is awesome for code review. A good agent integration package is going to have a command you can use to send the current cursor line & file to the agent so you can reference and comment.

kreyenborgiyesterday at 2:23 PM

Which AI coding package? Agent-shell? Gptel-agent?

show 1 reply