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.