Skip to main content
Back

Workspaces

PilotDeck Agent Series

WorkSpace is the basic unit for organizing project work in PilotDeck. It is centered on the working directory and links sessions, file operations, project memory and project expansion. Each project has its own work context, so the agent can understand the project in a continuous dialogue and reuse existing experience between different tasks.

1. Workspace Concept​

Selecting a project directory determines the execution location of the Agent and the project file entry. File operations are based on this directory and follow permission rules to access projects and additional authorized paths.

Multiple sessions can be created in a WorkSpace: they hold conversation and execution state separately, while using the same project's files and long-term memory. For example, feature development and documentation maintenance can occur in separate sessions, sharing project context and confirmed commitments.

2. Project Identity and Working Directory​

PilotDeck uses the real path to the project to identify the WorkSpace, separating the interface display name from the storage identity. The directory name is convenient for display, and the path is used to accurately locate the project; directories with the same name will be distinguished by path information to prevent historical sessions from being mistakenly classified into another project.

The execution directory is responsible for locating files and running commands, and the data directory is responsible for saving sessions and auxiliary records. The two are organized separately, allowing you to simultaneously switch task contexts when switching projects and retain their respective histories.

3. Data Organization​

Project files remain in the original working directory. Running data such as session records and file history are managed by PilotDeck's data directory; long-term memory is organized by workspace, and user portraits that can be reused across projects are retained globally.

dataOrganization scopefunction
project filesworking directorySave source code, documentation and work artifacts
Conversation recordWorkSpace/SessionSave messages, execution results, usage and session metadata
File history and subtask recordsWorkSpacePreserve file changes and child agent execution information
Project and feedback memoryWorkSpacePreserve project status, decision-making and feedback rules
User portraitoverall situationReuse stable user context and preferences

Conversations are persisted as JSONL for easy appending and restoring in execution order. Directory tags in the project store record the real path and are used to correlate historical data back to the corresponding working directory.

4. Session Management​

A session is a unit within a WorkSpace that continuously advances tasks. New sessions start in the project context, and historical sessions restore existing messages and settings. Closing a running session releases runtime resources, and saved conversation records remain available for subsequent opening.

4.1 Session Life Cycle​

The session is idle while waiting for input; it enters the running state after receiving the request and continues to output text and tool progress. After normal completion, it returns to the idle state. If it is canceled or fails to execute, the corresponding results will be recorded. The user can continue the task in the same session or create a new session to work on another goal.

4.2 Session Recovery​

When you open a historical session, the system restores messages, session settings, and control boundaries from persistent records. For compressed history, restore the most recent valid compressed snapshot and continue subsequent records, allowing new requests to start from a context that can continue execution.

Session recovery retains the task history; whether the command or file operation has taken effect will be based on the status in the actual working directory. Subsequent tasks still read the current environment through the tool and continue processing.

4.3 Dialogue and Execution Records​

Transcript records user input, model messages, tool results, task status, file artifacts, and final results by execution. Compression boundaries are also saved along with session metadata, allowing live execution and historical recovery to use a consistent recording basis.

Larger tool results can be dropped independently and have references saved in the context. This not only retains the original information that can be read, but also controls the input size of subsequent model requests.

5. Configuration and Project Expansion​

Running parameters such as model, routing and Memory are determined by the currently loaded pilotdeck.yaml management. The default configuration is located at <PilotHome>/pilotdeck.yaml, or via startup parameters or PILOTDECK_CONFIG_PATH Specify the configuration file.

Project-specific capabilities are placed in the working directory .pilotdeck/ Below, load together with global capabilities:

Plain Text
<project-root>/.pilotdeck/
├── plugins/ # Project plugin
├── skills/ # project skills
└── mcp.json # Project MCP connection

A project-level MCP's server with the same name overrides the global setting. Project extensions are selected with the working directory, and run parameters are uniformly provided by the selected YAML configuration.

6. Multi-Project and General​

Manage multiple WorkSpaces via project and historical session lists on web and desktop. When switching projects, the execution directory, session and project memory are loaded according to the selected project; user portraits that are common across projects continue to be reused.

General provides an independent working directory for tasks that are not tied to a specific project. Used by default on the web side ~/general, can also be passed WORKSPACES_ROOT Adjust. Its execution directory and PilotDeck data directory are managed separately.

The memory retrieval of the normal WorkSpace revolves around the current project; the General can select relevant project memories from known workspaces based on the task. This allows project knowledge to be continuously accumulated within the project and provides context for cross-project tasks when needed.

Developer Showcase

View all →