LinkedIn
SOFTWARE ENGINEERNEW YORK, NY 2026

Mahib Hosain

Developer tools
Build systems · AI infrastructure

Stripe
Previously Google

SELECTED WORK

01 / WORK

Selected work

01Google

GENERATIVE AI

Google on-device
LLM gateway

Aratea

100+ clients onboarded onto the on-device LLM gateway

One of two engineers building a gateway with a common API for image and text generation through Google’s Imagen and Bard models. It supported Android AI Wallpaper, Android Auto, Messages, and other experiences. I owned feature prioritization, design, and implementation, as well as metrics, quotas, experimentation, CI/CD, and on-call.

Powered experiences demonstrated at Google I/O 2023 and showcased at CES.

100+clients onboarded
Google I/O2023 + CES experiences
Distributed systemsLLM infrastructureObservability
02Stripe

JVM MODERNIZATION

Automatic language version upgrades at Stripe

From quarterly migration projects to continuous language upgrades

I led Stripe’s automated JDK upgrade platform: using live Bazel dependency graphs to determine eligibility, partition reviewable changes, and surface blockers.

Stripe context: 26M lines of JVM code · 700+ Java services

93%+JDK 17 service adoption in under a week
160+upgrade PRs in the first three months
EXTERNAL ENGINEERING ARTICLE / COAUTHORModern Java at StripeLanguage upgrades as a serviceREAD ON STRIPE.DEV
03Stripe

CODING AGENTS / EFFICIENCY

LLM-aware
Bazel output

--config=llm

Less build noise in agent context, lower token costs

I implemented an LLM-aware Bazel output filter across Stripe’s polyglot monorepo—Ruby, JVM/Python, and Go. Enabled with --config=llm, it strips ANSI escape codes and verbose build/test noise before the output reaches coding-agent context windows.

The filter reduces token costs for Stripe’s Minions—built on a fork of Goose—as well as Codex and Claude Code.

~$500Kmeasured annualized output-token savings
BazelCoding agentsRubyJVM / PythonGo
05Stripe

AI + COMPILERS

AI assisted code
translation at scale

Removing the Scala constraints keeping Stripe’s JVM codebase on legacy versions

I built llmigrate, a Go CLI orchestrating five specialized Claude agents to translate Scala into Java, repair Bazel builds, translate tests, and check JVM compatibility.

1M+lines of Scala migrated to Java
5specialized agents
llmigratePIPELINE
  1. 01 Preflight analysis
  2. 02 Source translation
  3. 03 Bazel repair
  4. 04 Test translation
  5. 05 JVM compatibility

Generated bridge code and cross-language tests validate Java implementations against Scala behavior.

06Google

DEVICE INFRASTRUCTURE

On-device data rollouts

ML models, font files, and other data packages across Google apps

Before Aratea, I built telemetry and analytics for measuring data-package rollouts on devices across Google apps, including Search and YouTube.

Built pipelines processing 1B+ device events daily, aggregating and visualizing rollout metrics with HLL / KLL sketches. Configured anomaly detection and automated alerts to catch rollout regressions, and integrated rollouts with A/B testing.

1B+device events daily
HLL / KLLaggregation at scale
Data pipelinesHLL / KLL sketchesAnomaly detectionExperimentation
07Stripe

BUILD SYSTEMS

Bazel performance

Remote execution, caching, and dependency hygiene across 700+ Java services

Improved remote execution for JVM development, enforced versioned dependencies in Starlark, and introduced Java quality gates with Error Prone.

Remote executionAction cachingStarlarkBuild graphs
08NASA

SUMMER 2017

FlightHorizon

Contributed to flight-awareness and collision-avoidance software. FlightHorizon combines aircraft position data into an airspace view and supports detect-and-avoid decisions for unmanned aircraft.

2017 R&D 100 Award finalist
09Nike

SUMMER 2018

Elefit + localization

Won the Nike Digital Intern Hackathon with Elefit, a live workout-tracking app. Built dynamic string localization infrastructure for Nike apps.

iOSReal-time analyticsLocalization
ALSO

OpenText · Software Engineer · 2019–2022Built reusable Ansible and Makefile deployment templates adopted across most team services.UC San Diego · B.S. Mathematics–Computer Science · 2019

02 / INDEPENDENT

Side projects

01 / MUSIC

bladee_bot

Underground music lyrics bot built with AWS Lambda and Python, reaching 16k followers at its peak

16K FOLLOWERS AT PEAK

02 / COFOUNDER & CTO

Trillboards

Turned smart TVs into digital billboards with WebSockets, scheduling, and payments. Top 10% of our Y Combinator applicant batch

trillboards.com

03 / PREDICTION MARKETS

Kalshi trader

Trading and research infrastructure for prediction markets: inventory-aware quoting, fee-aware execution, persistent state, replay, and risk limits

PYTHON / SQLITE / EC2

04 / WEB

ALEQTH portfolio

Built the initial portfolio website for Alex Headlam and hosted it on AWS EC2.

aleqth.com/portfolio

03 / EXPERTISE & INTERESTS

Craft & beauty

A small violet Metal Sonic pixel sprite with red eyes
01 / BUILD SYSTEMS

Bazel

Dependency graphs, reproducible actions, remote execution, and knowing which work can be reused

Graphs, actions & caching
02 / WORKFLOW

tmux / herdr

Persistent sessions, composable terminals, and multiple coding agents within reach

03 / CODE INTELLIGENCE

Metals

Language intelligence for large Java and Scala codebases — upstream contributor and daily user

metals-lsp.org
ALSO IN THE TOOLKIT

Java · Scala · Go · Python · Kotlin · Rust · SQL · AWS · Docker · Observability