# adamtornhill/code-maat

A command line tool to mine and analyze data from version-control systems

Repository: https://github.com/adamtornhill/code-maat
Canonical: https://ross.abutalabs.com/products/code-maat
Homepage: http://www.adamtornhill.com/code/codemaat.htm
Language: Clojure
License Family: other
Topics: behavioral-code-analysis, code-analysis-tool, repository-mining, technical-debt
Last push: 2025-07-03T11:51:48+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 29, release rhythm 8, longevity 100
- inputs: {"age_days": 4773, "days_push": 426, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2626, forks 242 (observed 2026-08-28T04:07:05.311701+00:00)

## What it is
Code Maat is a command line tool written in Clojure that mines and analyzes data from version-control systems to reveal technical, social, and organizational patterns in code evolution. It accompanies Adam Tornhill's books 'Your Code as a Crime Scene' and 'Software Design X-Rays', with its analyses since evolved into the commercial CodeScene product.

## Use cases
- mine git history to find hotspots with high change frequency
- detect technical debt from version-control data
- analyze code churn and complexity trends over time
- identify social and organizational coupling between modules
- find development bottlenecks in large codebases
- suggest refactoring directions based on actual code interactions
- export VCS analysis data for visualization

## When to choose
- you want to analyze repository history for hotspots and technical debt from the command line
- you're following the techniques in 'Your Code as a Crime Scene' or 'Software Design X-Rays'
- you need a scriptable, free tool for behavioral code analysis
- you want to run analyses as a Clojure library or via Docker

## When to avoid
- you want automated, GUI-based analyses with visualizations - use CodeScene instead
- you need actively developed features - the tool is in maintenance mode
- you need a tool without GPL v3 licensing constraints
- you need real-time code quality monitoring rather than historical analysis

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, analytics, data-science
- domain: developer-tools, version-control, analytics
- platform: cli, cross-platform
- tags: version-control, code-analysis, technical-debt, repository-mining, clojure, behavioral-code-analysis, docker

## Member repositories
- adamtornhill/code-maat (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:05.311701+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:19:46.563389+00:00, confidence not recorded.
  - readme: https://github.com/adamtornhill/code-maat (fetched 2026-08-28T04:07:05.311701+00:00, sha 01fa6e8dfae7)
  - homepage: http://www.adamtornhill.com/code/codemaat.htm (fetched 2026-08-29T10:02:38.596456+00:00, sha 4c1b356c0d35)
- Data as of 2026-08-30T08:39:29.467469+00:00.
