Skip to main content

⚡ git-oops v1.0.3 (The Final Legend 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 L3-Preflight MCP-Ready Spend-Protection


😤 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.

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 L3 Pre-Flight src/hooks.py Replicates full GitHub CI/CD locally in <0.3s before commit/push. Blocks secrets, SQLi, command injection, and test failures 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:

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 L3 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 L3 security pre-flight manually
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 34 test suites run in under 4.0 seconds with 100% pass rate:

pytest tests -v
============================= 34 passed in 3.97s ==============================

🔒 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.0.3

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.0.3
File Size Uploaded Provenance Actions
git_oops-1.0.3.tar.gz 131.2 kB With provenance Details for git_oops-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 269.4 kB

Release files / git_oops-1.0.3.tar.gz

Download URL git_oops-1.0.3.tar.gz
Size 131.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d51554a0cbc39dc178dc26ac6b646a7a3317d86bdcba880010b5ba471209a87
BLAKE2b-256 checksum
How to use checksums
3719689a63aa9f102d569223915233fa81f6cc9935fda8f23849ce47eeab27ad
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 14, 2026.

Transparency log

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

Download URL git_oops-1.0.3-py3-none-any.whl
Size 138.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
313ec02b164e454c7cdc3136b8f0403f097de27d0aadf1e64199977fde2ca6aa
BLAKE2b-256 checksum
How to use checksums
daec854d0d565ce78d589e1e0611cd822f74811de3b271be6c5c58a035e24bdf
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 14, 2026.

Transparency log

Security for git-oops 1.0.3

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.0.3.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 14, 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