Glossary

Agent workspace

A persistent, isolated environment where an AI agent keeps the files, notes, memory and tasks it works with across sessions.

An AI agent workspace is a persistent, isolated environment where an agent keeps everything it works with: files, notes, search indexes, memory, tasks and a record of what it did. The agent reads from it and writes to it through tools, and the workspace outlives any single session, so the next run starts where the last one finished.

What goes into an agent workspace

A workspace gathers state that would otherwise be scattered across several systems. The agent file system holds documents, uploads and agent artifacts such as reports or generated code. Agent memory holds facts and preferences learned from conversations. An agent scratchpad holds short-lived plans and to-do lists for the current run, while tasks, folders and tags give the content a structure that people and agents can both follow.

Together these make up the agent state that sits outside the model. The context window holds only what the model needs for the current step. The workspace holds the rest, ready to be searched and pulled back in when it becomes relevant.

Why agents need a workspace

Short tasks can run on context alone. Long-running agents and background agents cannot, because their work spans many sessions and nobody watches each step. Without a workspace, each run rediscovers the same sources, repeats the same mistakes and leaves nothing a person can review. The distinction is the one drawn in stateful vs stateless agents, where only the stateful kind can build on its earlier work.

A workspace also gives people something to inspect. When an agent acts only through chat, reviewing its work means reading transcripts. When it writes into a workspace, a person can open the folder, see what changed and correct it, which is a more practical form of human in the loop review than approving every step.

What makes a workspace production-ready

Isolation matters first. Each user, customer or project needs its own workspace, enforced by the storage layer rather than a filter in application code, so one agent cannot read another tenant’s data. Tenant isolation and multi-tenancy cover the patterns.

Search matters next. Agents describe what they need instead of remembering paths, so content should be indexed as it lands. File indexing and file metadata make files findable by meaning and filterable by kind, folder or date, and hybrid search handles both natural language questions and exact names.

Control and recovery come last. Agent permissions and least privilege limit which tools and resources an agent may touch. A filesystem snapshot, version history and soft delete make mistakes visible and reversible, which is the basis of agent rollback.

Agent workspace vs sandbox

An agent sandbox is an execution environment. It gives an agent somewhere to run code, and its disk is usually scratch space that disappears with the sandbox. A workspace is where durable results live. Many agents use both, running code in a sandbox and saving what matters to the workspace. Exabase vs E2B walks through that split, and best AI agent infrastructure covers the wider stack.

Agent workspaces in Exabase

In Exabase the workspace unit is a Base. Each Base is an isolated cloud filesystem with its own file storage, folders, tags, memory, search index, extraction pipeline and Workers, created with one call to the create Base endpoint. Passing the X-Exabase-Base-Id header scopes every later call to it, and the about Bases guide covers the details. Exabase also uses the word workspace for the top-level account container that holds your Bases. The free plan allows up to 100 Bases and paid plans up to 10,000, as listed on the pricing page.

Inside a Base, files, notes, bookmarks, audio and video are stored as Resources and indexed on creation, so an agent finds them through Deep Search. Memory keeps what the agent learns about each user in the same Base. Workers run inside a Base with built-in tools for searching, writing notes, organising folders and tags, managing tasks and keeping a scratchpad within a run, all listed in the Worker tools guide. Snapshotting can be turned on per Base on paid plans, and the workspace explorer in the Exabase console shows everything an agent has stored. Exabase provides the storage and context layer; your agent’s logic and runtime sit on top, wherever you host them.

FAQs

What is an AI agent workspace?

It is a persistent, isolated environment where an agent stores files, notes, memory and tasks across sessions. The agent works in it through tools, and people can inspect what it contains.

Is an agent workspace the same as an agent file system?

An agent file system is one part of a workspace. The workspace adds memory, search, tasks and access controls around the files, so the agent has what it needs in one scoped place.

Should each user get their own workspace?

Usually, yes. One workspace per user, customer or project keeps data separate and makes deletion simple. The multi-tenant solution and the multi-tenant SaaS use case show the pattern.

How is a workspace different from agent memory?

Memory holds facts and preferences extracted from conversations, while a workspace holds those alongside documents, outputs and tasks. Agent memory vs knowledge base covers a closely related distinction.

Can several agents share a workspace?

Yes, when they work on the same project. Shared workspaces need clear folder conventions and permissions so agents do not overwrite each other’s work, and the multi-agent coordination use case shows one approach.

How do you undo an agent’s changes to a workspace?

Record the workspace’s state over time so you can see and restore what changed. In Exabase, snapshots and the bin cover renamed, moved and deleted resources, and Agent undo describes the pattern.

Related pages: Agent file system, Agent scratchpad, Agent artifacts, File indexing, Agent state, Bases, Multi-tenant, Best file system for AI agents, Read-only agents are a dead end, Why we built Bases as filesystems, Agentic AI, AI agent, Agent orchestration.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.