Code health of edge0-ai/edge0
Repowise scores edge0-ai/edge0 at 6.8 out of 10 for code health, which reads as fair, alongside maintainability 6.8 and static performance 9.8 on the same scale. There are 1,861 open findings across the three pillars, and the lowest-scoring file is layer.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
117 critical, 354 high, 705 medium, 685 low.
Hotspots
13 files are flagged as hotspots. The top 5:
- python/tests/test_server.py: 11 commits in the last 90 days from 6 contributors with 7 recent bug fixes
- python/src/edge0/cli.py: 9 commits in the last 90 days from 2 contributors with 2 recent bug fixes
- python/src/edge0/server/app.py: 9 commits in the last 90 days from 6 contributors with 5 recent bug fixes
- python/tests/test_streaming_math.py: 6 commits in the last 90 days from 2 contributors with 3 recent bug fixes
- python/src/edge0/engine/ling.py: 8 commits in the last 90 days from 2 contributors with 2 recent bug fixes
Lowest-scoring files
- python/src/edge0/streaming/layer.py: 1.0 out of 10 with 2 bug fixes in the last 180 days
- windows/serve/prefetch.cc: 1.0 out of 10
- macos/third_party/mlx/mlx/3rdparty/pocketfft.h: 1.0 out of 10
- macos/third_party/mlx/mlx/backend/metal/matmul.cpp: 1.0 out of 10
- macos/crates/engine-native/src/net8b.cpp: 1.0 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 3 had a bug fix in the last 180 days. Across all 738 scored files, 6.6% had a bug fix in that window.
Dead code and refactoring
Repowise found 39 unused exports. 85 refactoring targets across 85 files would raise the score.
More on edge0: summary and FAQ, codebase overview, architecture.