roles: tell each Codex role the output-size and rm rules once, not in each spec
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Trace how a --host codex launch produces role_prompt.md, starting with shared/dev-team/roles/*.md, adapters/codex.toml, and plugins/dev-team/codex/agents/*.toml. Read AGENTS.md for the independent review requirement, then update the role prompt source and shared/dev-team/skills/orchestrate/references/codex.md; check that no spec template repeats the rules. Run python3 scripts/build.py and verify a Codex dry run includes both rules while a Claude launch does not.
Written by the indexing model from the issue text.
Description
Problem
Two rules for Codex roles are known, but no plugin file states them. Thus the orchestrator copies them into the Permissions line of each spec by hand. When it forgets, the role fails.
- The output of one model turn is limited. On 2026-12-01 (Codex CLI 0.172.0,
gpt-6.1-sol, medium effort), an implementer for a new 1,900-line feature wrote whole source files in singlecat <<EOFheredocs, about 7,000 characters each. The next response stopped with:
The run ended. The files of earlier turns stayed in the worktree with no commit, and the crate did not compile. The file of the failed turn was lost. The orchestrator then added this line to the spec: "Keep each command or patch to about 150 lines; commit at each step." The next launches with that line had no output-limit failure. Later specs sometimes did not have the line, because the orchestrator added it by hand.{"type":"turn.failed","error":{"message":"Incomplete response returned, reason: max_output_tokens"}} - The Codex command runner refuses
rm -fandrm -rf. The project that found this records it in its own notes. The orchestrator copied "leave scratch files in place, outside the worktree" into each spec by hand.
Proposed change
State each rule once, where each Codex role reads it:
- Add both rules to the Codex role prompt that the launcher writes (
role_prompt.md). The source is probablyshared/dev-team/roles/*.mdwith a Codex-only part, or the Codex adapter (adapters/codex.toml,plugins/dev-team/codex/agents/*.toml). Find which file producesrole_prompt.mdfor--host codex. - The first rule says what to do, not what to avoid. For example: "Write a large file in parts of about 150 lines: create it with the first part, then add each part with a patch. Commit after each working step, so a stopped turn loses at most one step."
- The second rule: "Leave temporary files in place, in a directory outside the worktree. The command runner refuses
rm -fandrm -rf." - Write one line about each rule in
shared/dev-team/skills/orchestrate/references/codex.md, so that the orchestrator does not copy them into a spec.
Acceptance
role_prompt.mdof a--dry-runCodex launch contains both rules. A Claude launch does not.- No spec template text repeats them.
- Do the edits in
shared/andadapters/, then runpython3 scripts/build.py. This change needs an independent review (AGENTS.md).
Related
#77 (failure causes in dispatch.json, cause: max_output_tokens) is the companion to this one. This issue prevents the failure. That issue reports it.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 29m
- Merged PRs (30d)
- 57
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from j3ko/agent-plugins
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
j3ko/agent-plugins#79 ·
Maintainers usually reply within 1 day
-
roles: cut the start-up reading of a Codex role (bootstrap lines, fix-up Read section, setup step)Opennext
Difficulty 4/5 3-5 days Newbie friendliness 45/100
j3ko/agent-plugins#81 ·
Maintainers usually reply within 1 day
-
next
Difficulty 4/5 3-5 days Newbie friendliness 56/100
j3ko/agent-plugins#77 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
j3ko/agent-plugins#76 ·
Maintainers usually reply within 1 day
All issues in j3ko/agent-plugins
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days
-
task
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1285 ·
Maintainers usually reply within 2 days