Code health
This codebase scores 7.2 out of 10 for code health, which we rate good. It also scores maintainability 8.3 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 7 of 614 files are git hotspots, and they average 2.0 — which is where the fixes pay off most.
4 things worth doing this quarter.
Break up create_chat_completion_with_tools (CCN 24, 109 lines)
gpt_researcher/utils/tools.py:158
create_chat_completion_with_tools nests its control flow deeply; 1 file imports it, changed 1 time in 90 days.
Flatten the nesting in parse_research_results_response
gpt_researcher/skills/deep_research.py:152
parse_research_results_response nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 4 files import it, changed 5 times in 90 days.
Delete 20 unused symbols and files (976 lines)
Nothing in the graph reaches them, across 15 files; every reader and agent pays to skip them.
Break up from_provider (CCN 41, 170 lines)
gpt_researcher/llm_provider/generic/base.py:206
from_provider is long, branchy and widely depended on; 10 files import it, changed 6 times in 90 days.
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.