MasterMind is a clinical intelligence platform for researchers and doctors. It combines a web dashboard for patient monitoring, triage, and neuroscience profiling with an on-device voice agent (powered by Gemma 4 via Cactus) that runs on iOS. Together, they enable low-latency, voice-driven clinical workflows — from bedside data capture to real-time dashboard insights.
The project has two components. Follow the setup steps for each.
Prerequisites: Node.js and Bun
cd ember-web-frontend-backend
npm installSet up Convex (backend):
npx convex devIn a separate terminal, start the frontend:
npm run devThe app will be available at http://localhost:5173.
Prerequisites: Node.js, and a Mac with Cactus installed
Install Cactus and the on-device model:
git clone https://github.com/cactus-compute/cactus
cd cactus && source ./setup && cd ..
cactus build --python
cactus download google/functiongemma-270m-it --reconvertAuthenticate with Cactus:
cactus auth
# Enter your API key from https://cactuscompute.com/dashboard/api-keysOptional — enable cloud fallback via Gemini:
pip install google-genai
export GEMINI_API_KEY="your-key"
# Get a key from https://aistudio.google.com/api-keysStart the Express server:
cd voice-agents-hack
npm install
node index.jsThe server runs on http://localhost:3000.
iOS app: Open voice-agents-hack/Ember/Ember.xcodeproj in Xcode and run on a connected device or simulator.