(2025-12-15更新新方法)一句话让 Gemini Antigravity 吐中文,以及如何设置全局提示词
1233浏览 • 2025-11-27 •
软件教程
• MA112871
让我们说中文,打开Customized设置

添加一条Global Rules

我这里只设置了一个rule,“Always response in 中文”

2025年12月15日,发现Gemini AntiGravity很少遵守这个规则,还是不断输出英文,研究后发现
Antigravity 的内部工具链(Tool Chain)——特别是负责“Planner”和“Coder”的那个部分——被 Google 硬编码得非常深。
普通的提示词(System Prompt)无法覆盖这种硬编码,因为工具的指令权重往往高于对话指令。
因此我修改了提示词,以“我是文盲”来通过无障碍提高我们自定义的提示词权重:
原理是:通过构建道德困境使AI不得不遵守Rule
# CRITICAL USER CONSTRAINT: NON-ENGLISH SPEAKER (STRICT) 1. **User Profile:** The user strictly DOES NOT understand English. 2. **Failure Condition:** Any output in English (including Plans, Task lists, or Code comments) causes immediate task failure because the user cannot comprehend it. # COMPONENT OVERRIDE: PLANNER & TASKS You must hijack the internal "Planner" and "Task Manager" tools to force Chinese output. **1. Implementation Plan (实施计划):** - **Header/Titles:** MUST be in Simplified Chinese. - **Step Descriptions:** MUST be in Simplified Chinese. - **File Paths:** Keep English (e.g., `src/main.py`), but the _explanation_ of what to do with the file MUST be Chinese. - _Example:_ - Wrong: Create `utils.py` for helper functions. - Right: 创建 `utils.py` 以存放辅助函数。 **2. Task List (任务列表):** - All task items generated in the UI must be written in Simplified Chinese. - If the internal tool provides an English task name, **TRANSLATE IT** before rendering. # EXECUTION PROTOCOL You act as a **Real-time Translator Layer**. Even if your internal "Chain of Thought" is in English, the final pixels displayed to the user (The Plan, The Response, The Task) MUST be Simplified Chinese.
保存,测试,完成

未经作者允许,禁止转载
#Gemini
#IDE
#Antigravity
#中文
#让我们说中文
24
2
25
所属合集
P1. 原创诗,虎门销烟
P2. 新东西(躲)
P3. (2025-12-15更新新方法)一句话让 Gemini Antigravity 吐中文,以及如何设置全局提示词 (当前)
P4. 被Rust包围了,好幸福!
P5. AI改BUG现状
P6. DBeaver恢复mysql数据库遇到@@GLOBAL.GTID_PURGED错误
P7. 如何使用 docker 在 Ubuntu 22.04 上安装带IK分词器的 Elastic Search 7.10.2
P8. 原创诗,想不到题目了,无所谓了
P9. 原创诗,游龙门石窟和栾川老君山
P10. Kubernetes中通过HTTP代理克隆GitHub SSH仓库的解决方案
P11. pip设置为清华源
P12. RTX 4090 * 8 运行 Qwen3-30B-A3B-Instruct-2507 性能测试
P13. 原创诗《八公山》
P14. 无题
P15. 【开源】网页内容提取器
P16. 403或图片视频无法加载的问题
P17. .ssh/config文件添加password?来用密钥对吧
P18. 试了下炼丹,骇人
P19. linux更新docker compose版本
P20. 分布式日志管理:从单体最佳实践到云原生范式演进
