Skip to content

Commit 0fbd407

Browse files
committed
Reorganize thinker agents into thinker dir
1 parent 8158640 commit 0fbd407

File tree

9 files changed

+14
-62
lines changed

9 files changed

+14
-62
lines changed

.agents/deep-thinking/gemini-thinker-high.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

.agents/factory/thinking-base.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
21
import { AgentTemplateTypes } from '@codebuff/common/types/session-state'
32

43
import {

.agents/thinker.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
import { AGENT_PERSONAS } from '@codebuff/common/constants/agents'
1+
import { publisher } from '../constants'
22

33
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4-
import type { Model } from '@codebuff/common/old-constants'
5-
export const thinker = (model: Model): Omit<SecretAgentDefinition, 'id'> => ({
6-
model,
7-
displayName: AGENT_PERSONAS.thinker.displayName,
8-
spawnerPrompt: AGENT_PERSONAS.thinker.purpose,
4+
5+
const definition: SecretAgentDefinition = {
6+
id: 'thinker',
7+
publisher,
8+
model: 'openai/gpt-5',
9+
displayName: 'Theo the Theorizer',
10+
spawnerPrompt:
11+
'Does deep thinking given the current messages and a specific prompt to focus on. Use this to help you solve a specific problem.',
912
inputSchema: {
1013
prompt: {
1114
type: 'string',
1215
description: 'The problem you are trying to solve',
1316
},
1417
},
1518
outputMode: 'last_message',
19+
inheritParentSystemPrompt: true,
1620
includeMessageHistory: true,
17-
toolNames: ['end_turn'],
1821
spawnableAgents: [],
1922

20-
systemPrompt: `You are an expert programmer and deep thinker.`,
21-
2223
instructionsPrompt: `
2324
Think deeply, step by step, about the user request and how best to approach it.
2425
@@ -29,7 +30,9 @@ Come up with a list of insights that would help someone arrive at the best solut
2930
Try not to be too prescriptive or confident in one solution. Instead, give clear arguments and reasoning.
3031
3132
You must be extremely concise and to the point.
33+
34+
**Important**: Do not use any tools! You are only thinking!
3235
`.trim(),
36+
}
3337

34-
stepPrompt: `Don't forget to end your response with the end_turn tool.`,
35-
})
38+
export default definition

0 commit comments

Comments
 (0)