From 561aaac4f60908f3b32e20590b9482bd73dafb09 Mon Sep 17 00:00:00 2001 From: Chris Krough <461869+ckrough@users.noreply.github.com> Date: Sun, 21 Dec 2025 16:56:27 -0500 Subject: [PATCH] fix: don't pass purpose as prompt when using workspace create --launch The --launch flag was passing the workspace purpose as a prompt to Claude Code even without --use-purpose. This was inconsistent with `agent launch` which correctly requires explicit --use-purpose flag. Users who want purpose as prompt should use: agentspaces agent launch --use-purpose --- src/agentspaces/cli/workspace.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/agentspaces/cli/workspace.py b/src/agentspaces/cli/workspace.py index fd9abaa..163bd5e 100644 --- a/src/agentspaces/cli/workspace.py +++ b/src/agentspaces/cli/workspace.py @@ -124,7 +124,7 @@ def create( # If --launch flag is set, launch agent; otherwise show next steps if launch: - _launch_agent_in_workspace(workspace.name, workspace.path, purpose) + _launch_agent_in_workspace(workspace.name, workspace.path) else: print_next_steps( workspace_name=workspace.name, @@ -133,15 +133,12 @@ def create( ) -def _launch_agent_in_workspace( - workspace_name: str, workspace_path: Path, purpose: str | None -) -> None: +def _launch_agent_in_workspace(workspace_name: str, workspace_path: Path) -> None: """Launch Claude Code agent in a newly created workspace. Args: workspace_name: Name of the workspace. workspace_path: Path to the workspace directory. - purpose: Optional workspace purpose to use as prompt. """ print_info(f"Launching Claude Code in '{workspace_name}'...") @@ -150,7 +147,6 @@ def _launch_agent_in_workspace( result = launcher.launch_claude( workspace_name, cwd=workspace_path, - prompt=purpose, ) if result.exit_code == 0: