Code Simplicity Metrics: ahma

Overall Repository Simplicity: 55%

Generated on: 2026-03-23 13:30:24

Executive Summary

The repository requires significant architectural review. Multiple areas show high complexity.

Rust Simplicity (Avg: 55%)

By Crate

  1. ahma_llm_monitor: 63%
  2. ahma_http_mcp_client: 61%
  3. ahma_simplify: 56%
  4. ahma_mcp: 55%
  5. ahma_http_bridge: 52%
  6. ahma_common: 48%

Top 20 Rust Code Complexity Issues (Lowest Simplicity)

  1. common/server.rs: Simplicity: 36% (High Cognitive Complexity)** ahma_http_bridge/tests/common/server.rs
  2. linux_sandbox_integration_test.rs: Simplicity: 37% (High Cyclomatic Complexity)** ahma_mcp/tests/linux_sandbox_integration_test.rs
  3. models.rs: Simplicity: 37% (High Cognitive Complexity)** ahma_simplify/src/models.rs
  4. callback_system.rs: Simplicity: 38% (High Cyclomatic Complexity)** ahma_mcp/src/callback_system.rs
  5. client_coverage_expansion_test.rs: Simplicity: 38% (High Cyclomatic Complexity)** ahma_mcp/tests/client_coverage_expansion_test.rs
  6. core.rs: Simplicity: 38% (High Cognitive Complexity)** ahma_mcp/src/sandbox/core.rs
  7. client.rs: Simplicity: 39% (High Cognitive Complexity)** ahma_mcp/src/test_utils/client.rs
  8. test_utils_coverage_test.rs: Simplicity: 39% (High Cyclomatic Complexity)** ahma_mcp/tests/test_utils_coverage_test.rs
  9. sequence_failure_edge_cases_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/sequence_failure_edge_cases_test.rs
  10. cli_extended_integration_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/cli_extended_integration_test.rs
  11. mcp_service_coverage_improvement_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/mcp_service_coverage_improvement_test.rs
  12. async_comprehensive.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/shell_pool/async_comprehensive.rs
  13. cli_binary_integration_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/cli_binary_integration_test.rs
  14. arg_processor.rs: Simplicity: 40% (High Cognitive Complexity)** ahma_mcp/src/adapter/preparer/arg_processor.rs
  15. modes/server.rs: Simplicity: 40% (High Cognitive Complexity)** ahma_mcp/src/shell/modes/server.rs
  16. tool_availability_coverage_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/tool_availability_coverage_test.rs
  17. mcp_callback_comprehensive_test.rs: Simplicity: 40% (High Cyclomatic Complexity)** ahma_mcp/tests/mcp_callback_comprehensive_test.rs
  18. handshake_concurrency_test.rs: Simplicity: 40% (High Cognitive Complexity)** ahma_http_bridge/tests/handshake_concurrency_test.rs
  19. config_watcher.rs: Simplicity: 40% (High Cognitive Complexity)** ahma_mcp/src/mcp_service/config_watcher.rs
  20. cargo_tool_integration_test.rs: Simplicity: 41% (High Cognitive Complexity)** ahma_http_bridge/tests/cargo_tool_integration_test.rs

Metrics Glossary

Cognitive Complexity

Cyclomatic Complexity

Source Lines of Code (SLOC)

Maintainability Index (MI)