Since we launched remote MCP, we’ve been building ways to govern what AI agents do in Octopus. We’ve just added AI agent controls for runbooks. Until now, an agent could run any runbook its user has permission to run. That’s fine for a runbook that backs up a database, but not for one that can overwrite your production data. Now you can decide which runbooks agents get to run, and check what they did.
What you can control
Block agents from a specific runbook
Each runbook now has an AI agent access setting. Set it to AI agents can’t run this runbook and Octopus rejects any run an agent starts. Your team can still run it as before. Use it on runbooks that can cause data loss or an outage, like “Restore database”.
Require a human in the loop
Some runbooks you’d want agents to reach for, but not finish on their own. Manual interventions now have a Block AI agents option. When an agent starts a “Rebuild indexes” runbook, the run stops at the manual intervention step and waits. The agent can’t sign off on its own work, so an engineer reviews the run and decides whether to continue. The agent does the investigating and a person makes the call. You can set the step to pause only agent runs, so it doesn’t slow your team down. This option works in deployment processes too.
Change what happens when an agent runs
Runbook runs and deployments now have an Octopus.Deployment.CreatedBy.ActorType variable, set to Agent when an agent starts them. Use it in a step’s run condition, for example, to post a different Slack message when an agent runs the runbook.
Choose the right level for each runbook
| Level | Example | Control |
|---|---|---|
| Agents run it freely | Backup database | None, the default |
| A human in the loop | Rebuild indexes | Manual intervention with Block AI agents |
| People only | Restore database | AI agent access: AI agents can’t run this runbook |
Enforce these settings with policies
These settings live on each runbook. To apply them to every runbook run in an environment, across all spaces, use a Platform Hub policy. For example:
- Agents can’t run runbooks in production at all.
- Agents can’t run runbooks in production without a manual intervention.
A policy only checks that the manual intervention is in place. Select Block AI agents on the step too, so only a person can act on it.
Agent checks use the Actor input. These conditions block a run when an agent started it:
package block_agent_runbook_runs
default result := {"allowed": true}
result := {
"allowed": false,
"action": "block",
"reason": "Ask a person to run this runbook.",
} if {
input.Actor.Type == "Agent"
}
You also add a scope that picks the runbook and environment. The policy examples have both parts for each policy.
See what agents did
Runs started by an AI agent now show an AI agent badge next to Run by. Select AI runs only to see those runs. The audit log, audit exports, and the audit stream mark agent actions too. In the audit log, select AI events only to see those events.
Where these controls apply
These controls apply to runs started with AI agent credentials, such as an AI agent API key or a remote MCP sign-in with OAuth. If an agent uses a person’s API key, Octopus treats its actions as that person’s, not an agent’s.
These controls are guardrails, not security boundaries. An agent that can edit runbooks could remove the manual intervention step or copy a blocked runbook. If your agents must never run a runbook, it’s safer to remove their permissions to edit runbooks and triggers.
Get started
These controls are available now on Octopus Cloud, and are coming to Octopus Server in 2027.0. If you let agents run runbooks, or plan to, the restricting AI agents docs walk through each control.
To limit what an agent can do in the first place, give it an AI agent API key with only the access it needs. We’d love to hear which AI controls you’d want next, so share your feedback.
Happy deployments!


