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

Approvals

Agents never get a secret in their own shell. A command that needs a secret runs as an approved script: an agent writes it and a person approves it. Machine profiles also need approval before their setup runs on a machine. A project's secrets, their rules and its machine profiles are described in Environment.

Approved scripts

An agent submits a script with its body and everything the body uses:
  • the secrets it needs, by name;
  • typed inputs. Each input is one of a list of values or matches a narrow pattern, never free text, because input values reach a process that holds secrets;
  • the prompts it asks a person while it runs (a code, a password, a choice or a sign-in link);
  • the network destinations it reaches. These are shown to the approver, but GitSpace does not enforce them;
  • the machine profile it needs.
The request appears in Needs you for the people who can approve it, and on its own approval page. Approving takes your passkey. MCP clients approve through a confirmation page in the browser.
An agent submits as the person whose turn it is working in; a turn no person started, and a subagent, can't submit. The decision (approved, declined, changes asked, revoked) reaches the agent on its next request; it doesn't wake an idle agent.

Running a script

Agents run an approved script by name with their script tool, giving a value of the declared type for each input. The machine runs only the approved body, in the agent's working copy, and returns the exit code and the output with secret values redacted. When names collide, the agent's own script wins over the project's, which wins over the team's. A machine whose release can't run approved scripts, or can't relay their prompts, refuses with an update message.

The three scopes and who decides each

ScopeWho can use itWho approves it
For meAgents in workspaces the person holdsA holder of the workspace the script came from. A bot's script is approved by the bot's sponsor, into the bot's library
For the projectAgents in that projectThe project's Leads, and every Owner and Admin
For the teamAgents in every projectOwners and Admins
Bots never approve. The agent asks for a scope, and the approver can pick another scope their role lets them decide. Once a version is approved, its scope is fixed. Promote approves it for a wider scope. To narrow the scope, revoke the script and submit it again.

The secret rule

Nobody approves a script that uses a secret they couldn't use themselves. The check uses each secret's rule in the project the script came from. If a secret's rule refuses you, the approval card names that secret.
Each run checks secrets again, for the person the run acts as, in the project the run is in. A team script used in another project gets that project's secret of the same name, and only for someone that secret's rule allows.

A bot's own secrets

A bot's own secret can require its sponsor to approve each use. Each time the bot needs it (a command, an approved script run or an MCP connection), the sponsor gets a request in Needs you. Approving takes their passkey and covers that one use only. Denying takes a reason, which the bot's use fails with. A request nobody answers expires after an hour.

Forwarding

If a secret is the only thing stopping you, or you hold the workspace the script came from, choose Forward and pick from the people who could approve it. It then appears in their Needs you.

Versions and revoke

  • An approval covers the script's body and everything it declares. Changing any of them makes a new version, which needs approval again.
  • While a new version waits, the approved one stays in use. Editing a version that is still waiting replaces it.
  • When you approve a new version, Revoke version N when this is approved is ticked by default. If you untick it, both versions stay approved, and agents run the newest one unless they name another.
  • Revoke removes one version or the whole script and declines its waiting versions. You type the script's name and confirm with your passkey. Runs already going finish.
  • The owner (for a bot, its sponsor) revokes or edits a For-me script. For the project and team scopes, the people who decide that scope do.
  • Each script's page under Settings › Approved scripts or Settings › My approved scripts shows every version, who approved it, and its last 50 runs in the projects you can see.

What the approval does not cover

A script can run other files from the agent's working copy, and the agent can change those files. When a script does this, the card says so: approving it gives that code the script's secrets. Output is redacted for known secret values, as best it can be. Values derived from a secret are not caught.

Prompts while a script runs

When a script asks something, the run pauses. The holder answers a holder prompt (a bot's sponsor answers for the bot). Any project member or Owner can answer a project-wide prompt. Answers to codes and passwords take a passkey. The answer goes only to the script, never to the agent or the transcript. A decline, or 15 minutes with no answer, stops the run.

Machine profiles

A machine profile lists the checks, setup and teardown a kind of work needs. A profile's checks and setup run on a machine only for a version approved there.
  • Proposing: a Lead of any project proposes new profiles and new versions under Settings › Machine profiles. Owners and Admins approve them with a passkey, or decline them with a reason the proposer is told. A proposal made against an older version is approved against the current one. Approving a proposal also approves that version for team machines, and so does an Owner's or Admin's own save. Approve for team machines covers a version saved earlier.
  • Team machines run the version approved for team machines.
  • Personal machines: the machine's owner approves or declines each version on their machine, from Needs you or Settings › Machines. They are asked the first time a workspace needs the profile there, and again for each new version. Nobody else can approve a profile on someone's personal machine.
  • Declining: the owner of a personal machine can decline on it, and an Owner or Admin can decline a profile on any machine, with a one-line reason. Allow again lifts a decline on a team machine, with a passkey. A decline lasts across versions until someone allowed approves there again. Declining a profile that is already set up runs no teardown. A machine that hasn't approved a profile, or has declined it, is not ready for it, and GitSpace does not place that profile's work there.
When an approval lets a machine run a profile version, the setup that was waiting for it runs once. A refused run says who approves where.
Decisions are recorded in the audit log, except a personal machine owner's decisions about their own machine.