Workspaces
Send a task to a Workspace, run several agents at once and merge their changes, read saved versions of the files, and see what is kept between runs.
Plori runs AI agents in cloud Workspaces. Give an agent a task and keep its files for the next run.
A Workspace holds one project's files, saved versions of those files, a conversation,
and run history. Use it from the web app, the plori CLI, the
MCP server, or the REST API.
How do I send a task to a Workspace?
- Create the Workspace. In the web app, select New workspace. Over MCP, call
create_workspace. From the CLI, runplori workspace create <name> --idempotency-key <key>. - Send the task. In the web app, type it in the conversation. Over MCP, call
send_workspace_messagewithworkspace_idandmessage. - Wait for the run to end. Over MCP, when the status is
running, callget_run_resultwithworkspace_idandrun_idafterpoll_after_seconds. When the status isawaiting_input, openapprove_urlin the web app to approve, or callanswer_pending_inputto answer a question. - Check that Plori saved the files:
file_source.stateisreadyand the result has nosave_failure. A completed run alone does not show that Plori saved the files. - Read the files. In the web app, open Files. Over MCP, call
read_workspace_filewithworkspace_idandpath.
Share a Workspace
Only the account owner can share a Workspace. Members use their own login, API keys, and OAuth sessions. Chat channel Workspaces stay private.
- Open the Workspace page.
- Select Share.
- Enter the person's email address.
- Choose Can view or Can edit.
- Select Share.
Plori emails an invitation when the person is new to the account. They get access when they accept with that email address. The owner can also share a Workspace with the REST API.
| Action | Owner | Can edit (member) |
Can view (viewer) |
|---|---|---|---|
| Read files, runs, requests, schedules, programs, and open published site | Yes | Yes | Yes |
| Send tasks, create workers, and accept or reject changesets | Yes | Yes | No |
| Answer worker approvals and questions | Yes | Creator, or others after 30 min default timeout | No |
| Answer manager requests, standing grants, and secret cards | Yes | No | No |
| Upload files via MCP, edit schedules/programs/site, use port previews, change settings, or delete | Yes | No | No |
Workspace lists show the owning account and your role. An active member can create a
Workspace inside that account by passing the owner's user ID as account over MCP or
account_id in REST (Plori shares it with the creator as Can edit). Omit the
account ID to create a Workspace in your own account.
MCP clients cannot approve actions. Owners can set monthly spend caps in
Dashboard → Members. When a member hits the cap, new runs return 402 (a run
admitted below the cap can spend past it). Runs draw from the account's balance and
connections.
How do I run several agents at once?
Send the full task to the Workspace. Its manager gives separate parts to parallel workers, and each worker edits its own copy of the Workspace files. Workers started through the CLI, MCP, or REST follow the same rules. When capacity is busy, workers wait in a queue.
Interactive walkthrough · Workspaces
Each worker starts from its own copy of the current Workspace files
Send the full task to the Workspace manager, or start workers directly over MCP, CLI, or REST. Each worker copies the current Workspace revision into its own VM; when capacity is busy, workers wait in a queue.
Start workers from an MCP client
The CLI guide gives the matching CLI commands.
- Call
create_workspace_workerwithworkspace_id,task, and a newidempotency_key. Repeat this step for each worker. - Call
get_workspace_workerto check the run and its saved files. A ready save alone does not mean the changes are in the Workspace files. - Check
landing.outcomeonget_workspace_worker.landedorresolvedmeans the changes are in the Workspace files. If the resolver needs a decision, callget_workspace_changeset. - Read the combined files with
read_workspace_fileandworkspace_id.
Call get_run_result (using workspace_id and run_id) to read a worker's reply,
steer_workspace_worker to send a correction, or stop_workspace_task_group to stop
the workers.
Automatic merges and changesets
A finished worker's saved changes merge automatically when they edit at least one file, have no conflicts, the task group stays open, and the worker was not stopped. No setting turns this off. Conversation runs use their own copies, and Plori waits to merge while another run or file operation holds the root copy.
Overlapping edits go to the Workspace conflict resolver. A failed, stopped, or waiting
worker does not auto-merge, but keeps its saved revision for manual submission with
submit_workspace_changeset and worker_request_id (repeating the call returns the
existing changeset). A submitted changeset with no changes or with resolved conflicts
waits for review. A submitted changeset with clean changes auto-accepts.
In get_workspace_changeset, auto_accept is pending, accepted, or abandoned.
Calling accept_workspace_changeset on an accepted changeset returns its current view.
Merge refusal errors
409 current_revision_conflict: another merge finished first. For a manual submission, callsubmit_workspace_changesetagain.409 workspace_changeset_unresolved: comparison is incomplete or has conflicts. Checklanding.outcomeand open the changeset if the resolver needs a decision.409 workspace_changeset_busy: a run or file operation holds the Workspace. Retry after it ends.
How do I put a file into a Workspace?
In the web app, select the paperclip beside the message box to attach PDFs, images
(PNG, JPEG, WebP, or GIF), or UTF-8 text and code up to 8 MiB per file (CSV, Markdown,
JSON, and source code). Spreadsheets (.xlsx) and archives (.zip) require an MCP
upload.
When you send the message, Plori saves attachments under .plori/attachments and gives
the agent their paths. Stored names use a SHA-256 hash of the contents with .txt for
text/code, .pdf for PDFs, and .jpg for images converted to JPEG (for example,
data.csv becomes <sha256>.txt). The conversation shows original filenames for
text, code, and PDF files.
Upload over MCP
Call upload_workspace_file with workspace_id and path to upload any file type or
choose its path. If a file exists at path, the upload replaces it.
- For UTF-8 text of 262,144 bytes or less, pass
content. Plori saves the file in the current revision before returning. - For larger or binary files (up to 32 MiB), omit
content. The result returnsupload_urland acurlcommand. ReplaceLOCAL_FILEwith your file path and run the command within 10 minutes. The URL accepts one upload and needs no extra credential.
After upload, read_workspace_file reads the file immediately and new workers start
from that revision. Writes fail with 409 agent_busy while a run uses the Workspace.
Only the account owner can upload via MCP. Callers with Can edit or Can view
get 403.
Can I publish while an agent is running?
Yes. Publish saves the root working copy and publishes that saved revision while the agent keeps running. If storage is busy or unavailable, Publish returns an error so you can retry.
How do I read saved versions of the files?
Call read_workspace_file with workspace_id, path, and an optional revision_id:
- Omit
revision_idto read current files. - Pass
saved_revision_idfromget_workspace_workerto read one worker's files. - Pass
incoming_revisionorresult_revisionfromget_workspace_changesetto read files before or after a merge.
The call returns text files up to 262,144 bytes and refuses binary files with 415.
Download binary files from Files or the
REST API.
What is kept between runs?
Only files under /workspace persist. Software installed elsewhere and processes
started during a run are not kept.
Plori tries to save changed files every 60 seconds during a run and again when it ends.
Check file_source.state (runs) or save_state (workers) rather than elapsed time. If
a copy is lost, Plori restores the last saved version and writes after that save are
lost.
What are the limits?
- Tokens: registered accounts have no plan token limit. The credit balance and optional
member spend caps limit spend.
max_turn_tokensoncreate_workspace_workerorsend_workspace_messagesets an optional ceiling up to 5,000,000 for one run. A task group's token figure does not limit its workers. - Time: runs stop at their plan time limit or after 20 minutes with no progress. Plori saves the files and a new message continues the task.
- Workers: no plan caps concurrent workers. Extra workers queue when capacity is busy.
- Cost:
get_workspace_costsreturns the charged amount (nullmeans unknown, not zero). - Saved versions: at the version limit, Plori deletes the oldest unused saved versions.
When account storage is nearly full, Plori deletes all older unused saved versions. If
every slot is active, saves fail with
workspace_storage_limit_reacheduntil running work ends. - Deletion:
delete_workspacereturns a confirmation link. After the owner approves deletion in the web app, Plori deletes files and history in the background.
What about agents created before Workspaces?
Existing agent, run, and session IDs still work. Each legacy agent has its own Workspace. Deleting the agent also deletes its Workspace. Retire the agent instead to keep the Workspace.