openai / codex
Components

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components. This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (10 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 10 components.
  • 1,833 files, 552,164 LOC (100.0% vs. main code).
  • "codex-rs" is biggest, containing 97.42% of LOC.
  • ".devcontainer" is smallest, containing 0.01% of LOC.


codex-rs537909 LOC (97%) 1,736 files
sdk5883 LOC (1%) 34 files
scripts3078 LOC (<1%) 20 files
.github1737 LOC (<1%) 12 files
.codex1679 LOC (<1%) 5 files
tools702 LOC (<1%) 16 files
ROOT400 LOC (<1%) 6 files
codex-cli372 LOC (<1%) 1 file
bazel340 LOC (<1%) 2 files
.devcontainer64 LOC (<1%) 1 file
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
codex-rs5234 commits (68%)
sdk61 commits (<1%)
scripts36 commits (<1%)
.github28 commits (<1%)
ROOT24 commits (<1%)
codex-cli13 commits (<1%)
.codex11 commits (<1%)
tools6 commits (<1%)
bazel4 commits (<1%)
.devcontainer1 commits (<1%)
Yearly File Updates Trend per Components
The number of file changes in commits
animated commit history: all time cumulative | 12 months window
2026 2025
codex-rs
3849
1385
sdk
35
26
scripts
30
6
.github
22
6
ROOT
17
7
codex-cli
7
6
.codex
11
tools
6
bazel
4
.devcontainer
1


Dependencies between components in same commits (past 180 days)
The number on the lines shows the number of shared commits.
See detailed temporal dependencies report...

flowchart TB
    n0["codex-rs"]
    n1["sdk"]
    n2[".github"]
    n3["scripts"]
    n4["codex-cli"]
    n5["ROOT"]
    n6["tools"]
    n7["bazel"]
    n8[".codex"]
    n0 ---|"2749"| n0
    n1 ---|"22"| n1
    n0 ---|"12"| n2
    n3 ---|"10"| n3
    n2 ---|"7"| n2
    n4 ---|"6"| n3
    n5 ---|"6"| n0
    n1 ---|"6"| n0
    n6 ---|"5"| n6
    n5 ---|"3"| n5
    n3 ---|"3"| n0
    n7 ---|"2"| n0
    n6 ---|"2"| n0
    n0 ---|"2"| n8
    n7 ---|"1"| n7
    n8 ---|"1"| n8
    n8 ---|"1"| n2
    n5 ---|"1"| n2
    n1 ---|"1"| n4
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0FF,stroke-width:10px
    linkStyle 1 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 2 stroke:#00688b4C,stroke-width:1px
    linkStyle 3 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 4 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 5 stroke:#00688b4C,stroke-width:1px
    linkStyle 6 stroke:#00688b4C,stroke-width:1px
    linkStyle 7 stroke:#00688b4C,stroke-width:1px
    linkStyle 8 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 9 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 10 stroke:#00688b4C,stroke-width:1px
    linkStyle 11 stroke:#00688b4C,stroke-width:1px
    linkStyle 12 stroke:#00688b4C,stroke-width:1px
    linkStyle 13 stroke:#00688b4C,stroke-width:1px
    linkStyle 14 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 15 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 16 stroke:#00688b4C,stroke-width:1px
    linkStyle 17 stroke:#00688b4C,stroke-width:1px
    linkStyle 18 stroke:#00688b4C,stroke-width:1px



2026-06-24 10:40