anthropics / claude-cookbooks
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 (18 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 18 components.
  • 177 files, 43,691 LOC (100.0% vs. main code).
  • "claude_agent_sdk" is biggest, containing 20.05% of LOC.
  • "anthropic_cookbook" is smallest, containing 0% of LOC.


claude_agent_sdk8761 LOC (20%) 30 files
tool_use8490 LOC (19%) 23 files
misc6706 LOC (15%) 12 files
managed_agents6620 LOC (15%) 54 files
capabilities3364 LOC (7%) 27 files
patterns2270 LOC (5%) 5 files
skills1780 LOC (4%) 8 files
coding1175 LOC (2%) 1 file
ROOT1015 LOC (2%) 5 files
extended_thinking862 LOC (1%) 1 file
scripts742 LOC (1%) 4 files
fable_5_fallback_billing560 LOC (1%) 1 file
multimodal508 LOC (1%) 1 file
.claude339 LOC (<1%) 1 file
finetuning258 LOC (<1%) 1 file
.github206 LOC (<1%) 1 file
tool_evaluation34 LOC (<1%) 1 file
anthropic_cookbook1 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.
ROOT69 commits (11%)
misc64 commits (10%)
tool_use52 commits (8%)
managed_agents34 commits (5%)
capabilities25 commits (4%)
scripts21 commits (3%)
patterns17 commits (2%)
claude_agent_sdk17 commits (2%)
skills14 commits (2%)
multimodal13 commits (2%)
finetuning10 commits (1%)
extended_thinking9 commits (1%)
coding6 commits (1%)
.claude5 commits (<1%)
.github4 commits (<1%)
tool_evaluation3 commits (<1%)
anthropic_cookbook2 commits (<1%)
fable_5_fallback_billing2 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 2024
ROOT
42
27
tool_use
5
40
7
misc
16
19
29
managed_agents
34
capabilities
13
12
scripts
1
20
claude_agent_sdk
12
5
patterns
3
11
3
skills
1
13
extended_thinking
1
8
finetuning
8
2
multimodal
1
5
7
coding
1
5
.claude
1
4
.github
4
tool_evaluation
3
anthropic_cookbook
2
fable_5_fallback_billing
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["managed_agents"]
    n1["ROOT"]
    n2["claude_agent_sdk"]
    n3["misc"]
    n4["patterns"]
    n5["capabilities"]
    n6["tool_use"]
    n7["fable_5_fallback_billing"]
    n8["scripts"]
    n9[".claude"]
    n10["extended_thinking"]
    n11["coding"]
    n12["skills"]
    n13["multimodal"]
    n0 ---|"17"| n0
    n1 ---|"16"| n1
    n0 ---|"11"| n1
    n2 ---|"8"| n1
    n2 ---|"7"| n2
    n3 ---|"3"| n1
    n1 ---|"3"| n4
    n5 ---|"3"| n1
    n6 ---|"3"| n1
    n3 ---|"2"| n3
    n7 ---|"2"| n1
    n8 ---|"1"| n2
    n5 ---|"1"| n5
    n3 ---|"1"| n2
    n6 ---|"1"| n9
    n4 ---|"1"| n3
    n6 ---|"1"| n2
    n6 ---|"1"| n3
    n8 ---|"1"| n3
    n3 ---|"1"| n5
    n10 ---|"1"| n5
    n11 ---|"1"| n5
    n11 ---|"1"| n2
    n3 ---|"1"| n11
    n6 ---|"1"| n8
    n2 ---|"1"| n5
    n3 ---|"1"| n9
    n4 ---|"1"| n5
    n12 ---|"1"| n3
    n6 ---|"1"| n4
    n13 ---|"1"| n3
    n4 ---|"1"| n4
    n6 ---|"1"| n5
    n10 ---|"1"| n9
    n4 ---|"1"| n13
    n8 ---|"1"| n11
    n4 ---|"1"| n9
    n4 ---|"1"| n2
    n10 ---|"1"| n11
    n13 ---|"1"| n5
    n12 ---|"1"| n2
    n12 ---|"1"| n13
    n10 ---|"1"| n2
    n6 ---|"1"| n12
    n4 ---|"1"| n11
    n13 ---|"1"| n9
    n12 ---|"1"| n1
    n6 ---|"1"| n6
    n12 ---|"1"| n5
    n8 ---|"1"| n5
    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:#a0a0a0ED,stroke-width:9px
    linkStyle 2 stroke:#00688bB7,stroke-width:6px
    linkStyle 3 stroke:#00688b93,stroke-width:4px
    linkStyle 4 stroke:#a0a0a093,stroke-width:4px
    linkStyle 5 stroke:#00688b5E,stroke-width:1px
    linkStyle 6 stroke:#00688b5E,stroke-width:1px
    linkStyle 7 stroke:#00688b5E,stroke-width:1px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px
    linkStyle 9 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 10 stroke:#00688b5E,stroke-width:1px
    linkStyle 11 stroke:#00688b4C,stroke-width:1px
    linkStyle 12 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 13 stroke:#00688b4C,stroke-width:1px
    linkStyle 14 stroke:#00688b4C,stroke-width:1px
    linkStyle 15 stroke:#00688b4C,stroke-width:1px
    linkStyle 16 stroke:#00688b4C,stroke-width:1px
    linkStyle 17 stroke:#00688b4C,stroke-width:1px
    linkStyle 18 stroke:#00688b4C,stroke-width:1px
    linkStyle 19 stroke:#00688b4C,stroke-width:1px
    linkStyle 20 stroke:#00688b4C,stroke-width:1px
    linkStyle 21 stroke:#00688b4C,stroke-width:1px
    linkStyle 22 stroke:#00688b4C,stroke-width:1px
    linkStyle 23 stroke:#00688b4C,stroke-width:1px
    linkStyle 24 stroke:#00688b4C,stroke-width:1px
    linkStyle 25 stroke:#00688b4C,stroke-width:1px
    linkStyle 26 stroke:#00688b4C,stroke-width:1px
    linkStyle 27 stroke:#00688b4C,stroke-width:1px
    linkStyle 28 stroke:#00688b4C,stroke-width:1px
    linkStyle 29 stroke:#00688b4C,stroke-width:1px
    linkStyle 30 stroke:#00688b4C,stroke-width:1px
    linkStyle 31 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 32 stroke:#00688b4C,stroke-width:1px
    linkStyle 33 stroke:#00688b4C,stroke-width:1px
    linkStyle 34 stroke:#00688b4C,stroke-width:1px
    linkStyle 35 stroke:#00688b4C,stroke-width:1px
    linkStyle 36 stroke:#00688b4C,stroke-width:1px
    linkStyle 37 stroke:#00688b4C,stroke-width:1px
    linkStyle 38 stroke:#00688b4C,stroke-width:1px
    linkStyle 39 stroke:#00688b4C,stroke-width:1px
    linkStyle 40 stroke:#00688b4C,stroke-width:1px
    linkStyle 41 stroke:#00688b4C,stroke-width:1px
    linkStyle 42 stroke:#00688b4C,stroke-width:1px
    linkStyle 43 stroke:#00688b4C,stroke-width:1px
    linkStyle 44 stroke:#00688b4C,stroke-width:1px
    linkStyle 45 stroke:#00688b4C,stroke-width:1px
    linkStyle 46 stroke:#00688b4C,stroke-width:1px
    linkStyle 47 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 48 stroke:#00688b4C,stroke-width:1px
    linkStyle 49 stroke:#00688b4C,stroke-width:1px



2026-06-24 10:44