Docs

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?

  1. Create the Workspace. In the web app, select New workspace. Over MCP, call create_workspace. From the CLI, run plori workspace create <name> --idempotency-key <key>.
  2. Send the task. In the web app, type it in the conversation. Over MCP, call send_workspace_message with workspace_id and message.
  3. Wait for the run to end. Over MCP, when the status is running, call get_run_result with workspace_id and run_id after poll_after_seconds. When the status is awaiting_input, open approve_url in the web app to approve, or call answer_pending_input to answer a question.
  4. Check that Plori saved the files: file_source.state is ready and the result has no save_failure. A completed run alone does not show that Plori saved the files.
  5. Read the files. In the web app, open Files. Over MCP, call read_workspace_file with workspace_id and path.

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.

  1. Open the Workspace page.
  2. Select Share.
  3. Enter the person's email address.
  4. Choose Can view or Can edit.
  5. 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.

Shared Workspace permissions by role. Owner has full control. Can edit runs tasks, starts workers, and reviews changesets. Can view reads files, runs, and published sites.Shared Workspace permissions by role. Owner has full control. Can edit runs tasks, starts workers, and reviews changesets. Can view reads files, runs, and published sites.
Shared Workspace permissions across Owner, Can edit, and Can view roles.
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

Isolated copies
Workspace files
Current revision: rev-10
Manager forks copies for Worker A & B
Parallel workers
Worker A · copy rev-10
Worker B · copy rev-10
Merge & changeset
Waiting for worker saves

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.

How Plori runs parallel workers on isolated copies of a Workspace, saves revisions under /workspace, and merges finished work.

Start workers from an MCP client

The CLI guide gives the matching CLI commands.

  1. Call create_workspace_worker with workspace_id, task, and a new idempotency_key. Repeat this step for each worker.
  2. Call get_workspace_worker to check the run and its saved files. A ready save alone does not mean the changes are in the Workspace files.
  3. Check landing.outcome on get_workspace_worker. landed or resolved means the changes are in the Workspace files. If the resolver needs a decision, call get_workspace_changeset.
  4. Read the combined files with read_workspace_file and workspace_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, call submit_workspace_changeset again.
  • 409 workspace_changeset_unresolved: comparison is incomplete or has conflicts. Check landing.outcome and 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 returns upload_url and a curl command. Replace LOCAL_FILE with 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_id to read current files.
  • Pass saved_revision_id from get_workspace_worker to read one worker's files.
  • Pass incoming_revision or result_revision from get_workspace_changeset to 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_tokens on create_workspace_worker or send_workspace_message sets 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_costs returns the charged amount (null means 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_reached until running work ends.
  • Deletion: delete_workspace returns 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.