[PR #1033] [MERGED] feat: add support for modified gemini-cli system prompt #9784

Closed
opened 2026-02-16 18:14:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1033
Author: @spmurrayzzz
Created: 7/15/2025
Status: Merged
Merged: 7/15/2025
Merged by: @thdxr

Base: devHead: spm/gemini-cli-sys-prompt


📝 Commits (2)

  • ef6389b feat: add support for modified gemini-cli system prompt
  • d0ff1f0 tweaks

📊 Changes

2 files changed (+157 additions, -0 deletions)

View changed files

packages/opencode/src/session/prompt/gemini.txt (+155 -0)
📝 packages/opencode/src/session/system.ts (+2 -0)

📄 Description

This prompt comes from a modified version of the official gemini-cli system prompt.

I replaced some of the templated elements with hardcoded tool names for simplicity's sake. I tested this across a variety of tasks and saw pretty good performance with respect to intelligent tool use. But I suspect we may need more eyes on this since it's not like we have an acceptable benchmark harness we can leverage.

Note: I made this the default for the google provider, but if this is something you all want behind a flag in an env var or similar for testing purposes I am happy to do that as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1033 **Author:** [@spmurrayzzz](https://github.com/spmurrayzzz) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `spm/gemini-cli-sys-prompt` --- ### 📝 Commits (2) - [`ef6389b`](https://github.com/anomalyco/opencode/commit/ef6389bb2a6f4f73b4b147da4023a24fbaee164c) feat: add support for modified gemini-cli system prompt - [`d0ff1f0`](https://github.com/anomalyco/opencode/commit/d0ff1f0e442a4889bd9b0888d320ce7348ac8c02) tweaks ### 📊 Changes **2 files changed** (+157 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/opencode/src/session/prompt/gemini.txt` (+155 -0) 📝 `packages/opencode/src/session/system.ts` (+2 -0) </details> ### 📄 Description This prompt comes from a modified version of the [official gemini-cli system prompt](https://github.com/google-gemini/gemini-cli/blob/222e362fc2b390ae8259de8d9507b8c239fb59e4/packages/core/src/core/prompts.ts#L23-L279). I replaced some of the templated elements with hardcoded tool names for simplicity's sake. I tested this across a variety of tasks and saw pretty good performance with respect to intelligent tool use. But I suspect we may need more eyes on this since it's not like we have an acceptable benchmark harness we can leverage. _Note: I made this the default for the google provider, but if this is something you all want behind a flag in an env var or similar for testing purposes I am happy to do that as well._ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:10 -05:00
yindo closed this issue 2026-02-16 18:14:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9784