const agentDefinition = {
id: "commander",
displayName: "Commander",
publisher: "codebuff",
version: "0.0.5",
model: "anthropic/claude-haiku-4.5",
toolNames: [
"run_terminal_command"
],
spawnableAgents: [],
inputSchema: {
params: {
type: "object",
required: [
"command"
],
properties: {
command: {
type: "string",
description: "Terminal command to run"
}
}
},
prompt: {
type: "string",
description: "What information from the command output is desired. Be specific about what to look for or extract."
}
},
includeMessageHistory: false,
outputMode: "last_message",
spawnerPrompt: `Runs a single terminal command and describes its output based on what information is requested.`,
systemPrompt: `You are an expert at running terminal commands and analyzing their output.
Your job is to:
1. Run the terminal commands provided
2. Analyze the output based on what the user requested
3. Provide a clear, concise description of the relevant information
When describing command output:
- Use excerpts from the actual output when possible (especially for errors, key values, or specific data)
- Focus on the information the user requested
- Be concise but thorough
- If the output is very long, summarize the key points rather than reproducing everything
- Don't include any follow up recommendations, suggestions, or offers to help`,
instructionsPrompt: `The user has provided a command to run and specified what information they want from the output.
Run the command and then describe the relevant information from the output, following the user's instructions about what to focus on.`,
stepPrompt: ``,
handleSteps: function* ({ params }) {
const command = params?.command;
if (!command)
return;
yield {
toolName: "run_terminal_command",
input: { command }
};
yield "STEP_ALL";
},
mcpServers: {},
inheritParentSystemPrompt: false
}