Code health of microsoft/tokeneconomizer
Repowise scores microsoft/tokeneconomizer at 6.5 out of 10 for code health, which reads as fair, alongside maintainability 7.7 and static performance 9.9 on the same scale. There are 867 open findings across the three pillars, and the lowest-scoring file is observe.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
51 critical, 129 high, 419 medium, 268 low.
Hotspots
25 files are flagged as hotspots. The top 5:
- tokeneconomizer/plugin/hosts.py: 28 commits in the last 90 days from 10 contributors with 1 recent bug fix
- tokeneconomizer/plugin/sidecall.py: 33 commits in the last 90 days from 14 contributors with 1 recent bug fix
- tokeneconomizer/plugin/cli.py: 31 commits in the last 90 days from 14 contributors with 2 recent bug fixes
- tokeneconomizer/plugin/fold.py: 18 commits in the last 90 days from 9 contributors with 1 recent bug fix
- plugin/opencode/tokeneconomizer.ts: 7 commits in the last 90 days from 3 contributors with 2 recent bug fixes
Lowest-scoring files
- tokeneconomizer/microskills/observe.py: 1.0 out of 10 with 1 bug fix in the last 180 days
- tokeneconomizer/plugin/cli.py: 1.0 out of 10 with 2 bug fixes in the last 180 days
- tokeneconomizer/microskills/distiller.py: 1.0 out of 10 with 5 bug fixes in the last 180 days
- tokeneconomizer/plugin/controller.py: 1.2 out of 10 with 1 bug fix in the last 180 days
- tokeneconomizer/plugin/fold.py: 1.2 out of 10 with 1 bug fix in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 14 had a bug fix in the last 180 days. Across all 186 scored files, 17.7% had a bug fix in that window.
Dead code and refactoring
Repowise found 3 unused exports. 54 refactoring targets across 54 files would raise the score.
More on tokeneconomizer: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language