AI personas browse your dating profile like real people would — each with their own personality, values, dealbreakers, and attention span. Get honest behavioral feedback before you go live.
┌─────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Profile │────▶│ AI Persona Pool │────▶│ Behavioral │
│ Editor │ │ (20 personas) │ │ Dashboard │
└─────────────┘ └──────────────────┘ └─────────────────┘
│
┌──────┴───────┐
│ Real Browser │
│ Sessions │
│ (Stagehand) │
└──────────────┘
Each persona drives a real headless browser through a live Hinge-style dating UI — scrolling, viewing photos, reading prompts, forming first impressions, and making a decision: Like, Pass, or Drop Off. Their full behavioral trace is recorded so you can see exactly what worked and what didn't.
For free local development, set STAGEHAND_ENV=PLAYWRIGHT in backend/.env.
This launches local Chromium through Playwright instead of Browserbase, injects
rrweb into the persona browser session, streams live browser events to the
results page, and saves consent-gated recordings for replay after the run.
Supported browser modes:
STAGEHAND_ENV |
Browser path | Use when |
|---|---|---|
FAKE |
In-memory fake browser | Fast deterministic backend tests and zero-cost walkthroughs |
PLAYWRIGHT |
Local Chromium via Playwright + rrweb | Free local live view and recording smoke tests |
BROWSERBASE |
Browserbase/Stagehand cloud session | Cloud browser sessions and hosted replay infrastructure |
Install the browser extra and Chromium from backend/:
pip install -e ".[browser]"
playwright install chromiumUseful local smoke settings:
STAGEHAND_ENV=PLAYWRIGHT
PLAYWRIGHT_HEADLESS=true
PERSONA_COUNT=1
MAX_CONCURRENT_SESSIONS=1Set PLAYWRIGHT_HEADLESS=false to watch the real local browser window during
debugging. Recordings are only persisted when the submitted profile has consent.
For the full 20-agent local run, use:
STAGEHAND_ENV=PLAYWRIGHT
PLAYWRIGHT_HEADLESS=true
PERSONA_COUNT=20
MAX_CONCURRENT_SESSIONS=20
SIM_TIME_BUDGET_SECONDS=240The results UI only renders three browser replays at a time, but the backend still launches up to 20 Chromium-backed persona sessions concurrently. Use a 64-128 GB RAM machine for the intended demo path; a 32 GB machine may work for short profiles, but close other Chromium/Electron apps and expect CPU pressure.
1. CREATE You upload photos, write your bio & prompts, pick interests
2. RUN 20 AI personas browse your profile in real browser sessions
3. FEEDBACK See who liked, who bounced, why, and what to change
Each persona is a fictional character with:
- Identity — name, values, interests, dealbreakers, dating style
- Attention Profile — calibrated thresholds (bail / curiosity / like)
- Shared Evaluation Skill — the methodology for how they evaluate (same for all)
Decisions are driven by values and behavior, never demographics.
A pure, deterministic decision function:
Interest ≥ like_threshold → LIKE (committed)
Interest ≤ bail_threshold → DROP_OFF (abandoned in-place)
Interest ≥ curiosity_threshold → SCROLL_DOWN (reveal more)
At bottom, not won over → PASS (explicit rejection)
Middling interest → LOOK_CLOSER or HESITATE
agentic-dating/
├── backend/ # Python (FastAPI + OpenAI Agents SDK)
│ ├── app/
│ │ ├── core/ # Deterministic boundary (gate, feed, controller, trace)
│ │ ├── personas/ # Generation, calibration, selection, agent runner
│ │ ├── browser/ # Stagehand + Playwright session management
│ │ ├── perception/ # Lensed VLM perception (per-persona, memoized)
│ │ ├── orchestration/ # Concurrent run scheduling (240s budget)
│ │ ├── aggregation/ # Dashboard builder, critique pass, A/B comparison
│ │ ├── persistence/ # Supabase (consent-gated, signed URLs, cascade delete)
│ │ └── api/ # REST + WebSocket endpoints
│ └── tests/ # 188 tests (property-based + unit + integration)
│
└── frontend/ # TypeScript (Next.js + Tailwind + shadcn/ui)
└── src/
├── app/ # Pages (homepage, editor, mock UI)
└── lib/ # Feed projection, API client
| Decision | Choice | Why |
|---|---|---|
| Browser substrate | Stagehand act()/extract()/observe() + raw Playwright |
Precise control without autonomous agent interference |
| Agent brain | OpenAI Agents SDK | Structured tool-call outputs, single-turn reasoning |
| Deterministic boundary | Pure functions (gate, feed, controller) | Property-testable, no LLM in the critical path |
| Perception | Per-persona lensed VLM, memoized within run | Same photo, different personas = different reads |
| Facts | Computed once, shared identically | Objective baseline before any subjective perception |
- Python 3.11+
- Node.js 22+
- OpenAI API key
- Browserbase API key (for live browser sessions)
- Supabase project (for persistence)
cd backend
cp .env.example .env # Fill in your API keys
pip install -e ".[dev,agents,browser,persistence]"
pytest tests/ -v # 188 tests should pass
uvicorn app.main:create_app --factory --reloadcd frontend
cp .env.example .env.local # Fill in public keys
npm install
npm run devThe target UI that personas browse is deployed at:
https://mock-hinge.vercel.app
Source: NHS172k3/MockHinge
The system is verified by 32 correctness properties using Hypothesis (Python) and fast-check (TypeScript), each running 100+ generated test cases:
| Property | What it proves |
|---|---|
| 2 | Feed projection completeness and structure |
| 3 | Attention gate ordered decision (pure, deterministic) |
| 4 | Budget monotonic depletion and forced termination |
| 5 | Bounded termination (≤ 30 steps) |
| 6 | Terminal outcome classification is distinct |
| 7 | Skips are exactly the unseen tail |
| 8 | Trace completeness and JSON round-trip |
| 9 | Score range invariant [0.0, 1.0] |
| 10 | Structured arguments conform to schema |
| 11 | Facts computed once and shared identically |
| 12 | Facts contain no subjective judgments |
| 13a | Blocked content excluded from feed/facts |
| 14b | LOOK_CLOSER only after First_Impression |
| 15b | Prompt in context iff READ_PROMPT + at/above depth |
| 16 | Perception is per-persona, memoized within run |
| 17 | Shared skill separation and propagation |
| 18a | Controller isolation across concurrent runs |
| 19 | Persona threshold ordering (bail < curiosity < like) |
| 20 | Pool composition guarantees (≥2 thorough reviewers) |
| 21 | Persona selection returns valid subset |
| 22 | Consent gates persistence |
| 24-29 | Dashboard aggregation correctness |
| 30-31 | Critique pass coverage and separation |
| 32 | A/B comparison deltas = metric differences |
| Method | Path | Description |
|---|---|---|
POST |
/api/sessions |
Create a new session |
POST |
/api/profiles |
Submit a profile |
GET |
/api/profiles/{id} |
Get profile by ID |
PUT |
/api/profiles/{id} |
Update profile (v2) |
POST |
/api/runs |
Start a simulation run |
GET |
/api/runs/{id}/results |
Get run results + dashboard |
DELETE |
/api/data |
Delete all my data (cascade) |
WS |
/ws/runs/{id} |
Real-time step streaming |
The feedback dashboard includes:
- Outcome Distribution — likes / passes / drop-offs
- Drop-Off Funnel — where personas abandoned vs. passed at bottom
- Per-Element Like Breakdown — which photos/prompts drive likes
- Most-Viewed Ranking — what gets the most attention
- Decision Cards — per-persona reasoning summary
- Hesitation Points — where personas paused
- Green/Red Flags — with direct quotes from persona reasoning
- Prioritized Recommendations — cross-referenced with critique
- A/B Comparison — side-by-side delta across profile versions
MIT
Built with Kiro — AI-powered development