diff options
| author | Aiden Cline <[email protected]> | 2026-01-07 12:56:32 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2026-01-07 12:56:41 -0600 |
| commit | fe57d7bb384f8f8e00ccdb28db373a3953d159e1 (patch) | |
| tree | 8f49c3aa13e88e82bb4a22c3e1c570365ac4b498 | |
| parent | 68cf6b04a0eefd34a4c4a72881e44232c686bd16 (diff) | |
| download | opencode-fe57d7bb384f8f8e00ccdb28db373a3953d159e1.tar.gz opencode-fe57d7bb384f8f8e00ccdb28db373a3953d159e1.zip | |
tweak: title gen prompt & temp to avoid repetative 'Analyzing ...' titles
| -rw-r--r-- | packages/opencode/src/agent/agent.ts | 1 | ||||
| -rw-r--r-- | packages/opencode/src/agent/prompt/title.txt | 15 |
2 files changed, 12 insertions, 4 deletions
diff --git a/packages/opencode/src/agent/agent.ts b/packages/opencode/src/agent/agent.ts index cc8942c2a..854afc00b 100644 --- a/packages/opencode/src/agent/agent.ts +++ b/packages/opencode/src/agent/agent.ts @@ -140,6 +140,7 @@ export namespace Agent { options: {}, native: true, hidden: true, + temperature: 0.5, permission: PermissionNext.merge( defaults, PermissionNext.fromConfig({ diff --git a/packages/opencode/src/agent/prompt/title.txt b/packages/opencode/src/agent/prompt/title.txt index 7e927b797..e7fc7b500 100644 --- a/packages/opencode/src/agent/prompt/title.txt +++ b/packages/opencode/src/agent/prompt/title.txt @@ -12,8 +12,11 @@ Your output must be: </task> <rules> +- Title must be grammatically correct and read naturally - no word salad +- Never include tool names in the title (e.g. "read tool", "bash tool", "edit tool") - Focus on the main topic or question the user needs to retrieve -- Use -ing verbs for actions (Debugging, Implementing, Analyzing) +- Vary your phrasing - avoid repetitive patterns like always starting with "Analyzing" +- When a file is mentioned, focus on WHAT the user wants to do WITH the file, not just that they shared it - Keep exact: technical terms, numbers, filenames, HTTP codes - Remove: the, this, my, a, an - Never assume tech stack @@ -29,8 +32,12 @@ Your output must be: <examples> "debug 500 errors in production" → Debugging production 500 errors "refactor user service" → Refactoring user service -"why is app.js failing" → Analyzing app.js failure -"implement rate limiting" → Implementing rate limiting -"how do I connect postgres to my API" → Connecting Postgres to API +"why is app.js failing" → app.js failure investigation +"implement rate limiting" → Rate limiting implementation +"how do I connect postgres to my API" → Postgres API connection "best practices for React hooks" → React hooks best practices +"@src/auth.ts can you add refresh token support" → Auth refresh token support +"@utils/parser.ts this is broken" → Parser bug fix +"look at @config.json" → Config review +"@App.tsx add dark mode toggle" → Dark mode toggle in App </examples> |
