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

Environment

Project settings › Environment describes how agents work on a project: what they read before every turn, which sites their browsers may use, the command environment, the routes other services may call, and the machine profiles the work needs. GitSpace keeps it, in numbered revisions, rather than the repository.
The page has these sections:
SectionHolds
ProposalsChanges waiting for a decision. Shown only while one is open.
Instructions"How to work on this project", in Markdown.
Browser originsThe sites the project's agent browsers may be approved for.
Command environmentPATH entries and plain environment variables for agent commands, services and terminals.
Signed callersRoutes of workspace services that webhook senders and apps may call with a credential.
Machine profilesThe machine profiles the project's work needs, and which machines are ready for them.
HistoryEvery saved revision, newest first, with declined proposals.
Approved scriptsScripts approved for this project. See Approvals.
Workspace setupHow the project's workspaces are set up today.
Browser origins, command environment, signed callers and machine profiles appear once a revision is saved. Until then, workspaces read them from the repository's .gitspace/ files. See What changes with the first revision.

Who edits

WhoCan
The project's Leads (any role with Edit project settings), and the team's Owners and Admins in every project, member or notEdit, Roll back, approve and decline proposals, and import
Anyone else with a role in the projectPropose a change
There are no team-wide Instructions: each project has its own.

Revisions

Every save, approved proposal and roll back makes a new numbered revision, a complete snapshot of the page. Editing has two steps: Write, then Save (or Propose). The second step shows a preview, the diff against the current revision, and a required What changed line that heads the revision in History.
A save made against an older revision is refused: start again from the current one.
History lists every revision with who saved it and how (saved, proposed, imported, roll back). View diff compares a revision with the one before. Roll back saves an older revision's contents as a new revision; nothing is deleted.

Proposals

A proposal goes to the Needs you of the project's Leads and the team's Owners and Admins, with Review. They Approve it, or Decline it with a reason that is recorded in History.
A proposal made against an older revision is never silently replacing the current one. Approving re-applies its change to the current revision, section by section, and shows the result. If the current revision changed the same lines, only Decline is offered: ask the proposer to propose again.

Instructions

Instructions are what agents read first in every conversation, before each repository's AGENTS.md, .agents/ and .omp/ instructions. Write how to run the app and the tests, where fixtures come from, and which approved scripts to use. They must start with a # heading. Name secrets (like DATABASE_URL); never paste their values. A line that looks like a secret value is refused, because every member reads the Instructions.
Besides the base text (up to 256 KiB), a revision can hold variants, each up to 32 KiB:
VariantApplies to
Project agent onlyThe project agent and its subagents.
Workspace agents onlyWorkspace agents and their subagents.
Phase: Plan, Phase: Code, Phase: Review, Phase: ShipWorkspace agents while the workspace is in that phase.

How agents receive them

A conversation's instructions are set on its first request, from the current revision, and stay the same for the rest of that conversation, through restarts and compactions. They hold the base text and the variant for the agent's kind.
  • A revision saved later reaches new conversations in full. A running conversation receives it once as an Instructions changed message with the revision's diff. A diff over 8 KiB is replaced by a pointer to the Environment page.
  • A workspace conversation receives a Phase: message, with that phase's variant, when it starts and whenever the workspace changes phase. The project agent receives none.
Personal preferences are separate: each person sets theirs under Settings › Agent preferences, and agents receive them on the turns that person starts.

Import from the repository

The first time someone with a role in the project opens the page, GitSpace reads the project's first repository at its base branch and proposes a revision from AGENTS.md, CLAUDE.md and .gitspace/: their text goes into the Instructions, and the bundle's browser origins, terminal section and service routes into the other sections. The proposal shows as Imported in History and is decided like any other.
Checks, setup scripts, values and secret names found there are listed as suggestions; nothing is made from them. Add machine profiles and secrets for them yourself. Cloud lifecycle scripts, profiles other than base, and repositories after the first are not imported.
GitSpace doesn't read the repository again on its own. Import from AGENTS.md or CLAUDE.md proposes a fresh import at any time, once the previous import's proposal is decided.

Browser origins

One host pattern per line: example.com, *.example.com or *. Declaring a site doesn't approve it. A person approves each site in the workspace's Inspector › Environment under Browser access, for the project or one workspace, at a level: Read, Interact or Full.

Command environment

PATH entries (one per line, relative to the workspace root or starting with ~/) lead PATH for agent bash commands, services and workspace terminals. Environment variables are plain NAME=value lines; never put a secret here. Once a project has a revision, its command environment replaces the repository's .gitspace/bundle.json terminal section.

Signed callers

One route per line: service port METHOD /path, with tokens at the end to also admit GitSpace-signed service tokens; for example api http POST /webhooks/*. The routes are approved by content in the workspace's Inspector › Environment under Signed callers, and credentials are registered as described in the signed callers reference. The services themselves are still declared in .gitspace/services.json.

Machine profiles

A machine profile describes what a machine needs for a kind of work, such as web, iOS or data work. Profiles are a team library under Settings › Machine profiles, in numbered versions. Each version has:
  • checks, each a command that exits 0 when its tool is present, with how to install it;
  • a setup script and a teardown script;
  • an optional cloud image, shown with the profile for cloud machines that already have everything.
Checks and setup get no secrets. Teardown scripts are stored but don't run yet.
A project's Environment names the profiles its work needs (Edit profiles, or Propose profiles). For each profile it shows the version, whether it is approved for team machines, and each machine's readiness. A machine is ready for a profile only where the current version is approved and its checks passed. A new version clears readiness until its checks run again.
Run setup and Run checks appear for a machine where the version is approved, the machine is online, and it isn't ready yet. GitSpace places a workspace's work only on machines where the profile isn't declined or undecided, and prefers machines ready for more of the project's profiles.
Who approves a profile version, and where, is in Approvals › Machine profiles.

Secrets

Secrets are set outside the Environment page:
WhereHolds
Settings › Secrets & valuesTeam secrets, managed by Owners and Admins.
Project settings › SecretsThe project's secrets, managed by roles with Add, rotate and replace project secrets.
Settings › My secretsYour own values for what your projects ask each holder for. Only you see them, and GitSpace uses them only in workspaces you hold, for your runs.
A bot's secrets, under Settings forThe bot's own secrets. See Bots.
Values are write-only: nobody sees a stored value, only its name, rule and use.

Rules

Each secret has a rule, changed with Edit rule in three steps, Who, Handle and delivery and Review, and saved with your passkey:
  • Who may use it, by account role and project role.
  • Only while holding the workspace, or for whoever holds it.
  • Delivery, how the value reaches work:
DeliveryWhat happens
Only to approved scriptsThe value goes only into an approved script's own process. The default for sensitive secrets.
Browser autofill on named sitesThe workspace's browser fills it on the HTTPS sites you list. The transcript reads that it was filled, without the value. Approved scripts get it too.
In a cleared shell, with a passkeyThe holder opens a cleared shell in the workspace's Inspector › Environment for 1 to 60 minutes with their passkey. During that time, the value is in the commands of the turns they start. Never for bots.
A bot's own secret can instead require its sponsor to approve each use. There is no network or proxy delivery.
Owners and Admins can Forbid shell delivery for any team or project secret. Team secrets' rules are edited by Owners and Admins; project secrets' rules by roles with Edit the rules of project secrets (Lead by default).
Known values of 8 characters or more are replaced with [redacted] in command output, as best it can be. Values derived from a secret are not caught.

What changes with the first revision

A project moves to the Environment model the first time a revision is saved or a proposal approved, including the import's. Declining the import doesn't move it. From then on, for its workspaces:
  • The repository's workspace/materialize, cloud/provision, workspace/dematerialize and cloud/destroy scripts no longer run. A request to run one is refused.
  • The repository's checks and machine/prepare scripts are replaced by the checks and setup of the project's machine profiles, which run only where their version is approved.
  • Browser origins, the command environment and signed-caller routes come from the revision, not .gitspace/bundle.json or .gitspace/services.json.
  • Anything that needs a secret runs as an approved script.
Services declared in .gitspace/services.json, browser-site, signed-caller and cleared-shell approvals, and workspace values keep working. A workspace that still holds live cloud resources recorded by cloud/provision keeps the repository's lifecycle until those resources are destroyed, so you can retire them with its cloud/destroy script.
Projects without a saved revision keep the repository's .gitspace/ lifecycle. See Workspace lifecycle and the lifecycle reference.