claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Feature Request: IDE Integration with ZED Editor

Open Allmight97 opened this issue 8 months ago • 11 comments

CC runs fine in Zed terminal and looks pretty. But legit integration with ZED would be awesome. Currently running CC IDE selector only displays 'none' or VS Code.

Allmight97 avatar Jun 01 '25 01:06 Allmight97

Adding psql's \e meta command to open $EDITOR (nvim for me) would be epic.

Would that work for this Zed request too?

\e or \edit [ filename ] [ line_number ] #

If filename is specified, the file is edited; after the editor exits, the file's content is copied into the current query buffer. If no filename is given, the current query buffer is copied to a temporary file which is then edited in the same fashion. Or, if the current query buffer is empty, the most recently executed query is copied to a temporary file and edited in the same fashion.

https://www.postgresql.org/docs/current/app-psql.html

robert-claypool avatar Jun 06 '25 12:06 robert-claypool

This is similar with Support for other IDEs (Neovim/Emacs) #1234 , we only to create one extensions, which support WebSocket MCP protocol, can integration to Zed IDE.

See also: https://github.com/yuya373/claude-code-emacs https://github.com/yuya373/claude-code-emacs/blob/master/docs/MCP-SETUP.md 🔌 MCP Integration Claude Code can directly interact with your Emacs environment: Buffer operations - List/read open buffers, get selected text LSP integration - Get diagnostics, find definitions/references, describe symbols Diff tools - Compare files, view git changes, apply patches Real-time events - Buffer changes and diagnostics sent to Claude Code automatically

isomoes avatar Jul 01 '25 01:07 isomoes

Has anyone tried this plugin yet? https://github.com/orual/zed-claude-code

I found it while searching for Claude Code for Zed IDE.

jellydn avatar Jul 10 '25 02:07 jellydn

Has anyone tried this plugin yet? https://github.com/orual/zed-claude-code

I found it while searching for Claude Code for Zed IDE.

NOW The claude-code-zed now supports basic functionality: (@jellydn ) ✅ Working Features

  • Text Selection Sharing: Zed can send selected text context to Claude Code CLI
  • File Reference Handling: Selected code snippets and file paths are transmitted
  • WebSocket Communication: Stable connection between Zed and Claude Code CLI

🚧 Limitations

  • LSP Diagnostics: Not yet implemented. The Zed extension acts as an LSP client, but does not currently expose IDE diagnostic information (such as errors, warnings, or type hints) to Claude Code CLI.
  • One-way Communication: The main flow is from Zed → Claude Code; there are only limited capabilities for Claude Code → Zed communication.

isomoes avatar Jul 10 '25 03:07 isomoes

also, /terminal setup missing in zed terminal, is it because claude code doesnt have the integration support for zed?

moinulmoin avatar Jul 13 '25 11:07 moinulmoin

I feel like for this to truly rock, it would mean CC is fully integrated in Zed's agent panel.

radiosilence avatar Aug 11 '25 15:08 radiosilence

This is now possible with the new ACP update

I feel like for this to truly rock, it would mean CC is fully integrated in Zed's agent panel.

Ayo-Awe avatar Aug 27 '25 16:08 Ayo-Awe

Refer to this comment to get started with claude code acp in zed.

scotteveritt avatar Sep 02 '25 14:09 scotteveritt

Hey, Agus from Zed here!

Following our recent launch of the Agent Client Protocol, we've just published a built-in Claude Code integration. This integration is powered by our open-source adapter, which is built on top of the Claude Code SDK.

You can read more about it in the announcement post! We'd love to hear your thoughts on both the adapter and the experience in Zed.

agu-z avatar Sep 03 '25 16:09 agu-z

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 06 '25 10:12 github-actions[bot]

Thanks @agu-z ! I did try Zed’s built-in Claude Code integration, and I like its native support. ❤️

However, the tradeoff is that its features will be likely always behind Claude Code itself. For example, Zed’s built-in integration:

  • only supports a subset of Claude Code's slash commands
  • does not support resuming past conversations
  • does not support restoring the code and/or conversation to an earlier point within the current session
  • more advanced Claude Code features

So I think it still makes sense for Claude Code to support /ide for Zed. Thanks! ☺️

hongbo-miao avatar Dec 31 '25 02:12 hongbo-miao

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 13 '26 14:01 github-actions[bot]