Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
{
"directive": {
"status": "clear_in_analyzed_scope",
"headline": "No supported new findings surfaced in the analyzed scope.",
"reasons": [],
"next_actions": [
"Run: tests/test_requests.py tests/test_utils.py"
]
},
"health_delta": {
"status": "available",
"explanation": "No supported new findings surfaced in the analyzed scope.",
"basis": "both_sides_analyzed",
"introduced": 0,
"worsened": 0,
"resolved": 0,
"by_dimension": {},
"by_severity": {},
"scope": {
"changed": 1,
"eligible": 1,
"analyzed": 1,
"skipped": 0,
"failed": 0
},
"top_findings": [],
"findings_total": 0,
"findings_emitted": 0,
"base": {
"ref": "HEAD",
"sha": "3bb56ba566ce783ebdc4e61929522fd1648c2527",
"kind": "commit"
},
"head": {
"ref": "WORKTREE",
"sha": "",
"kind": "working_tree"
},
"analyzer": {
"analyzer_version": 38,
"rules_fingerprint": "2f1b53b61c545f3ce5e44371e52b0428f710f8cee6f8d8547f8ca5c474e864fd",
"performance_model_version": 3
},
"limits": [
"Both sides are analysed over the changed files only, so cross-file detectors (duplication, cross-function performance) see no wider context."
]
},
"ref": "working tree",
"working_tree": true,
"fix_history": {
"available": true,
"density": 1.329,
"files": [
{
"path": "src/requests/_internal_utils.py",
"churn": 3,
"fix_pressure": 1.33
}
],
"overlap": {
"files": [
{
"file_path": "src/requests/_internal_utils.py",
"fix_count": 1,
"overlapping_lines": 0,
"changed_lines": 2,
"share_of_change": 1.0,
"last_fix_days_ago": 186
}
],
"truncated": false,
"total_fixes": 1,
"files_with_fixes": 1,
"changed_lines_in_fixed_files": 2,
"line_overlap": "approximate",
"summary": "1 past bug-fix commit(s) touched 1 of the changed file(s). Line overlap is approximate (past ranges are numbered on their own parent commit); the per-file counts are not.",
"concentration": "src/requests/_internal_utils.py carries 100% of the changed lines and 1 past bug fix(es)."
}
},
"risk_percentile": 34.0,
"exclude_patterns": [],
"is_fix": false,
"impacted_tests": {
"status": "selected",
"run_all": false,
"reasons": [],
"reasons_total": 0,
"basis": "inferred",
"map_present": false,
"tests_to_run": [
"tests/test_requests.py",
"tests/test_utils.py"
],
"tests_to_run_kind": "test_file",
"total": 2,
"truncated": false,
"always_run_total": 0,
"why": {
"tests/test_requests.py": "src/requests/_internal_utils.py changed (import-graph)",
"tests/test_utils.py": "src/requests/_internal_utils.py changed (import-graph)"
},
"basis_by_file": {
"src/requests/_internal_utils.py": "import-graph"
},
"summary": "2 test(s) to run for this change; the rest can be skipped."
},
"diff_shape": "Size and spread: 34th percentile of recent commits (diff size, not a bug predictor). The rank is a diff-size statistic: it barely beats churn alone and cannot rank danger. Mechanics: get_change_risk(include=['diagnostics']).",
"_meta": {
"contract_version": 2,
"timing_ms": 1054.0,
"index_age_days": 49,
"indexed_commit": "4ed3d1b3204c",
"live_head": "3bb56ba566ce",
"index_behind": true,
"index_scope": {
"version": 1,
"projection": "compact",
"run_mode": "standard",
"content_provenance": "template",
"git_tier": "full",
"status": "unknown",
"fingerprint": "118fda63ca3a",
"full": "get_overview()"
},
"embedder": "mock",
"embedder_degraded": false,
"semantic_search": false,
"source": "live_git",
"response_budget": {
"limit_chars": 24000,
"tier": "default",
"serialized_chars": 3111
},
"completeness": {
"capped": false
}
}
}