glossary · Running it

Agent git access

definition

Agent git access is the setting that decides whether an AI agent running unattended holds a git key and pushes its own work, or works on a prepared copy while the platform does every fetch and push for it.

in one line: Who pushes the work: the runner, or the agent itself.

in context

Where does agent git access fit?

Who does git with the remote. In ConvOps, by default the agent commits and the runner pushes. Full hands the agent the key.

Nonecommit only, runner pushes
Fullthe agent holds the key
Either waynothing left unpushed
Set per environment.
two ways to say it

What is agent git access, in plain words?

Same idea at two depths: the plain version, then what the engine actually does.

An agent with a git key can reach every repository the key reaches. Most work does not need that.

Choose per environment, and see which key the agent would hold before you save.

for engineers

agent_git: none (default) or full. Saving full returns warnings and agent_git_keys.

Under full the key sits outside the working copy, is masked, and is removed when the run ends.

the longer answer

Why does agent git access matter?

An agent that writes code has to get its work back into the repository. The simplest setup gives the agent a git key, but then the agent can reach every repository that key reaches, and a mistaken command touches the remote directly. The opposite setup keeps keys away from the agent and lets the platform move the work, which is safer but means the agent cannot fetch or merge mid-run.

Neither is right for every team. A review branch per task with no agent-held key suits most work. Some flows, such as an agent that must merge the latest base branch before it finishes, need the agent to do git itself.

in convops

How does agent git access work in ConvOps?

In ConvOps, agent git access is set per environment. Under none, the default, the agent commits on the copy ConvOps prepared, holds no git key, and the runner pushes the work to the task branch or a chosen branch when the run ends. Under full, the agent holds the environment's matched key and can fetch, merge and push its own work to the same destinations; the key sits outside the working copy, is masked in output and is removed when the run ends, and the runner still delivers anything left unpushed. Saving full returns a warning that names each key the agent will hold.

in depth

None or full: what changes?

The two settings differ in who holds the key and when git talks to the remote. Under none, git with the remote happens only before the run starts and after it ends, and the agent never holds a credential. Under full, the agent itself can talk to the remote while it works. In both, the destination of the work is set in the environment, never by the prompt, and an agent that rewrites its copy's remote address does not redirect the runner's own push.

Agent git access in ConvOps, side by side.
QuestionNone (the default)Full
Who holds the git key?Nobody inside the run: ConvOps prepares the copy and pushes itThe agent, with the environment's matched key, outside the working copy and masked
Who pushes?ConvOps, when the run endsThe agent, during the run; ConvOps still pushes anything left unpushed
Can the agent fetch or merge mid-run?NoYes, it fetches and merges the destination before it pushes
Where does the work land?The task branch, or the ref the environment namesThe same destinations, by the default rule
What can the key reach?Nothing, since the agent has noneEverything that key reaches, so prefer a repository key
in depth

Which setting fits which work?

Most work fits none. The agent writes and commits, a person or a review step reads the branch, and the platform moves the work. Full is for flows where the agent must do git itself mid-run, most often keeping its branch current with the base branch. ConvOps never merges the base branch into the task branch on the agent's behalf, so a run that needs that merge needs full.

The default rule given to the agent under full tells it to push only its own work to the same destinations, to fetch and merge first, and never to force-push, push another ref or delete a branch. You can replace that rule with your own text. Delivery to a ref never forces either: if the remote has moved on, the original tip goes to the task branch instead. Examples:

  1. Software delivery: each task gets its own review branch under none, and a reviewer reads it before anything is merged.
  2. Release work: a release step must merge the latest main into the task branch before it commits, so that environment uses full with a repository key.
  3. Enterprise monorepo: a repository with many submodules stays on none, and ConvOps pushes each changed submodule to the address it had when the run was prepared, or only checks that each submodule commit is already on its remote, for teams that push submodules themselves.
  4. Several repositories in one run: an environment can let one run push work to more than one repository, each to its own configured destination.
in depth

What does least privilege mean for coding agents?

Least privilege for an agent means the same as for a person: the narrowest key, for the shortest time, to the fewest places. A key scoped to one repository is better than an account key that reaches every repository. Branch protection on the git host still applies to anything the agent pushes. And the destination of the work should come from configuration the agent cannot edit, not from instructions it reads.

In ConvOps, a git access can use a generated ed25519 SSH key, whose private half is never shown, or your own key or token, at account or repository level. Replacing a generated key returns the previous fingerprint, so you can remove the old key from the git host. Under full, the key sits outside the working copy, is masked in output and is removed when the run ends, and saving full returns a warning naming each key the agent will hold. Isolated runs execute as non-root under the Kubernetes restricted Pod Security profile.

questions

What do people ask about agent git access?

What is agent git access in ConvOps?

Agent git access in ConvOps is a per-environment setting that decides who talks to the git remote during an unattended run. Under none, the default, the agent commits on a prepared copy and ConvOps pushes when the run ends. Under full, the agent holds the environment's matched key and fetches, merges and pushes its own work.

Does the agent push its own code?

Only when you choose it. In ConvOps the default is none: the agent commits and the runner pushes when the run ends. Under full the agent pushes its own work to the same destinations, after fetching and merging, and the runner still delivers anything left unpushed. Saving full returns a warning naming each key the agent will hold.

Where does the pushed work land?

On the task branch, or on the ref the environment names, never on a destination chosen by the prompt. In ConvOps, delivery to a ref never forces: if the remote has moved on, the original tip goes to the task branch instead. An agent that rewrites its copy's remote address does not redirect the runner's push.

Can an agent with no key still fetch mid-run?

No. In ConvOps, under none the agent holds no git credential, so all git with the remote happens before the run starts and after it ends. A flow that must fetch or merge the base branch mid-run, such as a release merge, needs full. ConvOps never merges the base branch into the task branch on the agent's behalf.

What can an agent reach with full git access?

Every repository the environment's matched key reaches, so an account key reaches the whole account. In ConvOps, prefer a repository key for full. The key sits outside the working copy, is masked in output and is removed when the run ends, and saving full returns a warning that names each key the agent will hold.

Who should pick full git access over none?

Platform and security owners who decide how much an unattended agent may touch the git remote. ConvOps sets it per environment: none, the default, suits most teams because the agent holds no key and the runner pushes, while full suits trusted environments where the agent must fetch or push during the run.