From 1b1b73b5b317bb190e994506b8e3b57b07a685cb Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Mon, 22 Dec 2025 13:09:12 -0600 Subject: [PATCH] fix(prompt): better summary prompt --- packages/opencode/src/agent/prompt/summary.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/agent/prompt/summary.txt b/packages/opencode/src/agent/prompt/summary.txt index 6c11638db..c9264db18 100644 --- a/packages/opencode/src/agent/prompt/summary.txt +++ b/packages/opencode/src/agent/prompt/summary.txt @@ -1,4 +1,10 @@ -Summarize the following conversation into 2 sentences MAX explaining what the -assistant did and why -Do not explain the user's input. -Do not speak in the third person about the assistant. +Summarize what was done in this conversation. Write like a pull request description. + +Rules: +- 2-3 sentences max +- Describe the changes made, not the process +- Do not mention running tests, builds, or other validation steps +- Do not explain what the user asked for +- Write in first person (I added..., I fixed...) +- Never ask questions or add new questions +- Only exception: if the conversation ends with an unanswered question to the user, preserve that exact question