# pyscn Analysis Report

Generated: 2026-01-21 01:08:02

Health Score: 93/100 (Grade: A)

## Analysis Summary

### Quality Scores

Complexity 65/100
Avg: 6.4, High-risk: 0

### File Statistics

173
Total Files
173
Analyzed Files
6.36
Avg Complexity
0
Dead Code Issues
0
Unique Fragments
0.0%
Code Duplication

## Complexity Analysis

65/100
410
Total Functions
6.36
Average
23
Maximum

### Top Complex Functions

Function | File | Complexity | Nesting Depth | Risk
--- | --- | --- | --- | ---
_generate_session_insights | session_buddy/tools/workflow_metrics_tools.py | 23 | 2 | medium
UsageMetrics.update_from_interactions | session_buddy/analytics/usage_tracker.py | 15 | 1 | low
SessionAnalytics.get_productivity_insights | session_buddy/core/session_analytics.py | 13 | 2 | low
_generate_recommendations_v2 | session_buddy/utils/quality_utils_v2.py | 13 | 2 | low
QueryCacheManager.get | session_buddy/cache/query_cache.py | 13 | 4 | low
TeamUserParams.validate_email | session_buddy/parameter_models.py | 13 | 1 | low
__main__ | session_buddy/server.py | 12 | 0 | low
_get_reflection_database_async | session_buddy/tools/validated_memory_tools.py | 12 | 2 | low
ReflectionDatabase.initialize | session_buddy/reflection_tools.py | 12 | 3 | low
SubcategoryClusterer.cluster_memories | session_buddy/memory/category_evolution.py | 12 | 3 | low

Showing top 10 of 410 functions