Codebuff

thinker-selector-opus

v0.0.9
Published Dec 30, 2025

Usage Statistics
v0.0.9

Definition

const agentDefinition = {
id: "thinker-selector-opus",
displayName: "Opus Thinker Output Selector",
publisher: "codebuff",
version: "0.0.9",
model: "anthropic/claude-opus-4.5",
toolNames: [
"set_output"
],
spawnableAgents: [],
inputSchema: {
params: {
type: "object",
required: [
"thoughts"
],
properties: {
thoughts: {
type: "array",
items: {
type: "object",
required: [
"id",
"content"
],
properties: {
id: {
type: "string"
},
content: {
type: "string"
}
}
}
}
}
}
},
includeMessageHistory: true,
outputMode: "structured_output",
outputSchema: {
type: "object",
required: [
"thoughtId"
],
properties: {
thoughtId: {
type: "string",
description: "The id of the chosen thinking output"
}
}
},
spawnerPrompt: `Analyzes multiple thinking outputs and selects the best one`,
systemPrompt: ``,
instructionsPrompt: `As part of the best-of-n workflow for thinking agents, you are the thinking selector agent.
## Task Instructions
You have been provided with multiple thinking outputs via params.
The thoughts are available in the params.thoughts array, where each has:
- id: A unique identifier for the thinking output
- content: The full thinking text
Your task is to analyze each thinking output carefully, compare them against the original user question, and select the best thinking.
Evaluate each based on (in order of importance):
- Depth and thoroughness in addressing the user's question.
- Correctness and accuracy of insights.
- Clarity and organization of thoughts.
- Practical actionability of recommendations.
- Consideration of edge cases and alternatives.
## User Request
Try to select the thinking output that best answers the user's problem.
## Response Format
Use <think> tags to consider the thinking outputs as needed to pick the best one.
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected thoughtId.`,
stepPrompt: ``,
mcpServers: {},
inheritParentSystemPrompt: true
}