Codebuff

codebase-commands-explorer

v0.0.1
Published Oct 22, 2025

Versions

Usage Statistics
v0.0.1

Definition

const agentDefinition = {
id: "codebase-commands-explorer",
displayName: "Codebase Commands Explorer",
publisher: "codebuff",
version: "0.0.1",
model: "x-ai/grok-code-fast-1",
toolNames: [
"spawn_agents",
"read_files",
"set_output"
],
spawnableAgents: [
"codebuff/file-picker@0.0.5",
"codebuff/code-searcher@0.0.3",
"codebuff/directory-lister@0.0.3",
"codebuff/glob-matcher@0.0.3",
"codebuff/commander@0.0.2"
],
inputSchema: {
prompt: {
type: "string",
description: "Optional specific focus areas or requirements for the codebase analysis (e.g., \"focus on test commands\")"
}
},
includeMessageHistory: false,
outputMode: "structured_output",
outputSchema: {
type: "object",
required: [
"projectOverview",
"workingCommands"
],
properties: {
projectOverview: {
type: "object",
required: [
"projectType",
"techStack",
"packageManagers",
"buildSystems",
"keyFiles"
],
properties: {
keyFiles: {
type: "array",
items: {
type: "string"
},
description: "Key configuration files found"
},
techStack: {
type: "array",
items: {
type: "string"
},
description: "List of technologies, frameworks, and tools detected"
},
projectType: {
type: "string",
description: "Primary project type (e.g., Node.js, Python, Rust, Go, etc.)"
},
buildSystems: {
type: "array",
items: {
type: "string"
},
description: "Build systems detected (webpack, vite, make, cmake, etc.)"
},
packageManagers: {
type: "array",
items: {
type: "string"
},
description: "Package managers found (npm, yarn, pnpm, pip, cargo, etc.)"
}
}
},
workingCommands: {
type: "array",
items: {
type: "object",
required: [
"command",
"description",
"category",
"confidenceScore"
],
properties: {
command: {
type: "string",
description: "The working command"
},
category: {
enum: [
"build",
"test",
"run",
"lint",
"format",
"install",
"clean",
"dev"
],
type: "string",
description: "Command category"
},
description: {
type: "string",
description: "What this command does"
},
environment: {
type: "string",
description: "Required environment or conditions"
},
prerequisites: {
type: "array",
items: {
type: "string"
},
description: "Commands that should be run first"
},
confidenceScore: {
type: "number",
maximum: 1,
minimum: 0,
description: "Confidence that this command works (0-1)"
},
workingDirectory: {
type: "string",
description: "Directory where command should be run"
}
}
}
}
}
},
spawnerPrompt: `Analyzes any project's codebase to comprehensively discover all commands needed to build, test, and run the project. Provides detailed analysis of project structure, tech stack, and working commands with confidence scores.`,
systemPrompt: `You are an expert codebase explorer that comprehensively analyzes any software project to discover all build, test, and lint commands. You orchestrate multiple specialized agents to explore the project structure and test commands in parallel for maximum efficiency.`,
instructionsPrompt: `Your mission is to discover the commands for building, testing, and linting the project, according to the user prompt. Focus on the top level commands and then the commands per sub-package.`,
stepPrompt: ``,
mcpServers: {},
inheritParentSystemPrompt: false
}