RepoPilot

commaai/openpilot · Architecture

A static read of how commaai/openpilot is wired together — module coupling, layering, and circular dependencies — derived from its import graph.

B
Architecture grade
score 78/100
4
Import cycles
lower is better
303
Modules parsed
909 edges
96%
Layeredness
clean-layer ratio

Most-depended-on modules

These are the highest-fan-in files — change them and the blast radius is largest. Read them first.

  • openpilot/cereal/__init__.py75 importers · radius 197
  • openpilot/common/test.py63 importers · radius 67
  • openpilot/common/params.py61 importers · radius 184
  • openpilot/selfdrive/ui/ui_state.py44 importers · radius 50
  • openpilot/common/realtime.py41 importers · radius 122
  • openpilot/cereal/messaging/__init__.py40 importers · radius 118
  • openpilot/common/swaglog.py33 importers · radius 184
  • openpilot/common/hardware/__init__.py29 importers · radius 184

Modules (24)

Source directories grouped from the import graph. Each links to a per-module page with its files and how it couples to the rest.

Circular dependencies (4)

  • openpilot/common/hardware/hw.py to openpilot/common/hardware/__init__.py to openpilot/common/hardware/comma/hardware.py to openpilot/common/params.py to openpilot/common/swaglog.py to openpilot/common/hardware/hw.py
  • openpilot/selfdrive/ui/ui_state.py to openpilot/selfdrive/ui/lib/prime_state.py to openpilot/selfdrive/ui/ui_state.py
  • openpilot/selfdrive/test/mem_usage.py to openpilot/selfdrive/test/test_onroad.py to openpilot/selfdrive/test/mem_usage.py
  • openpilot/selfdrive/ui/tests/diff/replay.py to openpilot/selfdrive/ui/tests/diff/replay_script.py to openpilot/selfdrive/ui/tests/diff/replay.py

Ask AI about commaai/openpilot

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question

Informational only. RepoPilot summarises public signals at the time of analysis; they can be incomplete or stale. Not professional, security, or legal advice.