You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Draft] Quality layer for agents: dead code, complexity, impact scoring #58
Status: stream of thoughts, might be nonsense. Draft for discussion, not a commitment.
Goal: let an agent understand project "quality" — not as an HTML report (that's for humans; an agent won't wait for it), but as structured verdicts through MCP tools: {dead_code: [...], complexity_hotspots: [...], impact: [{node, score, confidence, reason}]}.
Algorithms already studied (from competitors, all small — we write them in-house)
Dead code (CGC, ~40 lines):
Function with zero incoming CALLS from non-dependency callers
The real value is in exclusion heuristics: main/setup/run, dunders, test_*, names containing main/entry/application, decorator filter, is_synthetic for module-level frames
Status thresholds: ≥0.90 Confirmed / ≥0.75 High probability / ≥0.55 Needs verification / Ambiguous
Coupling/Cohesion: Ca/Ce, Instability, LCOM/CAM — computed from our own edge graph
Principle
Everything essential — in-house, in one package. Do not shell out to competitor binaries (archscope etc.): the market is winner-take-all; a user will install one tool — if raged depends on someone else's binary, the user will drop raged and install that binary directly.
The foundation already exists: #56 (global symbol table) + confidence on edges.
changed the title [-][Draft] Quality-слой для агентов: dead code, complexity, impact scoring[/-][+][Draft] Quality layer for agents: dead code, complexity, impact scoring[/+]on Aug 2, 2026
Activity
[-][Draft] Quality-слой для агентов: dead code, complexity, impact scoring[/-][+][Draft] Quality layer for agents: dead code, complexity, impact scoring[/+]