For Your Engineer
Guardrails & Roles
Agents build in isolated sandboxes and submit pull requests. Your team controls merge permissions and can explicitly enable auto-merge. Use roles and tool allowlists to control access.
Agent boundaries
- Task agents work on
ls/*branches and submit pull requests. Auto-merge requires authorization and still respects repository and review gates. - Agents work in isolated cloud VMs. Active tasks keep their sandboxes; Done or orphaned sandboxes older than seven days become eligible for cleanup.
- The stack determines which connected GitHub, GitLab, or Bitbucket repositories agents can read and write.
Permission modes
| Mode | Used by | What it can do |
|---|---|---|
| Read-only | Chat, Slack bot, planning wizard, task generation | Read files, search, walk git history, call MCP tools. Cannot edit files, push, or open PRs. Can propose tasks, skills, and automations for a human to accept. |
| Write | Agent launched on tasks | Edit files, run commands, commit, and open pull requests inside an isolated sandbox
on an isolated ls/* branch. |
Tool allowlists
Use the admin-only Guardrails tab to set the tool allowlist for read-only agents. The default preset includes standard read tools and MCP tools marked read-only. Admins can narrow either set with a custom list.
On non-Claude models, the runtime rejects calls outside the allowlist. On Claude models, it enforces only the block on file-writing tools. Claude read-only sessions cannot edit files, but narrowing the read-tool list has no effect and every attached MCP tool remains available. The Guardrails tab also explains this limit.
Workspace roles
| Role | Merge? | Setup & guardrails? | Recommended for |
|---|---|---|---|
| Owner / Admin | Yes | Yes | The setup engineer (+ one backup admin) |
| Member | Yes | No | Engineers |
| Member (No Merge Permission) | No | No | Designers, PMs, new teammates |
Setup, guardrails, integrations, and MCP require an admin. Appoint a second admin so someone else can repair a preview when the first is unavailable.
Rules for a stack
Owners and admins open Workspace Settings to Role permissions and choose a Stack. Configure Ask before opening a pull request and Require a review agent before merging for roles or named members, then Save changes. A required review can also need a fresh result after new commits. See Review & Merge.
When a workspace runs one policy across all stacks, this section is Merge policy instead. Set Review agent, blocking findings, New commits, and Ask before PR for Everybody, a role, or a person. The most specific review agent setting wins; blocking findings combine across scopes. See Merge policy.
Gates and approvals (beta)
Enable Approvals under User Settings to Beta to show the Approvals page and Workspace Settings to Gates. Owners and admins create gates with + New gate. Choose approvers, the number of votes, expiry, and whether access covers a Single request or a Time window. Self-approval is off by default.
A gate applies only to resources attached to it. Check Used by in its settings. Creating a gate alone does not protect a tool. Available resource bindings depend on workspace support.
Approvers inspect the request and choose Approve once, Approve for window, or Deny, as the gate allows. In-app notifications are always on. Slack and Teams notifications need linked accounts. Email notifications need a verified Gleamrun email address. A pending request pauses the agent until a decision arrives. A grant must still be valid when the protected action runs.
Cost controls
- Per-task budget cap (default $500, configurable per stack): the agent stops when it reaches the cap.
- Every run is attributable: who launched it, on which task, with which model.
Sanitization & audit
- User input is sanitized before reaching agents to blunt prompt-injection attempts.
- Every run is traceable: tool calls, messages, and session IDs.
- The audit trail covers agent activity inside Gleamrun. It does not provide a SIEM feed for your GitHub organization.
At a glance
| Guardrail | Default | Configurable? |
|---|---|---|
| Write mode ships via PRs only | Always on | No |
| Read-only tool allowlist | Standard preset | Yes, per stack, for native and MCP tools (enforced on non-Claude models) |
| Sandbox isolation | Always on | Sandbox configuration per stack |
| Per-task budget cap | $500 | Yes, per stack |
| Input sanitization & audit logging | Always on | No |