Copilot Has the Tightest Default Guardrails of Four Agents

Copilot's cloud agent is the default for GitHub shops: it pushes only to its own branch and cannot approve or merge. Codex is the second choice, Devin fits teams that need a single-tenant VPC, and Jules shuts down on December 31, 2026.

By Rajesh Beri·December 5, 2026·16 min read
Share:
A row of four server cabinets in a dim data-centre aisle, three with blinking status lights and network cables running into one shared patch panel where several ports are capped, the fourth cabinet dark with a padlock on

Illustration generated using AI

If your code lives on GitHub, make the Copilot cloud agent your default background coding agent and run Codex cloud as the second option for teams already on ChatGPT Enterprise. Buy Devin only when you need a single-tenant deployment, and do not start anything new on Jules. Google announced on October 29, 2026 that Jules will wind down on December 31, 2026, and the service turned read-only after November 11.

The seat prices are close enough that they should not decide this. The four products differ in where the agent runs, who controls its network, which secrets reach it, and whether it can push anything a human has not approved. Copilot is the only one whose documentation enforces all of that by default. Every price and control below was checked on the vendor's live pages on December 6, 2026.

GitHub Copilot cloud agent OpenAI Codex cloud Devin (Cognition) Google Jules
Where it runs Ephemeral GitHub Actions runner, or a GitHub cloud sandbox OpenAI-hosted VM per task Cognition multi-tenant cloud, or a single-tenant VPC Short-lived Google VM per task
Network default Firewall on, recommended allowlist on Per-environment setting; admin "Manage Networking" policy Internet access "strongly recommended"; no customer egress policy documented Internet access; no egress controls documented
Can it approve or merge its own PR? No, and the requester cannot approve it either Merge not documented; a person opens the PR Human actions in Devin Review, but its GitHub docs describe Devin merging; branch protection only recommended Not documented
Secrets in the agent run Agents secrets only; COPILOT_MCP_ values go to MCP servers only Proxy substitutes network secrets; agent sees a placeholder Bound as environment variables when needed; any Member can edit org secrets by default Repo env vars available for the whole task
Seat price Business $19, Enterprise $39 per seat per month Business $20 per user per month (annual); Enterprise via sales Teams $80 per month pooled; Enterprise via sales Free, or bundled with Google AI Pro / Ultra
Verdict Default Second choice Only for VPC needs Do not adopt

Where Does Each Background Coding Agent Run, and Who Controls Its Network?

A background coding agent is an AI agent that takes a ticket, works in a remote environment with no developer watching, and returns a branch or pull request. The environment it works in decides most of your risk, because that is where your code, your dependencies and your secrets meet a model that reads untrusted text.

Copilot cloud agent runs in what GitHub calls an "ephemeral development environment" on a standard GitHub Actions runner by default, or in a GitHub-hosted cloud sandbox. An Actions session has a hard 59-minute limit that "cannot be extended or bypassed". Its internet access is "limited by a firewall" by default, and a recommended allowlist for package registries is also on by default, per GitHub's firewall page. Organisation owners can force the firewall on and turn off repository-level custom rules. The same page lists the limits: the firewall covers processes started through the agent's Bash tool, "does not apply directly to other MCP servers," and "Sophisticated attacks may bypass the firewall." It is also incompatible with self-hosted runners, which means you have to disable it to run the agent on your own runners.

Codex cloud runs each task in its own OpenAI-hosted VM, per the cloud environments guide. Network access is set per environment: full public internet, a package-manager preset, or extra allowed domains. The older Codex cloud guide states that "By default, Codex blocks internet access during the agent phase" while setup scripts keep internet access to install dependencies. The current guide does not restate that default, so check it in your own workspace. What admins do have is an Agent Security policy with a Manage Networking switch, per-domain Allow and Deny entries, and an "Only allow domains added by admins" setting that stops users widening the list.

Devin offers two deployments. Enterprise Cloud is "Hosted by Cognition in multi-tenant cloud," and Customer Dedicated is a single-tenant VPC that Cognition hosts, connected to your network over AWS PrivateLink or IPSec. In both, the planning "brain" stays in Cognition's cloud. Cognition's GitHub integration docs publish shared egress IPs for allowlisting on your side, and its deployment overview says granting the workspace internet access is "strongly recommended." We found no page describing an egress policy you set on Devin's side. Ask for one in writing before a security review.

Jules runs each task in a "secure, short-lived virtual machine" that clones the repo, and its FAQ says that VM has internet access. No egress control appears in its documentation.

Can the Agent Approve or Merge Its Own Pull Request?

Only GitHub documents a hard no. The Copilot cloud agent risks page says the agent creates a copilot/ branch "and the agent can only push to that branch," it "cannot mark its pull requests as 'Ready for review' and cannot approve or merge a pull request," and the developer who asked for the work is prevented from approving it. Only users with write access can assign it work. Branch protections and required checks still apply, and by default Actions workflows on its pull requests do not run until someone with write access clicks "Approve and run workflows."

That last default is the one to leave alone. GitHub's agent settings page warns that letting workflows run without approval "may allow unreviewed code written by Copilot to gain write access to your repository or access your GitHub Actions secrets." Teams switch it off because the approval click slows CI. Keep it on.

Codex cloud puts a person in the loop at a different point. Its cloud overview describes reviewing the diff and then choosing to "commit or open a pull request when you're ready." OpenAI's pages do not list the GitHub connector's permission scopes or say anything about merging, so the guarantee you get comes from your own branch protection, not from the product. Codex's separate GitHub code review posts "a standard GitHub code review" and flags "only P0 and P1 issues."

Devin's GitHub app asks for read and write on contents, pull requests, workflows, commit statuses and repository creation, per Cognition's permission list. Write access to workflows means a Devin branch can change the CI that is supposed to check it. Approving and merging are human actions in Devin Review, and its beta Autoapprover "does not merge PRs itself." It can approve, though, so a team that turns it on has an AI approving AI code. The GitHub integration page only recommends branch protection, and its wording assumes Devin merges: "We recommend enabling branch protection rules on your main branch to ensure all required checks pass before Devin can merge changes." We did not find a statement on whether Devin can push straight to a default branch that has none.

Jules opens pull requests, and since February 2026 it fixes CI failures on PRs it created. It offers a "User only" authorship mode in which "Jules applies its changes under your identity." That mode makes an agent's commit indistinguishable from yours in the log, so an auditor cannot tell them apart.

For the merge policy itself, separate the vendor that wrote the code from the one that reviews it. We covered why in the 208,145-PR reviewer independence analysis.


Which Secrets Reach the Sandbox?

Copilot and Codex keep raw secrets away from the agent by design. Devin injects them on demand, and Jules gives the agent its environment variables for the whole task.

  • Copilot has its own "Agents" secret type and "does not have access to GitHub Actions, Codespaces, or Dependabot secrets and variables". Agents secrets become environment variables, except those prefixed COPILOT_MCP_, which only MCP servers can read.
  • Codex passes plain environment variables straight to programs. For network secrets, programs get "a placeholder; the proxy substitutes the real value for allowed destinations" over HTTPS on port 443, per the cloud environments guide. A prompt-injected agent cannot print a token it never held.
  • Devin encrypts secrets at rest and "binds secrets as environment variables whenever needed", scoped to the org, a repo or a session. Two defaults need changing: the Member role includes "Manage secrets," so every member can edit org secrets, and "Require approval before each use" is off.
  • Jules stores repository-level environment variables, which the agent can use for the full task, per its changelog. Its October export tool writes them to a local env-variables.json that "contains your environment variable values."

Our earlier piece on ZCode uploading whole git histories shows what an agent with open egress and a real credential can do in one session.

Which Admin Controls Exist Today?

Codex and Devin have the most identity and role tooling, Copilot inherits GitHub's, and Jules has none. Where we could not find a control, the table says so rather than assuming it exists.

Control Copilot cloud agent Codex cloud Devin Jules
Off until an admin enables it Subject to org and enterprise policy Yes, Codex Cloud is off by default for Enterprise Repos granted per org or repo No admin layer
Roles Repo write access gates assignment "Use Codex in the cloud" permission, custom roles SCIM and RBAC on Enterprise None
SSO Via your GitHub organisation ChatGPT workspace sign-in SAML/OIDC on Teams Personal Google account
Audit trail Session logs and audit log events Compliance API Not found for the cloud product Not documented
Retention Chat data 28 days on Actions sessions Not stated in the docs we read "duration of the customer relationship" Not stated
Repo scope One repo per Actions task Per environment All or selected repos All or selected repos

Sources: OpenAI's admin rollout guide and roles page (the rollout guide says "Codex Cloud is off by default for Enterprise workspaces"); the Compliance API page; Devin's pricing page for Teams SSO; Cognition's enterprise security page, which also states "Cognition has been SOC 2 Type II certified since September 2024"; and GitHub's cloud agent overview for retention. Jules' usage limits page says paid plans are "currently available only for individual Google Accounts (ending in @gmail.com)," which rules it out for a managed workforce on its own.

Two gaps to raise in procurement: ask OpenAI for the retention period and zero-data-retention status of Codex cloud tasks, and ask Cognition whether audit logs exist for the hosted product.


What Does a Merged Pull Request Cost?

Cost per merged PR is the agent's spend on all attempts divided by the pull requests that were merged, and on public numbers it is roughly $0.73 on Codex and $1.51 on Copilot for a mid-sized task. Devin's cannot be calculated from its public pages. Seat price is the wrong unit because a PR that never merges still burns tokens and a reviewer's time.

The workload we used: one agent task that reads 1.5 million cached input tokens, writes 100,000 fresh input tokens and produces 25,000 output tokens, on a mid-tier model. We priced that task at $0.65 on Copilot and $0.60 on Codex in November. The inputs still hold: one Copilot AI credit is $0.01 and token rates are per million; Codex's rate card still charges GPT-6.2 Sol 50 credits per million input and 250 per million output tokens, and OpenAI does not publish a dollar value per credit, so the Codex figure rests on CloudZero's estimate of about four cents.

Divide by the merge rate. A large-scale study of failed agent PRs, Ehsani et al. on 33,596 PRs, measured 82.59% merged for Codex, 53.76% for Devin and 43.04% for Copilot, against 71.48% across all agents.

Task cost Merge rate Cost per merged PR (tokens only)
Codex cloud $0.60 82.59% $0.73
Copilot cloud agent $0.65 43.04% $1.51
Devin Not published 53.76% Cannot be computed
Jules Not sold to businesses Not studied Not applicable

Four caveats keep this from being a ranking. The study was published in January 2026, so its merge rates predate today's models. The workflows differ: a person opens each Codex cloud PR after reading the diff, while Copilot opens its own, so part of Codex's lead is a human filter applied before the PR exists. A second paper on 9,428 agent PRs in 489 Python repositories also put Codex near the top and Devin at the bottom, but its raw counts give Copilot about 69%, so Copilot's figure moves a lot between samples. And neither number includes compute: Copilot's Actions sessions draw on your Actions minutes, separate from AI credits, while Codex cloud tasks "may consume more allowance than local messages," per OpenAI's pricing docs.

Devin is the one you cannot price in advance. Teams costs $80 a month added to a credit pool shared by up to 100 members, and Enterprise ACUs are "billed ... as stated in their order form". An ACU accrues on "the work Devin actually performs in a session," per its usage docs. Devin Review draws from the same pool, and its review size labels run from extra-small (2.25 ACUs or less per PR) to extra-large (above 18).

On any loaded salary, the half hour a senior engineer spends on a rejected PR costs more than every token in this table, so raise the merge rate before you negotiate the token rate.

Which Backlog Tasks Do Background Agents Finish Reliably?

Agents merge most often on documentation, CI and build changes, and least often on performance work and fixes. In the Ehsani study, documentation PRs merged 84% of the time, CI 79% and build 74%, while fixes merged at 64% and performance at 55%. The 489-repository paper found the same pattern: workflow, CI and build, dependency and licence changes merged at 80% or better, while LLM integration and model evaluation work had lower or fluctuating merge ratios.

Why the rest fail matters more for your reviewers. Of 562 rejected PRs the Ehsani team coded by hand, 228 were abandoned by reviewers, 142 were duplicates and 99 failed CI or tests. Only 19 were rejected for an incorrect implementation. Each additional failed CI check lowered the odds of a merge by about 15%, and rejected PRs were larger and touched more files.

So the reviewer time goes to PRs nobody asked for, PRs that repeat another one, and red builds, more than to wrong code. Three routing rules follow:

  1. Point background agents at dependency bumps, CI fixes, lint and type errors, documentation and test gaps first.
  2. Assign each ticket to one agent once. Duplicates were the second-largest cause of rejection.
  3. Close any agent PR that is red after its own CI retry, without review.

Harvard's study with Jellyfish found agents lifted pull requests 35.7% and moved the bottleneck to review. Zalando saw agent PRs get bigger as it auto-approved a third of them. Plan review capacity before you widen the task list.


Who Should Not Pick Each Agent

Copilot cloud agent is wrong for code that is not on GitHub, since only GitHub-hosted repositories are supported. It also does not fit teams that must run agents on self-hosted runners and keep the firewall, because the two are incompatible, or teams whose typical task runs past 59 minutes on Actions. Its 43% merge rate in the Ehsani study is the steel-man against it: if your pilot reproduces that, the guardrails are protecting you from PRs you will close anyway.

Codex cloud is wrong for organisations on self-hosted GitHub Enterprise Server, which cloud environments do not support, and for anyone who needs a documented retention period for task data before signing, since we could not find one. It is a strong pick for an existing ChatGPT Enterprise estate, where seats are already paid for and it had the highest merge rate in the Ehsani study and in the second paper's raw counts.

Devin is wrong for a buyer who needs a cost forecast before the contract, since Enterprise ACU pricing is unpublished, and for any team without someone to harden its defaults: member-editable secrets, write access to workflows and branch protection left to you. Pick it when you need the planner's VMs in a single-tenant VPC with tenant-specific egress IPs.

Jules is wrong for everyone starting today. It is winding down, its paid tiers are only for @gmail.com accounts, and it has no admin layer. Google points Jules users to Antigravity, which we found lacked SOC 2 and ISO 27001 in November. Export your Jules settings and move the scheduled tasks before December 31.

The Decision: What Predicts Regret

Most regret with background agents comes from defaults nobody changed: workflows set to run without approval, org secrets that every member can edit, an agent allowed to approve PRs, and egress left fully open because a dependency install failed once.

Three things would change our ranking. If OpenAI documents Codex cloud retention and the GitHub connector's scopes, Codex becomes the default for ChatGPT shops, because it merged best in both studies, though a person screens each Codex PR before it opens. If Cognition publishes an ACU price and a customer-set egress policy, Devin moves up for teams that want the VPC. If your Copilot pilot merges well under half of its PRs on your own repositories, keep Copilot for guardrails and route the harder tickets to Codex.

This Week:

  1. Confirm "Require approval for workflow runs" is on in every repository where the Copilot cloud agent is enabled.
  2. Remove "Manage secrets" from Devin's Member role and turn on "Require approval before each use."
  3. Export Jules settings and environment variables, then rotate every value in that export.

This Month:

  1. Set Codex's Agent Security to "Only allow domains added by admins" and enforce Copilot's firewall at the organisation level.
  2. Add a branch ruleset requiring one human approval from someone other than the requester on every agent branch.

Before Q1 Close:

  1. Run a four-week pilot on dependency, CI and documentation tickets, and report cost per merged PR, duplicate rate and reviewer minutes per agent.
  2. Put retention, audit log and egress questions to OpenAI and Cognition in writing, and make the answers contract terms.

Continue Reading

Share:

Frequently Asked Questions

Can the GitHub Copilot cloud agent merge its own pull requests?

No. GitHub's docs say the cloud agent pushes only to its own copilot/ branch, cannot mark its PR ready for review, and cannot approve or merge. The developer who asked for the work is also blocked from approving it, and Actions workflows on its PRs wait for approval by default.

Is Google Jules shutting down?

Yes. Google announced on October 29, 2026 that Jules will wind down on December 31, 2026, and the service turned read-only after November 11. Google points users to Antigravity and offers an export of settings, environment variables and scheduled tasks.

Does Codex cloud have internet access during a task?

Network access is set per environment: full internet, a package-manager preset, or extra allowed domains. OpenAI's older guide says internet is blocked by default during the agent phase. Admins can enforce an allowlist with the Agent Security Manage Networking policy.

How much does Devin cost for an enterprise?

Cognition does not publish it. As of December 6, 2026, Devin Teams is $80 a month added to a credit pool shared by up to 100 members, and Enterprise ACUs are billed as stated in each customer's order form.

Which tasks do background coding agents finish most reliably?

Documentation, CI and build changes. In a study of 33,596 agent pull requests, documentation merged 84% of the time, CI 79% and build 74%, against 55% for performance work. Most rejections came from abandoned or duplicate PRs and failed CI.

From the editor

Kurbos: see every agent, govern every action

Finds the AI agents your company runs, gives each an owner and scoped access, and keeps the audit trail. Or start with the free field guide to the agentic attack surface.

Disclosure: Kurbos is built by the editor of this site. Directory entry

Newsletter

More on Developer Tools, every Sunday

The week's enterprise AI news, Developer Tools included, in one Sunday email.

Weekly, free. Unsubscribe any time. Privacy

Latest Articles

View All →