repowisecomposiohq/composio

Code health of composiohq/composio

Repowise scores composiohq/composio at 8.0 out of 10 for code health, which reads as good, alongside maintainability 8.5 and static performance 9.9 on the same scale. There are 2,469 open findings across the three pillars, and the lowest-scoring file is triggers.py at 2.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

327 critical, 486 high, 1,070 medium, 564 low.

Hotspots

121 files are flagged as hotspots. The top 5:

  • ts/packages/cli/src/services/composio-clients.ts: 9 commits in the last 90 days from 8 contributors with 3 recent bug fixes
  • python/composio/core/models/tool_router_session.py: 14 commits in the last 90 days from 10 contributors with 11 recent bug fixes
  • python/composio/utils/schema_converter.py: 10 commits in the last 90 days from 6 contributors with 12 recent bug fixes
  • ts/packages/cli/src/analytics/dispatch.ts: 28 commits in the last 90 days from 4 contributors with 12 recent bug fixes
  • ts/packages/cli/src/commands/root-help.ts: 8 commits in the last 90 days from 7 contributors with 9 recent bug fixes

Lowest-scoring files

  • python/composio/core/models/triggers.py: 2.0 out of 10 with 8 bug fixes in the last 180 days
  • python/composio/utils/schema_converter.py: 2.0 out of 10 with 12 bug fixes in the last 180 days
  • ts/packages/core/src/models/ToolRouterSession.ts: 2.1 out of 10 with 11 bug fixes in the last 180 days
  • ts/packages/cli/src/commands/login.cmd.ts: 2.1 out of 10 with 9 bug fixes in the last 180 days
  • ts/packages/cli/src/commands/triggers/commands/triggers.listen.cmd.ts: 2.1 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 1,692 scored files, 17.7% had a bug fix in that window.

Dead code and refactoring

Repowise found 27 unused exports. 75 refactoring targets across 75 files would raise the score.

More on composio: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language