Governance for a Fleet of Coding Agents
Agent governance in 2026 mostly means controls on each call an agent makes: which model it may use, which tools, with whose credentials, logged where. That is necessary. A team running fifty coding agents at once also needs controls on the group: who answers when they ask for something, what must always reach a person, how every action traces back to someone, how much the group may spend, and how to stop all of it at once. This guide sets out both layers and shows where Forkit sits, including what it does not have yet.
Governance of each call: what gateways do
Several vendors published their view of agent governance this year.
- Portkey, "What MCP Governance Actually Means in Production" (24 May 2026): "governance is about control and visibility". In practice: per-user OAuth instead of shared static keys, tool-level access by organization, team and user, human approval for high-risk actions, and audit logs that record who called which tool with which parameters. Its "What's an agent gateway?" (3 May 2026) describes the gateway as "a dedicated infrastructure layer that sits between your agents and everything they call".
- LangChain, "Why agent governance starts with observability" (19 Nov 2026): "Observability is the cornerstone for governance strategies." Preventive controls (limits, agent identity, policies on tools, data, models and cost) are predictions about behaviour; traces are how you check them. The same day LangChain announced LangSmith Tool Gateway, "a managed tool layer that handles credentials, identity, and access for every agent tool call", with deny policies by user or key and approvals for sensitive calls.
- GitHub, "Under the hood: Security architecture of GitHub Agentic Workflows" (9 Mar 2026): "we wanted workflow agents to have zero access to secrets". Agents run in isolated containers, and an agent "can only stage its updates through the safe outputs MCP server", where deterministic checks filter them before anything is written.
These controls sit on the path between one agent and what it calls. They answer "may this agent make this call?"
Governance of the group: what a fleet adds
When many agents work on one job, new questions appear that no single call answers.
- Who answers a request when nobody is at a terminal? An agent in a sandbox that asks to run a command has no person beside it.
- What must always reach a person, however many rules exist?
- Whose agent is this? Fifty agents sharing one key are fifty agents nobody can tell apart.
- How much may the group spend, and what happens at the limit? A gateway budget makes model calls fail. The agents are still running, still holding files, still waiting on questions.
- How do you stop all of them, now?
- Who signs off the result?
The sections below take these in turn.
1. Who answers: four layers in order
In Forkit, a permission request from an agent (the Claude Code or Codex hook sends it; other agents use forkit ask -- <cmd>) passes through four layers:
- Command rules. Globs on the command or a repository-relative path. A matching deny always wins. A member's rules cover only their own agents.
- The orchestrator. One agent key a workspace owner picks, limited to the tools the owner ticked.
- A person. The agent's own person or a workspace owner: allow once, for an hour, always (which adds a rule), or deny with a note.
- A timeout. On a person's machine, the request is withdrawn and the agent asks in its own terminal. For an agent with no terminal (a fan-out's agent, or any agent with
FORKIT_ON_TIMEOUT=deny), silence is recorded as a denial.
Each decision records which layer made it. When fifty agents of one fan-out ask the identical question, it is one question and one answer settles all of them (grouping identical permission requests). See also agent permission rules.
2. What always reaches a person
Requests that touch production, secrets or money always reach a person. Allow rules and the orchestrator never answer them, a person can only allow them once, and they are never grouped with other agents' requests. However many rules accumulate, that boundary does not erode. More in production access for AI agents.
3. One key per agent, tied to a person
Every Forkit API key belongs to one person, and its name is the agent's name. Identity for anything an agent writes comes from its key, never from tool arguments or request bodies, so an agent cannot claim to be someone else. A message from another agent is stored apart from people's messages: it cannot answer a permission request, decide a review or close a thread.
For agents started in bulk, a fan-out mints short-lived keys (one hour by default, 24 hours at most) that act under the person of the agent that started them. They cannot start fan-outs of their own or be the orchestrator. Removing a member revokes their keys and stops the fan-outs their agents started. See agent identity and API keys.
4. Budgets on the group
A fan-out can carry a dollar budget (forkit fanout create ... --max-cost USD) and a tool-call budget (--max-tool-calls N). At 80% of the dollar budget the fan-out is flagged; at 100% it is stopped in the same database update that adds the cost, and settled like any other stop (next section).
Be clear about what the dollar figure is. Claude Code gives hooks no cost, so Forkit reads token counts from the session's transcript (and Codex's from its session file) and prices them at list prices. Every figure is an estimate, and a fan-out can pass its budget by what its agents spend in about 20 seconds. Agents that report nothing are invisible to the dollar budget; for those, use the tool-call budget. A gateway's budget, which fails the model calls themselves, is a sensible second line.
5. One action that stops a group
A fan-out stops when the agent that started it says so, when its person or a workspace owner presses Stop, when its time is up, or when a budget is reached. From then on every request from its keys gets a 403 that says to stop and why, and the Claude Code hook ends the agent's turn and refuses the tool call in hand. At the same moment Forkit denies the fan-out's pending permission requests, releases its file claims, and moves its working and waiting threads to idle.
On staging on 13 Nov 2026 (one run, scripted agents), 200 of 200 runaway agents were stopped within 4 seconds. Forkit stops the agents' work through itself; it does not delete the sandboxes they run in. See how to stop a runaway agent.
6. Who signs off the result
Only a person can close a thread or decide a review in Forkit. An approval carries the last event the reviewer saw, and any newer event (a new commit, a failed check) refuses it. Owners map path globs to approvers, and each matching pattern needs one of its people. The files a review covers come from GitHub when the GitHub App has the pull request, or from every file the agent's session recorded, including pushes Forkit read from the agent's own repository.
Try it before it can ask anyone
A new fleet can first run as a shadow run (--shadow): agents work as usual, allow rules still answer, and anything that would have reached a person is refused and listed, grouped, with how many agents asked and the rule that would allow it. That list is a draft of the rules the real run needs.
What Forkit does not have
- SSO and SCIM. People sign in with GitHub or an email code.
- Audit export. Forkit records threads, decisions and every
execute_coderun, but has no export to a SIEM or a file. - A report on approvals. Who answered what is recorded per request; there is no summary of volume, time to answer or overrides.
- Control of model calls. Forkit does not sit between agents and model providers. Use a gateway for model access and per-call budgets.
- Running agents. Forkit never starts an agent. Your sandboxes, CI or people's machines run them.
How the two layers fit
A gateway answers "may this call go through?" Forkit answers "what is this group of agents allowed to do together, who decides when they ask, and how do we stop them?" A team running agents in sandboxes can use both: a gateway for model and tool access, and Forkit for the fleet.
Where Forkit fits
Forkit is the coordination system for agent teams: plans, handoffs, file claims and decisions, shared by every agent and the people behind them. For governance it adds what a group of agents needs beyond per-call controls: layered answers to permission requests, a person for production, secrets and money, a key per agent, budgets, and one stop. It is free to try at forkit-mcp.com.
Sources
Read on 25 Nov 2026:
- Portkey, "What MCP Governance Actually Means in Production", 24 May 2026: https://portkey.ai/blog/mcp-governance/
- Portkey, "What's an agent gateway?", 3 May 2026: https://portkey.ai/blog/what-is-an-agent-gateway/
- LangChain, "Why agent governance starts with observability", 19 Nov 2026: https://www.langchain.com/blog/agent-governance-observability
- LangChain, "LangSmith Tool Gateway", 19 Nov 2026: https://langchain.com/blog/langsmith-tool-gateway
- GitHub, "Under the hood: Security architecture of GitHub Agentic Workflows", 9 Mar 2026: https://github.blog/2026/03/09/under-the-hood-security-architecture-of-github-agentic-workflows/
- Forkit's engineering notes: "Permission requests", "Agent identity", "Team model", "Fan-outs", "What agents cost, and budgets in dollars", "Thread rules", "Approval rules", shadow runs (21 Nov 2026), and the staging measurement of 13 Nov 2026