An autonomous AI agent that monitors robotic surgery, generates clinical documentation, manages its own infrastructure costs, and enforces EU regulatory compliance β without human intervention.
Quick Start β’ Architecture β’ Demo β’ Testing β’ Challenges
Surgeons in the operating theatre face an impossible multitasking burden: perform complex robotic procedures while manually documenting every clinical observation, managing device telemetry, and remaining compliant with EU AI Act regulations. Meanwhile, hospital legacy systems (SAP IS-H, i.s.h.med) are approaching end-of-life by 2030β2035, creating an urgent need for modern, interoperable data infrastructure.
Aegis solves this. It acts as an autonomous digital co-pilot that:
- Eliminates manual documentation β Listens to the surgeon and auto-generates structured FHIR R4 clinical notes
- Monitors the robot in real-time β Detects kinematic anomalies before they become dangerous
- Pays for its own compute β Autonomously leases GPU resources and settles invoices via Stripe and Solana
- Enforces compliance by design β Continuously audits against EU AI Act, DORA, and MDR requirements
Zero real patient data is used anywhere in this project. All clinical data is synthetically generated.
| Capability | How | Technology |
|---|---|---|
| Listens to the surgeon | Hallucination-free medical speech-to-text β auto-generated FHIR notes | ElevenLabs Scribe v2 |
| Sees pre-op imaging | Zero-shot anatomical classification on DICOM scans | Google HAI-DEF MedSigLIP |
| Monitors the robotic arm | 6-axis kinematic telemetry at 10 FPS, anomaly scoring | Webots simulation |
| Reasons clinically | 685B-parameter inference with ultra-low latency | DeepSeek-R1 on Crusoe Cloud |
| Responds to failures | Autonomous triage, alerting, and remediation | incident.io agents |
| Bills per outcome | Outcome-based billing, not per token | Paid.ai |
| Pays for itself | Macro-transactions + privacy-preserving micropayments | Stripe + Solana Token-2022 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AEGIS AGENT β
β β
β βββββββββββββββ ββββββββββββββββ βββββββββββββββββββββββββββ β
β β Voice β β Vision β β Robotic Telemetry β β
β β ElevenLabs β β HAI-DEF β β Webots 6-axis sim β β
β β Scribe v2 β β MedSigLIP β β Anomaly detection β β
β ββββββββ¬ββββββββ ββββββββ¬ββββββββ βββββββββββββ¬ββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Clinical Reasoning Engine β β
β β DeepSeek-R1-0528 on Crusoe Cloud β β
β ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ β
β β β
β βββββββββββββββββΌβββββββββββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββββββ β
β β FHIR R4 β β Financial β β Compliance β β
β β Supabase β β Stripe + β β EU AI Act, DORA β β
β β PostgreSQL β β Solana β β incident.io β β
β ββββββββββββββ ββββββββββββββ ββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Layer | Technology |
|---|---|
| Frontend | React 18 + TypeScript 5.8, Tailwind CSS, React Router |
| Backend | Supabase (PostgreSQL + RLS + Auth + Edge Functions) |
| Voice | ElevenLabs Scribe v2 (medical-grade speech-to-text) |
| Vision | Google HAI-DEF MedSigLIP (zero-shot medical imaging) |
| Robotics | Webots (Da Vinciβstyle 6-axis surgical arm simulation) |
| Inference | Crusoe Cloud β DeepSeek-R1, DeepSeek-V3.1, Kimi-K2, Llama-3.3-70B |
| Clinical Data | HL7 FHIR R4 (Patient, Encounter, Observation, Device, Procedure) |
| Reliability | incident.io (SLA Guardian + Incident Commander agents) |
| Payments | Stripe Checkout Sessions Β· Solana Token-2022 Β· Paid.ai |
| Governance | Red Hat OpenShift AI (EU AI Act compliance) |
aegis/
βββ aegis-core/ # π§ Python β Core AI & Robotics
β βββ main.py # Agent entrypoint
β βββ config.py # Environment configuration
β βββ reasoning/ # LLM orchestration (Crusoe Cloud)
β β βββ crusoe_client.py # DeepSeek-R1 inference client
β βββ robot/ # Webots surgical arm controller
β β βββ surgical_arm_controller.py # 6-axis kinematic control + anomaly detection
β β βββ protos/ # Webots proto files (PSM robot)
β β βββ worlds/ # Simulation environments
β βββ vision/ # Medical imaging pipeline
β β βββ dicom_analyser.py # HAI-DEF MedSigLIP DICOM analysis
β βββ tests/ # Python test suite
β βββ inject_anomaly.py # Anomaly injection for testing
β βββ mock_data.py # Synthetic clinical data
β
βββ src/ # βοΈ TypeScript β Frontend Dashboard
β βββ api/ # API clients (FHIR, Stripe, Solana, etc.)
β βββ components/ # React components
β β βββ clinical/ # Vital signs, telemetry, alerts
β β βββ financial/ # Margins, transactions, charts
β β βββ compliance/ # EU AI Act checklist, audit trail
β β βββ shared/ # Layout, sidebar, theme
β βββ hooks/ # Custom React hooks
β βββ types/ # TypeScript interfaces (FHIR, telemetry)
β βββ mock/ # Synthea-style synthetic FHIR data
β βββ utils/ # Logging, metrics, validation
β
βββ docs/ # π Documentation
β βββ DEPLOYMENT.md # Production deployment guide
β βββ HACKATHON_DEMO.md # 5-minute demo script for judges
β
βββ supabase/ # Database migrations & config
βββ scripts/ # Dev tooling (data mode, wallet setup)
Judges: The core AI logic lives in
aegis-core/. The React dashboard insrc/visualises everything in real time.
- Node.js 18+ (20+ recommended)
- Python 3.11+ (for
aegis-core/) - npm 8+
# Clone the repository
git clone https://github.com/<your-org>/aegis.git
cd aegis
# ββ Frontend ββ
npm install
# ββ Backend (Python) ββ
cd aegis-core
pip install -r requirements.txt
cd ..
# ββ Environment ββ
cp .env.example .env
# Edit .env with your API keys (see docs/DEPLOYMENT.md for details)# Start the dashboard
npm run dev
# β http://localhost:5173
# Run all tests
npm test
# Start the Python agent (requires Webots)
cd aegis-core && python main.py| Command | Purpose |
|---|---|
npm run dev |
Start Vite dev server (port 5173) |
npm run build |
Production build to dist/ |
npm test |
Run all 86 tests once |
npm run test:watch |
Watch mode |
npm run test:coverage |
Generate coverage report |
npm run type-check |
TypeScript type checking |
npm run dev:mock |
Dev server with mock data only |
npm run dev:live |
Dev server with live API connections |
5-minute walkthrough: See docs/HACKATHON_DEMO.md for the full demo script.
- Clinical Dashboard β Live FHIR patient data, 6-axis robotic telemetry, vital signs with threshold alerts
- Financial Dashboard β Paid.ai outcome margins, Solana confidential transactions, Stripe checkout status
- Compliance Panel β EU AI Act checklist (12 items), incident.io alert log, audit trail
86/86 tests passing Β· Zero TypeScript errors Β· Production build verified
npm test| Suite | Tests | Coverage |
|---|---|---|
| FHIR R4 validation | 21 | Resource schemas, search params, error handling |
| Stripe Checkout Sessions | 23 | $1,000 limit, credential protection, session lifecycle |
| Solana Token-2022 | 42 | ZK proofs, ElGamal auditor keys, HIPAA privacy (7 critical) |
| Mock data integrity | 26+ | Synthea-style synthetic FHIR resources |
| Components | β | Render tests for all dashboard panels |
| Hooks & utils | β | WebSocket reconnection, FHIR validation, metrics |
| Failsafe | Description | Verified By |
|---|---|---|
| Credential Protection | Payment credentials (card numbers, CVVs) are NEVER included in API payloads | Automated scanning in test suite |
| Purchase Limit | Hard-coded $1,000 maximum for autonomous purchases | 23 Stripe tests |
| ZK Privacy | Solana transaction amounts encrypted via zero-knowledge proofs | 7 critical privacy tests |
- EU AI Act β 12 compliance items: transparency (Art. 52), human oversight (Annex IV), risk management (Art. 9), data governance (Art. 10)
- DORA β Cybersecurity posture, incident reporting, third-party risk management
- MDR β Model governance, version control, bias monitoring
- HIPAA Β§164.312(a)(2)(iv) β ElGamal auditor keys ensure only authorised parties (hospital finance, FDA) can decrypt transaction amounts
- GDPR β Zero real PHI; all patient data is synthetically generated
Aegis targets the Agentic AI Track and 11 sponsor challenges at HackEurope 2026:
| # | Challenge | Aegis Implementation |
|---|---|---|
| 1 | Agentic AI Track (Paid.ai) | Outcome-based billing with real-time margin tracking |
| 2 | Best AI-Powered Healthcare (Avelios Medical) | FHIR R4 data layer replacing legacy SAP IS-H systems |
| 3 | Best Use of Gemini (Google DeepMind) | HAI-DEF MedSigLIP for zero-shot medical imaging |
| 4 | Best Autonomous Consulting Agent (BearingPoint) | Embedded compliance auditor agent |
| 5 | Best Adaptable Agent (incident.io) | Adaptive reliability agents with auto-remediation |
| 6 | Best Stripe Integration | Autonomous Checkout Sessions with security failsafes |
| 7 | Best 'Built on Solana' (Superteam IE) | Token-2022 confidential transfers for transaction privacy |
| 8 | Best Use of Paid (Paid.ai) | Telemetry trace calls for outcome-based billing |
| 9 | Best Use of Crusoe Inference API | DeepSeek-R1 clinical reasoning on Crusoe Cloud |
| 10 | Best Use of ElevenLabs | Scribe v2 hallucination-free medical transcription |
| 11 | Best Use of Miro AI & Lovable | Architectural context β AI-generated React frontend |
| 12 | Best Use of OpenShift AI (Red Hat) | Model registry and governance for EU compliance |
| Document | Description |
|---|---|
| docs/HACKATHON_DEMO.md | 5-minute demo script for judges |
| docs/DEPLOYMENT.md | Production deployment & environment setup |
| docs/ENV_STRUCTURE.md | Environment variable reference |
| .env.example | Template with all required keys |
See CONTRIBUTING.md for guidelines. We welcome issues and pull requests.
This project is licensed under the MIT Licence.
Built for HackEurope 2026