# glaicer/subagent-orchestrator-skill architecture

> Architecture diagram of the GitHub repository glaicer/subagent-orchestrator-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/glaicer/subagent-orchestrator-skill
- Repository: https://github.com/glaicer/subagent-orchestrator-skill
- Video tour (about a minute): https://gitdiagram.com/glaicer/subagent-orchestrator-skill/video

## Overview

This repository packages a sub-agent orchestration workflow for Codex and OpenCode. A user invokes the platform-specific skill, which coordinates architect, developer, and reviewer roles through planning, implementation, review, and fix rounds, with session history stored on disk. The README documents these workflow relationships, but no source excerpts were provided; internal calls and the exact use of templates or scripts are therefore not shown.

Main entry points: [`codex/skills/codex-orchestrator-subagents/SKILL.md`](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/SKILL.md) (Codex skill), [`opencode/skills/opencode-orchestrator-subagents/SKILL.md`](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/opencode/skills/opencode-orchestrator-subagents/SKILL.md) (OpenCode skill), [`codex/agents/architect.toml`](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/architect.toml) (Architect), [`codex/agents/developer.toml`](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/developer.toml) (Developer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platforms["Agent platforms"]
  node_codex["Codex"]
  node_opencode["OpenCode"]
end

subgraph group_protocol["Orchestration protocol"]
  node_codex_skill["Codex skill<br/>[SKILL.md]"]
  node_opencode_skill["OpenCode skill<br/>[SKILL.md]"]
  node_session_init["Session initializer<br/>[init-session.sh]"]
end

subgraph group_roles["Subagent roles"]
  node_architect["Architect<br/>[architect.toml]"]
  node_developer["Developer<br/>[developer.toml]"]
  node_reviewer["Reviewer<br/>[reviewer.toml]"]
end

subgraph group_artifacts["Workflow artifacts"]
  node_session_state["Session state"]
  node_task_template["Task template"]
  node_fix_template["Fix template"]
  node_review_contract["Review contract<br/>[review-contract.md]"]
  node_platform_reference["Subagent reference<br/>[codex-subagents.md]"]
end

node_user(("User"))

node_user -->|"invokes"| node_codex
node_user -->|"invokes"| node_opencode
node_codex -->|"loads skill"| node_codex_skill
node_opencode -->|"loads skill"| node_opencode_skill
node_codex_skill -->|"asks to plan"| node_architect
node_codex_skill -->|"assigns tasks"| node_developer
node_codex_skill -->|"requests review"| node_reviewer
node_opencode_skill -->|"asks to plan"| node_architect
node_opencode_skill -->|"assigns tasks"| node_developer
node_opencode_skill -->|"requests review"| node_reviewer
node_architect -->|"writes plan"| node_session_state
node_developer -->|"records work"| node_session_state
node_reviewer -->|"records reviews"| node_session_state

click node_codex_skill "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/SKILL.md"
click node_opencode_skill "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/opencode/skills/opencode-orchestrator-subagents/SKILL.md"
click node_architect "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/architect.toml"
click node_developer "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/developer.toml"
click node_reviewer "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/reviewer.toml"
click node_task_template "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/assets/task-prompt-template.md"
click node_fix_template "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/assets/fix-prompt-template.md"
click node_review_contract "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/references/review-contract.md"
click node_platform_reference "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/references/codex-subagents.md"
click node_session_init "https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/scripts/init-session.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_codex,node_opencode,node_user toneBlue
class node_codex_skill,node_opencode_skill,node_session_init toneAmber
class node_architect,node_developer,node_reviewer toneMint
class node_session_state,node_task_template,node_fix_template,node_review_contract,node_platform_reference toneRose
```

## Components

### Agent platforms

- **Codex**
- **OpenCode**

### Orchestration protocol

- [Codex skill](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/SKILL.md): `codex/skills/codex-orchestrator-subagents/SKILL.md`
- [OpenCode skill](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/opencode/skills/opencode-orchestrator-subagents/SKILL.md): `opencode/skills/opencode-orchestrator-subagents/SKILL.md`
- [Session initializer](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/scripts/init-session.sh): `codex/skills/codex-orchestrator-subagents/scripts/init-session.sh`

### Subagent roles

- [Architect](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/architect.toml): `codex/agents/architect.toml`
- [Developer](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/developer.toml): `codex/agents/developer.toml`
- [Reviewer](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/agents/reviewer.toml): `codex/agents/reviewer.toml`

### Workflow artifacts

- **Session state**
- [Task template](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/assets/task-prompt-template.md): `codex/skills/codex-orchestrator-subagents/assets/task-prompt-template.md`
- [Fix template](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/assets/fix-prompt-template.md): `codex/skills/codex-orchestrator-subagents/assets/fix-prompt-template.md`
- [Review contract](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/references/review-contract.md): `codex/skills/codex-orchestrator-subagents/references/review-contract.md`
- [Subagent reference](https://github.com/glaicer/subagent-orchestrator-skill/blob/main/codex/skills/codex-orchestrator-subagents/references/codex-subagents.md): `codex/skills/codex-orchestrator-subagents/references/codex-subagents.md`

### Other components

- **User**

## Connections

- User → Codex: invokes (evidence: `README.md`)
- User → OpenCode: invokes (evidence: `README.md`)
- Codex → Codex skill: loads skill (evidence: `README.md`)
- OpenCode → OpenCode skill: loads skill (evidence: `README.md`)
- Codex skill → Architect: asks to plan (evidence: `README.md`)
- Codex skill → Developer: assigns tasks (evidence: `README.md`)
- Codex skill → Reviewer: requests review (evidence: `README.md`)
- OpenCode skill → Architect: asks to plan (evidence: `README.md`)
- OpenCode skill → Developer: assigns tasks (evidence: `README.md`)
- OpenCode skill → Reviewer: requests review (evidence: `README.md`)
- Architect → Session state: writes plan (evidence: `README.md`)
- Developer → Session state: records work (evidence: `README.md`)
- Reviewer → Session state: records reviews (evidence: `README.md`)
