codex-thread-orchestration
Use when running Arcgentic V2 in Codex and the current thread must orchestrate fixed Planner, Developer, Test, and Auditor role threads.
Skill by Arch1eSUN
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/arch1esun-codex-thread-orchestration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codex-thread-orchestration
What's inside
- Skill name
codex-thread-orchestration- Description
- Use when running Arcgentic V2 in Codex and the current thread must orchestrate fixed Planner, Developer, Test, and Auditor role threads.
- License
- MIT
- Instructions
- 444 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# codex-thread-orchestration
Use this skill only in Codex host mode. The current thread is the
`Orchestrator`.
## Contract
V2 uses exactly five host-visible thread titles:
- `Orchestrator`
- `Planner`
- `Developer`
- `Test`
- `Auditor`
Never create `R1 Developer`, `R2 Test`, `R3 Auditor`, or other round-numbered
thread names. Round identity lives in `.agentic-rounds/state.yaml` and in the
role prompt.
Phase/project close is Orchestrator-owned after Planner declares that a phase
or the full project is complete. It is not a per-round role and it must not run
after every Auditor PASS.
V2 has two project-level modes:
- `single-session-subagent`: faster and usually completes sooner. The current
Orchestrator session runs named Planner / Developer / Test / Auditor subagents
without creating role threads. Role names must still be inherited exactly.
The first use of a role creates that named role identity; later rounds reuse
the same role identity.
- `multi-session-subthread`: slower, with stronger role separation. The
Orchestrator creates or reuses fixed project threads titled Planner,
Developer, Test, and Auditor.
If no mode is stored, judge the user's idea and recommend a mode before
dispatching Planner:
```bash
arcgentic session-mode recommend-v2 --idea '<current user request>'
```
Show the recommendation, confidence, reasons, and tradeoff, then ask the user
to confirm or override it. Do not default silently.
## Procedure
1. Rename the current Codex thread to exactly `Orchestrator`, then ensure
`.agentic-rounds/state.yaml` records the current thread as `Orchestrator`
before dispatching any role:
```bash
arcgentic v2-record-session \
--state .agentic-rounds/state.yaml \
--host codex \
--role orchestrator \
--thread-id <current-orchestrator-thread-id> \
--title Orchestrator
```
If the host cannot provide the current Orchestrator thread id, stop. Without
this id, Planner / Developer / Auditor cannot actively send completion back.
If the host cannot rename the current thread, stop because the fixed-role
thread set is not visible to the user.
If this thread was created from a Codex delegation payload, the
`source_thread_id` is not the current Orchestrator id. It is the upstream
supervising thread id and must not be recorded as the push-return target.
When correcting only this mistake, use:
```bash
arcgentic v2-record-session \
--state .agentic-rounds/state.yaml \
--host codex \
--role orchestrator \
--thread-id <current-orchestrator-thread-id> \
--title Orchestrator \
--repair-current-orchestrator
```
2. If no project-level mode is stored, run the V2 mode recommendation command,
ask the user to confirm or override it, then continue with the chosen mode.
3. Run:
```bash
arcgentic v2-session-plan \
--state .agentic-rounds/state.yaml \
--host codex \
--user-request '<current user request>' \
--mode <single-session-subagent|multi-session-subthread>
```
This must happen before source inspection, test runs, git-log verification,
or summaries of prior closed rounds.
4. If `orchestrator_status` is `sleeping`, stop immediately. The
Orchestrator is waiting for `pending_role` to return a `RoleReturnSignal`;
do not dispatch another role and do not do the pending role's work inline.
5. If `orchestrator_status` is `active` and `actions` is empty, branch by state:
- `passed`: stop and report that the round PASS cannot advance because the
state has no usable `project.arcgentic_v2.project_plan`. Do not close the
round. A valid project plan lets `v2-session-plan` advance to the next
round or Planner phase-boundary decision.
- `closed`: stop. The round is terminal and all role threads should be idle.
Only a new user request may wake Orchestrator and route to Planner.
- any other state: stop and report the stop state. Do not create a role
thread manually. This is how Arcgentic prevents loops such as a repeated
`AUDIT_INCOMPLETE` for the same unresolved evidence gap.
6. If `orchestrator_status` is `active`, dispatch the single action in
`actions`:
- `target=thread`, `kind=reuse`: send `prompt` to `thread_id`.
- `target=thread`, `kind=create`: create a Codex project thread using the
current workspace root path as the Codex `projectId`, set its title to
`title`, send `prompt`, then record the returned id:
- `target=subagent`, `kind=create`: keep work inside the current
Orchestrator session and create the fixed named role agent, using `title`
exactly (`Planner`, `Developer`, `Test`, or `Auditor`). Record the roleFrom Arch1eSUN/Arcgentic, MIT.
More from Arch1eSUN/Arcgentic
- 0.802score
audit-round
Arch1eSUN
External-audit role for arcgentic rounds.
SkillAFreshness: A★ 285Claude Code +9 - 0.802score
orchestrate-round
Arch1eSUN
Main-session orchestrator for arcgentic rounds.
SkillAFreshness: A★ 285Claude Code +9 - 0.802score
verify-gates
Arch1eSUN
Runs the mechanical quality gates that the arcgentic state machine requires for state transitions.
SkillAFreshness: A★ 285Claude Code +9 - 0.798score
pre-round-scan
Arch1eSUN
Mandatory prelude for every role at the start of a round.
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
arcgentic
Arch1eSUN
Use when the user says Arcgentic, asks to use Arcgentic, or wants an idea taken through a complete plan → development → self-audit → external audit workflow…
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
session-mode
Arch1eSUN
Use when a project has not yet stored session mode, when a user asks for complete arcgentic workflow execution, or when role identity handoff prompts are…
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
arcgentic
Arch1eSUN
Use when the user mentions Arcgentic, or wants substantial AI-written code taken through a gated plan → development → self-audit → external audit workflow…
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
agency-roster
Arch1eSUN
Use when a round references agency-agents catalogs, role-family routing, multi-agent identity prompts, or English/Chinese specialist role catalogs.
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
claude-code-session-broker
Arch1eSUN
Use when running Arcgentic V2 in Claude Code and fixed Planner, Developer, and Auditor role sessions must be coordinated through a broker.
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
source-intake
Arch1eSUN
Use when a round cites external workflow sources, marketplace catalogs, OpenSpec resources, reference repos, or asks to fuse outside workflow material into…
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
spec-governance
Arch1eSUN
Use when a round uses proposal/design/tasks/spec/archive artifacts or needs OpenSpec-style artifact validation without depending on the OpenSpec CLI.
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
track-refs
Arch1eSUN
Maintain references/INDEX.md, classify reference RT tier, and emit BA-design triplet rows.
SkillAFreshness: A★ 285Claude Code +9
Signals
- Stars
- 285
- Forks
- 10
- Open issues
- 1
- Last commit (this folder)
- Jun 6, 2026 (4 months ago)
- Last release
- Oct 2, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Arch1eSUN/Arcgentic
- Website
- pypi.org/project/arcgentic/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Arch1eSUN
- 0.802score
audit-round
Arch1eSUN
External-audit role for arcgentic rounds.
SkillAFreshness: A★ 285Claude Code +9 - 0.802score
verify-gates
Arch1eSUN
Runs the mechanical quality gates that the arcgentic state machine requires for state transitions.
SkillAFreshness: A★ 285Claude Code +9 - 0.802score
orchestrate-round
Arch1eSUN
Main-session orchestrator for arcgentic rounds.
SkillAFreshness: A★ 285Claude Code +9 - 0.798score
pre-round-scan
Arch1eSUN
Mandatory prelude for every role at the start of a round.
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
session-mode
Arch1eSUN
Use when a project has not yet stored session mode, when a user asks for complete arcgentic workflow execution, or when role identity handoff prompts are…
SkillAFreshness: A★ 285Claude Code +9 - 0.796score
arcgentic
Arch1eSUN
Use when the user mentions Arcgentic, or wants substantial AI-written code taken through a gated plan → development → self-audit → external audit workflow…
SkillAFreshness: A★ 285Claude Code +9
Cite this page
codex-thread-orchestration skill. Agent Mart. https://agentmart.dev/skills/arch1esun-codex-thread-orchestration (last updated 2026-10-24)