Feature request: support `fork_context` in custom subagent config

Open 💬 1 comment Opened Apr 19, 2026 by janbam

What variant of Codex are you using?

CLI

What feature would you like to see?

spawn_agent exposes fork_context, but custom subagent frontmatter/config cannot express the same capability.

This creates a config/runtime mismatch: context inheritance is available at spawn time, but not in the declarative definition of a reusable subagent.

For subagents that depend on caller-thread context, this forces an execution property to live in ad hoc spawn logic instead of the agent definition itself.
The imperative API and the declarative config layer are out of sync on a meaningful feature.

Feature request:

  • add declarative support for context inheritance in custom subagent config
  • define precedence relative to explicit spawn_agent arguments

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗