update v0.4.0
π Release v0.4.0 ("Pulse") β Architectural Technical Debt & Health Intelligence
We are thrilled to announce the official release of CodeMRI v0.4.0 (Codename: "Pulse")! π
In this milestone release, CodeMRI evolves from a passive syntactic dependency indexer into an Active Architectural Diagnostic Engine. Built entirely in pure Go with zero CGO dependencies, Pulse computes system technical debt, isolates forgotten dead code, and detects cyclical architectural anti-patterns locally in sub-millisecond speeds.
π₯ Highlights & Core Innovations
- π Authoritative Repository Health Scoring (0β100 & Grades A+ to F):
Synthesizes dead code rates, circular coupling loops, comments documentation ratio, and structural complexity density into an actionable executive grade. - π§ Dead Code & Isolated Symbol Discovery:
Traverses structural incoming bindings (CALLS,IMPORTS,DEPENDS_ON,QUERIES) across the SQLite Neural Repository Graph (NRG). Accurately flags unreferenced private functions and redundant boilerplate while intelligently exempting exported public interfaces and framework entry points. - π Circular Dependency Loop Analyzer:
Implements high-speed Depth-First Search (DFS) with recursion stack tracking to instantly expose architectural deadlocks and spaghetti import cycles (e.g.,pkg/A β pkg/B β pkg/A). - βοΈ Cyclomatic Complexity Hotspot Ranking:
Identifies structural density hotspots and classifies source files into severity strata: Low, Moderate, High, or Extreme Technical Debt. - π‘ Actionable AI Reasoning Advice:
Provides prioritized human-readable architecture refactoring guidance directly in your terminal and visual web dashboard.
π¦ Zero-Friction Installation & Quickstart
Install or upgrade to v0.4.0 natively via Go (no Node.js or JVM required):
# Upgrade your global CodeMRI engine
go install github.com/KangBasrengg/MRI-Code/cmd/codemri@v0.4.0
# Alternatively, build directly from the main release branch
go install github.com/KangBasrengg/MRI-Code/cmd/codemri@latestβ‘ The "One-Word" Killer Workflow
Navigate into any enterprise codebase or personal project and run:
# Execute standalone technical debt and health diagnostics
codemri analyze .
# Or run the universal 1-command workflow (indexes Pulse diagnostics & launches Web UI on port 4000)
codemriπ Reactive Visual Web Dashboard (Port 4000)
When you run codemri, our interactive dark-mode web UI automatically consumes .codemri/pulse.json via /api/pulse, rendering:
- Real-time Neon Health Score & Debt Grade Cards
- Live dead code counters & circular loop badges
- Automated AI structural recommendations
π‘οΈ 100% Offline & Enterprise Patent Security
As always, CodeMRI is governed by ADR-0001 (Single Source of Truth) and ADR-0002 (Local Privacy). Your proprietary repository is analyzed entirely on your local CPU and disk using our embedded SQLite relational engine. Zero source code is ever transmitted to cloud endpoints.
Licensed under Apache 2.0 β’ Built with β€οΈ by @KangBasrengg