Skip to content

Shlok148Dev/hackathon-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦅 Hermes: Self-Healing Autonomous Support Agent

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.

Dashboard Preview


🚀 The Problem

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:

  1. Triage: Manually reading logs to categorize the error.
  2. Context Loading: Searching through fragmented documentation.
  3. Diagnosis: Forming hypotheses without full system visibility.
  4. Resolution: Implementing changes that might lack an audit trail.

Hermes resolves these incidents in under 120 seconds.


💡 The Solution: Agent Swarm Architecture

Hermes utilizes an Observe-Reason-Decide-Act (OODA) loop powered by a specialized swarm of Google Gemini agents:

🧠 The Swarm

  • ⚡ 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.

🏗️ Architecture Diagram

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]
Loading

📈 Performance Impact

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

🛠️ Tech Stack

  • AI Engine: Google Gemini 1.5 Pro/Flash, text-embedding-004
  • Backend: FastAPI (Python 3.10+), SQLAlchemy (Async), PostgreSQL (Supabase)
  • Vector Store: pgvector for semantic document memory
  • Frontend: React 18 (Vite), Tailwind CSS, Framer Motion
  • Design: Prototyped with Google Stitch for mission-critical aesthetics.

⚡ Quick Start (Setup in 5 Minutes)

1. Requirements

  • Python 3.10+ & Node.js 18+
  • Google Gemini API Key
  • PostgreSQL URL (with pgvector support - Supabase is recommended)

2. Basic Setup

# 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_KEY

3. Backend Initialization

The 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 8000

4. Frontend Launch

cd frontend
npm install
npm run dev

5. Access the Dashboard

  • Dashboard: http://localhost:5173
  • API Docs: http://localhost:8000/docs

🧪 Verification

To verify the entire agentic loop (Triage -> Diagnosis -> Approval -> Persistence), run our heavy verification script:

python scripts/verify_full_system.py

🎥 Demo

Check our slide-by-slide script for the full pitch: PRESENTATION_SLIDES.md


📜 License

MIT - Created for Cyber Cypher 5.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors