Daily Code Metrics Report - 2026-03-10 #3028
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-03-13T16:53:56.579Z.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The amplihack codebase was analyzed on 2026-03-10. The repository contains 1,543,094 total lines across all tracked file types, with Python (669,489 LOC) and Markdown (820,813 LOC) dominating the distribution. The overall quality score is 72.3/100 — a notable change from yesterday's 81.1, primarily driven by a significant increase in code churn (74 commits, 902 files modified, +53,720 net LOC) which lowers churn stability. Test coverage remains healthy at 0.769 test-to-source ratio.
The most significant finding is the explosive growth: LOC increased by ~131K lines day-over-day, with major additions in
src/amplihack/agents/goal_seeking/,experiments/hive_mind/, and fleet tests. This active development is healthy but is temporarily depressing the churn stability score. The comment density (6.5%) and code organization score (334 large files > 500 LOC) represent areas for sustained improvement.📊 Visualizations
LOC Distribution by Language
Markdown dominates at 53.2% of total LOC, reflecting amplihack's heavy documentation and workflow-as-code model. Python is the primary source language at 43.4%. Rust, TypeScript, and JavaScript contribute a small but growing footprint.
Top Directories by LOC
.claude(403,945) anddocs(390,422) are the two largest directories, each exceedingamplifier-bundle(260,536) andsrc(190,692). Thetestsdirectory (182,509 LOC) reflects strong test investment. Thesrc+testsbalance is healthy.Quality Score Breakdown
The 72.3/100 quality score reflects strong documentation (16/20) and test coverage (25.4/30), but is constrained by high churn this week (8.9/15) and low comment density (6.0/10). Code organization (16.0/25) is impacted by 334 files exceeding 500 LOC.
Test Coverage Analysis
Test LOC (291,045) vs source LOC (378,444) yields a 0.769 ratio — within the target range of 0.5–1.0. This is excellent for an actively developed AI framework. 764 test files covering 2,140 source files indicates broad coverage intent.
Code Churn (Last 7 Days)
74 commits touched 902 source files with +142,369 / -88,649 lines (net +53,720). The most churned files are
power_steering_checker.py(refactored),learning_agent.py(new addition), and_hierarchical_memory_local.py(new). Lock file churn (33 files, +9,458/-7,295 lines) is tracked separately and excluded from quality scoring.Historical Trends (2 Days)
Only 2 data points so far (Mar 9–10). Day-over-day LOC grew +131K (+9.3%). Quality score dropped from 81.1 → 72.3 due to churn spike. Trends will become more meaningful with 7+ days of history.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 291,045 linestest_to_source_ratio): 0.769Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
.claude/tools/.../power_steering_checker.py: -5,200 lines (refactored away)amplifier-bundle/.../power_steering_checker.py: -5,035 lines (refactored away)src/.../learning_agent.py: +3,103 lines (new feature)amplifier-bundle/.../main_checker.py: +1,278/-1,278 lines (churn)src/.../_hierarchical_memory_local.py: +2,362 lines (new feature)docs/.../FINAL_SYNTHESIS_MEMORY.md: -1,950 lines (doc cleanup)docs/.../KNOWLEDGE_GRAPH_RESEARCH.md: -1,901 lines (doc cleanup)src/.../test_fleet_cli.py: +1,783 lines (new tests)experiments/.../run_20agent_kuzu_eval.py: +1,713 lines (experiment)experiments/.../run_full_distributed.py: +1,587 lines (experiment)Workflow Lock File Churn (*.lock.yml only)
Note: Lock file churn is tracked separately and excluded from quality score calculations.
Workflow Metrics
total_workflows): 56 files in .githubDocumentation
Quality Score: 72.3/100
Component Breakdown
Day-over-Day Comparison
💡 Insights & Recommendations
Reduce large file count (334 files > 500 LOC): The code organization score (64%) is the second-weakest component. Prioritize splitting
learning_agent.py(3,103 LOC),_hierarchical_memory_local.py(2,362 LOC),cli.py(1,949 LOC), andauto_mode.py(1,873 LOC) into focused modules. Target: reduce to <250 large files.Improve comment density (6.5% → target 12-15%): The comment density score (60%) is the joint-weakest component. New code being added (
learning_agent.py,_hierarchical_memory_local.py) should include inline documentation. Focus first on public APIs and complex algorithms.Monitor churn stabilization: The current 74-commit/7-day velocity (+53K net lines) reflects active feature development (goal-seeking agents, hierarchical memory). Churn stability should recover as this sprint concludes. Watch for the score to rebound toward 12+/15 over the next 7 days.
Test ratio recovery: The test-to-source ratio dropped from 1.062 to 0.769 as source code grew faster than tests. New files
learning_agent.py,_hierarchical_memory_local.pyneed test coverage. Aim to add tests within 48 hours of new source additions.Archive or remove experimental files:
experiments/hive_mind/contains 12,225 LOC of one-off evaluation scripts that inflate churn and file counts. Consider archiving completed experiments to a separate branch or tagging them as archived.Report generated by Daily Code Metrics workflow
Historical data: 2 days | Last updated: 2026-03-10 UTC
Workflow run: 22913534363
Beta Was this translation helpful? Give feedback.
All reactions