Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
conversation history now uses summary--TODO: store both full convo and summary from AI response for different use cases/context needs
Dane Schneider207f28ec5b8a
diff --git a/cli/lib/prompt.go b/cli/lib/prompt.goindex 688354d2..a6ffb25d 100644--- a/cli/lib/prompt.go+++ b/cli/lib/prompt.go@@ -28,7 +28,9 @@ func Prompt(prompt string, chatOnly bool) error {conversationFilePath := filepath.Join(ConversationSubdir, fmt.Sprintf("%s.md", timestamp))userHeader := fmt.Sprintf("@@@!>user|%s\n\n", timestamp)responseHeader := fmt.Sprintf("@@@!>response|%s\n\n", responseTimestamp)- conversationFileContents := fmt.Sprintf("%s%s\n\n%s%s", userHeader, prompt, responseHeader, response.Reply)++ // TOOD: store both summary and full response in conversation file for different use cases/context needs+ conversationFileContents := fmt.Sprintf("%s%s\n\n%s%s", userHeader, prompt, responseHeader, response.Summary)conversationFile, err := os.OpenFile(conversationFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)if err != nil {return fmt.Errorf("failed to write conversation file: %s\n", err)