AI coding agent admin guide·verified October 21, 2026

govern subagents and parallel coding agents

Subagents and parallel agents inherit permissions, multiply cost and can blur the audit trail. What each agent passes to its children, and the controls that still apply.

the short answer

Mostly, but check what children inherit. Claude Code applies hooks inside subagents, and subagents inherit bypass, acceptEdits and auto modes, or can run a more permissive mode of their own. Codex subagents inherit the parent’s sandbox and approvals. Cursor cloud agents auto-run commands with internet access by default. Policies at the pre-tool gate see child tool calls, so the same denies apply; the gaps are cost, inherited permission modes and audit trails that lose the parent-child link.

Claude Code
Hooks apply in subagents; bypass, acceptEdits and auto modes are inherited
Codex
Subagents on by default; inherit sandbox and approval settings
Cursor
Up to eight agents in parallel; cloud agents auto-run commands
Cost
Claude Code agent teams use about 7x tokens in plan mode
Audit gap
Codex #28058: encrypted subagent messages, still open

Why Child Agents Need Their Own Look

Every major coding agent can now delegate: Claude Code subagents and agent teams, Codex subagents, Cursor’s parallel and cloud agents, the Copilot cloud agent and Gemini CLI subagents. Each child makes its own tool calls. The questions for an admin are whether your rules apply to those calls, which permissions the child inherits, what it costs, and whether the record still shows who did what.

What Child Agents Inherit

AgentWhat applies to childrenWatch for
Claude Code subagentsHooks from settings, managed policy and plugins fire for subagent tool calls; managed MCP restrictions (allow and deny lists, managed MCP config) apply to every subagent; hook input carries agent_id and agent_typeWhen the parent runs in bypassPermissions, acceptEdits or auto mode, the subagent runs in that mode; when the parent is in default, dontAsk or plan, the subagent’s own permissionMode (for example acceptEdits) applies, except bypassPermissions (v2.1.267+); nesting up to three layers
Claude Code agent teamsExperimental and off by defaultIf the lead runs with --dangerously-skip-permissions, all teammates do too; per-teammate modes cannot be set at spawn
OpenAI CodexSubagents inherit the parent turn’s sandbox and approval settings and cannot replace themEnabled by default; parent-to-child correlation in hooks is still requested (#44095)
CursorsubagentStart / subagentStop hooks; up to eight agents in parallel via worktrees or remote machinesCloud agents auto-run terminal commands and have internet access by default; hooks do not run during early read-only cloud turns
GitHub Copilot cloud agentPushes only to its own branch; workflows wait for approval; firewall on by defaultRuns repository hooks from .github/hooks/*.json, not machine or policy hooks
Gemini CLISubagents enabled by default and inherit the parent’s tools when none are listedNot a Failproof-supported harness

Gaps That Have Been Reported and Fixed

  • Claude Code #21460 reported PreToolUse hooks not applying to subagent tool calls. It was closed as completed after maintainers could not reproduce it; the docs now state that tool events fire for subagent calls the same way as in the main conversation.
  • The Claude Code changelog records related fixes: subagent frontmatter MCP servers ignoring enterprise managed MCP config and managed-settings MCP allow/deny policies (2.1.153), subagents in background sessions bypassing the worktree-isolation guard (2.1.154), and Agent(type) deny rules not being enforced for named subagent spawns (2.1.186). Stay on a recent version.
  • Codex #28058, still open, reports that encrypted MultiAgentV2 messages removed the readable task text from local history. One affected user wrote that “there is no way to introspect exactly what the main model sent the sub-agents”.

Controls That Still Hold

  1. Keep safety rules at the pre-tool gate. A deny on terraform destroy applies to a subagent’s call the same way it applies to the parent’s on harnesses that fire hooks for child calls. See one policy across agents.
  2. Disable bypass and auto modes centrally, because children inherit them, and review the permissionMode in subagent definitions. See disable bypass mode for your organization.
  3. Use `agent_id` in policies and logs to tell a subagent’s call from the parent’s on Claude Code.
  4. Isolate parallel work in worktrees so agents do not write to the same checkout.
  5. Cap cost. Claude Code’s docs put agent teams at about seven times the tokens of a standard session in plan mode; set usage limits before turning teams or parallel agents on widely.
  6. Keep the record. Claude Code deletes subagent transcripts after cleanupPeriodDays (30 days by default). Collect sessions centrally if you need them longer; in Failproof, fp sessions --agents expands the agent roster of multi-agent sessions.

FAQ

Do subagents get more permissions than the parent?

In Codex, no: subagents inherit the parent’s sandbox and approvals. In Claude Code, they can: when the parent is in default, plan or dontAsk mode, a subagent’s own permissionMode, such as acceptEdits or auto, applies; only bypassPermissions is refused unless the parent already has it. A permissive parent mode also passes to every child.

Should we turn off subagents?

Not by default. They are useful for parallel, scoped work. Turn off or restrict the riskiest forms, such as experimental agent teams or cloud agents with open internet, until controls and budgets are in place.

How do we see which agent made a call?

On Claude Code, hook input includes agent_id and agent_type. In Failproof, sessions keep multi-agent runs together and fp sessions --agents lists the agents involved.

Sources

Checked against the sources below on October 21, 2026. Harness settings, hook capabilities and cloud features change between versions.

  1. Claude Code docs: Subagents
  2. Claude Code docs: Agent teams
  3. Claude Code docs: Manage costs
  4. Claude Code docs: Hooks reference
  5. Claude Code changelog
  6. anthropics/claude-code #21460: PreToolUse hooks not enforced on subagent tool calls
  7. OpenAI Codex docs: Subagents
  8. openai/codex #28058: encrypted MultiAgentV2 messages remove readable task audit trail
  9. openai/codex #44095: expose an explicit spawn-to-subagent correlation key
  10. Cursor changelog 2.0: parallel agents
  11. Cursor docs: Cloud agent security and network
  12. Cursor docs: Hooks
  13. GitHub docs: Copilot coding agent risks and mitigations
  14. GitHub docs: Copilot hooks reference
  15. Gemini CLI docs: Subagents
  16. Failproof AI docs: Sessions overview
  17. Failproof AI docs: Cloud CLI reference