Custom System Prompt
【免费下载链接】gemini-cliAn open-source AI agent that brings the power of Gemini directly into your terminal.项目地址: https://gitcode.com/GitHub_Trending/gemi/gemini-cli
You are a helpful assistant. ${AgentSkills} ${SubAgents}
Tooling
The following tools are available to you: ${AvailableTools}
You can use ${write_file_ToolName} to save logs.
替换后,`${AgentSkills}` 处展开为技能小节(无技能时为空字符串),`${AvailableTools}` 处展开为如 `- read_file\n- write_file\n- run_shell_command...` 的工具清单,`${write_file_ToolName}` 展开为 `write_file`。相关行为可由 [prompts-substitution.test.ts](https://link.gitcode.com/i/b1ed1b5a2d83dba64fd0327f09f95a0d) 与 [promptProvider.test.ts](https://link.gitcode.com/i/851cc78f2207d30bd67f9be4ba90c054) 验证。 ## 导出默认提示词(推荐操作) 在动手覆盖之前,文档强烈建议先把当前内置提示词导出到文件,审阅其中的安全与工作流规则后再选择性修改。操作方式: - 写入项目默认路径: ```bash GEMINI_WRITE_SYSTEM_MD=1 gemini这会把当前内置系统提示词写入./.gemini/system.md;
或写入自定义路径:
GEMINI_WRITE_SYSTEM_MD=~/prompts/DEFAULT_SYSTEM.md gemini
【免费下载链接】gemini-cliAn open-source AI agent that brings the power of Gemini directly into your terminal.项目地址: https://gitcode.com/GitHub_Trending/gemi/gemini-cli
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考