Guide

Seven questions to ask
before an agent touches your repo.

An autonomous coding agent needs repository access, network access and a model key. Those are real grants and they deserve a real review. The risk worth worrying about is not that an agent writes bad code, because review catches that. It is unbounded reach and behaviour nobody can reconstruct afterwards. Here is what a defensible answer to each question looks like.

The review

Seven questions, and what a good answer sounds like

Ask these of any autonomous coding agent, including ours.

1. Where does the code actually run?
A disposable container per attempt, destroyed at the end of the run, or a long-lived machine that accumulates state between tasks? The second is a shared environment where one task’s leftovers become the next task’s starting conditions. Ask what survives a run, and the honest answer should be nothing but the diff.
2. What can it reach on the network?
The safe shape is a network with no route off the host plus one proxy that allows a named list of hosts, where everything else is refused and logged. Check the matcher too: a proxy that allows anything ending in a permitted string will happily allow a lookalike domain that merely ends the same way.
3. Where does the model key live?
Not in a command line, not in a file inside the container, not in a queue payload, and not in any log. Passing it by name so the value is read from the parent process environment is the shape you want. Ask specifically whether the containers that run verification get a key at all. They should not.
4. Who approves the plan?
A plan a human reads and approves before any code is written is the cheapest control point in the whole loop, because it catches a misunderstanding before it becomes a diff. Being able to edit the plan and have the edit actually bind the run matters more than being able to reject it.
5. What happens when it is unsure?
Ambiguity should be a stop condition, not a coin flip. The behaviour you want is a specific question with a citation, and a hold until somebody answers. Confidence without evidence is how agents break production, and it is the failure mode that looks most like success right up until it does not.
6. How is a passing result earned?
Checks should run against a clean copy of the base commit with only the change applied, in an environment holding no credentials. A run with no runnable check should fail rather than pass, and a model grading its own work should never be able to turn a failure into a success.
7. What does the audit trail actually contain?
Every tool call, every file touched, every escalation and every check, appended in order and redacted before storage. When somebody asks what the agent did on the fourteenth, the answer should be a record rather than a reconstruction.
Containment

Five bounds worth insisting on

Isolation decides what an agent can reach. These decide how far a bad run can get before something stops it.

01
Bound the blast radius by path

Allow and deny lists over repository paths, enforced inside the sandbox on every write and on push, with deny winning over allow. A blocked write should raise an answerable question rather than failing the whole run, and the hold should fail closed if nobody answers.

02
Bound the spend before it starts

Each run reserves a budget up front and stops at the ceiling. A runaway loop should become a paused run and a notification, never a surprise invoice.

03
Bound the retries

A fixed, small number of attempts, with a clear distinction between retrying because infrastructure failed and retrying because the work was wrong. Detect the case where consecutive attempts produce nearly the same diff and stop rather than burning the budget on it.

04
Keep the merge decision human

The agent opens or updates a pull request and stops. Answering review comments is reasonable; merging is not. This one line is what makes the rest of the model reviewable by a security team.

05
Scope the credentials to the task

An agent working on one project should authenticate with a credential scoped to that project, not a company-wide key that happens to be convenient. Scope belongs on the credential, never on a parameter a caller can set.

Questions

What security reviewers ask

Is it safe to let an AI agent open pull requests on my repository?

It is, if three things hold: the code runs in a disposable sandbox with no route off the host except an allowlisted proxy, the agent cannot merge, and every action is recorded in an audit trail you can read afterwards. The risk is not that an agent writes bad code, since review catches that. It is unbounded reach and unreviewable behaviour.

What network access does an autonomous coding agent need?

In practice: the model provider, a package registry, and the service that briefs it. That is a short enough list to be an allowlist rather than a policy. Everything else should be refused and logged, and the host matcher should require a real suffix match so a lookalike domain cannot slip past.

How do I stop an agent touching files it should not?

Path-level allow and deny rules enforced inside the sandbox on every write tool and on push, with deny taking precedence. Importantly, a blocked write should pause and ask rather than failing the run, and the pause should fail closed when nobody answers.

How do I know a passing run really passed?

Ask where the checks ran. A verdict is only meaningful if the checks ran on a clean copy of the base commit with only the change applied, in an environment with no credentials, and if a run with zero runnable checks counts as a failure. A model reviewing its own output is an opinion, not a verdict.

Should an agent ever merge its own pull request?

No. An agent should open or update a pull request and stop. It can answer review comments on its own pull request, but the merge decision should always be a human one.

Does it need my source code uploaded anywhere?

No. Decispher stores decisions, reasoning and pointers to files, and never clones your repository. Your agents keep working in your own checkout, and only the record they read comes from Decispher.

Give every agent the rules before it opens a pull request.

Decispher serves your team's decisions and constraints to every coding agent before it writes, and flags pull requests that contradict them. Nothing merges without your review.

Read the setup guideSee how it works