cli: make bundled help self-describing

This commit is contained in:
2026-03-22 23:37:38 +08:00
parent 5859ff219e
commit 4d8c90eb26
49 changed files with 792 additions and 29 deletions
@@ -19,6 +19,13 @@ func newStatusCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "status",
Short: "Show task state summary for the run",
Long: helpLong(
"Use status to show the full operational view for one run.",
"status reconciles inbox state first, then returns the run summary, aggregate task counts, the task list, and latest attempt/message context.",
"Use status as the main leader dashboard command. Prefer it over run show when you need the latest task-level execution picture before making the next dispatch, answer, retry, or cleanup decision.",
),
Example: ` orch --db .agents/coord.db status --run blog_mvp_001
orch --db .agents/coord.db --json status --run blog_mvp_001`,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()