# Workspaces A session workspace identifies the directory where its work runs. The daemon represents it as a local path or an SSH location. [Worktrees](worktrees.md) are separate checkouts that can supply a workspace. ## Locations [`location.parse`](../src/albedo/harness/location.gleam) accepts local strings beginning with `/` or `~`, and remote locations of the form `[user@]host:/absolute/path`. Bracketed IPv6 addresses are supported. Remote paths are normalized lexically. This does not resolve filesystem links. User and host names must begin with a letter or digit. `location.workspace` validates an existing local directory when a session is created or moved. It resolves remote `~` through SSH, but accepts an absolute remote path without checking its existence at that point. A later operation can fail when the host or directory is unavailable. `location.exists` observes a local or remote folder without opening it. An unreachable host returns an error, not a missing-folder result. The remote probe and gather retain their separate time bounds. ## Linked workspaces [`links`](../src/albedo/harness/links.gleam) stores workspace group membership. Linked workspaces retain their own data while group readers can include the other members. Linking and unlinking are separate from creating a [worktree](worktrees.md). The links extension owns membership changes and session notifications. See its [service](../src/albedo/harness/extensions/links/service.gleam) and [ledger](../src/albedo/harness/extensions/links/ledger.gleam). Group reads also include managed worktrees of each origin, as `links.members` shows. ## Moving a session [`session_workspace`](../src/albedo/daemon/session_workspace.gleam) records workspace changes and tracks their application to family members. A session configuration change and its application are distinct outcomes. The [session configuration owner](../src/albedo/daemon/session_configuration.gleam) and [session workspace owner](../src/albedo/daemon/session_workspace.gleam) govern the persisted state. Moving a session between daemons is a separate transfer. [`transfers`](../src/albedo/daemon/transfers.gleam) owns export and import, and [`http_transfers`](../src/albedo/daemon/http_transfers.gleam) defines the HTTP routes. Transfer adapters declare which extension data travels. A transfer is not ongoing synchronization between the daemons. ## Browsing [`folders.directory`](../src/albedo/daemon/folders.gleam) returns a directory listing for the folder picker. The same module owns file reads and existence checks. Remote locations use the location and SSH handling in that module, so an unavailable host is a distinct failure from a missing local directory. ## Related pages - [All topics](README.md) - [Change guidance](contributing.md) - [Worktrees](worktrees.md) - [Session attachment](sessions.md)