git-ai-archaeology
git-ai-archaeology
Reconstructs the history of an AI coding harness from git: which files appeared when, who maintained them, how they spread between modules, what was abandoned, and how AI-assisted commits evolved. A bundled script does the counting in one pass; the agent checks the classification and writes the narrative from the data.
Output: {out}/{slug}-harness.json and {out}/{slug}-harness.md (script), then {out}/{slug}-git-archaeology.md (narrative).
/git-ai-archaeology repo_path=/path/to/repo [out=./reports] [slug=name] [ref=main] [since=2025-01-01] [remotes=yes]
Workflow
-
Resolve the scope. Check the path with
git -C {repo_path} rev-parse --git-dir. Use the default branch asrefunless the user names one; a feature branch distorts every count. Decide whether to scan remote branches (--remotes) for unmerged harness work. Done when repo, ref, period and output directory are recorded. -
Run the script.