Set rules for all your computers
Decide, rule by rule, what Scopebond stops before it happens and what it only records, for every agent at once, for one environment, or for one agent. Changes reach each connected computer within a few minutes of its next action. Only an owner or admin can change a rule; everyone in the workspace can see the settings.
What Block and Monitor mean
| Setting | What happens on the computer | What you see in the workspace |
|---|---|---|
| Block | The action is stopped before it runs, and the agent is told why | The action, marked Blocked |
| Monitor | The action runs | The action, with the rule it matched |
Always on: Scopebond's own protection. A coding agent can never change Scopebond's settings or your agents' hook settings, switch off the Scopebond Agent, or uninstall Scopebond, and nobody can relax this from the workspace.
Recorded only: some actions (for example, installing packages) are not yet reported separately by coding agents. They are recorded with the activity, but you cannot block them yet.
A new workspace starts with the starter protections on Block (a force-push to a protected branch, and reading a secret file); every other rule starts on Monitor: it records what it would have stopped and blocks nothing until you choose Block for it. A workspace created earlier keeps its settings; apply the Starter protections pack to turn them on. Until you change a rule here, each computer keeps its own rules. From Scopebond 0.18 those also start on Monitor, until someone at that computer runs npx -y @scopebond/hook@latest rules enforce <rule> (on Windows, scopebond-agent hook rules enforce <rule>). Connecting a computer does not change what it blocks.
Rules by target
The Rules page has one section for each thing an agent reaches, in this order: Source control, Build and release, Cloud and infrastructure, Databases, Packages, Network and data, MCP servers and Scopebond itself; Sections at the top jumps to each. MCP servers has no rule yet: permit or deny MCP servers under AI tool settings. Each rule shows its setting for the scope chosen at the top of the page and About this rule: what it protects, when the activity is legitimate, how detection works and its limits, how often it matched in the last 30 days, and its severity and Alerts and priority setting (owners and admins can change these for all computers). Five rules cover what an agent does through cloud, Kubernetes, database, deployment and secret tools:
- Delete cloud resources or Kubernetes objects (aws, gcloud, az, terraform destroy, wrangler, vercel, fly, kubectl, helm and others), and a
terraform apply -auto-approvewithout a saved plan outside development and staging. Running a command in a container and deleting pods outside a production context or namespace are recorded, not stopped; - Deploy to production. A deployment whose environment the command does not show is recorded, not stopped;
- Store or change a secret in a secret store, unless the command names a development or staging environment (the secret itself is never read);
- Change who can access what (roles, policies, users, groups and keys), unless the command names a development or staging account or project;
- Undo or reset a database migration (migrations that go up are recorded, not stopped).
They start on Monitor. Each carries a note: Needs the next Scopebond release on the computer; until then these actions are not matched to this rule until that release is out, then Needs Scopebond <version> or later on the computer. Until then you cannot set them. Computers on an older Scopebond never receive them, so nothing changes on those computers.
Scopebond also checks, once a day, the public packages your agents installed in the last 30 days against the public OSV advisory database and the npm registry, to find packages with a known advisory and packages published in the last seven days. Only packages installed from the public npm or PyPI registries are checked, and only their name and version are sent; a package from a private registry is never looked up. That list reaches your computers with the same release.
What it does not catch yet: for a long-established npm package (one whose registry record is larger than about 1 MB, which means many published versions), Scopebond does not check how new the installed version is. A newly published, hijacked version of a popular package is therefore not flagged as young; it is flagged once an advisory for it is published in OSV. Packages installed without a resolved version are not checked against OSV.
Change a rule
- Open Rules.
- Under Show settings for, at the top of the page, choose All computers, one environment, one team, one agent or one computer. Every section shows the settings for that choice.
- Tick the rules to change, then choose Block, Block, person may allow, Block, person may ask or Monitor. The change appears in the section of the last rule you ticked.
- For Contact websites and online services, list the sites your agents need before you choose Block (for example
api.github.com, *.npmjs.org). Everything else is stopped. - For branches and programs you can add to each computer's own list. You cannot remove entries from it here.
- Select Review change. The preview says what changes, how many connected computers it reaches, which narrower settings stay, and how often the rule matched in the last seven days.
- Select Apply. If your workspace requires a second person for changes to Block, the button reads Ask for approval, and another owner, admin or reviewer approves it under Waiting for approval on the Rules page or on Requests. If someone else decided a request first, the list reloads and says so.
If someone else changed the rules while you were looking at a preview, you see the updated preview instead. Check it and apply again.
In the three-tab workspace (v4), open Protection. Each rule has Monitor and Block; choosing one opens the rule with the change ready to confirm. How an action a rule blocks can be unblocked is one workspace setting, Settings → Workspace → Unblocking: No unblocking, Scopebond Admin unblocking (the Agent Owner asks from their computer and an owner or admin approves in Needs you) or Agent Owner unblocking (the Agent Owner unblocks it on their computer with a reason, at once, on the terms you set: how long it lasts and how many a day, each up to Unlimited). A rule can choose differently under Unblocking in its drawer, for example No unblocking for one rule that must never be unblocked. Set for an agent or group sets it for one agent or a group of agents instead of everyone (an agent's own setting wins, then its groups, then everyone). A change to Block that needs a second person waits in Overview → Needs you, where another owner, admin or reviewer approves or declines it after confirming; nobody approves their own.
Block one service
Services lists the MCP servers, hosts, programs and packages your agents used, per environment. An owner or admin can set one of them to Block in one environment: choose Block in its Rule column and confirm. Computers in that environment then stop every call to that MCP server, run of that program or install of that package before it happens, and record the block. For a host: Block stops the agent's web-fetch tool; commands like curl are recorded. It also stops gh api calls to that host that change something. In Activity such a record reads Blocked service. No allowance or override lets a blocked service through. Monitor, the default, only records its use. Databases and repositories are Recorded only: they cannot be blocked yet. If your workspace asks a second person to approve changes to Block, a service set to Block waits under Requests until another owner, admin or reviewer approves it.
Block reaches computers from the next Scopebond release. Until a computer runs it, a service set to Block is not blocked there: its use is still recorded, the row says Not on computers yet, and the Rules page shows that computer as Rules applied; blocked services reach it from the next Scopebond release. Select a service's name to see where it was used, its sessions, its newest records and who set its rule, and when.
Exceptions
A setting for one agent beats a setting for its team, which beats a setting for its environment, which beats a setting for all agents. A team setting reaches the agents the team owns (set on the Agents page), including agents given to the team later. A rule shows N exceptions differ when narrower settings disagree with the one you are looking at.
- A setting for an environment, team or agent is an exception: Scopebond asks Why is it needed?, who owns it, and whether it ends after 1, 7 or 30 days. When it ends, Scopebond removes it the same way a person would, and the wider setting applies again on each computer within a few minutes of its next activity.
- An exception that blocks Read passwords, keys or secrets or Change build and release settings can skip exact paths (a folder ends in
/**), and one that blocks Push straight to a protected branch can skip exact branch names. A skip matches exactly, same case, and never covers Scopebond's own settings. Computers apply skips from Scopebond 0.11.0 (the rule's row says so); until a computer is updated it keeps protecting those targets. - When you change a rule for all agents, an environment or a team, narrower settings are kept unless you tick Also replace different settings.
- To remove an exception, choose that environment, team or agent under Show settings for and select Use the wider setting.
See whether each computer has your rules
The line above the rules says how many computers have applied the latest version. Show computers lists each one:
| State | Meaning | What to do |
|---|---|---|
| Uses its own rules | You have not changed any rule for this computer's environment | Nothing |
| Applied | The computer confirmed it loaded exactly this version | Nothing |
| Applying | It will pick up the change on its next action | Nothing; it updates within a few minutes |
| Waiting for the computer | It has not been active for 15 minutes | It updates when it is next used |
| Needs a Scopebond update | It is active but runs a Scopebond version that cannot receive rules from the workspace | On that computer run npx -y @scopebond/hook@latest install on macOS or Linux, or scopebond-agent check on Windows (Scopebond for Windows updates itself; this updates it now) |
| Could not apply | The computer refused the version, with the reason shown | Its previous rules stay in force. Check the reason, then change the rule again |
To check right away on a computer instead of waiting, run npx -y @scopebond/hook@latest policy sync there. npx -y @scopebond/hook@latest status shows which rules are in force and when they were last checked. On Windows, Scopebond for Windows carries the hook: type scopebond-agent hook policy sync and scopebond-agent hook status.
A computer follows workspace rules only once a setting reaches it: a setting for all agents, for its environment or for its own agent. A change made for one agent leaves the other computers in its environment on their own rules, and they keep reading Uses its own rules.
Packs, other detections, blocked actions and AI tool settings
Below the rules, Packs and history holds the allowances in force, the starter and community packs and Recent changes. Other detections lists what Scopebond also looks for in your records beyond the rules, such as preview and planned detections and a blocked action no rule describes: each says what it watches, its limit, and that its coverage for your workspace is not proven. You do not set these here; once monitoring is on, a match raises a finding on the Requests page. Then Blocked actions sets who may allow a blocked action on the spot and on what terms. The last section, AI tool settings, keeps the permission rules and MCP server lists of Claude Code and the Cursor CLI on an environment's computers.
The old Library tab and its address open this page: what it explained is in each rule's About this rule, and the detections that are no rule are under Other detections.
Undo a change
Open Recent changes under Packs and history and select Restore this version next to the version you want. This creates a new version with those settings, so the history stays complete. Exceptions for single agents stay as they are now.
On the computer
While the workspace sets the rules, editing them on that computer (scopebond rules …) is refused with a message pointing here. If you disconnect the computer, or remove every rule change for its environment, it goes back to its own rules. A computer is never left without rules.
Removing Scopebond from a computer
The hook refuses a coding agent's attempt to remove Scopebond, and a removal made any other way raises the workspace's critical Scopebond removed alert (below). A person removes it from their own terminal, outside the agent, with npx -y @scopebond/hook@latest uninstall on macOS or Linux, or on Windows scopebond-agent uninstall (or Uninstall under Settings → Apps → Installed apps).
Before they do, an owner or admin opens the computer's page under Computers and selects Allow removal (24 h), or disconnects the computer. Otherwise the workspace sends a critical Scopebond removed alert to its alert channels.