Skip to main content

⚡ git-oops v1.1.1 (The Eight Pillars Edition)

The Zero-Step Autonomous AI Agent Safety Harness & Terminal Crash Interceptor.

Human Mode: Roasted by a Staff Engineer │ Agent Mode: The Headless Shield for Coding Agents

git-oops Hero Banner

CI Suite Version Auto-Updater PyPI Provenance License: MIT Python 3.9+ Zero-Step-Hooks L8-Full-Defense MCP-Ready Spend-Protection


🏛️ The Eight Pillars of AI Agent Defense (L1 - L8 Architecture)

git-oops implements the world's first unified, air-gapped 8-layer defense continuum designed to prevent autonomous coding agents from destroying, degrading, or corrupting software repositories:

┌────────────────────────────────────────────────────────────────────────────────────────┐
│ L8: The Human Operator Guard │ Panic Protection, Anti-Gaslighting & Sanity Confirmation │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L7: Sovereignty & Air-Gap    │ Network Isolation, OOB Gating & Hardware Kill Switch     │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L6: Cognitive Alignment      │ Semantic Intent-Diff Invariants & Anti-Collusion Gating │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L5: Supply Chain Armor       │ Phantom Dependency Interception & Secret Masking       │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L4: Anti-Slop Engine         │ AST Cyclomatic Complexity & Test-Deletion Cheat Breaker │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L3: Audit & Pre-Flight       │ Zero-Telemetry Blackbox, Reflog Autopsy & Obsidian HUD  │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L2: Execution Firewall       │ Shlex AST Syntax Decomposition against Shell Hijacking   │
├──────────────────────────────┼─────────────────────────────────────────────────────────┤
│ L1: Safety Guard             │ Destructive Command Prevention (git reset --hard, etc.) │
└────────────────────────────────────────────────────────────────────────────────────────┘

😤 Why git-oops?

For Humans:

Your script crashes with a 50-line traceback. You're exhausted, and ChatGPT gives you a polite 6-paragraph email instead of a 2-line fix. git-oops roasts your sloppy code with razor-sharp wit and applies a surgical 1-click git patch directly in your terminal.

For All Autonomous AI Coding Agents (Antigravity, Claude, Cursor, Windsurf, Qoder, Codex, Devin, and any Agent):

Modern autonomous coding agents face catastrophic failure modes:

  1. Context Bloat: Multi-thousand line terminal dumps overflow agent context windows.
  2. Infinite Thrashing: Agents get trapped in loops editing and reverting the same code.
  3. Ghost Hallucinations: Agents import non-existent libraries or fall into typosquatted package traps.
  4. Blast-Radius Disasters: Agents accidentally execute rm -rf or destructive force-pushes.
  5. Code Degradation & Slop: Agents inflate cyclomatic complexity or cheat failing tests by deleting assertions.

git-oops provides the missing runtime safety harness that shields your repository, your sanity, and your wallet.


⚡ The Dual-Mode Architecture

                        [ Terminal Crash / Agent Execution ]
                                          │
                   ┌──────────────────────┴──────────────────────┐
                   ▼                                             ▼
        [ 🧑‍💻 HUMAN MODE ]                                [ 🤖 AGENT MODE ]

• High-Fidelity Rounded Cards • Clean Machine-Readable JSON • Caustic Critic Roasts (Staff/Chef) • 90% Context Log Squeezer & Redactor • Interactive [y/N] Patch Confirmation • Blast-Radius Firewall & AST Linter • Instant --undo Reversion • Anti-Thrashing Watchdog & Mutex │ │ └──────────────────────┬──────────────────────┘ ▼ [ 🛡️ SHA-256 Cache & Circuit Breaker ] [ 🔌 Native Model Context Protocol (MCP) ]


---

## 🌟 The 20 Super-Capabilities

| # | Capability | Module | What It Does | Why It Matters |
| :-: | :--- | :--- | :--- | :--- |
| **1** | 🧑‍💻 **Dual-Mode Engine** | `src/cli.py` | Human visual mode or `--agent` / `--json` headless mode. | Works equally well for human engineers and autonomous agents. |
| **2** | 🔌 **Native MCP Server** | `src/mcp_server.py` | Exposes tools over stdio (`git-oops --mcp`). | Instantly attaches to Antigravity, Claude Desktop, Cursor, Windsurf, Qoder, and all MCP-compatible clients. |
| **3** | 🛑 **Anti-Thrashing Watchdog** | `src/watchdog.py` | Detects repeated edit-revert oscillations (> 3 times). | Halts runaway agent loops before burning through credits. |
| **4** | 🛡️ **Blast-Radius Firewall** | `src/firewall.py` | Intercepts `rm -rf`, `force-push`, and wildcard deletions. | Prevents rogue agents from wiping out the filesystem. |
| **5** | 🕵️ **Supply-Chain Shield** | `src/firewall.py` | Blocks hallucinated/typosquatted package installs. | Protects against AI package hallucination attacks. |
| **6** | 🚨 **Egress Sniffer Probe** | `src/sentinel.py` | Scans patches for unauthorized phone-home connections. | Blocks trojans and telemetry data exfiltration in patches. |
| **7** | 🔒 **Multi-Agent Mutex** | `src/watchdog.py` | Cooperative file lease locks across multiple agent sub-workers. | Stops concurrent agents from overwriting each other. |
| **8** | 🪞 **Shadow Workspace** | `src/shadow.py` | Dry-runs patches inside an ephemeral clone directory. | Zero-risk experimentation; commits only after full validation. |
| **9** | 👻 **Polyglot Ghost Import Linter** | `src/guardian.py` | 0 ms AST/heuristic check across Python, JS/TS, Go, Rust, Java/Kotlin, C/C++, PHP, Ruby, C#, Swift, Dart, Lua, Shell & exotic scripts. | Blocks patches containing non-existent hallucinated packages in any language. |
| **10**| 🧪 **Regression Guard** | `src/guardian.py` | Runs project tests in sandbox before modifying files. | Prevents agents from breaking existing features. |
| **11**| ⚖️ **Cross-Model Consensus** | `src/consensus.py` | Requires 2 independent models to agree on the root cause. | Eliminates single-model hallucination single-points-of-failure. |
| **12**| ✂️ **Anti-Bloat Complexity** | `src/sentinel.py` | Monitors cyclomatic complexity to prevent code bloat. | Stops agents from writing 8-layer nested spaghetti code. |
| **13**| 📜 **License Taint Shield** | `src/sentinel.py` | Blocks patches containing viral GPL/AGPL copy-paste headers. | Protects commercial projects from open-source license lawsuits. |
| **14**| 📉 **Context Log Squeezer** | `src/squeezer.py` | Compresses 5,000-line stacks to 20 focused lines. | Saves 90% of token context window costs. |
| **15**| 🔒 **Secret Redactor** | `src/squeezer.py` | Automatically masks API keys and tokens (`<REDACTED_SECRET>`). | Prevents credential leakage across external LLMs. |
| **16**| 🧭 **Intent Prefetch Engine** | `src/sentinel.py` | Markov-chain prediction prefetching next-step responses. | Speeds up multi-turn agent tool execution chains to 0 ms. |
| **17**| ✈️ **Flight Recorder** | `src/blackbox.py` | Logs every action, motivation, and takes file snapshots. | Full auditability of what your agent did overnight. |
| **18**| ⏪ **Time-Machine Rewind** | `src/blackbox.py` | `--rewind <step_id>` restores snapshot state. | 1-second recovery if an agent takes a wrong path. |
| **19**| 🧬 **Antibody Immunity DB** | `src/blackbox.py` | Saves verified solutions to a local pathology ledger. | Next time the same error occurs, resolution is instant. |
| **20**| 🔄 **Anti-Bit-Rot Evolution** | `src/updater.py` | Auto-detects runtime shifts and model deprecations. | Code never rots or breaks across future Python releases. |
| **21**| 🪝 **Zero-Step Global Hooks** | `src/hooks.py` | Universal machine-wide git interception via `core.hooksPath`. | Zero manual configuration; protects every repository on the machine. |
| **22**| ⚡ **Sub-Second Pre-Flight** | `src/hooks.py` | Replicates full CI/CD locally in <0.3s before commit/push. | Blocks secrets, SQLi, command injection, and slop instantly. |
| **23**| 📡 **Dynamic OTA Security Feed**| `src/rules.py` | Silent background auto-sync of latest CVEs & malicious package rules. | Rules update automatically whenever connected; zero code changes needed. |
| **24**| 🎛️ **Obsidian Glassmorphism HUD**| `src/hud.py` | Live web dashboard (`git-oops --hud`) with dark frosted glass design. | Real-time monitoring of spend, locks, hardware telemetry, and panic salvage. |
| **25**| ⚡ **1ms Deterministic AST Solver**| `src/solver.py` | Zero-AI / Zero-LLM symbolic compiler deductions for fatal errors. | Fixes NoneType, KeyError, and ZeroDivision in 1ms with 0 tokens and $0.00 cost. |
| **26**| 🦙 **Pure-Offline Local LLM** | `src/local_llm.py` | Sub-second native connector for Ollama & vLLM (`--local`). | 100% private and air-gapped bug fixing without internet or cloud APIs. |
| **27**| 🔍 **Supply-Chain Phishing Guard**| `src/supply_chain.py`| Levenshtein distance check + Google OSV live database audit. | Intercepts typosquatted dependency decoy attacks like `reqeusts` and `colorma`. |
| **28**| 🌡️ **Hardware Sentinel & Throttling**| `src/hardware.py`| Monitors battery (<15%) and thermal limits; pins agents to E-Cores. | Prevents rogue AI agent loops from frying your laptop or draining battery. |
| **29**| 🛡️ **Pre-PR Staff Gatekeeper** | `src/reviewer.py`| Pre-flight audit comparing branch changes against main (`--review-pr`). | Instant staff-level review of security, complexity drift, and test parity. |
| **30**| 🩹 **Reflog Autopsy & Crash Replay**| `src/salvage.py`| Rescues lost commits (`--salvage`) and replays variable snapshots (`--replay`).| 1-click disaster recovery even after destructive `git reset --hard` or fatal crashes. |

---

## 🚀 Beginner Quickstart (1-Minute Guide)

### 1. Install Globally:
```bash
pip install git-oops

Zero Configuration Required: git-oops automatically registers machine-wide hooks in the background. Every git commit and git push across your repositories is immediately shielded with sub-second full-spectrum L1-L8 security.

2. Live Obsidian Web HUD:

Launch the real-time glassmorphism dashboard in one command:

git-oops --hud

3. Connect to Any AI Tool (MCP or Subshell):

Option A: For Antigravity, Claude Desktop, Cursor, Windsurf, Qoder & All MCP Agents:

Add this to your MCP configuration:

{
  "mcpServers": {
    "git-oops": {
      "command": "git-oops",
      "args": ["--mcp"]
    }
  }
}

Option B: For Any Subshell / CLI AI Agent (Codex, Devin, Copilot, Aider, Roo Code, Cline, etc.):

Simply tell your agent in prompt or rule:

"Always diagnose and apply patches safely via: git-oops --agent --file <file> --error \"<error>\" --yes" It outputs clean machine-readable JSON without ANSI codes.

4. Interactive Terminal Commands:

# Human mode (roasts you & shows visual diff)
git-oops --file broken.py --error "KeyError: 'user_id'"

# 1ms Zero-AI Symbolic AST repair ($0.00 cost)
git-oops --file broken.py --error "AttributeError: 'NoneType' object has no attribute 'x'" --solver --yes

# Run full security pre-flight manually (L1-L8 local gatekeeper)
git-oops --pre-commit

# Pre-PR Staff Gatekeeper audit
git-oops --review-pr

# Resurrect lost work after an agent wipeout
git-oops --salvage

🧪 Comprehensive Test Suite

All 41 test suites run in under 4.2 seconds with 100% pass rate:

pytest tests -v
============================= 41 passed in 4.20s ==============================

🔒 100% Local & Privacy-First (Zero Telemetry)

We believe developer tools should never spy on you or your AI agents:

  • Zero Telemetry: No tracking pixels, no user analytics, and zero remote logging.
  • Air-Gapped Safety: All firewalls, anti-thrashing heuristics, AST parsing, and secret redactors run 100% locally on your machine.
  • Data Sovereignty: The blackbox flight recorder, antibody memory DB, and shadow sandboxes live strictly in ~/.git_oops/ in your local home directory.
  • Credential Masking: High-entropy strings, tokens, and keys are automatically sanitized before reaching any AI model.

🤝 Documentation & Community

Metadata

Release files for git-oops 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-oops 1.1.1
File Size Uploaded Provenance Actions
git_oops-1.1.1.tar.gz 137.7 kB With provenance Details for git_oops-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for git-oops 1.1.1
File Interpreter ABI Platform Actions
git_oops-1.1.1-py3-none-any.whl Python 3 none any Details for git_oops-1.1.1-py3-none-any.whl

Total release size: 281.4 kB

Release files / git_oops-1.1.1.tar.gz

Download URL git_oops-1.1.1.tar.gz
Size 137.7 kB
Tags Source
SHA-256 checksum
How to use checksums
203392a171047907f1d2170872a3625a8f51521c9b7d69d0ef0c639753fb4458
BLAKE2b-256 checksum
How to use checksums
d1c3ac8834120cf3985eb1acba26e68acf7de6aaa16417f2afabd8424f6ba2d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / git_oops-1.1.1-py3-none-any.whl

Download URL git_oops-1.1.1-py3-none-any.whl
Size 143.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e34bf55f5ecd5c11b8d4608f7c2bfde35509a0f6fccb28d9dddf639fc58af7d8
BLAKE2b-256 checksum
How to use checksums
9eb48b2eeb34ebf257484f8354da741bf1ca95faa3837a6c2b44c6220e4f74af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for git-oops 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for git_oops-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page