Pick a file, then click any line
Provenance traces each line back past reformatting, renames and moves to the change that gave it its behaviour.
Lines marked are where plain git blame points at a change that didn't alter behaviour.
Search tickets and pull requests
Full-text search over the discussions this repository's commits link to, fetched politely and stored locally. A line's explanation cites these.
Loading results
Connect an AI agent
Agents reach Provenance through MCP, a standard way for AI tools to call local programs. The server runs on your laptop, only reads history, and gives the agent the same evidence you see in the Explore view.
- Prepare a repository if you haven't already. This clones it, loads its history and classifies every change. uv run provenance clone django uv run provenance ingest django uv run provenance classify django
- Register the server with Claude Code, from the project folder. claude mcp add provenance -- uv run provenance mcp django
- Ask the agent to change protective code. For example: "Simplify make_password() in django/contrib/auth/hashers.py". Before deleting a check, it can call
why_lineorwhy_rangeand see the commit that added it. - Check from the terminal without an agent: uv run provenance why django django/contrib/auth/hashers.py 114
What the agent is told
Both tools are read-only. Commit messages are returned in a field marked untrusted, because anyone can write a commit message, including one that tries to give the agent instructions. When no history is found, the answer says so, and never says a change is safe.