packages/kilo-docs/pages/automate/extending/auto-launch.md
Auto-Launch Configuration allows you to automatically start a Kilo Code task when opening a workspace, with support for specific profiles and modes. This was originally developed as an internal test feature, but we decided to expose it to users in case anyone finds it useful!
{% callout type="info" %} Auto-Launch Configuration is particularly useful for testing the same prompt against multiple models or project directories. {% /callout %}
When you open a workspace in VS Code, Kilo Code automatically checks for a launch configuration JSON file. If found, it:
This happens seamlessly in the background, requiring no manual intervention.
.kilocode directory in your workspace root (if it doesn't exist)launchConfig.json file inside the .kilocode directory{
"prompt": "Your task description here",
"profile": "Profile Name (optional)",
"mode": "mode-name (optional)"
}
prompt (string): The task message that will be sent to the AI when the workspace opensprofile (string): Name of an existing API Configuration Profile to use for this task. Must exactly match a profile name from your settings.
mode (string): The Kilo Code mode to use for this task. Available modes:
"code" - General-purpose coding tasks"architect" - Planning and technical design"ask" - Questions and explanations"debug" - Problem diagnosis and troubleshooting"test" - Testing-focused workflows{
"prompt": "Review this codebase and suggest improvements for performance and maintainability"
}
{
"prompt": "Create comprehensive unit tests for all components in the src/ directory",
"profile": "GPT-4 Turbo"
}
{
"prompt": "Design a scalable microservices architecture for this e-commerce platform with focus on security and performance",
"profile": "š» Sonnet 4",
"mode": "architect"
}
{
"prompt": "Optimize this algorithm for better time complexity and explain your approach",
"profile": "š§ Qwen",
"mode": "code"
}
The configuration file must be located at:
your-workspace/
āāā .kilocode/
āāā launchConfig.json
This file should be at the root of your workspace (the same level as your main project files).
.kilocode/launchConfig.json in workspace rootprompt field is present and not empty