Skip to content

[Feature]: Create folder workspaces from the CLI (and mobile) #38112

Open

Description

@taehyeok-enhans

Problem or use case

Folder workspaces can only be created from the desktop sidebar (+ on a project group header → "Create Folder Workspace"). There is no way to create one from the CLI or from Orca Mobile:

  • orca worktree create always makes a Git checkout, so it cannot add a folder workspace to a project group.
  • Project groups do not appear in orca project list or orca repo list, so the CLI cannot discover the group to create into. The only place I found its id was the ORCA_PROJECT_GROUP_ID environment variable inside an existing folder workspace terminal.
  • The runtime already exposes folderWorkspace.create over RPC (src/main/runtime/rpc/methods/folder-workspace.ts, params FolderWorkspaceCreate: projectGroupId, name, ...), and agent.launch can already target create-folder-workspace since feat(agent-launch): create a folder workspace and start its agent in one host operation #26083, but no CLI command calls either.
  • Mobile's Create Workspace modes (Smart, GitHub, Linear, GitLab, Branch, Name) all create Git worktrees, so a project group made of several repos has no create path on the phone either.

My setup: a parent folder with several separate Git repos, imported as one project group. Each task gets its own folder workspace at the parent level. When an agent (or I, from the phone) wants to start a new task, it has to stop and ask me to click the + in the desktop sidebar.

Proposed solution

Expose the existing create path in the CLI, for example:

orca folder-workspace create --project-group <id|name|current> --name <name> [--reference <url-or-jira-key>...] [--agent <id> --prompt <text>] [--json]

or let orca worktree create accept a project group target and create a folder workspace there. current would resolve to the project group of the calling folder workspace, like --parent-worktree active does for worktrees. With --agent, this could go through the create-folder-workspace target of agent.launch.

It would also help if orca project list (or a new orca project-group list) listed project groups with their ids.

Alternatives or additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions