cmd: remove dead agent prompt wrappers (#17227)

This commit is contained in:
Parth Sareen
2026-07-16 17:16:14 -07:00
committed by GitHub
parent 03d61e1925
commit e61c1c73fe
-12
View File
@@ -331,18 +331,10 @@ func agentWorkingDir() string {
return cwd
}
func agentSystemPrompt(modelName string, modelSystem string, extra string) string {
return agentSystemPromptWithWorkingDir(modelName, modelSystem, extra, agentWorkingDir())
}
func agentSystemPromptWithWorkingDir(modelName string, modelSystem string, extra string, workingDir string) string {
return agentSystemPromptAtWithWorkingDir(time.Now(), modelName, modelSystem, extra, workingDir)
}
func agentSystemPromptAt(now time.Time, modelName string, modelSystem string, extra string) string {
return agentSystemPromptAtWithWorkingDir(now, modelName, modelSystem, extra, agentWorkingDir())
}
func agentSystemPromptAtWithWorkingDir(now time.Time, modelName string, modelSystem string, extra string, workingDir string) string {
var parts []string
parts = append(parts, agentDefaultSystemPromptWithWorkingDir(now, modelName, workingDir))
@@ -355,10 +347,6 @@ func agentSystemPromptAtWithWorkingDir(now time.Time, modelName string, modelSys
return strings.Join(parts, "\n\n")
}
func agentDefaultSystemPrompt(now time.Time, modelName string) string {
return agentDefaultSystemPromptWithWorkingDir(now, modelName, agentWorkingDir())
}
func agentDefaultSystemPromptWithWorkingDir(now time.Time, modelName string, workingDir string) string {
date := now.Format("Monday, January 2, 2006")
shellName := "bash"