Skip to content

Commit 80b28e7

Browse files
committed
docs: loosen subagent guidance
1 parent ecddbac commit 80b28e7

14 files changed

Lines changed: 25 additions & 21 deletions

File tree

ROADMAP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ In Progress
7777
- Added root `docs/media` screenshot assets and README media guidance so the Codex plugin-directory catalog surface is visible without weakening text-first documentation.
7878
- Added coordinated OpenAI Codex Hooks guidance across `agent-plugin-skills` and `productivity-skills`, with future `maintain-project-hooks` work tracked in the productivity roadmap.
7979
- Updated `socket` and plugin guidance so ordinary user installs and updates default to Git-backed Codex marketplace sources and official marketplace add/upgrade commands.
80+
- Loosened coordinated Codex subagent guidance so skills preserve OpenAI's explicit-trigger model while allowing narrower workflow guidance, such as Codex Security repository-wide scans, to ask for and use subagents when the task depends on parallel file-pass review.
8081
- Added coordinated Codex subagent guidance across `agent-plugin-skills` and `productivity-skills`, grounding skill wording in OpenAI's current explicit-trigger `subagents` model while keeping the root docs clear about why the pass belongs in `socket`.
8182
- Prepared the `v6.1.0` minor release by adding the `maintain-project-api` productivity skill and keeping the monorepo-owned child docs, tests, and shared version surfaces aligned.
8283
- Added explicit `standard` and `subtrees` release-mode guidance, including the pull-only `SpeakSwiftlyServer` rule for `socket` subtree sync.

plugins/agent-plugin-skills/docs/maintainers/codex-subagent-skill-guidance.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OpenAI's Codex docs call this feature `subagents`.
1010

1111
- A `subagent` is a delegated agent that Codex starts to handle a specific task.
1212
- A `subagent workflow` is a workflow where Codex runs parallel agents and combines their results.
13-
- Codex only spawns subagents when the user explicitly asks for subagents or parallel agent work.
13+
- Codex only spawns subagents when there is an explicit trigger: the user asks for subagents or parallel agent work, or a narrower skill/plugin workflow instructs the agent to ask for and use subagents when the task clearly depends on them.
1414
- Subagents are best for bounded read-heavy discovery, tests, triage, log analysis, and summarization.
1515
- Write-heavy parallel work needs clear ownership because multiple agents editing code or docs at once can create conflicts and coordination overhead.
1616

@@ -37,18 +37,19 @@ Weak candidates:
3737

3838
When a skill includes a `Codex Subagent Fit` section, it should say:
3939

40-
- subagents require an explicit user request
40+
- subagents require an explicit trigger, either from the user's request or from narrower workflow guidance that tells the agent to request permission before delegation
4141
- the subagent jobs must be bounded and independently useful
4242
- read-heavy discovery, triage, tests, docs pulling, and summarization are the default fit
4343
- workers should return concise evidence, findings, links, or file references instead of raw command logs
4444
- apply-mode or implementation edits should stay in the main thread unless the user asks for parallel implementation and each worker has a disjoint write scope
45+
- plugin-specific guidance can be stricter; for example, Codex Security repository-wide scans may require asking for subagent use because the scan quality depends on parallel file-pass review
4546

4647
## Review Checklist
4748

4849
When auditing a skills repo, flag guidance that:
4950

5051
- says or implies Codex will spawn subagents automatically
51-
- tells agents to delegate merely because a task is complex or lengthy
52+
- tells agents to delegate merely because a task is complex or lengthy, without a concrete workflow reason
5253
- recommends parallel writes without separate file ownership
5354
- hides token, latency, or coordination costs
5455
- asks subagents to dump raw exploratory output instead of distilled results

plugins/agent-plugin-skills/skills/bootstrap-skills-plugin-repo/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ When creating or aligning `AGENTS.md`, include strict dependency guidance:
3535

3636
When creating or aligning skills that can benefit from parallel support work, add optional `Codex Subagent Fit` guidance that matches OpenAI's current Codex subagent docs:
3737

38-
- Codex only spawns subagents when the user explicitly asks for subagents or parallel agent work.
38+
- Codex only spawns subagents when there is an explicit trigger: the user asks for subagents or parallel agent work, or a narrower skill/plugin workflow instructs the agent to ask for and use subagents when the task clearly depends on them.
3939
- Good fits are bounded read-heavy discovery, docs pulling, tests, triage, log analysis, and summarization.
4040
- Subagents should return concise findings, evidence, links, or file references instead of raw intermediate output.
4141
- Apply-mode or implementation edits should stay in the main thread unless the user explicitly asks for parallel implementation and each worker has a disjoint write scope.
42+
- Plugin-specific guidance can be stricter. For example, Codex Security repository-wide scans may require asking for subagent use because the scan quality depends on parallel file-pass review.
4243

4344
Do not add subagent guidance to every skill by default. Use `docs/maintainers/codex-subagent-skill-guidance.md` to decide whether the target skill has real parallelizable support work.
4445

plugins/agent-plugin-skills/skills/sync-skills-repo-guidance/SKILL.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ When syncing `AGENTS.md`, include strict dependency guidance:
6262
When auditing target skills, treat subagent guidance as useful only when it is explicit, bounded, and tied to real parallel support work. Match OpenAI's current Codex wording:
6363

6464
- use `subagent` and `subagent workflow` rather than vague older `multi-agent` language
65-
- say Codex only spawns subagents when the user explicitly asks for subagents or parallel agent work
65+
- say Codex only spawns subagents when there is an explicit trigger: the user asks for subagents or parallel agent work, or a narrower skill/plugin workflow instructs the agent to ask for and use subagents when the task clearly depends on them
6666
- prefer subagents for read-heavy discovery, docs pulling, tests, triage, log analysis, and summarization
6767
- ask workers for concise findings, evidence, links, or file references instead of raw intermediate output
6868
- keep write-heavy apply work in the main thread unless the user explicitly requests parallel implementation with disjoint write scopes
69+
- preserve plugin-specific guidance that is stricter about subagent use, such as Codex Security repository-wide scan workflows that ask for subagents because the file-pass review depends on parallel workers
6970

70-
Flag skill guidance that implies automatic delegation, recommends parallel writes without ownership boundaries, or adds subagent advice to narrow single-file or sequential workflows.
71+
Flag skill guidance that implies automatic delegation, recommends parallel writes without ownership boundaries, adds subagent advice to narrow single-file or sequential workflows, or suppresses narrower plugin guidance that explicitly calls for subagents.
7172

7273
## Codex Hooks Guidance
7374

plugins/productivity-skills/docs/maintainers/codex-subagent-guidance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is a maintainer-focused translation of the official Codex subagent docs for
88

99
OpenAI's Codex docs use the term `subagent` for a delegated agent Codex starts to handle a specific task. A `subagent workflow` is a workflow where Codex runs parallel agents and combines their results.
1010

11-
Codex only spawns subagents when the user explicitly asks for subagents or parallel agent work. Do not write skill guidance that implies subagents start automatically just because a skill is active.
11+
Codex only spawns subagents when there is an explicit trigger: the user asks for subagents or parallel agent work, or a narrower skill/plugin workflow instructs the agent to ask for and use subagents when the task clearly depends on them. Do not write skill guidance that implies subagents start automatically just because a skill is active.
1212

1313
## Good Fits
1414

@@ -32,7 +32,7 @@ Poor fits include:
3232
- one focused README, AGENTS, ROADMAP, CONTRIBUTING, ACCESSIBILITY, or API apply pass
3333
- write-heavy parallel edits to the same files or same tightly coupled document set
3434
- tasks where the main agent needs each result immediately before it can choose the next step
35-
- prompts where the user did not explicitly ask for subagents, delegation, or parallel agent work
35+
- prompts where neither the user nor applicable workflow guidance explicitly calls for subagents, delegation, or parallel agent work
3636

3737
## Skill Wording Pattern
3838

@@ -41,7 +41,7 @@ Use wording like this in applicable skills:
4141
```markdown
4242
## Codex Subagent Fit
4343

44-
When the user explicitly asks for subagents or parallel agent work, this skill can split read-heavy discovery into bounded subagent tasks and keep the main thread focused on decisions and final edits.
44+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, this skill can split read-heavy discovery into bounded subagent tasks and keep the main thread focused on decisions and final edits.
4545

4646
Good subagent jobs for this skill:
4747

@@ -54,7 +54,7 @@ Keep apply-mode edits in the main thread unless the user explicitly asks for par
5454

5555
The important parts are:
5656

57-
- name that the user must ask explicitly
57+
- name the explicit trigger for delegation, whether it came from the user or from narrower workflow guidance that tells the agent to ask before use
5858
- limit subagents to bounded jobs
5959
- prefer read-heavy discovery, triage, tests, and summarization
6060
- ask workers for summaries, findings, and file references instead of raw intermediate output

plugins/productivity-skills/skills/explain-code-slice/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ Treat comparison requests as first-class trigger cases, not as an advanced follo
9393

9494
## Codex subagent fit
9595

96-
When the user explicitly asks for subagents or parallel agent work, this skill can split read-heavy discovery for large code slices into bounded subagent tasks. Good subagent jobs include mapping call sites, reading tests, checking docs, or tracing one branch of a comparison, with each worker returning concise file references and findings.
96+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, this skill can split read-heavy discovery for large code slices into bounded subagent tasks. Good subagent jobs include mapping call sites, reading tests, checking docs, or tracing one branch of a comparison, with each worker returning concise file references and findings.
9797

98-
Do not spawn subagents just because a slice is large. Keep the final explanation in the main thread so the user gets one coherent walkthrough, and keep any write or refactor follow-up outside this skill unless the user asks for that next step.
98+
Do not spawn subagents just because a slice is large. Use them when the request or applicable workflow guidance makes delegation part of the job. Keep the final explanation in the main thread so the user gets one coherent walkthrough, and keep any write or refactor follow-up outside this skill unless the user asks for that next step.
9999

100100
## Detail levels
101101

plugins/productivity-skills/skills/maintain-project-accessibility/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The base contract requires:
5656

5757
## Codex Subagent Fit
5858

59-
When the user explicitly asks for subagents or parallel agent work, use subagents only for read-heavy accessibility evidence gathering before the main workflow edits or reports. Good jobs include checking documented verification commands, inventorying UI surfaces, reading known-gap notes, or comparing accessibility claims against repo evidence.
59+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, use them for read-heavy accessibility evidence gathering before the main workflow edits or reports. Good jobs include checking documented verification commands, inventorying UI surfaces, reading known-gap notes, or comparing accessibility claims against repo evidence.
6060

6161
Keep `apply` edits in the main thread because this skill owns one target `ACCESSIBILITY.md` file and must avoid unsupported compliance claims. Ask workers for concise evidence, risks, and file references rather than drafted conformance language.
6262

plugins/productivity-skills/skills/maintain-project-agents/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ The base contract is shaped to match the official Codex `AGENTS.md` guidance:
6161

6262
## Codex Subagent Fit
6363

64-
When the user explicitly asks for subagents or parallel agent work, use subagents only for bounded read-heavy checks before the main workflow edits or reports. Good jobs include auditing command accuracy, comparing repo instructions against nearby docs, checking safety boundaries, or reading nested guidance files in separate directories.
64+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, use them for bounded read-heavy checks before the main workflow edits or reports. Good jobs include auditing command accuracy, comparing repo instructions against nearby docs, checking safety boundaries, or reading nested guidance files in separate directories.
6565

66-
Keep `apply` edits in the main thread because this skill owns one target `AGENTS.md` file and needs one coherent policy voice. If a target `AGENTS.md` mentions subagents, make the wording match OpenAI's current Codex rule: subagents are explicit user-triggered workflows, best for bounded parallel discovery, tests, triage, and summarization.
66+
Keep `apply` edits in the main thread because this skill owns one target `AGENTS.md` file and needs one coherent policy voice. If a target `AGENTS.md` mentions subagents, make the wording match OpenAI's current Codex rule: subagents need an explicit trigger, are best for bounded parallel discovery, tests, triage, and summarization, and may be called for by narrower plugin guidance that tells the agent to ask before delegation.
6767

6868
## Codex Hooks Fit
6969

plugins/productivity-skills/skills/maintain-project-api/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The base contract requires:
5252

5353
## Codex Subagent Fit
5454

55-
When the user explicitly asks for subagents or parallel agent work, use subagents only for read-heavy API evidence gathering before the main workflow edits or reports. Good jobs include inventorying endpoints or public symbols, checking examples against tests, reading schema definitions, or comparing compatibility claims against release notes.
55+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, use them for read-heavy API evidence gathering before the main workflow edits or reports. Good jobs include inventorying endpoints or public symbols, checking examples against tests, reading schema definitions, or comparing compatibility claims against release notes.
5656

5757
Keep `apply` edits in the main thread because this skill owns one target `API.md` file and must avoid invented endpoints, schemas, credentials, or support promises. Ask workers for concise evidence and file references instead of replacement API prose.
5858

plugins/productivity-skills/skills/maintain-project-architecture/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ When the user asks for a new slice explanation, use `explain-code-slice` for the
7171

7272
## Codex Subagent Fit
7373

74-
When the user explicitly asks for subagents or parallel agent work, use subagents only for read-heavy discovery. Good jobs include scanning package manifests, listing products and targets, finding entrypoints, or tracing one candidate slice. Keep writes to `ARCHITECTURE.md`, `SLICES.md`, and `architecture.json` in the main thread so the architecture story stays coherent.
74+
When subagents are explicitly requested or clearly called for by applicable workflow guidance, use them for read-heavy discovery. Good jobs include scanning package manifests, listing products and targets, finding entrypoints, or tracing one candidate slice. Keep writes to `ARCHITECTURE.md`, `SLICES.md`, and `architecture.json` in the main thread so the architecture story stays coherent.
7575

7676
## Output Contract
7777

0 commit comments

Comments
 (0)