Cyber Cypher 5.0 - Advanced Track Submission
Hermes is an Agentic AI System designed to bridge the visibility gap in headless commerce. It functions as an autonomous Site Reliability Engineer (SRE) swarm, capable of classifying signals, diagnosing root causes through RAG-grounded reasoning, and implementing fixes with human-in-the-loop safety.
Modern headless commerce migrations (e.g., Shopify to React/Medusa) are complex. A single API mismatch or configuration drift can break checkout for thousands of users. Human support teams are often reactive, spending hours on:
- Triage: Manually reading logs to categorize the error.
- Context Loading: Searching through fragmented documentation.
- Diagnosis: Forming hypotheses without full system visibility.
- Resolution: Implementing changes that might lack an audit trail.
Hermes resolves these incidents in under 120 seconds.
Hermes utilizes an Observe-Reason-Decide-Act (OODA) loop powered by a specialized swarm of Google Gemini agents:
- ⚡ Orchestrator (Gemini 1.5 Flash): High-speed intake and triage. Filters signals and routes to specialized analysts.
- 🔍 Diagnostician (Gemini 1.5 Pro): The "Detective." Performs Retrieval Augmented Generation (RAG) over documentation to form grounded hypotheses.
- 🩹 Healer (Gemini 1.5 Pro): The "Surgeon." Proposes executable SQL/JSON patches.
- 🛡️ Human-in-the-Loop: High-risk actions require an SRE's digital signature for execution.
graph TD
A[Incoming Incident] --> B{Orchestrator}
B -->|High Risk| C[Human Review]
B -->|Technical| D[Diagnostician]
D --> E[RAG Engine]
E -->|Context| D
D --> F[Reasoning Tree]
F --> G[Healer]
G --> H[Proposed Fix]
H --> I{Human Approval}
I -->|Approved| J[Database Patch]
I -->|Rejected| K[Escalation]
| Metric | Traditional SRE | Hermes Swarm | Improvement |
|---|---|---|---|
| Mean Time to Triage | 25 - 45 Minutes | < 1.5 Seconds | 99.9% Faster |
| Mean Time to Diagnosis | 60+ Minutes | < 10 Seconds | 99% Faster |
| Resolution Accuracy | Variable | 94% (Grounded) | High Consistency |
- AI Engine: Google Gemini 1.5 Pro/Flash,
text-embedding-004 - Backend: FastAPI (Python 3.10+), SQLAlchemy (Async), PostgreSQL (Supabase)
- Vector Store:
pgvectorfor semantic document memory - Frontend: React 18 (Vite), Tailwind CSS, Framer Motion
- Design: Prototyped with Google Stitch for mission-critical aesthetics.
- Python 3.10+ & Node.js 18+
- Google Gemini API Key
- PostgreSQL URL (with
pgvectorsupport - Supabase is recommended)
# Clone the repository
git clone https://github.com/your-username/hackathon-spec.git
cd hackathon-spec
# Setup Environment
cp .env.example .env
# [IMPORTANT] Update .env with your DATABASE_URL and GEMINI_API_KEYThe backend automatically initializes your database (creates tables and vector extensions) on the first start.
# Install dependencies
pip install -r requirements.txt
# Seed required Merchant data
python scripts/seed_merchant.py
# Launch Backend (Port 8000)
uvicorn app.main:app --reload --port 8000cd frontend
npm install
npm run dev- Dashboard:
http://localhost:5173 - API Docs:
http://localhost:8000/docs
To verify the entire agentic loop (Triage -> Diagnosis -> Approval -> Persistence), run our heavy verification script:
python scripts/verify_full_system.pyCheck our slide-by-slide script for the full pitch: PRESENTATION_SLIDES.md
MIT - Created for Cyber Cypher 5.0
