From 37e5565243ffee98dc6cccf89096179c8b6db7ad Mon Sep 17 00:00:00 2001 From: Chris Krough <461869+ckrough@users.noreply.github.com> Date: Sat, 10 Jan 2026 15:58:26 -0500 Subject: [PATCH] feat: make TUI default when no subcommand provided Running `agentspaces` with no arguments now launches the TUI instead of showing help text. Help is still available via `agentspaces --help`. Closes agentspaces-jpu --- src/agentspaces/cli/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/agentspaces/cli/app.py b/src/agentspaces/cli/app.py index e213685..3945f6c 100644 --- a/src/agentspaces/cli/app.py +++ b/src/agentspaces/cli/app.py @@ -12,7 +12,7 @@ app = typer.Typer( name="agentspaces", help="Workspace orchestration tool for AI coding agents.", - no_args_is_help=True, + no_args_is_help=False, context_settings={"help_option_names": ["-h", "--help"]}, ) @@ -30,8 +30,9 @@ def version_callback(value: bool) -> None: raise typer.Exit() -@app.callback() +@app.callback(invoke_without_command=True) def main( + ctx: typer.Context, version: bool = typer.Option( # noqa: ARG001 - handled by callback None, "--version", @@ -53,3 +54,7 @@ def main( """ # Configure logging (debug only when verbose) configure_logging(debug=verbose) + + # Launch TUI if no subcommand provided + if ctx.invoked_subcommand is None: + tui.main(ctx)