Skip to content
SlothOps

SlothOps

The end of 3 AM debugging.

Created on 22nd March 2026

•

SlothOps

SlothOps

The end of 3 AM debugging.

The problem SlothOps solves

When a production app crashes, developers usually have to stop everything to manually read through messy error logs, find the right file in the code, and figure out a fix. This "triage" process is slow, stressful, and prone to human error—especially if it happens in the middle of the night.

SlothOps acts as an automated first responder that handles the boring, technical grunt work so humans can focus on just reviewing the solution.

How It Makes Work Easier & Safer
Instant Fixes: It watches for crashes, automatically pulls the relevant code from GitHub, and uses AI to open a Draft Pull Request with a suggested fix before a developer even starts looking at the bug.

Privacy First: It automatically scrubs sensitive data like passwords, emails, and API keys from error logs before sending them to the AI, keeping your production data safe.

Safety Gatekeeper: It runs a "QA Pipeline" that tests new code for security vulnerabilities, speed, and bugs, and can even block the merge button if the code isn't safe.

Self-Healing Production: If a bad update breaks your live site, SlothOps catches the failure, automatically reverts the code to a working version, and then asks the AI to fix the mistake.

No More Spam: It uses "fingerprinting" to recognize repeat errors, so it won't open multiple PRs for the same bug.

Challenges we ran into

  1. The "Band-Aid" Fix vs. Root Cause
    The Challenge: Initially, the LLM would often suggest "shallow" fixes, like adding a null check (?.) at the exact line of the crash, rather than fixing the underlying logic.

The Solution: We implemented Deep Call Chain Tracing. By parsing the full Sentry stack trace, the engine now fetches not just the crashing file, but the entire chain of up to 7 caller files. This allows the AI to see that a crash in a "Discount Service" might actually be caused by missing data in a "User Service" three files away.

  1. Preventing "Revert Loops" in Production
    The Challenge: A major risk with the Phase 7 Auto-Rollback feature was the potential for an infinite loop. If a rollback itself failed or triggered a new deployment error, the bot might try to "revert the revert" indefinitely.

The Solution: We added Loop Prevention logic in rollback.py. The system now inspects the commit message of the failing deployment; if it starts with "Revert," SlothOps aborts the rollback to protect the repository from oscillating changes.

  1. Dealing with Unreliable AI JSON Outputs
    The Challenge: High-reasoning models like Gemini 2.5 Pro can occasionally return malformed JSON or markdown-wrapped text, which breaks the automated pipeline.

The Solution: We enforced a strict Response Schema and implemented a granular error-handling system. If the JSON parsing fails, the engine is programmed to retry once; if it fails again, it marks the issue as fixing_failed rather than crashing the entire server.

  1. GitHub API and Rate Limiting
    The Challenge: Fetching multiple files (main source, tests, and local imports) for every crash can quickly hit GitHub’s API rate limits, especially during testing.

The Solution: We optimized code_fetcher.py to be surgical. It only fetches a maximum of 5-7 specific files instead of cloning the entire repo or using expensive vector searches. We also implemented a 10-minute cooldown per error fingerprint to prevent redundant processing of the same bug.

Tracks Applied (3)

AI/ML

SlothOps fits into the AI/ML track as an Autonomous Agentic SRE (Site Reliability Engineering) Pipeline. It moves beyond...Read More

Open Innovation

SlothOps is an autonomous SRE agent that converts production crashes into validated code fixes. It redacts PII, fetches ...Read More

Requestly

Here is the youtube video link: https://youtu.be/7r_T-CuR8Ag image image

Requestly

Discussion

Builders also viewed

See more projects on Devfolio