Agent-shell.el for the CLI experience that's integrated with emacs. You can send things from emacs to your Claude code prompt and it will include the file and line numbers.
There's also claude-code-ide.el that gives you more of a cursor like experience with autocomplete, simple chat, etc.
claude-code-ide runs the claude TUI inside a term inside emacs with a little bit of editor integration on top. It's closer to the standard CLI experience than agent-shell is.
https://github.com/xenodium/agent-shell
xenodium is doing some amazing work (and not just on agent-shell, either!)