Small, practical tools for reading SourceTrace attribution data from Git Notes.
attribution-spec/- format documentation and examplessrctrace-blame/- line-level AI attribution viewersrctrace-history/- history and survival analytics CLI
python3 srctrace-blame/srctrace_blame.py --help
python3 srctrace-history/srctrace_history.py --helpDefault notes ref used by both tools:
refs/notes/srctrace/attribution
Each commit note stores JSON like:
{
"v": 1,
"f": {
"path/to/file.py": [
{"s": "agent|cursor(claude-3-7-sonnet-20250219)", "l": [1, "5-9"]},
{"s": "operator", "l": []}
]
}
}See attribution-spec/ for full details.