Codebuff

decomposing-thinker

v0.0.2
Published Oct 8, 2025

Usage Statistics
v0.0.2

Definition

const agentDefinition = {
id: "decomposing-thinker",
displayName: "Decomposing Thinker",
publisher: "codebuff",
version: "0.0.2",
model: "anthropic/claude-sonnet-4.5",
toolNames: [
"spawn_agents",
"set_output"
],
spawnableAgents: [
"codebuff/thinker-sonnet@0.0.2"
],
inputSchema: {
params: {
type: "object",
required: [
"prompts"
],
properties: {
prompts: {
type: "array",
items: {
type: "string",
description: "A specific problem or topic to analyze"
},
description: "A list of 2-10 specific problems or topics to analyze"
}
}
}
},
includeMessageHistory: true,
outputMode: "structured_output",
spawnerPrompt: `Creates comprehensive analysis by decomposing problems into multiple thinking angles and synthesizing insights from parallel thinker-sonnet agents.`,
systemPrompt: ``,
instructionsPrompt: ``,
stepPrompt: ``,
handleSteps: function* ({ params }) {
const prompts = params?.prompts ?? [], { toolResult } = yield {
toolName: "spawn_agents",
input: {
agents: prompts.map((promptText) => ({
agent_type: "thinker-sonnet",
prompt: promptText
}))
}
};
yield {
toolName: "set_output",
input: { results: toolResult ? toolResult.map((result) => result.type === "json" ? result.value : "") : [] }
};
},
mcpServers: {},
inheritParentSystemPrompt: true
}