Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Core concepts

Account

A GitSpace account owns its people, devices, machines, projects, workspaces, settings, and product state. Each account has a permanent account handle (its <handle>.gitspace.sh address) and its own account Worker, relay endpoint, state, and storage.
The account root key is the authority that enrolls machines and browsers. The gsr_ recovery key is an encoding of that private root key.
An account can be one person or a team. Each person has an account role (Owner, Admin or Member) and a project role in each project they belong to, and every action records who did it. See Teams.
The sidebar belongs to the account, not to an agent session. Projects and Settings remain available when no agent or machine is running. Closing the last open project or workspace leaves the app open, with access to saved cloud records. The sidebar lists projects and their workspaces, filtered by All, Needs you, Running, Mine, Free, Review or Ship, and grouped by project, state or phase. The Board shows the same workspaces as cards in columns, by state, phase or project; its Needs you column is your inbox.

Browser device

A browser enrolls by signing in with a passkey, from a one-time invitation created by an authorized browser, or with your recovery key. It generates a non-extractable Ed25519 key in IndexedDB and signs RPC requests with that key. gitspace open opens the account URL; it does not create an invitation.
Passkeys are enrolled from a connected browser under Settings › Passkeys and devices. Besides signing in new browsers, a passkey confirms sensitive actions: enrolling or revoking passkeys, creating browser invitation links, opening or answering secure-input requests, approving scripts, and changing roles, secret rules or a project's base branch.
Browser grants are revocable. Enrolling a new browser does not require sharing another browser's private key.

Machine

A machine is a physical computer or a cloud machine that materializes checkouts and runs authorized effects. A physical machine runs the runtime started by gitspace machine start. Pi sessions and inference run in the cloud, not in a machine child process.
A machine is either personal or the team's. A personal machine joins only workspaces its owner holds and uses its owner's SSH key; a team machine joins any workspace and uses the team SSH key.
Machines expose capabilities such as available runtimes, isolation, hardware, services, and credential scopes. Placement uses those capabilities, and the project's approved machine profiles, to keep work on an eligible machine. GitSpace also reports machine state such as online, offline, starting, stopping, or error so the fleet view can direct attention.
Cloud machines are temporary. Stop saves supported workspace state before stopping; if saving fails, the machine stays online. Start runs a fresh machine environment and restores saved workspaces. Neither a new machine nor Start restores the old machine disk. Installed packages, machine-local configuration, ignored files, and other files outside GitSpace's checkpoints do not survive Stop or replacement. This includes arbitrary files in the machine's home directory.
Describe what a machine needs for a kind of work in a machine profile: its checks and setup script run on each machine where its version is approved. Projects that haven't moved to the Environment model still prepare machines from the repository's .gitspace/ lifecycle; see Workspace lifecycle.

Project

A project groups work for one or more repositories. It is the stable parent for their workspaces. A project with several repositories checks each one out in its own folder of every workspace; see Multi-repository projects.
A project's settings hold its members, repositories, inference profile, plugins, secrets, Environment and automations. Every project has a project agent, which works in the project's base workspace and can create, start and look after the project's workspaces.

Workspace

A workspace is an isolated, durable unit of change. Its cloud Durable Object owns Pi conversations, task state, questions, workspace documents, and the canonical working tree. Opening it in the app does not require a machine. Attaching a machine materializes an equal checkout cache; releasing that cache does not close the cloud conversation.
A completed checkout checkpoint saves supported Git state: the branch, commits, staged and unstaged tracked changes, and non-ignored untracked files. Cloudflare Artifacts stores code repositories. GitSpace's encrypted evidence manifests and blobs are a separate store, not repository branches or ArtifactFS mounts.
A checkpoint is not a backup of the whole machine. After unexpected disk loss, the last completed checkpoint limits checkout recovery; uncheckpointed files may be lost. Durable conversation state does not restore those files or prove that an interrupted machine effect finished. Automatic recovery from unclean disk loss and a returning-machine recovery ZIP are not implemented yet.
Workspace phases are:
PhasePurpose
planDefine intent, requirements, and approach.
codeImplement and verify the change.
reviewRead the diff, evidence, comments, and Change Guide.
shipRelease the work and watch its operational state.
Phases are lanes: they say where a workspace is. A person or its agent moves it. Moving a phase doesn't start, wait for or block on CI, and a CI result doesn't move a workspace.
A workspace can attach to eligible machines, with explicit placement for its checkouts and tasks. Each machine keeps an equal cache of the canonical cloud working tree, with one fenced writer for each admitted mutation. Runners use a recorded source commit rather than sharing a mutable filesystem. Losing a connection does not prove that an old command stopped, so unresolved effects must reconcile before they can safely repeat. A GitSpace workspace can also modify and release the account's own GitSpace code, subject to approval.
In a team, the handle says who drives a workspace: only its holders prompt its agent. Workspaces can be stacked in merge order; a workspace is never in a later phase than the one it is stacked on.

Public API authority

The browser, CLI, and MCP use the same exhaustive protocol authority map. Cloud operations never follow a legacy workspace holder or select an arbitrary online machine. Unknown or removed procedures are rejected rather than forwarded. Terminal calls and release builds require an explicit machineId; terminals additionally require that machine to be a ready cache of the named workspace. Environment runs and service actions are accepted by cloud authority and dispatch only to their explicit machine attachment.
Use runtime.session, runtime.watch, and Inspector conversation readers for cloud sessions and history. The legacy session.*, subagents.*, top-level transcript and event APIs, placements, browserRelay.*, workspace.setPhase, project.open, and space.close/space.reopen are removed. Change a phase through runtime.session; attach or release caches through runtime attachment APIs. Archive and restore remain durable project/workspace lifecycle operations.

Account releases

The account selects three active release targets independently: Worker, frontend, and machine. Updating one target keeps the others on their selected releases. Pi ships with the cloud runtime.
Machine updates drain and replace the machine process. An older native-v1 host needs the existing authenticated recovery/bootstrap path before it can accept native-v2. Selecting the new release does not make that predecessor capable of activating it.
Runtime releases carry an authenticated file inventory and compatibility requirements for the operating system, architecture, Bun version, and machine protocol. Activation checks the complete payload against its content hashes, including native modules. Replacement plans retain rollback state until all targets commit.
The account selects cloud images independently for each machine, plus a default for new machines. The platform supplies provider infrastructure; changing one machine's selected image does not update the others. An image supplies the operating system, tools, and initial runtime, so replacing it is separate from updating account code inside the running VM. Image replacement checkpoints the source, confirms it has stopped, and keeps admission closed until the replacement restores the previously open workspaces. Stopping a Cloudflare VM discards its ephemeral disk; status and checkpoint-control requests must not silently start a fresh VM.

Agent session

A Pi session belongs to a workspace's cloud runtime. The browser renders its conversations, tool results, questions, and task state. Inference and credential refresh can continue without an online machine; operations that need a checkout or process still need an authorized executor.
The live runtime view is bounded. It projects the newest 256 entries per conversation, active tasks, and the newest 128 terminal task records. Older durable entries and receipts remain stored; the live view is not a complete history export. Slow or stale subscribers reconnect for a fresh snapshot rather than growing an unbounded event queue.
Cloud recovery restores durable session state and reconciles pending work. It does not blindly replay an uncertain machine effect, turn a stored job into a live process, or answer a pending human question. Protected lifecycle terminal input and output remain outside agent-readable transcripts and general process logs.
Conversations from releases that ran OMP were converted once into Pi history entries, so they read like any other history. A saved checkpoint cannot recreate an old process.

Agent definitions

Keep repository agent files in .agents/agents/*.md. GitSpace also reads .omp/agents/*.md from existing projects. An agent's frontmatter name identifies it; without one, GitSpace uses the filename. When both directories define the same name, .agents/agents wins regardless of discovery order. Inspector > Agent setup shows the winning and ignored paths.
Agent setup reads committed repository definitions without an attached machine. Saving there keeps a revision-checked cloud override for that path, not a working-tree edit. Directory precedence still applies. The change affects future agent starts; existing subagents keep their retained definitions.

Inspector

Each workspace's Inspector has these tabs:
TabShows
GoalIntent and observable requirements, with their evidence.
Change GuideA reviewable explanation of the diff, with a narrated walkthrough.
RelationsWhat the workspace is stacked on, what is stacked on it, and its planning labels.
FilesThe repository, and comparisons against the base branch.
DriveFiles and proof produced by the work, at drive:// addresses.
BrowserThe workspace's agent browser and its captures.
ServicesRunning services and previews.
EnvironmentMachines, setup, values, browser access and signed callers.
Agent setupAgent definitions and which one wins.
SubagentsThe conversations the agents started.
UsageInference usage.
IssuesIssue topics from the project's Chatter.
JournalPhase narrative, decisions, and state snapshots.
Agents also keep a Workflow (the execution contract) and a Rubric (how the result will be judged) alongside the Goal. These records stay attached to the workspace instead of disappearing when an agent session ends.
Opening Inspector does not open a checkout or start a machine. It can read cloud records such as the Goal, journal, Change Guide, and drive files while machines are offline. Cloud conversations and committed repository reads do not depend on a live checkout.
Cloud working-tree reads, edits, repository comparisons, and ordinary Git operations do not require a machine. Hooks, rebase or conflict work, LFS restoration, initial private or large imports, terminals, processes, and services require an explicitly selected machine. Unpublished local cache edits are not silently substituted for cloud state.
Published encrypted drive:// files can be previewed or paged through Inspector resource readers without their originating session or machine. Machine-session artifact:// output spills are not retained cloud files; publish durable evidence to the drive before relying on a saved link. Resource reads preserve drive scope authorization and reject stale paging cursors when the content changes.