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
Add markdown formatting removal in REPL output
Dane Schneider407572e7f336
diff --git a/app/cli/cmd/repl.go b/app/cli/cmd/repl.goindex 38f3b56b..7747abec 100644--- a/app/cli/cmd/repl.go+++ b/app/cli/cmd/repl.go@@ -480,6 +480,9 @@ func executor(in string, p *prompt.Prompt) {color.New(term.ColorHiRed).Printf("Error executing chat: %v\n", err)}+ replacer := strings.NewReplacer("'", "", "\"", "", "*", "", "`", "", "_", "")+ output = replacer.Replace(output)+rx := regexp.MustCompile(`(?i)(switch|start|continue|begin|change|chang|move|proceed|go|transition)(ing)?( to | with | into )?(tell|implementation|coding|development)( mode)?`)if rx.MatchString(output) {