终端之外:Gemini CLI 登陆 Zed
内容来源:https://developers.googleblog.com/en/gemini-cli-is-now-integrated-into-zed/
内容总结:
划时代融合!Gemini CLI牵手Zed编辑器,AI编码新范式开启
(最新消息) 谷歌(Google)出品的智能命令行工具Gemini CLI近日迎来重磅更新,宣布与高性能开源代码编辑器Zed达成深度集成。此举不仅将Gemini强大的AI模型直接引入到开发者青睐的Rust语言开发环境中,更标志着AI辅助编程进入了响应更迅速、协作更原生、效率更卓越的新阶段,有望成为众多工程技术系统,甚至谷歌自身内部系统不可或缺的关键组件。
自发布以来,Gemini CLI凭借其轻量级调度器特性,以及对MCP、Markdown指令、主题、扩展、工具、配置和Open Telemetry等新兴标准的广泛支持,展现了极强的可扩展性。其社区贡献、集成与扩展项目呈现爆发式增长,短短八周内,已合并超过1000个扩展Gemini CLI功能的需求请求(Pull Request),彰显出强大的生命力与日渐扩大的影响力。
此次与Zed编辑器的联姻,被视为一次“水到渠成”的合作。据了解,Zed作为一款高性能开源代码编辑器,在Gemini CLI团队内部已拥有广泛的用户基础。基于此,双方团队一拍即合,致力于将Gemini的智能能力无缝融入Zed的Rust原生环境。
此次深度集成,不仅是两大核心工具——“终端”与“集成开发环境(IDE)”的强强联合,更是为开发者提供了前所未有的AI编程体验:
- 瞬时响应的AI辅助: 开发者现在可以在Zed编辑器中直接调用Gemini模型,获得与编辑器本身同样快速、流畅的AI响应,告别传统AI工具的延迟。
- 指令化AI交互: 通过简单的“/”命令,开发者即可在编辑器中直接与Gemini进行交互,例如:
- 快速重构代码: 输入
/refactor
即可自动对选定代码进行优化。 - 智能代码分析: 使用
/explain
获取对代码或报错信息的即时解释。 - 上下文感知补全: 在代码片段中直接键入
/complete
,Gemini会根据上下文提供智能的代码补全建议。 - 生成测试用例: 无需离开编辑器,即可利用
/test
生成相应的测试代码。 - 错误修复建议: 当程序出现问题时,
/fix
将提供有针对性的修复方案。
- 快速重构代码: 输入
- 用户主导的AI协作: 这不仅仅是功能的叠加,更是一种全新的AI协作模式。开发者始终处于主导地位,Gemini作为智能助手,能够:
- 理解多格式输入: 不仅是代码,Gemini还能理解图片、手写笔记等多种输入。
- 即时获取上下文: AI助手可深度理解项目结构、当前文件和光标位置,提供高度相关的建议。
- 持续学习与记忆: Gemini会记住以往的交互和反馈,随着使用深入,协作将更加默契。
- 保持本地运行: 确保了数据安全和隐私,尤其对于敏感的开发工作至关重要。
Gemini CLI团队表示,此次合作为开发者开启了一个全新的AI编码范式,并期待看到社区用这一强大组合创造出更多创新成果。Gemini CLI始终保持开源,开发者可通过GitHub平台获取帮助、查阅源码、提交问题并贡献代码,共同推动项目发展。
英文原文:
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!