Head of Engineering (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Socket.dev

San Francisco (CA)

Hybrid

USD 250,000 - 400,000

Full time

5 days ago
Be an early applicant
Application generator

Get a reply from this employer — a resume and cover letter tailored to exactly what they’re hiring for.

Get past ATS filters

Benefits offered by this job

Health Insurance
In-person retreats
Meal stipends
Flexible vacation

Job summary

Legion Health is hiring a senior engineering leader to own the hardest systems in our AI-enabled care platform. You will own end-to-end domains, ship at high velocity with agent leverage, and ensure auditability, HIPAA compliance, and robust architecture.

This is a senior seat with broad autonomy and opportunities to shape the future of clinical AI. You’ll work on a regulated product, e-prescribing, and an event-driven TypeScript platform, collaborating with a small, high-impact team in San

Qualifications

  • Senior-level engineering ownership across complex systems.
  • Experience shipping high-velocity tech with agents or AI components.
  • Strong written communication and autonomous problem-solving skills.

Responsibilities

  • Own the factory spine, shipping 500–1,000 PRs/month with safety gates and canaries.
  • Own the clinical work spine with auditable, fail-closed checks for AI-assisted care.
  • Oversee agent operations in production with tool use and receipts for clinical-adjacent tasks.
  • Own the data and metrics estate, including pipelines and analytics.
  • Architectural alignment with CTO; provide domain-level decisions and documentation.

Skills

Architectural leadership
TypeScript
Node.js
PostgreSQL
Next.js
AWS

Tools

e-prescribing integrations

Job description

About Legion Health

At Legion Health, we believe everyone deserves fast, affordable, and world-class health care, and we’re developing the AI infrastructure to deliver it ourselves at world scale.

Legion is building autonomous medical care (the AI doctor), starting with psychiatry. Our AI-native care-delivery platform currently automates 95% of the administrative work required for us to deliver direct patient care. We also recently became the first company ever to receive regulatory authorization to let AI prescribe psychiatric medications, allowing us to not only collapse health care’s admin costs but also its clinical labor costs—shifting this industry’s economics from humans to tokens.

Our technical moat is hard to copy—we combine rich data, production AI, doctors in the loop, and end-to-end care operations to deliver measurably better care to a clinically complex patient population. This has helped us produce tens of thousands of total visits in just 2 years, all while holding ops costs flat and achieving industry-leading patient NPS and retention. While the last generation of healthcare startups made the existing system incrementally more efficient, Legion is rebuilding full-stack care delivery from first principles. Our vision? A 10X better patient experience that’s higher quality, less expensive, and more scalable than ever before. And a 10X better clinician experience that frees our providers to focus on what matters most: caring for patients.

Legion Health is backed by Y Combinator, leading venture capital firms, and founders from Function Health, Modern Health, Everly Health, Trusted Health, Clipboard Health, PatientPing, Sesame Care, Faire, EasyPost, and fuboTV.

Join us as we build the future of health care: faster, higher-quality, and more affordable, powered by doctors and AI working together.

The role

Hey, I'm Daniel G Wilson, co-founder and CTO at Legion. I studied applied math and CS at Princeton, led the Office Scripts and Power Automate integration at Microsoft, and did deep learning and RL research before that. GitHub: https://github.com/danielgwilson

I'm hiring a principal-level engineer to own the hardest systems in our care platform, whole. Not tickets, not a lane inside someone else's architecture: entire problem spaces, from "this is a mess" to "this is done and here's the doc."

Here’s the honest shape of the job. We run a regulated clinical product (we e-prescribe controlled substances) on an event-driven TypeScript platform, and we ship at unusual velocity with heavy agent leverage. The engineers who have thrived here share one behavior: I hand them a gnarly domain, they disappear into it, and they come back with it working, documented, and theirs. I don’t need to check their work or meddle, because checking isn’t unnecessary. That’s the seat. The people who have struggled here waited for scoped tickets to tell them what to do—but that’s what we have agents for.

What you’ll own

Real domains, picked together in week one from this list, with written authority over them:

  • The factory spine. Own the question of how we get maximum leverage in the era of agentic engineering. We ship 500–1,000 PRs a month with a lean team. Merge gates, migration safety, canary and rollback on a system where a bad deploy can touch patient care—this all works today. Your job will be to move us towards 10,000 while maintaining quality and rigor.

  • The clinical work spine. Our event-sourced system of record for clinical work (orders, tasks, commands, receipts): the layer that lets AI agents and humans act on patient care with auditability and fail-closed checks. You’ll own the guardrails that ensure agents can safely provide broader and broader components of care.

  • Agent operations in production. LLM agents doing real clinical-adjacent work with tool use, checks, and receipts. You decide how autonomy expands and ratchets upwards as proof accumulates. Your agent harness will help prescribe psychiatric medication, legally, at the second company ever allowed to.

  • The data and metrics estate. Warehouse, analytics platform, and the pipelines that tell us what actually happened.

  • Architecture syncs with me. You’ll have the standing I give someone who has seen more systems than I have: disagree with me, make the call in your domain, unpack it for the team when asked.

What "a fit" looks like, concretely
  • You’ve owned architecture across multiple companies or many codebases: staff-plus IC, chief-architect, or platform-consulting background. You’ve seen a dozen ways teams ship and you have opinions with scars behind them.

  • You ship daily at high volume with a fleet of AI agents. That’s table stakes. In the interview we’ll ask to see your actual setup and what you let it do unsupervised. "I use Copilot sometimes" is not this.

  • When handed an ambiguous, ugly, load-bearing problem, your instinct is to take it whole: read everything, decide, build, write the doc, tell us what you decided. Not to schedule a meeting about scope.

  • You communicate proactively in writing. The pattern we love: a Sunday text that says "took care of it, here’s the PR and what I changed."

  • You hold clinical-grade correctness without losing speed: auditability, HIPAA, fail-closed defaults, invariants over vibes.

This is a senior seat. Typically that means 10+ years and multiple systems owned end to end, but we care about the scars, not the number. We have separate openings for earlier-career engineers; this is not that. We need someone who’s seen some shit.

This role is not for you if you want to manage instead of build, you need well-scoped tickets to be productive, or big-company pace feels normal to you.

Our Tech Stack
  • TypeScript, Node.js, Postgres, Next.js on Vercel, AWS, production LLM agent orchestration and bespoke harnesses, tools, CLIs, skills, evals and observability, EHR and e-prescribing integrations, PHI-grade security and audit trails.

Role Logistics, Compensation, and Benefits
  • Job type: Full-time

  • Role type: Engineering

  • US Visa Sponsorship: Yes

  • Salary: $250,000 to $400,000 depending on experience, plus meaningful early-stage equity.

  • 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 are (literally) saving lives.

  • Work Setup: In-person @ San Francisco HQ; partial remote considered for exceptional candidates (our track record includes both).

  • 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 stepping into expanded roles and joining our executive leadership team.

Equal Employment Opportunity

Legion Health is proud to be an Equal Opportunity Employer. We celebrate diversity and are committed to creating an inclusive environment for all employees, contractors, and applicants without regard to race, color, religion, sex, sexual orientation, gender identity or expression, national origin, age, disability, veteran status, genetic information, or any other protected characteristic under applicable law. We encourage applicants from all backgrounds to apply.

Get your free, confidential resume review.
or drag and drop your file here.
Similar jobs

Similar jobs worth comparing

Product Engineer, Care Loop (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Product Engineer, Care Loop (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

Hybrid
USD 160,000 - 260,000
Health Insurance
In-person retreats
Meal stipends
+1
Head of Engineering (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Head of Engineering (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

Hybrid
USD 250,000 - 400,000
In-person SF HQ
In-person retreats
Meal stipends
Software Engineer — Patient Products (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Software Engineer — Patient Products (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 160,000 - 325,000
Health Insurance (medical, dental, and
In-person SF HQ
Meal stipends
Head of Product (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Head of Product (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 190,000 - 330,000
Health benefits
In-person SF office
AI tooling budget
+1
Founding People and Talent Leader (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Founding People and Talent Leader (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 170,000 - 260,000
Health insurance
Relocation assistance
US visa sponsorship
+3
Head of Consumer Growth (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Head of Consumer Growth (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 190,000 - 300,000
Founding Product Manager, Consumer + AI (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Founding Product Manager, Consumer + AI (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 190,000 - 290,000
Health insurance
In‑person retreats
Meal stipends
+3
Principal Engineer (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Principal Engineer (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 250,000 - 350,000
Consumer Growth Leader (backed by Y Combinator, $5M+ ARR, $20M+ raised)
Consumer Growth Leader (backed by Y Combinator, $5M+ ARR, $20M+ raised)

Legion Health • San Francisco (CA)

On-site
USD 170,000 - 300,000
Health Insurance
Equity/Stock options
In-person sprints
+3
Provider Partnership Manager (backed by Y Combinator, $5M+ ARR, $23M+ raised)
Provider Partnership Manager (backed by Y Combinator, $5M+ ARR, $23M+ raised)

Legion Health • San Antonio (TX)

Hybrid
USD 120,000 - 180,000
Equity
Mileage reimbursement
Cell phone stipend
+1