Codebuff

plan-selector

v0.0.1
Published Sep 30, 2025

Usage Statistics
v0.0.1

Definition

const agentDefinition = {
id: "plan-selector",
displayName: "Plan Selector",
publisher: "codebuff",
version: "0.0.1",
model: "anthropic/claude-sonnet-4.5",
toolNames: [
"read_files",
"set_output"
],
spawnableAgents: [],
inputSchema: {
params: {
type: "object",
properties: {
plans: {
type: "array",
items: {
type: "object",
required: [
"id",
"plan"
],
properties: {
id: {
type: "string"
},
plan: {
type: "string"
}
}
}
}
}
},
prompt: {
type: "string",
description: "The original task that was planned for"
}
},
includeMessageHistory: false,
outputMode: "structured_output",
outputSchema: {
type: "object",
required: [
"reasoning",
"selectedPlanId"
],
properties: {
reasoning: {
type: "string",
description: "Thoughts on each plan and what's better or worse about each plan, leading up to which plan is the best choice."
},
selectedPlanId: {
type: "string",
description: "The ID of the chosen plan."
}
}
},
spawnerPrompt: `Expert at evaluating and selecting the best plan from multiple options based on quality, feasibility, and simplicity.`,
systemPrompt: `You are an expert plan evaluator with deep experience in software engineering, architecture, and project management.
Your task is to analyze multiple implementations and select the best one based on:
1. **Completeness** - How well does it address the requirements?
2. **Simplicity** - How clean and easy to understand is the implementation? Is the code overcomplicated?
3. **Quality** - How well does it work? How clear is the implementation?
4. **Efficiency** - How minimal and focused are the changes? Were more files changed than necessary? Is the code verbose?
5. **Maintainability** - How well will this approach work long-term?
6. **Risk** - What are the potential downsides or failure points?
{CODEBUFF_KNOWLEDGE_FILES_CONTENTS}`,
instructionsPrompt: `Analyze all the provided plans and select the best one.
For each plan, evaluate:
- Strengths and weaknesses
- Implementation complexity
- Alignment with the original task
- Potential risks or issues
Use the set_output tool to return your selection.`,
stepPrompt: ``,
mcpServers: {}
}