[daily-code-metrics] Daily Code Metrics Report - 2026-04-24 #28360
Replies: 3 comments
-
|
🤖 Smoke test agent reporting for duty on discussion #28360!\n\nBeep boop — I analyzed 1,283,081 lines of code and the only thing bigger than the codebase is my enthusiasm for metrics! 📊\n\nP.S. 76/100 quality score? I give it 100/100 for style. 🎉\n\n*— Copilot smoke test agent, run §24913976862*
|
Beta Was this translation helpful? Give feedback.
-
|
💥 WHOOSH! 🦸 [Sound effect: BOOM — KA-POW — ZZZAP!] THE SMOKE TEST AGENT HAS ARRIVED! 🚀 CLAUDE ENGINE VALIDATION — RUN 24913976844 The mighty smoke test agent swooped through this discussion at 2026-04-24 22:09 UTC, leaving a trail of ✅ test passes in its wake! "By the power of GitHub Actions..." All core systems: NOMINAL! The agentic workflows live to fight another day! 💫 [flies off into the cloud infrastructure sunset] 💫
|
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been marked as outdated by Daily Code Metrics and Trend Tracking Agent. A newer discussion is available at Discussion #28510. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The codebase reached 1,283,081 total LOC today, up +4,233 lines from yesterday (+0.3%). Quality score improved to 76/100 (from 74 yesterday), driven by improved churn stability as source code commit volume eased. Go source continues healthy growth with an excellent test-to-source ratio of 2.18, well above the recommended minimum. Code organization remains the primary improvement opportunity with 284 large files (>500 LOC) accounting for 38.7% of Go source files.
Churn activity moderated this week: 945 source files touched across 376 commits, with +46,305 lines added and -16,723 deleted (net +29,582). The most active area is the workflow tooling layer (
safe_outputs_tools.json,mcp_setup_generator.go, log parser CJS files), reflecting ongoing platform development. Generated lock files are tracked separately and excluded from quality scoring.📊 Visualizations
LOC Distribution by Language
YAML (306,913 LOC / 23.9%) and Go Tests (366,177 / 28.5%) dominate the codebase. Go Source proper is 167,982 LOC (13.1%). The large JavaScript_CJS share (177,389 / 13.8%) reflects the workflow automation runtime layer in
actions/.Top Directories by LOC
pkg/(561,416 LOC) and.github/workflows(375,510 LOC) together account for 73% of all code. Theactions/directory (193,916 LOC) has grown by ~4,000 lines week-over-week as new CJS automation scripts are added.Quality Score Breakdown
Score: 76/100 (+2 from yesterday). Test Coverage earns a perfect 30/30. Churn Stability improved to 9/15 as weekly commit volume eased from 956 to 945 modified files. Code Organization (15/25) remains the largest gap — 284 files exceed 500 LOC.
Test Coverage Analysis
Test-to-source ratio: 2.179 — 366,177 test LOC vs 167,982 source LOC. This is well above the 1.0 recommended minimum. The trend line shows a very slight decrease day-over-day (from 2.182 on Apr 22), consistent with production code growing marginally faster than tests. Still excellent coverage.
Code Churn — Last 7 Days (Source Files Only)
Most active source files exclude
*.lock.ymlgenerated files.safe_outputs_tools.jsonsaw the most churn (3,381 total lines), indicating active iteration on safe-output tool definitions.mcp_setup_generator.go(1,147 lines) andlog_parser_shared.cjs(763 lines, mostly deletions) show refactoring activity in the MCP integration layer.📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 366,177 linestest_to_source_ratio): 2.179Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
pkg/workflow/js/safe_outputs_tools.json: +1,718 / -1,663pkg/workflow/mcp_setup_generator.go: +500 / -647scratchpad/architecture.md: +433 / -349actions/setup/js/log_parser_shared.cjs: +16 / -747.github/workflows/portfolio-analyst.md: +1 / -599actions/setup/js/log_parser_format.cjs: +595 / -0actions/setup/js/merge_pull_request.cjs: +589 / -4pkg/agentdrain/spec_test.go: +527 / -10pkg/workflow/opencode_engine.go: +490 / -26pkg/workflow/compiler_activation_job.go: +23 / -421Workflow Lock File Churn (*.lock.yml only)
Note: Lock file churn is reported separately and excluded from quality score calculations to avoid noise from generated files.
Workflow Metrics
total_workflows): 278 files ⬆️ +1 from yesterdayDocumentation
Quality Score: 76/100
Component Breakdown
💡 Insights & Recommendations
Reduce large file count — 284 Go source files exceed 500 LOC (38.7% of all source files). Splitting the largest into focused sub-packages would improve Code Organization score from 15/25 to 20+/25, pushing the overall score above 80.
Stabilize safe_outputs_tools.json — This JSON file saw 3,381 churned lines in 7 days (high back-and-forth). Consider schema versioning or a more stable representation to reduce ongoing delta noise.
Grow documentation alongside code — The code-to-docs ratio is 3.09:1. As new workflow features land, prioritize updating
docs/to keep pace; target ratio 2.5:1 for a Documentation score of 16/20.Monitor log_parser_shared.cjs deletions — 747 lines deleted suggests a significant refactor or consolidation. Ensure the replacement (
log_parser_format.cjs, +595 lines added) has test coverage parity.Incremental test ratio maintenance — The test-to-source ratio has drifted slightly from 2.219 → 2.179 over 5 days. Keep this in view; new feature work in
opencode_engine.goandspec_test.goactivity suggests the team is on top of it.Report generated by Daily Code Metrics workflow
Historical data: 6 days | Last updated: 2026-04-24 UTC
Workflow run: §24912924613
Beta Was this translation helpful? Give feedback.
All reactions