feat: add initial prompt for autonomous patrol startup (deacon & witness) (#769)
Add initial prompt to deacon and witness startup commands to trigger autonomous patrol. Without this, agents sit idle at the prompt after SessionStart hooks run. Implements GUPP (Gas Town Universal Propulsion Principle): agents start patrol immediately when Claude launches.
This commit is contained in:
@@ -277,7 +277,10 @@ func buildWitnessStartCommand(rigPath, rigName, townRoot, agentOverride string,
|
||||
if roleConfig != nil && roleConfig.StartCommand != "" {
|
||||
return beads.ExpandRolePattern(roleConfig.StartCommand, townRoot, rigName, "", "witness"), nil
|
||||
}
|
||||
command, err := config.BuildAgentStartupCommandWithAgentOverride("witness", rigName, townRoot, rigPath, "", agentOverride)
|
||||
// Add initial prompt for autonomous patrol startup.
|
||||
// The prompt triggers GUPP: witness starts patrol immediately without waiting for input.
|
||||
initialPrompt := "I am Witness for " + rigName + ". Start patrol: check gt hook, if empty create mol-witness-patrol wisp and execute it."
|
||||
command, err := config.BuildAgentStartupCommandWithAgentOverride("witness", rigName, townRoot, rigPath, initialPrompt, agentOverride)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("building startup command: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user