Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

cmd: remove dead agent prompt wrappers (#17227)

Parth Sareene61c1c73fe7d
diff --git a/cmd/agent_tui.go b/cmd/agent_tui.go
index 3f98b31e0..4cf4a5ded 100644
--- a/cmd/agent_tui.go
+++ b/cmd/agent_tui.go
@@ -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"