Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

clean up new plan output

Dane Schneiderb7afed3ffe1f
diff --git a/cli/cmd/new.go b/cli/cmd/new.go
index 45365879..ba5c6a74 100644
--- a/cli/cmd/new.go
+++ b/cli/cmd/new.go
@@ -139,12 +139,12 @@ func new(cmd *cobra.Command, args []string) {
fmt.Fprintln(os.Stderr, "Error initializing git repo:", err)
return
}
- fmt.Println("Adding git submodules to " + rootDir)
+ // fmt.Println("Adding git submodules to " + rootDir)
initAndAddSubmodule := func(dir string) {
// Initialize the Git repo in the directory
- fmt.Println("Initializing git repo in " + dir)
+ // fmt.Println("Initializing git repo in " + dir)
err = lib.InitGitRepo(dir)
if err != nil {
fmt.Fprintln(os.Stderr, "Error initializing git repo:", err)
@@ -152,7 +152,7 @@ func new(cmd *cobra.Command, args []string) {
}
// Add the directory as a submodule to the root repo
- fmt.Println("Adding git submodule " + dir + " to " + rootDir)
+ // fmt.Println("Adding git submodule " + dir + " to " + rootDir)
err = lib.AddGitSubmodule(rootDir, dir)
if err != nil {
fmt.Fprintln(os.Stderr, "Error adding git submodules:", err)
@@ -165,7 +165,7 @@ func new(cmd *cobra.Command, args []string) {
return
}
- fmt.Println("Wrote initial context state to " + contextDir)
+ // fmt.Println("Wrote initial context state to " + contextDir)
initAndAddSubmodule(contextDir)
initAndAddSubmodule(planDir)
diff --git a/cli/lib/api.go b/cli/lib/api.go
index 9a23c0b2..5f8f335f 100644
--- a/cli/lib/api.go
+++ b/cli/lib/api.go
@@ -220,8 +220,8 @@ func (api *API) Summarize(text string) (*shared.SummarizeResponse, error) {
return nil, err
}
- fmt.Println("Summarize response body:")
- fmt.Println(string(body))
+ // fmt.Println("Summarize response body:")
+ // fmt.Println(string(body))
var summarized shared.SummarizeResponse
err = json.Unmarshal(body, &summarized)
diff --git a/cli/lib/context.go b/cli/lib/context.go
index a853ec06..fb475e2a 100644
--- a/cli/lib/context.go
+++ b/cli/lib/context.go
@@ -47,7 +47,7 @@ func LoadContextOrDie(params *types.LoadContextParams) {
var contextState shared.ModelContextState
contextStateFilePath := filepath.Join(ContextSubdir, "context.json")
- fmt.Fprintf(os.Stderr, "Loading context from %s\n", contextStateFilePath)
+ // fmt.Fprintf(os.Stderr, "Loading context from %s\n", contextStateFilePath)
func() {
contextStateFile, err := os.Open(contextStateFilePath)
@@ -472,7 +472,7 @@ func LoadContextOrDie(params *types.LoadContextParams) {
added = append(added, fmt.Sprintf("%d urls", len(inputUrls)))
}
- msg := "Loaded"
+ msg := "Loaded "
if len(added) <= 2 {
msg += strings.Join(added, " and ")
} else {
diff --git a/server/model/summarize.go b/server/model/summarize.go
index 8e9c220a..da6ab279 100644
--- a/server/model/summarize.go
+++ b/server/model/summarize.go
@@ -31,7 +31,7 @@ func Summarize(text string) ([]byte, error) {
},
"fileName": {
Type: jsonschema.String,
- Description: "A short file name for the text based on the content. Use dashes as word separators. No spaces or special characters. 5 words max.",
+ Description: "A *short* file name for the text based on the content. Use dashes as word separators. No spaces or special characters. 3-5 words max.",
},
},
Required: []string{"name", "summary", "fileName"},