Skip to content

mecatui: simplify CLI help and fix mode-specific flag accuracy #1648

Closed

Description

@danbarr

Problem

The progressive CLI help is intended to make common tasks easy to discover, but much of it reads like design or implementation notes. Common flag descriptions are often paragraphs, while --help-all exposes ADR numbers, issue numbers, internal fields, implementation layers, and terms such as FAIL-SOFT and zero-selector session.

There is also a correctness defect: mecatui connect --help lists --workspace, even though connect-mode validation rejects an explicit --workspace.

The top-level command index has similar problems. For example, the debug summary explains handle-resolution internals, and provider lifecycle syntax is presented as one long unscannable line.

Scope

  • Fix flag applicability so each command advertises only accepted flags.
  • Rewrite top-level command summaries around user goals.
  • Rewrite common flag descriptions to state the action, default, and important consequence concisely.
  • Keep --help-all exhaustive, but remove development history and implementation commentary.
  • Preserve necessary security, privacy, and destructive-operation warnings in plain language.
  • Keep command and flag behavior unchanged except for correcting help applicability metadata.

Examples of the intended direction

  • --prompt: “Submit TEXT when the session is ready. The TUI remains open for follow-ups.”
  • --resume: “Continue the main chat with SESSION_ID. Conflicts with --resume-latest.”
  • --store-dir: “Store session history in DIR. History includes prompts and tool data and is stored as plaintext in an owner-only directory.”

These examples are direction, not required final wording.

Acceptance criteria

  • mecatui connect --help and mecatui connect --help-all do not list --workspace.
  • Every displayed flag is accepted by the command that displays it.
  • Common help is scannable without reading multi-paragraph flag entries.
  • User-facing help contains no ADR/issue references or implementation-only vocabulary.
  • Existing help/applicability tests are updated, including a regression test for the --workspace mismatch.

Activity

  1. added
    bug
    tui
    fit-and-finish
    on Sep 16, 2026
  2. self-assigned this
    on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfit-and-finishtuiux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions