anthropics / anthropic-sdk-go
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 (11 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 11 components.
  • 82 files, 13,629 LOC (42.4% vs. main code).
  • "internal" is biggest, containing 50.84% of LOC.
  • "aws" is smallest, containing 0.45% of LOC.


internal6929 LOC (21%) 47 files
ROOT2113 LOC (6%) 8 files
lib1555 LOC (4%) 4 files
tools1296 LOC (4%) 8 files
config612 LOC (1%) 4 files
bedrock310 LOC (<1%) 2 files
packages300 LOC (<1%) 5 files
mcp253 LOC (<1%) 1 file
toolrunner107 LOC (<1%) 1 file
vertex92 LOC (<1%) 1 file
aws62 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.
ROOT19 commits (13%)
bedrock13 commits (9%)
internal10 commits (7%)
vertex9 commits (6%)
lib2 commits (1%)
toolrunner2 commits (1%)
aws2 commits (1%)
mcp1 commits (<1%)
packages1 commits (<1%)
tools1 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
13
5
1
internal
6
3
1
bedrock
3
6
4
vertex
3
2
4
lib
2
toolrunner
2
aws
2
mcp
1
packages
1
tools
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["ROOT"]
    n1["internal"]
    n2["bedrock"]
    n3["toolrunner"]
    n4["aws"]
    n5["lib"]
    n6["vertex"]
    n7["tools"]
    n0 ---|"6"| n0
    n1 ---|"3"| n2
    n3 ---|"2"| n0
    n1 ---|"2"| n4
    n1 ---|"2"| n0
    n5 ---|"1"| n0
    n6 ---|"1"| n2
    n5 ---|"1"| n5
    n5 ---|"1"| n1
    n7 ---|"1"| n5
    n2 ---|"1"| n2
    n2 ---|"1"| n4
    n6 ---|"1"| n4
    n6 ---|"1"| n1
    n7 ---|"1"| n7
    n1 ---|"1"| n1
    n1 ---|"1"| n3
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0B7,stroke-width:6px
    linkStyle 1 stroke:#00688b82,stroke-width:3px
    linkStyle 2 stroke:#00688b70,stroke-width:2px
    linkStyle 3 stroke:#00688b70,stroke-width:2px
    linkStyle 4 stroke:#00688b70,stroke-width:2px
    linkStyle 5 stroke:#00688b5E,stroke-width:1px
    linkStyle 6 stroke:#00688b5E,stroke-width:1px
    linkStyle 7 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px
    linkStyle 9 stroke:#00688b5E,stroke-width:1px
    linkStyle 10 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 11 stroke:#00688b5E,stroke-width:1px
    linkStyle 12 stroke:#00688b5E,stroke-width:1px
    linkStyle 13 stroke:#00688b5E,stroke-width:1px
    linkStyle 14 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 15 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 16 stroke:#00688b5E,stroke-width:1px



2026-06-24 10:44