Skip to content

Feature request: support fork_context in custom subagent config #18550

@janbam

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsubagentIssues involving subagents or multi-agent features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions