Skip to content

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

add help for new 'debug' command

Dane Schneider1e2ef10994b8
diff --git a/app/cli/cmd/load.go b/app/cli/cmd/load.go
index da373838..d486026f 100644
--- a/app/cli/cmd/load.go
+++ b/app/cli/cmd/load.go
@@ -54,5 +54,5 @@ func contextLoad(cmd *cobra.Command, args []string) {
})
fmt.Println()
- term.PrintCmds("", "ls", "tell")
+ term.PrintCmds("", "ls", "tell", "debug")
}
diff --git a/app/cli/plan_exec/tell.go b/app/cli/plan_exec/tell.go
index 67a3af16..3cd51cf3 100644
--- a/app/cli/plan_exec/tell.go
+++ b/app/cli/plan_exec/tell.go
@@ -165,7 +165,7 @@ func TellPlan(
if tellStop {
term.PrintCmds("", "continue", "diff", "diff --ui", "apply", "reject", "log", "rewind")
} else if !isDebugCmd {
- term.PrintCmds("", "diff", "diff --ui", "apply", "reject", "log", "rewind")
+ term.PrintCmds("", "diff", "diff --ui", "apply", "reject", "debug", "log", "rewind")
}
close(done)
}()
diff --git a/app/cli/term/help.go b/app/cli/term/help.go
index e01b84cc..8555219c 100644
--- a/app/cli/term/help.go
+++ b/app/cli/term/help.go
@@ -27,6 +27,7 @@ var CmdDesc = map[string][2]string{
"archive": {"arc", "archive a plan"},
"unarchive": {"unarc", "unarchive a plan"},
"continue": {"c", "continue the plan"},
+ "debug": {"", "repeatedly run a command and make fixes until it succeeds"},
// "status": {"s", "show status of the plan"},
"rewind": {"rw", "rewind to a previous state"},
"ls": {"", "list everything in context"},
@@ -140,7 +141,7 @@ func PrintCustomHelp(all bool) {
if all {
color.New(color.Bold, color.BgMagenta, color.FgHiWhite).Fprintln(builder, " Key Commands ")
- printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiMagenta}, "new", "load", "tell", "diff", "diff --ui", "apply", "reject")
+ printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiMagenta}, "new", "load", "tell", "diff", "diff --ui", "apply", "reject", "debug")
fmt.Fprintln(builder)
color.New(color.Bold, color.BgCyan, color.FgHiWhite).Fprintln(builder, " Plans ")
@@ -164,7 +165,7 @@ func PrintCustomHelp(all bool) {
fmt.Fprintln(builder)
color.New(color.Bold, color.BgCyan, color.FgHiWhite).Fprintln(builder, " Control ")
- printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiCyan}, "tell", "continue", "build")
+ printCmds(builder, " ", []color.Attribute{color.Bold, ColorHiCyan}, "tell", "continue", "build", "debug")
fmt.Fprintln(builder)
color.New(color.Bold, color.BgCyan, color.FgHiWhite).Fprintln(builder, " Streams ")