anthropics / cwc-workshops
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 (6 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 6 components.
  • 199 files, 15,957 LOC (100.0% vs. main code).
  • "agent-battle" is biggest, containing 34.65% of LOC.
  • "ship-your-first-managed-agent" is smallest, containing 5.16% of LOC.


agent-battle5529 LOC (34%) 24 files
production-ready-agent4027 LOC (25%) 80 files
how-we-claude-code2738 LOC (17%) 30 files
agent-decomposition1824 LOC (11%) 25 files
eval-driven-agent-development1016 LOC (6%) 28 files
ship-your-first-managed-agent823 LOC (5%) 12 files
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
agent-battle11 commits (42%)
production-ready-agent5 commits (19%)
eval-driven-agent-development4 commits (15%)
agent-decomposition4 commits (15%)
ship-your-first-managed-agent2 commits (7%)
how-we-claude-code2 commits (7%)
Yearly File Updates Trend per Components
The number of file changes in commits
animated commit history: all time cumulative | 12 months window
2026
agent-battle
11
production-ready-agent
5
eval-driven-agent-development
4
agent-decomposition
4
ship-your-first-managed-agent
2
how-we-claude-code
2


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["agent-battle"]
    n1["production-ready-agent"]
    n2["agent-decomposition"]
    n3["eval-driven-agent-development"]
    n4["how-we-claude-code"]
    n5["ship-your-first-managed-agent"]
    n0 ---|"7"| n0
    n1 ---|"5"| n1
    n2 ---|"4"| n2
    n3 ---|"4"| n3
    n4 ---|"2"| n4
    n5 ---|"2"| n4
    n4 ---|"2"| n2
    n4 ---|"2"| n3
    n5 ---|"2"| n0
    n3 ---|"2"| n2
    n4 ---|"2"| n0
    n5 ---|"2"| n3
    n2 ---|"2"| n0
    n5 ---|"2"| n2
    n0 ---|"2"| n3
    n5 ---|"2"| n5
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0C9,stroke-width:7px
    linkStyle 1 stroke:#a0a0a0A5,stroke-width:5px
    linkStyle 2 stroke:#a0a0a093,stroke-width:4px
    linkStyle 3 stroke:#a0a0a093,stroke-width:4px
    linkStyle 4 stroke:#a0a0a070,stroke-width:2px
    linkStyle 5 stroke:#00688b70,stroke-width:2px
    linkStyle 6 stroke:#00688b70,stroke-width:2px
    linkStyle 7 stroke:#00688b70,stroke-width:2px
    linkStyle 8 stroke:#00688b70,stroke-width:2px
    linkStyle 9 stroke:#00688b70,stroke-width:2px
    linkStyle 10 stroke:#00688b70,stroke-width:2px
    linkStyle 11 stroke:#00688b70,stroke-width:2px
    linkStyle 12 stroke:#00688b70,stroke-width:2px
    linkStyle 13 stroke:#00688b70,stroke-width:2px
    linkStyle 14 stroke:#00688b70,stroke-width:2px
    linkStyle 15 stroke:#a0a0a070,stroke-width:2px



2026-06-24 10:48