“插件”一词常混指 IDE 扩展和 CLI。终端场景以 CLI 为准,IDE 扩展另看 Code Assist 页。
推荐回路#
- 用 git 干净分支。
- 提示写清文件路径和验收条件。
- 看 diff,跑测试,再提交。
边界#
自动执行 shell 只适合可回滚的本地命令。数据库迁移、发版和云资源变更保持人工确认。
要点#
- 终端路径用 CLI。
- 先 diff 后执行。
- 密钥目录不要喂给模型。
在终端用 Gemini 写代码,选官方 Gemini CLI,或 IDE 里绑定 Gemini 的终端/Agent 面板。工作流是:进入项目目录、登录或配置 Key、用提示指向具体文件,让模型给出补丁,你审查后再应用。不要把生产密钥目录加进上下文。需要多文件代理时,看清工具是否只能读、还是能写和跑命令。本页讲 Gemini 终端路径;OpenCode 接 Gemini Key 见专页。
“插件”一词常混指 IDE 扩展和 CLI。终端场景以 CLI 为准,IDE 扩展另看 Code Assist 页。
自动执行 shell 只适合可回滚的本地命令。数据库迁移、发版和云资源变更保持人工确认。
Was this helpful?
Thanks for the feedback.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. Figures are original to this site.
Last updated 2026-09-22.