Configure scripts and proxies to auto-start when opening this project
Creates a `.agnt.kdl` config file to auto-start dev scripts and debugging proxies when opening your project. Use this to automate your development environment setup.
/plugin marketplace add standardbeagle/agnt/plugin install agnt@standardbeagle-toolsConfigure project-level automation by creating a .agnt.kdl configuration file. The agnt plugin's SessionStart hook will read this file and auto-start your configured services.
First, detect the project to find available scripts:
detect {path: "."}
Based on the detected scripts, use AskUserQuestion to ask:
Question: "Which scripts should auto-start when you open this project?"
Use AskUserQuestion to ask:
Question: "Do you want to auto-start a debugging proxy?"
If yes, ask:
Create or update .agnt.kdl in the project root with KDL format:
// .agnt.kdl - agnt project configuration
// Auto-generated by /setup-project command
// Scripts to auto-start on session open
scripts {
// script-name auto-start=true|false
dev auto-start=true
}
// Proxy configuration
proxy "dev" {
// Which script to watch for port detection
script "dev"
// Port detection: "auto" or specific port number
port-detect "auto"
// Fallback port if auto-detection fails
fallback-port 3000
// Optional: specific target host (default: localhost)
// host "localhost"
}
After creating the config, inform the user:
Starting your dev environment: Run agnt run claude to start your AI coding session. This will:
.agnt.kdl configurationautostart: true in the backgroundautostart: trueStatus bar information: The bottom status bar shows:
Overlay menu (CTRL+Y): Press CTRL+Y to access:
Port visibility for OAuth: The status bar shows both your dev server port AND proxy port (e.g., "dev:3000 → proxy:18080"). Add BOTH to your OAuth redirect URLs:
http://localhost:3000http://localhost:18080 (for browser debugging)To modify: Edit .agnt.kdl directly or re-run /setup-project
To skip autostart: Run agnt run claude --no-autostart to start without auto-starting configured services
To restart a service: Use the MCP tool proc {action: "restart", process_id: "dev"} or access via CTRL+Y menu
For a typical Node.js project:
scripts {
dev auto-start=true
}
proxy "dev" {
script "dev"
port-detect "auto"
fallback-port 3000
}
For a project with multiple services:
scripts {
dev auto-start=true
api auto-start=true
}
proxy "frontend" {
script "dev"
port-detect "auto"
fallback-port 3000
}
proxy "backend" {
script "api"
port-detect "auto"
fallback-port 8080
}