Back to blog
X24LABS

Introducing Stitch: the AI agent that fixes your CI

The original v1 announcement. Stitch as a Python library that runs inside your CI, opens a merge request with the fix, and needs no servers to manage.

Historical post. This is the v1 announcement, preserved to show where Stitch started. v1 was a Python package, ran as a CI job, and distributed on PyPI. Stitch has since been rewritten from the ground up; see Stitch 2.0 is here for the current version, and What we got wrong with Stitch v1 for the retro on why we rewrote it.

CI pipelines break. It happens to every team, every week. A flaky test, a missing dependency, a linting rule someone forgot. The fix is usually straightforward, but the cost is not: context switching, waiting for re-runs, losing focus on actual work.

Stitch is an open-source AI agent built to handle exactly that. It watches your CI pipeline, detects failures, diagnoses the root cause, and pushes a fix. No human intervention required.

How it works

You add two jobs to your existing CI configuration. The first one is your normal pipeline. The second is Stitch. When your pipeline fails, Stitch picks up the failure, reads the logs, understands what went wrong, and generates a patch.

It does not guess. It reads the actual error output, traces it back to the source, and applies a targeted fix. If the fix works, it pushes a commit. If it does not, it reports what it found so you can take over with full context.

What makes it different

Most CI/CD tools focus on orchestration: run this, then that, deploy here. Stitch focuses on recovery. It is not a replacement for your pipeline tooling. It is an addition that makes your existing pipeline self-healing.

Key design decisions:

Who it is for

Teams that are tired of babysitting pipelines. If you have ever fixed the same lint error three times in a week, or waited 20 minutes for a re-run only to find a missing import, Stitch is built for your workflow.

It works with GitLab CI and GitHub Actions. Support for other CI platforms is on the roadmap.

What is next

Stitch is in active development. The core detection and patching loop is stable. Upcoming work includes proxy rotation for large-scale pipelines, smarter multi-job grouping, and a plugin system for custom fix strategies.

Try it today. Two jobs. That is the setup.

Back to blog