--- name: paseo-alignfirst-workspace description: Register or archive an AlignFirst workspace or an existing worktree as a Paseo workspace. Read it before creating or removing any workspace or worktree when the session runs inside Paseo. license: CC0 1.0 compatibility: Requires the Paseo CLI and Git. metadata: author: Paleo version: "0.3.4" repository: https://github.com/paleo/alignfirst --- # Paseo AlignFirst Workspace ## Prerequisites First, you need: - an existing workspace or worktree with its branch. Follow the usual procedure. If you don't know, do not invent, ask the user. - the current Paseo project ID (use `paseo project ls --json` if you don't have it). ## Register a worktree as a Paseo workspace ```sh paseo workspace create \ --isolation=local \ --project "" \ --path="" \ --title="" ``` Keep the `=` characters. The `local` value for isolation is correct for an existing worktree. Replace the placeholders with the actual values. ## Archive a Paseo workspace Before removing a workspace or worktree, archive the workspace in Paseo: `paseo workspace ls --json` lists the workspace IDs. Then: ```sh paseo workspace archive ``` Archiving keeps a registered worktree on disk. Remove it afterwards through the usual procedure.