alishahryar1 / free-claude-code
Code health
Hotspots average 4.5, the place fixes pay off most.
Explore this codebase
- Code health map64hotspots across 744 files
- Ownership655sole-owned files: one author, no second reader
- Architecture5modules, 16 entry points
- Decisions35recorded, of which 0 in force and 35 background
- Refactoring156open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
5 things worth doing in the week to Sep 19, the last indexed commit, 5 of them now.
Now
- High
Start breaking up render_markdown_to_mdv2 (CCN 56, 243 lines): first lift lines 179-184
src/free_claude_code/messaging/rendering/telegram_markdown.py:179
render_markdown_to_mdv2 nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 8 files, changed 2 times in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 56, 243 lines, nests 8 deep
- steps
- 1 (1 mechanical)
Small effort - High
Start breaking up render_markdown_to_discord (CCN 56, 232 lines): first lift lines 167-172
src/free_claude_code/messaging/rendering/discord_markdown.py:167
render_markdown_to_discord nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 4 files, changed 1 time in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 56, 232 lines, nests 8 deep
- steps
- 1 (1 mechanical)
Small effort - High
Start breaking up _run_execution (CCN 38, 206 lines): first lift lines 385-398
src/free_claude_code/providers/openai_responses/transport.py:385
_run_execution nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 10 commits; its file is imported by 2 files, changed 17 times in 90 days.
- gain
- +0.7 health on this file(inferred)
- health recoverable
- +0.7(inferred)
- size
- CCN 38, 206 lines, nests 7 deep
- steps
- 1 (1 mechanical)
Small effort
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,722 open findingsCriticalUntested hotspot · src/free_claude_code/api/admin_static/admin.js53 findings · 10.0 deducted
- Refactoring156 open opportunitiesMediumhandoff+1.5 health, S effort · src/free_claude_code/messaging/voice.py
- Decisions0 drifting from the codeMediumtests/providers/test_streaming_errors.pyHigh-churn file with no governing decision
- Ownership655 sole-owned filesMediumtests/providers/test_provider_runtime.pyOne author, no second reader
- Dead code1Lowopenai_error_from_anthropic_errorUnreachable function (9 lines)