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
{
"session_id": "6f1c2b9e-0000-4000-8000-00000000c1a0",
"transcript_path": "/home/dev/.claude/projects/-work-demo/6f1c2b9e.jsonl",
"cwd": "/work/demo",
"permission_mode": "default",
"hook_event_name": "PostToolUse",
"tool_use_id": "toolu_01EXAMPLE",
"duration_ms": 41,
"tool_name": "Edit",
"tool_input": {
"file_path": "/work/demo/src/billing.py",
"old_string": "def total(items):\n return 0\n",
"new_string": "def total(items):\n subtotal = sum(item.price for item in items)\n return round(subtotal * 1.2, 2)\n",
"replace_all": false
},
"tool_response": {
"filePath": "/work/demo/src/billing.py",
"oldString": "def total(items):\n return 0\n",
"newString": "def total(items):\n subtotal = sum(item.price for item in items)\n return round(subtotal * 1.2, 2)\n",
"originalFile": "def total(items):\n return 0\n",
"replaceAll": false,
"userModified": false,
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 2,
"newStart": 1,
"newLines": 3,
"lines": [
" def total(items):",
"- return 0",
"+ subtotal = sum(item.price for item in items)",
"+ return round(subtotal * 1.2, 2)"
]
}
]
}
}