← Guides
23 November 2026 · Junaid Khalid · 17 min read

AI Agent Governance: A Practical Guide for Teams Running Coding Agents

AI agent governance is the set of rules and controls that decide which agents may run, what each one may touch, which actions need a person's sign-off, and what record every action leaves behind. For engineering teams it comes down to five things: agent identity, scoped permissions, approval points, an audit trail, and a way to stop or revoke an agent.

Most guides on this topic are written for IT and compliance teams buying a platform. This one is for teams whose developers already run Claude Code, OpenAI Codex or Cursor every day, with the exact config behind eight controls and what we learned from 792 agent sessions on our own tracker.

Key takeaways

What is AI agent governance?

AI agent governance is how an organization controls what autonomous AI agents are allowed to do, who answers for them, and how their actions are recorded and reviewed. It applies the ideas of access control and change management to software that plans, calls tools and changes systems on its own.

The difference from general AI governance is the object being governed. Model governance asks whether outputs are accurate, fair and safe. Agent governance asks what happens when an agent acts. Shelf's framework guide puts the line well:

"Data governance asks whether the knowledge is accurate; agent governance asks what happens when the agent acts on it." (Shelf, AI Agent Governance: A Framework for Enterprise)

For a team of developers, the acting agent is usually a coding agent with shell access, repository write access and a set of Model Context Protocol (MCP) servers. That is where governance has to start.

Why do coding agents need their own governance?

Coding agents need their own governance because they hold real credentials and run commands without a person reading each step. A single session can edit files, run tests, push a branch and call your tracker, cloud and database through MCP, often while the developer works on something else.

An agent started from a developer's terminal can usually reach whatever that developer can. Claude Code subagents and Codex tasks run in parallel, each making its own tool calls. And instructions in a prompt can be overridden by injected text in a file or web page, which is why Microsoft's Agent Governance Toolkit README says:

"Prompt-level safety ('please follow the rules') is not a control surface. It is a polite request to a stochastic system." (microsoft/agent-governance-toolkit)

In practice that means putting the rules in configuration the agent cannot edit.

What are the core components of an AI agent governance framework?

An AI agent governance framework has five working parts: an identity for every agent, permission boundaries, approval points for risky actions, an evidence trail, and a stop and revoke path. Each part covers a gap the others leave open, so a framework missing one of them fails in a predictable place.

Component Question it answers Fails without it
Identity and ownership Which agent did this, launched by whom, on which model? Incidents end at "an agent did it"
Permission boundaries What may this agent read, write and run? Agents act with the launcher's full access
Approval points Which actions wait for a person? Risky changes ship unreviewed
Evidence trail What did it change, and how do we know it finished? Audits become reconstructions from chat logs
Stop and revoke How do we halt a session or pull access today? A misbehaving agent keeps running

For the approval layer in depth, including where to place human checkpoints, see our guide to human in the loop AI. For tracing what agents do at runtime, see AI agent observability. This page covers the policy and accountability layer that sits above both.

Which governance controls should you put on coding agents?

Put eight controls in place, in this order: a register, scoped identities, deny rules, blocked bypass modes, approval rules, sandboxing, an evidence requirement, and a revoke path. Each one has a concrete setting in today's tools and leaves a record you can check later.

Control What it stops How to implement it (as of November) Evidence it leaves
Agent register Unknown agents running against prod One row per agent: owner, model, scopes, MCP servers The register itself, reviewed monthly
Scoped identity Five agents sharing one key Separate tokens or service accounts per agent and per person Every action tied to one identity
Deny rules Reads of secrets, force pushes, destructive commands Claude Code permissions.deny; Codex read-only or workspace-write sandbox Blocked calls in the session transcript
Block bypass modes Developers turning all prompts off Claude Code disableBypassPermissionsMode in managed settings Policy file under version control
Approval rules Risky changes without sign-off Claude Code ask rules; Codex on-request approvals Approval prompts and answers
Sandbox and network Exfiltration and surprise installs Codex workspace-write keeps network off by default Network denials in logs
Proof to close "Done" with nothing shipped Tracker rule: close only with a PR, commit or report Link or report on every closed ticket
Stop and revoke A runaway or compromised session Kill the session, rotate the token, remove the MCP server Token rotation log, ticket note

Two details from Claude Code's permissions documentation shape how you write these rules. First, rules run in a fixed order: "Rules are evaluated in order: deny, then ask, then allow." A narrow allow rule cannot carve an exception out of a broad deny. Second, settings delivered as managed settings sit at the top of the precedence order, so a developer's local file cannot loosen them.

On the Codex side, OpenAI's approvals and security page documents the sandbox modes (read-only, workspace-write) and approval policies. In the default workspace-write mode, network access stays off unless you enable it, and Codex asks before editing files outside the workspace.

Copy this: Claude Code managed settings baseline

Deploy this as managed-settings.json (or as server-managed settings from the claude.ai console) so it applies to every developer. Adjust the commands to your stack. For per-project rules and prompts, see how to set up approval gates.

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(./secrets/**)",
      "Bash(git push --force *)",
      "Bash(git push * --force*)",
      "Bash(git push * -f)",
      "Bash(rm -rf *)",
      "Bash(terraform apply *)"
    ],
    "ask": [
      "Bash(git push *)",
      "Bash(npm publish *)",
      "mcp__github__merge_pull_request"
    ],
    "allow": [
      "Bash(npm run test *)",
      "Bash(npm run lint *)",
      "Bash(git status)",
      "Bash(git diff *)"
    ],
    "disableBypassPermissionsMode": "disable"
  }
}

Read it top down the way Claude Code does: deny wins, then ask, then allow. The MCP rule uses the mcp__<server>__<tool> naming from the same docs page; replace it with the tools your servers expose. Rules match the command text, so git -C . push slips past Bash(git push *). Protect the main branch on the server as well; a pattern is not a wall.

For Codex, the shared-repo baseline is two lines in config.toml, sandbox_mode = "workspace-write" and approval_policy = "on-request", with network left off. Our human in the loop guide walks through the full approval setup. Enterprise admins can pin these values through Codex managed configuration.

How do you give every agent an identity and an owner?

Give every agent an entry in a register, a credential of its own, and a named human owner who approves its permissions. The test is simple: for any action in your logs, you should be able to say which agent took it, on which model, launched by which person, and under which policy.

Shared credentials break this. The Microsoft toolkit README names the failure: "five agents might share a single API key. When something goes wrong, 'an agent did it' is not an incident response." The same applies to MCP. The MCP authorization spec is built on OAuth 2.1 but states that authorization is optional for implementations, so check what each server you connect actually enforces.

Copy this: agent register columns

Paste these headers into a sheet or a CSV and fill one row per agent or recurring job:

agent_id,display_name,owner,launched_by,client,model,repos,mcp_servers,permission_profile,can_push,can_deploy,needs_approval_for,credential_ref,last_reviewed,status

Subagents need a line in your policy even if they do not get their own row. Decide whether a subagent inherits the parent's permissions (Claude Code subagents can be given their own tool lists) and whether its work is logged under the parent's identity.

Who should approve what an agent does?

A human should approve any agent action that is hard to undo, touches customers or money, or changes production. Everything else should run without a prompt, because approval fatigue is a governance failure of its own: people who see fifty prompts a day start clicking yes.

A workable split for a software team:

Scope each agent's task tightly so these calls stay rare; our AI agent orchestration guide covers how.

What evidence should agent work leave?

Every piece of agent work should leave five things: the identity that did it, the time spent, the files and commits it touched, the decisions it made, and proof that the result exists. With those, an audit is a lookup rather than an investigation.

Shelf's guide frames the compliance test as being able to prove, months later, what the agent decided, on what basis, and who approved the limits of its authority. Session transcripts alone rarely meet that test: they are long, scattered across laptops and deleted on a schedule. A ticket that holds the trail is easier to search and keep.

Copy this: pre-merge checklist for agent PRs

Which frameworks and regulations apply to AI agents?

Customers and auditors usually ask about four things: the NIST AI Risk Management Framework, the EU AI Act, ISO/IEC 42001 and OWASP's list of agentic risks. None targets coding agents, but a one-page mapping from your controls to them answers most security questionnaires.

Framework What it is What it asks of agent users
NIST AI RMF Voluntary US framework released January 26, 2023, with a Generative AI Profile (NIST AI 600-1) from July 2024 Organize risk work under its Govern, Map, Measure and Manage functions
EU AI Act, Article 14 Binding EU regulation; Article 14 covers human oversight of high-risk systems High-risk systems must be "effectively overseen by natural persons", who can intervene or interrupt them
ISO/IEC 42001 Certifiable management system standard for AI A documented AI management system with roles, risk assessment and review
OWASP Top 10 for Agentic Applications Peer-reviewed list of the main security risks in agentic systems, published December 9, 2025 Threat-model your agents against the listed risks

A coding agent that edits your own repo is usually outside the EU AI Act's high-risk list in Annex III. Article 14's two ideas, a person who can step in and a way to stop the system, are still cheap to adopt. For open research questions, read the Institute for AI Policy and Strategy's AI Agent Governance: A Field Guide.

Which AI agent governance tools exist?

AI agent governance tools fall into three groups: policy and runtime enforcement libraries, the permission systems built into coding agents, and the trackers and logs that hold the evidence. Most teams need one from each group.

If you are comparing broader platforms for running fleets of agents, our AI agent management platform roundup covers that category.

What did governing our own agents teach us?

We run most of our engineering and content work through coding agents, logged on our own tracker. As of 2026-11-23, the workspace holds 4,450 tickets, 3,528 of them moved over from ClickUp with their history, and agents have logged 792 work sessions on 398 of them, 13,102 agent minutes in total with a median session of 6 minutes.

What the data showed us about governance:

Where does Jenzo fit?

Jenzo is a ticket tracker built for teams where AI agents do much of the work, and it covers the evidence and accountability layer. Agents open, update and close tickets over MCP or the API, and each ticket records which agent and model worked it, how long, the tokens used and the files, branch, PR and commits it touched.

For governance specifically: a ticket cannot close without proof, a link or a real closing report, and a thin text-only note is sent back for more detail. Agents log decisions with reasons and alternatives, and decisions flagged as needing approval wait in a person's queue; the agent is told not to approve its own. Workspaces have admin and member roles, and decision entries are append-only. It does not replace Claude Code permissions or a runtime policy engine; it sits beside them. See Jenzo.

Where should you start with AI agent governance?

Start with the register and the managed settings file this week; both take under a day and close the largest gaps. Then pick the rest by team size.

FAQ

What is an AI agent governance framework?

It is the set of components that together control autonomous agents: identity and ownership for every agent, permission boundaries, approval points for risky actions, an evidence trail, and a stop and revoke path. Public reference points include the NIST AI RMF functions (Govern, Map, Measure, Manage) and the OWASP Top 10 for Agentic Applications for threat modeling.

What is the Microsoft Agent Governance Toolkit?

It is an open-source project from Microsoft, MIT licensed, that adds policy enforcement, agent identity, sandboxing and reliability tooling to AI agents. It intercepts tool calls, messages and delegations in code before they run, and ships packages for Python, npm and .NET. It fits teams building their own agents more than teams using off-the-shelf coding agents.

What is the difference between AI governance and AI agent governance?

AI governance covers how an organization develops and uses AI in general: data, models, fairness, accuracy and compliance. AI agent governance is the narrower part that deals with agents taking actions: what they may touch, which actions need approval, which identity acted, and how you stop them. An accurate model can still take a harmful action, which is why the second needs its own controls.

Do I need an AI governance platform?

Not to start. A team running Claude Code or Codex can cover most needs with managed permission settings, sandbox modes, an agent register and a tracker that records who did what and requires proof to close. Dedicated AI governance platforms earn their place once you run many custom agents, face audits, or need policy enforcement inside your own product.

How do you stop an AI agent that misbehaves?

End the session first, then pull its access: rotate or revoke its token, remove or disable the MCP servers it used, and set its register entry to revoked. In Claude Code, deny rules in managed settings block a tool for every session at once. Record the incident on the ticket so the next review sees what happened and why.

How do you audit what an AI agent did?

Start from the work item, not the chat log. A good audit trail ties each piece of work to the agent, model and launching person, lists the files, commits and PR it touched, records the decisions it made, and holds the proof it finished. Session transcripts fill in detail, but they are scattered and short-lived, so keep the summary on the ticket.

From our own experience

Deny rules took us an afternoon. The bookkeeping took weeks: sessions with no model recorded, a parent session that spawned hundreds of subagents, an approval gate our agents rarely used because the instructions left it optional. Getting every session to leave a complete record took weeks of tightening the instructions, and that record is what we rely on when something goes wrong.

Let your agents keep the board.

Claude Code, Codex and Cursor open their own tickets, log hours and tokens, and close them with the commit.

Connect your agent