Skip to content
Agent Orchestration
Skill

/codex-thread-orchestration

Use when running Arcgentic V2 in Codex and the current thread must orchestrate fixed Planner, Developer, Test, and Auditor role threads.

From plugin
arcgentic
28518 skills9 agents1 MCP

Claude Code

$ npx -y skills add Arch1eSUN/Arcgentic --skill codex-thread-orchestration --agent claude-code

SKILL.md

codex-thread-orchestration.SKILL.md
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.

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:

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:

   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:

   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:

   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 role with synthetic id `subagent:<role>` so later rounds reuse it.

  • `target=subagent`, `kind=reuse`: keep work inside the current

Orchestrator session and reuse the fixed named role agent. Do not create a second Developer / Planner / Test / Auditor identity.

     arcgentic v2-record-session \
       --state .agentic-rounds/state.yaml \
       --host codex \
       --role <role> \
       --thread-id <created-thread-id>

For `target=subagent`, record the synthetic role id:

     arcgentic v2-record-session \
       --state .agentic-rounds/state.yaml \
       --host codex \
       --role <role> \
       --thread-id subagent:<role>

In Codex, the saved project id is the current workspace root path exposed by the thread `cwd`. Do not search thread lists to infer a separate project id. Do not use projectless threads for Arcgentic role sessions. If the created thread does not show the current project `cwd`, archive it and recreate it under the current project. Before creating a role thread, re-read `.a

Read more
@arch1esun
Ships witharcgentic

**Arcgentic is a harness engineering layer for AI coding agents. It turns ad-hoc prompting into a gated engineering workflow.** 中文文档 -> README.zh-CN.md Arcgentic helps Codex and Claude Code run software work as a disciplined sequence: clarify the idea, plan

28518 skills9 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
285
Star history of Arch1eSUN/Arcgentic on GitHub, a chart by star-history.com

Other skills on arcgentic.

agency-roster

agency-roster

Use when a round references agency-agents catalogs, role-family routing, multi-agent identity prompts, or English/Chinese…

@arch1esun@arch1esunInstall Skill
arcgentic

arcgentic

Use when the user says Arcgentic, asks to use Arcgentic, or wants an idea taken through a complete plan → development →…

@arch1esun@arch1esunInstall Skill
audit-round

audit-round

External-audit role for arcgentic rounds. Loaded when arcgentic state.yaml is in awaiting_audit or audit_in_progress, OR when the…

@arch1esun@arch1esunInstall Skill
close-round

close-round

Use only after an arcgentic round has an external audit PASS and state.yaml is in passed. Anchors the verdict, runs strict…

@arch1esun@arch1esunInstall Skill
codify-lesson

codify-lesson

Detect recurring P2/P3 audit patterns across recent rounds and promote them into lesson cards. Use after round boundaries or when…

@arch1esun@arch1esunInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about codex-thread-orchestration.

Which coding agents can use codex-thread-orchestration?
codex-thread-orchestration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.