AI Models / Providers as extensions #33180
Replies: 10 comments 19 replies
-
Related: #25498 |
Beta Was this translation helpful? Give feedback.
-
@maxdeviant I'm guessing this is your domain – and perhaps this is coming in wit/since_v0.7.0 ? The Claude Code case is kind of an extreme one, as the communication and control can work both ways. But I suspect there are other integrations that would benefit from an agents extension API. |
Beta Was this translation helpful? Give feedback.
-
I had been thinking of this for a few weeks, and was just about to create exactly the same feature request. Implementation may be a little difficult though, considering extensions are WASM and presumably cannot interact with the GPUI app context whatsoever, which is currently passed in all calls to language models. I'll look into it tomorrow. Ensuring that the language model provider UI can be extended through the extension API is also certainly necessary, Zed should be able to also move existing providers which may be more niche and/or have fewer maintainers (e.g. OpenRouter, DeepSeek, etc) into extensions which can be maintained separately from the editor, similar to how language support is currently handled. Completion providers (e.g. Copilot) should also be brought into this in my opinion. |
Beta Was this translation helpful? Give feedback.
-
Adding one more potential plugin that would use this API: Gemini CLI I haven't dug into how it works yet, but it would be nice to bring it into Zed. Currently supports VS Code and Jetbrains, like Claude Code. |
Beta Was this translation helpful? Give feedback.
-
One more API feature to consider: permission delegation. https://docs.anthropic.com/en/docs/claude-code/sdk#custom-permission-prompt-tool |
Beta Was this translation helpful? Give feedback.
-
So correct me if im wrong. What your pushing for is to allow another agent in zed. At this rate how do you expect the company to successful financially?. You would rather pay $100 to anthropic to use their agent while giving zed $0 per month. Why not we contribute to making zed's agent better than claude code so you pay one agent provider? If im missing anything lemme know. |
Beta Was this translation helpful? Give feedback.
-
@JPBarringer id rather this energy be spent making zed v2 agent better so you don’t even care about Claude code. I’m ready to put money down for contributors who will help the zed team on this. Please I don’t want to use vscode. I just left IntelliJ cause those people are confused |
Beta Was this translation helpful? Give feedback.
-
@JPBarringer, since it looks like you have a working solution, would you be willing to share it? I understand you might not want to make a pull request, but for those of us who don’t mind patching and rebuilding it ourselves, it would be great just to try it out. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'll see about cleaning it up and sharing something. Probably this coming week. It is working and it allows you to select Claude code as an option in the agents panel. I have a few decades of experience as a developer but am very new to Rust: I would describe myself as amateurish at best when it comes to rust, so I'm also a bit anxious about sharing something that might reflect poorly on me among my peers here. I've been leaning pretty heavily on LLM help for this. IMO this should really be an extension. |
Beta Was this translation helpful? Give feedback.
-
@JPBarringer You might want to check out what the Zed team is cooking on the
Haven't tested it, plus it's all still work-in-progress and I don't know what exactly is the plan here, but looks like something that might potentially allow for more similar integrations in the future, e.g. with Claude Code, which is what you've been working on. 🙂 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on a Claude Code integration for Zed, and it's working, but as a PR it would have a lot of files. It might be better implemented as an extension – but there isn't currently an API for this as far as I know. Is the AI models extension support coming soon?
If not, perhaps it would make more sense for me to implement this as PR for a basic model extension API and then package the Claude integration code into an extension?
Beta Was this translation helpful? Give feedback.
All reactions