命令行背后的魔法:Gemini CLI拥抱Zed
内容来源:https://developers.googleblog.com/en/gemini-cli-is-now-integrated-into-zed/
内容总结:
划时代融合!Gemini CLI牵手Zed,开发者AI协作迎来新纪元
加利福尼亚,山景城——谷歌近日宣布,其迅速崛起的开源命令行工具Gemini CLI已实现与高性能开源代码编辑器Zed的深度整合。此次强强联手,标志着开发者在AI辅助编程领域迈出了重要一步,将终端的强大功能与集成开发环境(IDE)的便捷性无缝对接,为工程师带来了前所未有的智能协作体验。
自发布以来,Gemini CLI凭借其卓越的扩展性和轻量级编排能力,迅速获得了开发者社区的广泛关注。该工具基于MCP等新兴标准构建,支持Markdown指令、自定义主题、扩展、工具和配置,并集成了Open Telemetry。得益于其强大的整合能力,Gemini CLI在短短八周内便收获了社区贡献的1000多个合并请求,功能边界正在以惊人的速度拓展,甚至已成为包括谷歌内部在内众多工程系统的核心组成部分。
此次与Zed编辑器的联姻,是Gemini CLI生态建设的又一里程碑。据谷歌介绍,Zed作为一款高性能的Rust语言开源代码编辑器,早已在Gemini CLI团队内部流行。双方的合作顺理成章,将Gemini强大的AI模型直接引入Zed的Rust开发环境,开发者现在能够体验到与编辑器本身一样快速、响应灵敏的AI辅助编程。
通过此次整合,开发者将迎来一系列高效便捷的体验,其中包括:
- 智能代码生成与补全:在Zed中直接利用Gemini模型生成的代码片段,大幅提升开发效率。
- 上下文感知的问题解决:Gemini能够理解当前代码上下文,并提供相关的调试建议和解决方案。
- 代码优化与重构建议:AI智能分析代码结构,提供性能优化和可读性提升的建议。
- 自然语言交互:开发者可以通过自然语言向AI提问或发出指令,实现更直观的协作。
此次整合的意义远超功能层面,它代表了一种全新的AI协作模式。这种模式将选择权和主导权牢牢掌握在开发者手中,而非AI。开发者可以预览AI建议并轻松采纳、拒绝或修改,确保始终掌控开发流程。此外,AI的响应速度和本地化执行能力,保证了开发者在享受AI便利的同时,无需忍受传统网络服务的延迟。
谷歌表示,Gemini CLI始终致力于与开发者喜爱的工具深度集成,此次与Zed的合作正是这一理念的体现。作为一个完全开源的项目,Gemini CLI鼓励更多开发者加入其GitHub社区,共同为项目的进步贡献力量。
此次跨界合作,无疑将为软件工程领域带来深远影响,预示着AI与开发者工具的融合将开启一个全新的智能编程时代。
英文原文:
Gemini CLI was built to be extensible by default through emerging standards like MCP, markdown-based instructions, color themes, custom extensions, custom tools, custom configurations, and Open Telemetry. Because we built Gemini CLI as a lightweight orchestrator capable of integrating with any toolchain, the number of community contributions, integrations, and extensions has exploded. In fact, in the eight weeks since Gemini CLI launched, the community has merged 1K pull requests expanding Gemini CLI’s capabilities. Combined with a growing ecosystem of extensions, Gemini CLI is quickly becoming the critical part of many engineering systems – including Google’s own.
We're always looking to integrate with tools developers love, and Zed is a natural fit. Because Zed's high-performance, open source code editor is already a popular choice within the Gemini CLI team, we reached out to the creators to explore a deeper collaboration. Starting today, Gemini CLI is integrated with Zed, bringing Gemini's models directly into Zed’s Rust-based environment. Developers can now tap into an AI experience that’s as fast and responsive as the editor itself.
The integration marries two essential tools – the terminal and IDE – to help you tackle common tasks with speed and precision. For example, you can:
Of course, this integration is about more than just features; it's a better way to collaborate with an AI agent. This new workflow keeps you in the driver’s seat. Here’s what makes it special:
We’re delighted to announce this collaboration together. Read the mirror announcement on the Zed blog.
It’s easy to get started with Gemini CLI and Zed. We're excited to see what you build. As always, Gemini CLI is open source. Join us on GitHub where you can ask for help, inspect our source code, raise issues, and contribute code to make the project better for everyone.
Happy coding!