# Temporal Git Forensics — Causal Debugger & Time-Travel

> Causal Git forensics, zero-dirtying time-travel state reconstruction, regression bisect pinning, and hotfix patch generator.

Temporal Git Forensics — Causal Debugger & Time-Travel is a paid AI agent skill on Agensi by Patryk Mazur, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Patryk Mazur](https://www.agensi.io/creators/patryk-mazur)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/temporal-git-forensics-causal-debugger-time-travel
- Tags: testing, git, debugging, devops, code-review, forensics, git-bisect, time-travel

## About this skill

### Temporal Git Forensics — Causal Git Debugger & Virtual State Reconstructor

Tired of AI agents getting lost in sprawling git commit histories, corrupting your active working tree with broken checkouts, or hallucinating the root cause of subtle production regressions?

**Temporal Git Forensics** is a production-grade time-travel debugger and causal forensic engine for git repositories. It models commit history as a Directed Acyclic Graph (DAG) of state transitions, performs automated binary search bisects in isolated memory sandboxes, and reconstructs historical workspace snapshots without dirtying your working branch.

##### ⚡ Key Capabilities:
- **Autonomous Causal Diagnosis:** Evaluates recent commit graphs against error messages, stack traces, and symptom keywords to assign causal culpability scores (0–99%).
- **Automated In-Memory Bisect:** Pinpoints breaking commits in logarithmic time by running unit tests or regex predicates in ephemeral snapshot directories—zero git lock contention.
- **Zero-Worktree State Reconstruction:** Streams historical file trees and lockfiles into isolated folders (`git archive | tar`) without modifying `HEAD`, uncommitted edits, or stash queues.
- **Surgical Hotfix & Revert Generator:** Computes inverted unified diff matrices and automatically provisions isolated hotfix branches (`forensics/hotfix-<hash>`).
- **Deep Blame & Provenance Graph:** Traces line-level author attribution, code churn, and semantic commit categories (`[BUGFIX]`, `[BREAKING]`, `[REVERT]`).
- **Agent-Ready JSON Protocol:** Native `--json` output designed for seamless integration with Claude Code, Cursor, Windsurf, and Antigravity swarms.

##### 📦 What's Included:
- `scripts/temporal_git_forensics.py` (Zero-dependency CLI tool in Python standard library)
- `scripts/test_temporal_git_forensics.py` (Automated unit & regression test suite with 100% pass rate)
- `scripts/demo_terminal_walkthrough.py` (Animated terminal walkthrough simulation)
- `references/git_forensics_guide.md` (CLI operator manual & incident post-mortem playbook)
- `references/causal_reasoning_spec.md` (Formal mathematical specification of DAG culpability scoring)
- Universal `SKILL.md` (< 40 lines Lean Core architecture)

##### 🔒 100% Local-First & Zero Telemetry
Runs entirely on your local machine using standard git plumbing. No cloud egress, zero third-party dependencies.

## Requires

- Git

## Known limitations

Requires local git binary access. Bisecting requires deterministic exit codes from test scripts. Snapshot reconstruction consumes disk space for each isolated state.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Temporal Git Forensics — Causal Debugger & Time-Travel skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill handle complex git states differently than a standard AI prompt?

This skill utilizes specialized protocols for DAG (Directed Acyclic Graph) traversal and automated bisecting, allowing it to perform deep forensic analysis without risking head-detachment errors or corrupting your active working directory.

### What types of test runners are compatible with the automated bisecting feature?

The skill is compatible with any test runner that provides standard exit codes (0 for success, non-zero for failure), including pytest, npm test, vitest, and custom bash scripts.

### Can I use this to inspect old code versions without switching my current branch?

Yes, the state reconstruction feature exports specific commit states to isolated sandbox directories, allowing you to inspect and test historical code without polluting your current working tree.

### What is included in the 'temporal git forensics' skill package?

Upon purchase, you receive the full skill protocol, including the forensic diagnosis engine, automated bisecting logic, and the structured JSON output schema for integration into your AI agent's workflow.

### Are there any specific repository requirements for the automated pinning to work?

The skill requires a local git repository and a deterministic test command; it cannot perform automated pinning if the failure is intermittent or if the git history is unreachable.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
