https://github.com/edycutjong/suture
๐ฉบ Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.
https://github.com/edycutjong/suture
ai-agent fastapi fivetran gemini-api hackathon nextjs schema-drift self-healing supabase
Last synced: 20 days ago
JSON representation
๐ฉบ Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.
- Host: GitHub
- URL: https://github.com/edycutjong/suture
- Owner: edycutjong
- License: mit
- Created: 2026-05-22T12:57:14.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-31T01:21:45.000Z (about 1 month ago)
- Last Synced: 2026-05-31T02:28:05.317Z (about 1 month ago)
- Topics: ai-agent, fastapi, fivetran, gemini-api, hackathon, nextjs, schema-drift, self-healing, supabase
- Language: TypeScript
- Homepage: https://suture.edycu.dev
- Size: 32.9 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
Suture ๐ฉบ
Autonomous AI agent that detects and self-heals broken Fivetran syncs in under 60 seconds.
[](https://suture.edycu.dev)
[](https://suture.edycu.dev/pitch-deck)
[](https://youtu.be/Mckrst7NF8Y)
[](https://rapid-agent.devpost.com/)






[](https://github.com/edycutjong/suture/actions/workflows/ci.yml)
---
## ๐ธ See it in Action
### ๐ Landing Page

### ๐ฅ๏ธ Dashboard โ Command Center

### ๐ค Agent Terminal โ Autonomous Healing

> **Self-healing infrastructure in action.** Schema Break โ Webhook โ Log Analysis โ Schema Diff โ AI Reasoning โ API Patch โ Re-Sync โ โ
GREEN.
---
## ๐ก The Problem & Solution
Schema drift is the #1 cause of data pipeline failures. When an upstream source changes its API schema โ renaming columns, adding fields, or deprecating endpoints โ downstream Fivetran connectors break silently. The current fix is manual: 2-4 hours of comparing schemas, guessing mappings, and hoping nothing else breaks.
**Average cost per incident: $500โ$2,000 in engineering time + data downtime.**
**Suture** solves this by turning Fivetran into a self-healing infrastructure.
**Key Features:**
- โก **Autonomous Healing:** Detects and patches drift in under 60 seconds without human intervention.
- ๐ง **Semantic Reasoning:** Uses Gemini 3 Pro to understand context, avoiding blind string-matching errors.
- ๐ก๏ธ **Observability:** Military-grade SOC dashboard providing real-time oversight of the healing pipeline.
## ๐๏ธ Architecture & Tech Stack
```mermaid
flowchart LR
W(["๐ Fivetran\nWebhook"])
D["01 ยท DETECT\ndetector.py"]
DI["02 ยท DIAGNOSE\ndiagnoser.py"]
M["03 ยท MAP\nmapper.py"]
P["04 ยท PATCH\npatcher.py"]
V["05 ยท VERIFY\nverifier.py"]
H(["โ
HEALED\n< 60 seconds"])
G(["โฆ Gemini 3 Pro\nVertex AI"])
FT(["โก Fivetran\nREST API"])
PH(["๐ก Arize\nPhoenix"])
SB(["๐ Supabase"])
W --> D --> DI --> M --> P --> V --> H
G -- semantic reasoning --> M
FT -- PATCH /schemas --> P
D & DI & M & P & V -. traces .-> PH
DI & P & V -. state .-> SB
```
| Layer | Technology |
|---|---|
| **Agent** | Python 3.12, FastAPI |
| **AI** | Gemini 3 Pro (Vertex AI) |
| **Data** | Fivetran REST API (7 methods) |
| **Observability** | Arize Phoenix |
| **Dashboard** | Next.js 16, React 19, Tailwind v4 |
| **Database** | Supabase (PostgreSQL + Realtime) |
| **Deploy** | Cloud Run (agent) + Vercel (dashboard) |
## ๐ Sponsor Tracks Targeted
- **Fivetran Partner Track ($5,000):** Deep integration with Fivetran's API to manage syncs and modify table mappings programmatically.
- **Grand Prize ($20,000):** Pushing the boundaries of autonomous AI agents in mission-critical infrastructure.
## ๐ Getting Started
### Prerequisites
- Node.js โฅ 20
- npm
- Python 3.12
### Installation
1. Clone: `git clone https://github.com/edycutjong/suture.git`
2. Set up agent:
```bash
cd agent && pip install -r requirements.txt
```
3. Set up dashboard:
```bash
cd ../dashboard && npm install
```
4. Configure: `cp .env.example .env.local` (dashboard) and `cp .env.example .env` (agent), then add your API keys.
5. Run: `npm run dev` (in dashboard) and `uvicorn main:app` (in agent).
> **For Judges:** Watch the automated demo pipeline!
> `python scripts/seed.py` (Setup healthy pipeline)
> `python scripts/break_schema.py` (Simulate drift)
## ๐งช Testing & CI
### ๐ ๏ธ Root Commands
You can run checks for both frontend and backend from the root directory using the `Makefile`:
```bash
make test # Run all tests (backend + frontend)
make coverage # Run all tests with coverage report
make ci # Run full CI pipeline (lint, typecheck, tests, build)
```
### ๐ป Dashboard (Frontend)
```bash
cd dashboard
npm run lint # Run ESLint check
npm run typecheck # Run TypeScript type check
npm run test:coverage # Run Jest coverage report
npm run ci # Run full frontend CI check (lint + typecheck + test)
```
### ๐ Agent (Backend)
```bash
cd agent
.venv/bin/ruff check . # Lint python files using Ruff
.venv/bin/mypy . # Typecheck python files using Mypy
pytest --cov # Run pytest with coverage report
```
## ๐ Project Structure
```
suture/
โโโ agent/ # Python FastAPI agent (webhook listener, schema differ, Gemini reasoner)
โโโ dashboard/ # Next.js 16 App Router (status dashboard, schema diff viewer)
โโโ docs/ # README assets (hero, screenshots)
โโโ scripts/ # Demo scripts (seed, break, verify)
โโโ data/ # Deterministic test fixtures (Salesforce schemas)
โโโ db/ # Supabase schema (pipelines, incidents, config)
โโโ .github/ # CI workflows
โโโ README.md # You are here
```
## ๐ License
[MIT](LICENSE) ยฉ 2026 Edy Cu
## ๐ Acknowledgments
Built for Google Cloud Rapid Agent Hackathon 2026. Thank you to Fivetran and Google Cloud for the APIs and tools.