Role: Founding Engineer - AI-Native Mental Health Care (In-Person in SF)Hey-I'm Daniel Wilson, co-founder & CTO at Legion. I studied applied math + CS at Princeton, then led the Office Scripts + Power Automate integration at Microsoft-shipping the highest retention-driving feature in the product. Before that, I did deep learning + RL research. I'm obsessed with building AI systems that make real workflows cleaner, safer, and more autonomous. Github: https://github.com/danielgwilson
I'm hiring a
Founding Engineer to
own core product + agent systems end-to-end. You'll build the layer that coordinates
patients, clinicians, and AI agents as one coherent machine-tight feedback loops, high standards, and real ownership.
This isn't "just infra." It's building the product heart of an autonomous care system: the workflows, the agent behaviors, the guardrails, the integrations, the UX that makes it usable, and the reliability that makes it trusted.
Roles evolve quickly here-including mine. I'm looking for someone who wants to
carry real weight, take full ownership, and grow into running major parts of the system-not someone who needs a perfectly scoped box to operate inside.
• What You'll Do- Own our event-driven backend - Architect and scale our Node.js / TypeScript / Supabase (Postgres) / AWS stack. Design schemas, invariants, and workflows that encode how psychiatric care actually operates. Turn messy real-world processes into clean state machines and event streams.
- Build real LLM agents as coworkers - Implement tool use, retries, memory, and safety rails. Design action schemas and evaluation loops so agents can run reliably in production. Work on orchestration, context management, and multi-step workflows.
- Shape human + AI ops UX - Build internal tools used by both humans and agents. Make it trivial to see "what happened, why, and what should happen next" in any patient journey.
- Define world-state & simulation - Model the canonical state of a patient's journey across time. Power alerting, routing, and decision-making from that live simulation.
- Own data, safety & compliance - Engineer HIPAA-compliant pipelines for transcripts, events, and EHR data. Ensure PHI access, agent actions, and human overrides are all auditable.
- Drive architecture & strategy - Work directly with me to debate tradeoffs, define new primitives, and decide what we build next.
You don't need to be a pure backend engineer-we value
great product engineers who can learn fast, make strong simplifying decisions, and grow into owning backend/agent systems.
You Might be a Fit If...- You've owned real systems 01 or 1N, not just tickets.
- You think in events, state, and invariants, not just CRUD endpoints.
- You're either already LLM-fluent or a strong systems/backend engineer who can get dangerous fast.
- You care about velocity and correctness-moving quickly while keeping things understandable and robust.
- You like small, high-candor teams and direct feedback.
- You want to see your work go live in production weekly, not sit on a roadmap.
🧰 Nice to Have- Experience with Node.js / TypeScript, Postgres, or Supabase.
- Experience with LLMs, agents, tool-calling, or RAG.
- Experience in healthcare, fintech, or other regulated / high-stakes domains.
- Experience in early-stage startups or founding teams.
Our Tech Stack- Backend: Node.js, TypeScript, Supabase (Postgres), AWS (ECS, Lambda, S3)
- Frontend: Next.js 15 (App Router), Tailwind, Vercel
- AI: OpenAI, Anthropic, tool-calling agents, embeddings + vector DBs, Langfuse-style observability
- Other: PHI security, audit trails, real-time schedulers, transcript ingestion
How to Apply and Hiring Process- Apply here:
- Overview of our hiring process:
- Systems/portfolio deep dive (45 min) - walk through 1-2 systems you've shipped; architecture, tradeoffs, failure modes.
- Practical work trial (1.5 hours) - short, realistic backend/LLM-systems exercise. No LeetCode, no puzzles.
- Final onsite (1.5 hours) - meet the team, pair on a real issue, and talk through how you'd own a domain.
- Estimated time-to-hire: 7-10 days
- Start date: ASAP
Role Logistics, Compensation, and Benefits- Job type: Full-time
- Role type: Engineering
- Ideal Experience Level: Doesn't matter if you're cracked
- US Visa Sponsorship: Yes
- Salary: Competitive
- Early-Stage Equity: 0.2%-0.8% meaningful early ownership
- Health Insurance: Medical, dental, and vision benefits
- Additional Perks: In-person retreats, meal stipends, etc.
- Time Off: Flexible, unlimited vacation policy
- Work Hours: Flexible but demanding because we're literally saving lives
- Work Setup: In-person @ San Francisco HQ
- Impact: Work on something that truly matters to millions of patients and families.
- Autonomy and Learning: Ownership over your projects with the freedom to set priorities, shape processes, and drive outcomes end-to-end.
- Growth Opportunities: As we scale, we envision our top performers from our founding team stepping into expanded roles and joining our executive leadership team.