codeprovenance
Adds AI attribution to Git commits via 'Generated-by' trailers and provides AI blame reports on files, showing which AI agent and prompt edited each line.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codeprovenanceGenerate a provenance report for the last 7 days."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codeprovenance
AI-blame: qué agente, sesión y prompt generaron cada cambio de tu código.
git blame te dice quién escribió cada línea. codeprovenance te dice qué IA la escribió y con qué prompt. Lee los logs de sesión de opencode y Claude Code, los indexa en una base SQLite local, y responde:
provenance blame --file src/x.ts→ qué agente/sesión/prompt tocó ese archivoprovenance stamp→ añade el trailerGenerated-by:a tus commitsprovenance report→ cuánto de tu código lo generó la IA esta semana
Instalación
npm install -g @darkm3tter/codeprovenanceRelated MCP server: flyto-indexer
Uso
# 1. Indexa tus sesiones de agente (claude-code + opencode)
provenance capture
# → capturados 1005 eventos nuevos (claude-code + opencode)
# 2. Reporte
provenance report --since 7
# edits por IA: 669
# prompts: 75
# archivos tocados: 241
# sesiones: 27
# agentes: claude-code, opencode
# 3. AI-blame de un archivo
provenance blame --file src/auth.ts
# 2026-07-01T10:00:05Z claude-code · sesión s1 · 3 edits (Write, Edit) · prompt "add an auth flow"
# 4. Sellar tus commits
provenance stamp
# Generated-by: claude-code · session s1 · prompt "add an auth flow" (f52b4493)Estampado automático de commits (hook opcional)
Instala el hook prepare-commit-msg (ejemplo en examples/prepare-commit-msg):
mkdir -p .githooks && cp node_modules/codeprovenance/examples/prepare-commit-msg .githooks/
git config core.hooksPath .githooksCada commit con archivos que tienen provenance recibe automáticamente:
feat: auth flow
Generated-by: claude-code · session 4fd7fc50-... · prompt "add an auth flow" (f52b4493)Como MCP server
provenance mcp expone:
ai_blame— trazabilidad de un archivo (agente, sesión, prompt)provenance_report— resumen de actividad IA (con ventana en días)
{ "mcpServers": { "codeprovenance": { "command": "provenance", "args": ["mcp"] } } }Cómo funciona
Fuente | Formato | Qué extrae |
Claude Code |
| prompts de usuario + |
opencode |
| diffs por sesión ( |
Cada edit queda vinculado al último prompt de usuario que lo precedió (con hash). Todo se guarda en ~/.local/share/codeprovenance/db.sqlite (SQLite vía bun:sqlite o node:sqlite — cero deps extra). Re-capturar es idempotente (dedupe NULL-safe).
Transparencia y privacidad
Todo es local: no sale nada de tu máquina
Los prompts se guardan completos para que el blame sea útil — la DB vive solo en tu
~/.local/share--jsonen todos los comandos para scripting
Desarrollo
bun install
bun test # 22+ tests
bun run typecheck # TS estricto
bun run build # binario Node únicoLicencia
MIT
This server cannot be installed
Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that tracks AI prompts in Claude Code and automatically annotates git commits with the history of what was asked. It provides tools to query session summaries, retrieve uncommitted work, and manage AI provenance directly within Claude.Last updatedAGPL 3.0

flyto-indexerofficial
Alicense-qualityAmaintenanceMCP server that gives AI assistants impact analysis, cross-project reference tracking, and code health scoring.Last updated4Apache 2.0- Flicense-qualityCmaintenanceA local MCP server that provides controlled repository access with policy-based file filtering, secret redaction, and audit logging for AI coding agents.Last updated
- Alicense-qualityAmaintenanceMCP server for local-first code intelligence, providing structural code graph, semantic search, and impact analysis to AI agents.Last updated1MIT
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/darkm3tter/codeprovenance'
If you have feedback or need assistance with the MCP directory API, please join our Discord server