anthropics / anthropic-sdk-go
Static Component Dependencies

An overview of static code dependencies among source code logical components.

Intro

Static code dependencies refer to the relationships between different modules, libraries, or components in a software system that are established at compile-time rather than at runtime. These dependencies are determined by the code itself, meaning that one module directly references another through imports, includes, or explicit references in the code. Examples include:

  • Library and Module Imports
  • Class Dependencies (Inheritance & Composition)
  • Function and Method Calls
  • Dependency Injection Without Runtime Resolution
Learn more...
  • To learn more about good practices on componentization and dependencies, Sokrates recommends the following resources:
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
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 9 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 9 links contain 23 dependencies.
  • There is 1 place (2 links) with cyclic dependencies (10 file dependencies).
flowchart TB
    n0["ROOT"]
    n1["mcp"]
    n2["aws"]
    n3["toolrunner"]
    n4["internal"]
    n5["bedrock"]
    n6["packages"]
    n7["config"]
    n8["lib"]
    n9["tools"]
    n10["vertex"]
    n4 -->|"9"| n6
    n4 -->|"4"| n7
    n8 -->|"3"| n4
    n8 -->|"2"| n6
    n2 -->|"1"| n4
    n5 -->|"1"| n4
    n5 -->|"1"| n7
    n6 -->|"1"| n4
    n8 -->|"1"| n9
    classDef default fill:#808080,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    class n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10 highlighted;
    linkStyle 0 stroke:#DC143CED,stroke-width:9px
    linkStyle 1 stroke:#00688b93,stroke-width:4px
    linkStyle 2 stroke:#00688b82,stroke-width:3px
    linkStyle 3 stroke:#00688b70,stroke-width:2px
    linkStyle 4 stroke:#00688b5E,stroke-width:1px
    linkStyle 5 stroke:#00688b5E,stroke-width:1px
    linkStyle 6 stroke:#00688b5E,stroke-width:1px
    linkStyle 7 stroke:#DC143C5E,stroke-width:1px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px



Download: Mermaid (.mmd) (open online Mermaid editor)

Open 2D force graph...
Open 3D force graph...

Show more details about dependencies...
From Component
 --> To Component
From Component
(files with dependencies)
Details
internal
  --> packages
9 files, 1625 LOC (23%)
9 source files
internal
  --> config
4 files, 624 LOC (9%)
4 source files
lib
  --> internal
3 files, 918 LOC (59%)
3 source files
lib
  --> packages
2 files, 584 LOC (37%)
2 source files
aws
  --> internal
1 file, 62 LOC (100%)
1 source file
bedrock
  --> internal
1 file, 64 LOC (20%)
1 source file
bedrock
  --> config
1 file, 246 LOC (79%)
1 source file
packages
  --> internal
1 file, 93 LOC (31%)
1 source file
lib
  --> tools
1 file, 279 LOC (17%)
1 source file







2026-06-24 10:44