Skip to content
Français

Choose where the agent works

Choose Git branches, directory copies or an empty workspace.

A workspace provides working files; a sandbox runs commands and agents. Choose the source according to the available files and how you want to collect changes.

SourceUseCollect changes
gitExisting repository, history and branchesRetain a branch or integrate its commits
directory with copyProcess a directory while keeping its source intactPublish selected files to a destination
directory with mountExpose the source under a declared subdirectoryWritable mounts change the source immediately
ephemeralStart with an empty rootPublish produced files or retain a snapshot

Existing Git calls keep their defaults. Use createWorkspace() to open a declared source, workspaceSource to let a wrapper allocate the resource, or workspace to borrow an already open resource. Fileless callbacks, decisions and JSON workflows use the workflow engine directly.

A workspace serves one sandbox at a time and can be reused after it closes. Close the sandbox before the workspace. A sandbox borrowing a workspace leaves its disposal to the caller; wrappers allocating their own resources manage their lifecycle. How it works explains this ownership.