Introduction

🀝 HeySummon β€” Human in the Loop as a Service

Open-source platform that connects AI agents with human experts when they get stuck.

HeySummon is an E2E encrypted, realtime relay that lets AI agents request help from human experts β€” and get answers back β€” using self-contained skills, Mercure SSE for instant notifications, and zero-knowledge encryption.

Why HeySummon?

AI agents are powerful but not omniscient. Sometimes they hit a wall: ambiguous requirements, domain expertise needed, or a decision only a human can make. HeySummon bridges that gap.

  • πŸ” E2E Encrypted β€” X25519 + Ed25519 + AES-256-GCM hybrid encryption. The platform never sees your content.
  • ⚑ Realtime via Mercure β€” Instant notifications via Server-Sent Events. No polling needed.
  • 🧠 Zero-knowledge relay β€” The platform stores and routes encrypted blobs it cannot read.
  • πŸ“¦ Self-contained skills β€” Each skill has its own setup.sh, teardown.sh, .env, and lifecycle management via pm2.
  • πŸ’¬ Multi-response β€” Providers can send multiple responses per request for ongoing conversations.
  • πŸ“ Plaintext mode β€” Simple reply flows can use plaintext messages alongside encrypted ones.
  • πŸ”“ Open source β€” Self-host or use the cloud version.

How It Works

πŸ€– AI Agent gets stuck
    β”‚
    β”œβ”€ POST /api/v1/help  (encrypted messages + public keys)
    β”‚
    β–Ό
πŸ“¦ HeySummon Platform  (stores encrypted β€” cannot read content)
    β”‚
    β”œβ”€ Mercure publishes new_request event (realtime SSE)
    β”œβ”€ Provider skill's mercure-watcher picks it up instantly
    β”œβ”€ Provider decrypts, reads, replies (can send multiple responses)
    β”‚
    β–Ό
πŸ€– Consumer skill's mercure-watcher receives new_message event
    β”‚
    β”œβ”€ Decrypts response β†’ agent continues work
    β–Ό
    βœ… Done

Tech Stack

  • Next.js 15 + App Router
  • Prisma + SQLite / PostgreSQL
  • NextAuth.js v5 β€” GitHub + Google OAuth
  • Mercure Hub β€” Realtime SSE for instant notifications
  • Tailwind CSS + shadcn/ui + Geist font
  • X25519 + Ed25519 + AES-256-GCM β€” hybrid E2E encryption