Provenance and policy gate for AI-agent coding sessions: session trailers on commits, redacted session notes in git, a tool-call gate, and a local ledger. No runtime dependencies.
pip install gitvow==0.13.2 Copy PIP instructions
Provenance and a policy gate for AI-agent coding sessions, stored in the git you already have.
Who made this change, what were they trying to do, and was it allowed? For code written with AI agents, git alone cannot answer. gitvow makes it answer.
Standard-library Python and git. No runtime dependencies, no network calls, no telemetry.
pip install gitvow gitvow install --user gitvow selftest Work in Claude Code as usual. When the agent commits:
$ git log -1 --format=%B Fix week-start cache key Gitvow-Session: 8f3d5c71-574a-4eec-8903-9425e3a8335b Gitvow-Step: 4 $ gitvow show HEAD ... gitvow-session { "step": 4, "tools_used": ["Bash", "Edit", "Read"], "last_stated_plan": "Change the cache key to include week start so per-org settings do not collide...", "files_in_commit": ["query-engine/.../QueryCacheHelper.java | 4 +++-"], "files_written_by_agent_this_session": ["query-engine/.../QueryCacheHelper.java"], "attribution": {"files_in_commit": 1, "touched_by_agent": 1} } Try the gate by hand:
gitvow check -- git push --force # DENY: force push gitvow check -- kubectl apply -f x.yaml # CONFIRM: cluster apply gitvow check --path core/authz_rules.go # CONFIRM: edits an authorization or gate file Remove everything:
gitvow uninstall --user Documentation The docs site is the source of truth: https://wirevow.dev/gitvow (built from docs/).
Claude Code ──hook──▶ gitvow hook PreToolUse ──▶ policy ──▶ allow / confirm / deny (exit 0 / 2 / 2) ──hook──▶ gitvow hook PostToolUse ─▶ on `git commit`: read transcript → redact → git notes add git commit ──prepare-commit-msg──▶ Gitvow-Session / Gitvow-Step trailers (from .git/gitvow-session.json) Claude Code ──hook──▶ gitvow hook Stop ─────────▶ ~/.gitvow/ledger/ .json Data Where Enters git? session id, step commit trailers yes session note (structure, redacted plan, attribution) refs/notes/sessions as a note; local until pushed ledger, hook log, session state ~/.gitvow/, /.git/ no transcript untouched never Status 0.1.0. Used in a small internal trial; the roadmap lists what comes next and what is deliberately not planned. Claude Code is the only agent supported today; the hook payload is documented so adapters are straightforward.
See CONTRIBUTING.md and SECURITY.md. Reproductions of redaction gaps must use synthetic secrets.
git provenance ai-agents claude-code hooks policy
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
The following attestation bundles were made for gitvow-0.13.2.tar.gz:
Details for the file gitvow-0.13.2-py3-none-any.whl.




