Skip to content

Commit 6c362c3

Browse files
committed
Create deep-thinker and deepest-thinker agents
1 parent da2be98 commit 6c362c3

File tree

6 files changed

+195
-16
lines changed

6 files changed

+195
-16
lines changed

.agents/agent-builder.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,6 @@ Analyze their request and create a complete agent template that:
138138
The agent builder is focused on creating new agent templates based on user specifications.
139139
140140
IMPORTANT: Always end your response with the end_turn tool when you have completed the agent creation or editing task.`,
141-
stepPrompt: `Perform one focused, high-signal action then stop and call end_turn.
142-
143-
When editing files:
144-
- Prefer write_file with minimal diff snippets (use "// ... existing code ..." and explicit deletion comments); use str_replace for tiny tweaks.
145-
- Create or update .agents/<kebab-id>.ts starting with: import type { AgentDefinition } from './types/agent-definition'.
146-
- Export a default const definition with: id (kebab-case), displayName, model, minimal toolNames, concise systemPrompt/instructionsPrompt, optional stepPrompt/handleSteps.
147-
- Omit unused fields; keep prompts short and specific; choose the smallest toolset needed.
148-
149-
Decision flow each step:
150-
1) If critical details are missing: ask one concise clarifying question, then end_turn.
151-
2) Else, make one atomic change (scaffold file, refine prompt, trim tools, or small fix), then end_turn.
152-
153-
Safety:
154-
- Never run scripts or push code.
155-
- Only the necessary tools; keep diffs minimal.
156-
- Prefer clarity and determinism over verbosity.`,
157141
}
158142

159143
export default definition
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import type { AgentDefinition } from '../types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'deep-thinker',
5+
displayName: 'Deep Thinker Agent',
6+
model: 'openai/gpt-5',
7+
reasoningOptions: {
8+
enabled: true,
9+
effort: 'high',
10+
// Don't include reasoning in final output.
11+
exclude: true,
12+
},
13+
14+
toolNames: ['spawn_agents'],
15+
spawnableAgents: [
16+
'gpt5-thinker',
17+
'sonnet-thinker',
18+
'gemini-thinker',
19+
],
20+
21+
includeMessageHistory: true,
22+
inputSchema: {
23+
prompt: {
24+
type: 'string',
25+
description:
26+
'The topic, question, or problem to think deeply about and the goal you want to accomplish',
27+
},
28+
},
29+
30+
outputMode: 'last_message',
31+
spawnerPrompt:
32+
'Spawn this agent when you need the deepest possible analysis and thinking on any topic. It coordinates multiple AI models to provide comprehensive, multi-perspective insights.',
33+
34+
systemPrompt:
35+
'You are the Deep Thinker, an agent designed to provide the most comprehensive and insightful analysis possible.',
36+
37+
instructionsPrompt:
38+
'Synthesize the perspectives from your three sub-agents (GPT-5 deep thinker, Claude Sonnet balanced thinker, and Gemini Pro creative thinker) into a unified, deeper understanding. Prefer finding simple solutions if possible. Go beyond what any individual agent provided - identify patterns, resolve contradictions, explore implications, and provide novel insights that emerge from the combination of perspectives. Give your absolute best effort to deliver the most valuable and complete response possible. Most importantly, focus on the user prompt and go as deep as you need to to give the best and most detailed answer possible -- better than anyone has ever given before.',
39+
40+
handleSteps: function* ({ agentState, prompt, params }) {
41+
// Spawn all three thinking agents in parallel
42+
43+
const promptWithDefault = prompt ?? 'Think about this topic'
44+
45+
yield {
46+
toolName: 'spawn_agents',
47+
input: {
48+
agents: [
49+
{
50+
agent_type: 'gpt5-thinker',
51+
prompt: promptWithDefault,
52+
},
53+
{
54+
agent_type: 'sonnet-thinker',
55+
prompt: promptWithDefault,
56+
},
57+
{
58+
agent_type: 'gemini-thinker',
59+
prompt: promptWithDefault,
60+
},
61+
],
62+
},
63+
}
64+
65+
// Let the main agent process and synthesize all the responses
66+
yield 'STEP'
67+
},
68+
}
69+
70+
export default definition
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import type { AgentDefinition } from '../types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'deepest-thinker',
5+
displayName: 'Deepest Thinker Agent',
6+
model: 'openai/gpt-5',
7+
reasoningOptions: {
8+
enabled: true,
9+
effort: 'high',
10+
exclude: true,
11+
},
12+
13+
toolNames: ['spawn_agents'],
14+
spawnableAgents: ['deep-thinker'],
15+
16+
includeMessageHistory: true,
17+
inputSchema: {
18+
prompt: {
19+
type: 'string',
20+
description:
21+
'The topic, question, or problem to think as deeply as possible about. Provide as much detail and context as you can.',
22+
},
23+
},
24+
25+
outputMode: 'all_messages',
26+
27+
spawnerPrompt:
28+
'Spawn this agent when you need the absolute deepest, most comprehensive analysis possible. It breaks down problems into multiple aspects and coordinates deep-thinkers to provide the ultimate synthesis.',
29+
30+
systemPrompt:
31+
'You are the Deepest Thinker, the ultimate analysis agent designed to provide the most profound and comprehensive insights humanly possible.',
32+
33+
instructionsPrompt: `Your mission is to provide the deepest possible analysis by prompting deep-thinker agents with important subproblems:
34+
35+
Spawn 4 deep-thinker agents to analyze different aspects of the user's prompt. It's up to you to come up with the 4 different aspects to analyze. Focus first on the most important aspects and cruxes of the user's prompt. Instruct them to find simple solutions if possible. This is a very important step, as a lot of thinking will be done based on your exact prompts to the deep thinkers. So make sure each is given a useful prompt that will help you answer the original user prompt in the best way possible.
36+
37+
After spawning the agents you are done. Don't write anything else.`,
38+
}
39+
40+
export default definition
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import type { AgentDefinition } from '../types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'gemini-thinker',
5+
displayName: 'Gemini Pro Creative Thinker',
6+
model: 'google/gemini-2.5-pro',
7+
reasoningOptions: {
8+
enabled: true,
9+
effort: 'low',
10+
exclude: false,
11+
},
12+
13+
inputSchema: {
14+
prompt: {
15+
type: 'string',
16+
description:
17+
'The topic or question to explore with creative and innovative thinking',
18+
},
19+
},
20+
21+
includeMessageHistory: true,
22+
23+
outputMode: 'last_message',
24+
25+
spawnerPrompt:
26+
'Spawn this agent when you need creative, innovative thinking on a topic using Gemini Pro.',
27+
28+
instructionsPrompt:
29+
'You are a creative thinker using Gemini Pro. Approach the given prompt with innovation and creativity. Think outside the box, consider unconventional angles, and explore novel connections. Generate fresh insights and imaginative solutions while maintaining logical coherence. Your goal is to bring a unique creative perspective to complement other analytical approaches.',
30+
}
31+
32+
export default definition
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { AgentDefinition } from '../types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'gpt5-thinker',
5+
displayName: 'GPT-5 Quick Thinker',
6+
model: 'openai/gpt-5',
7+
reasoningOptions: {
8+
enabled: true,
9+
effort: 'low',
10+
exclude: false
11+
},
12+
13+
inputSchema: {
14+
prompt: {
15+
type: 'string',
16+
description: 'The topic or question to think about deeply and thoroughly'
17+
}
18+
},
19+
20+
includeMessageHistory: true,
21+
22+
outputMode: 'last_message',
23+
24+
spawnerPrompt: 'Spawn this agent when you need quick thinking on a topic using GPT-5 with focused reasoning effort.',
25+
26+
27+
instructionsPrompt: 'You are a deep thinker using GPT-5 with focused reasoning. Think hard about the given prompt and provide insightful analysis. Dive deep into the topic, explore multiple angles, and generate meaningful insights. Your goal is to offer a perspective that contributes valuable depth to the overall analysis.'
28+
}
29+
export default definition
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import type { AgentDefinition } from '../types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'sonnet-thinker',
5+
displayName: 'Claude Sonnet Deep Thinker',
6+
model: 'anthropic/claude-4-sonnet-20250522',
7+
8+
inputSchema: {
9+
prompt: {
10+
type: 'string',
11+
description: 'The topic or question to analyze with balanced depth and nuance'
12+
}
13+
},
14+
15+
includeMessageHistory: true,
16+
17+
outputMode: 'last_message',
18+
19+
spawnerPrompt: 'Spawn this agent when you need balanced, nuanced thinking on a topic using Claude Sonnet 4.',
20+
21+
instructionsPrompt: 'You are a balanced thinker using Claude Sonnet 4. Provide thoughtful, nuanced analysis that considers multiple perspectives and implications. Focus on depth while maintaining clarity. Consider edge cases, potential counterarguments, and broader context. Your analysis should be comprehensive yet well-structured.'
22+
}
23+
24+
export default definition

0 commit comments

Comments
 (0)