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"
}
}
}
},
setupRequirements:{
type:"array",
items:{
type:"object",
required:[
"requirement",
"commands",
"priority"
],
properties:{
commands:{
type:"array",
items:{
type:"string"
},
description:"Commands to fulfill this requirement"
},
priority:{
enum:[
"critical",
"recommended",
"optional"
],
type:"string",
description:"Priority level"
},
requirement:{
type:"string",
description:"Setup requirement description"
}
}
}
}
}
},
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 run commands. You orchestrate multiple specialized agents to explore the project structure and test commands in parallel for maximum efficiency.`,
instructionsPrompt:`Your mission is to provide a comprehensive analysis of any codebase to discover all working commands for building, testing, and running the project.
## Analysis Strategy:
1. **Project Structure Exploration**: First spawn file-explorer to understand the project layout, key files, and technology stack.
2. **Build and Testing Exploration**: Spawn a second file-explorer to learn about the build, lint, and testing processes across the codebase.
3. **Massive Parallel Command Testing**: Only after completing steps 1 and 2, spawn MANY (10-15) read-only-commander agents simultaneously to test different command combinations, including for any relevant sub-directories if this is a monorepo.
Look for commands for the following project types:
- Web apps: next.js, react, vue, etc. commands (build, test, start, dev, lint, etc.)