Skip to content
项目

关于

Agent layer for Git and tech debt 🧠

开发工具

这些数字如何统计

33 星标5 复刻 +1 24小时

可以做什么

  • 🗺️ Visual Risk Radar - SVG heatmaps that make technical debt instantly visible.
  • 🤖 Agentic Intelligence - MCP server with shape-aware "Reasoning" for analysis.
  • 🚢 Fleet-Scale Discovery - Recursive analysis and risk mapping across projects.
  • 💼 Professional Analytics - High-fidelity metrics with standard data exports.

实测星标增长

24小时
+1
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Hotspot

GitHub Actions Workflow Status License GitHub Release

Hotspot is an agentic intelligence layer and CLI that analyzes Git history to diagnose technical debt and bus factor risk based on developer activity, ownership, and churn patterns.

Hotspot Risk Heatmap

Visual Risk Intelligence: Hotspot transforms Git metadata into interactive heatmaps that instantly reveal your codebase's risk distribution. Files are color-coded by risk level (green=low, red=high) and sized by complexity, making technical debt visible at a glance.

Unlike traditional linters or team-velocity metrics, Hotspot analyzes development behavior. It turns Git metadata into high-fidelity signals for technical debt, knowledge silos, and refactoring ROI—empowering both humans and AI agents to make data-driven architecture decisions.

Features

  • 🗺️ Visual Risk Radar - SVG heatmaps that make technical debt instantly visible.
  • 🤖 Agentic Intelligence - MCP server with shape-aware "Reasoning" for analysis.
  • 🚢 Fleet-Scale Discovery - Recursive analysis and risk mapping across projects.
  • 💼 Professional Analytics - High-fidelity metrics with standard data exports.

Installation

Requirements

  • Go 1.26+ for building from source
  • Git 2.2+ for repository analysis

Install from source

go install github.com/huangsam/hotspot@latest

Download pre-built binary

Visit the latest release and download the tar archive for your system (supports Windows, macOS, and Linux), then extract the binary to your $PATH.

Quick start: Choose your path

Hotspot is designed for both human-driven tactical analysis and AI-driven strategic auditing.

🤖 Path A: AI Agent

Hotspot includes a Self-Documenting Agentic Hub via the Model Context Protocol (MCP). This allows AI agents to autonomously explore your repository.

# Start the MCP server (stdio)
hotspot mcp

🔍 Path B: Tactical CLI

For immediate terminal-based checks and CI/CD integration.

# Initialize hotspot with sensible defaults
hotspot init

# Generate heatmap
hotspot files --mode hot --output heatmap --output-file heatmap.svg

# Analyze files in tabular format
hotspot files

# Analyze folders in tabular format
hotspot folders

# Discover and assess multiple repositories (Fleet Analysis)
hotspot batch --auto /path/to/projects

Documentation

  • USERGUIDE.md: Essential guide for analysis features, scoring modes, and core workflows.
  • PLAYBOOK.md: Actionable guidance on using this data to foster a healthy engineering culture.

Performance

Hotspot is optimized for speed, even on massive repositories, by caching Git analysis results and using concurrent workers.

Benchmark results

Comprehensive performance benchmarks using this script. This shows cold vs warm timings:

Repository Files (Cold/Warm) Compare Files (Cold/Warm) Timeseries (Cold/Warm)
csv-parser 0.075s / 0.026s 0.144s / 0.051s 0.168s / 0.074s
fd 0.045s / 0.024s 0.083s / 0.048s 0.132s / 0.069s
git 0.546s / 0.041s 1.389s / 0.175s 2.039s / 0.243s
kubernetes 3.018s / 0.146s 7.330s / 1.456s 11.508s / 0.925s

The data shows that Hotspot caches Git analysis results to speed up repeated runs.

探索相关项目

加载中…