João Pedro Maia Contact
Machine Learning Engineer · Forward Deployed

João Pedro Maia

I put AI agents into production for governments and enterprises, inside their own environments, and build the infrastructure underneath them in Python, Rust and Swift.

Based in Copenhagen, working remotely for aiXplain, with customer travel. MSc Data Science at the IT University of Copenhagen, alongside full-time work. Open to conversations about forward deployed engineering, machine learning engineering and LLM agent systems.

Experience

aiXplain

2024 – present
Machine Learning Engineer · Remote (Copenhagen), with customer travel

I put aiXplain's agent platform into production for governments and companies across MENA, on-premise and air-gapped, and I am technical lead on projects in three teams (on-premise, MLOps, GenAI) with 10+ engineers. I set the architecture and the technical decisions for GenAI systems used by 1,000+ people, and I run client workshops in the UK, the US, Brazil and MENA. The platform is used in 63 countries, by customers such as the Saudi Ministry of Justice, Digital Dubai, stc, Cisco and Comcast (CB Insights AI 100, 2025). My work: on-premise and air-gapped deployments, guardrails and controls for a coding agent, human-in-the-loop approval, the desktop app, LLM routing, an agent that builds agents, voice, the Swift SDK, and a serving benchmark of 50+ models across providers and chips.

Key projects

On-premise and air-gapped deployments

2024 – 2026

Deployed aiXplain's platform for customers such as SDAIA (Saudi Arabia's national AI authority), TCC and Incorta, on-premise and air-gapped where required. I installed it, debugged it and trained the operators, and for one customer I co-designed the AI infrastructure with their team, around local models and the tools their work needed. One air-gapped deployment I worked on now reviews 1.7M cases a year, in 10 minutes each where it took hours. Hundreds of customer engineers build their own agents on these deployments. I also wrote the orchestration software that keeps the on-premise virtual machines healthy.

Docker · podman · Kubernetes · Linux VMs · self-hosted models

Guardrails and controls for an air-gapped coding agent

2026

Worked with customers to run aiXplain's coding agent on their own hardware behind the air gap, connected only to an approved set of tools. I built the admin controls, their security, and the guardrails that keep every agent inside company and government policy. It is used at organizations of 500+ people.

TypeScript · Python · MCP · guardrails

Human-in-the-loop approval system

2026

Designed and built human-in-the-loop for aiXplain's agent engine, starting from the RFCs, as part of my work on its core: how agents call tools and other agents, and the permission system. An agent can ask the user a question or wait for approval before a tool with side effects runs: payments, CRM writes, or emails. Paused agents and sub-agents free their Temporal worker and resume from a Redis checkpoint after a signed, one-time decision.

Python · Temporal · Redis

aiXplain Desktop: the whole platform in one click

2026

Turned the company's 9-container cloud platform into a one-click desktop app, so customers in data-restricted regions can run agents and models on their own machines. A SwiftUI control plane boots and manages its own Linux VM, recovers failed updates, serves local models on constrained hardware, and gives agents mail, calendar, files and shell through a host gateway with opt-in write access. Customers use it today, and I have maintained it since the first version.

Swift · SwiftUI · podman · Linux VM

Cost-aware LLM gateway

2026

Built the Rust LLM gateway that is now the default model of aiXplain's coding agent. On 20 SWE-bench Verified tasks with 3 attempts each, it solved 55 of 60 attempts against 52 for the best single model tested, at 31% lower cost and 30% less time. An LLM judge picks the model tier for each request, right for 91.7% of 120 labeled requests against 64.2% for keyword rules. It speaks the OpenAI and Anthropic APIs, signs cost receipts with Ed25519, stores no prompts, and ships a routing policy only after a pre-registered non-inferiority test.

Rust · tokio · LLM routing · LLM evaluation

Led the second version. Users describe what they need in a conversation. A classifier reads the whole thread and routes it to search, agent-building, debugging or chat agents, and asks a clarifying question when it can't tell. It runs on Kubernetes (FastAPI, Celery, Redis), with tools exposed over REST and MCP.

Python · FastAPI · Celery · Redis · Kubernetes · MCP

Realtime voice agents

2026

Gave existing agents a voice with no rewrite, in two designs. A realtime model (OpenAI Realtime, Gemini Live) holds the conversation while the agent reasons and calls tools. A cascaded engine (voice-activity detection, speech recognition, the agent and text-to-speech) handles turn-taking and stops when the user interrupts.

Python · asyncio · Voice AI

A Swift SDK

2024 – 2025

Proposed and built the company's first SDK outside Python, in Swift for iOS, macOS, watchOS and tvOS, with no brief. It powers the company's App Store chat app, where I was the main developer, and an open-source agent-builder app for macOS.

Swift · iOS · macOS

SolarCore

2025 – 2026
Founder and Technical Lead

Founded a solar monitoring SaaS as a side project, with aiXplain's agreement, and led a team of 8 from first prototype to 500+ monitored solar stations, then sold the company. I traveled across Brazil to meet solar installers and joined their business meetings, then built the product around how they work: installers saw their customers' plant output, power bills and savings in one place, with reseller billing that shows their margin. I owned the whole stack. Designed the serverless AWS backend in Terraform (Lambda, API Gateway, Step Functions, SQS, DynamoDB, PostgreSQL with PostGIS), deployed to dev and prod with GitHub Actions. Built browser-automation collectors on ECS Fargate for three inverter portals with no simple public API, signing in with each customer's own account, and a pipeline that fetched utility bills and read them with an LLM. Text-to-SQL agents answered questions on live data over WhatsApp, voice notes included, and on the web. The company is now closed.

Python · TypeScript · Next.js · PydanticAI · Playwright · AWS (Lambda, Step Functions, ECS Fargate, RDS/PostGIS) · Terraform

PUC-Rio

2023 – 2025
Researcher

Final-paper research on mammography segmentation with unbalanced datasets (U-Net, SegFormer). It led to a co-authored journal paper in Signal, Image and Video Processing (2025).

Apple Developer Academy, PUC-Rio

2022 – 2023
iOS Developer (program participant)

Led a 9-developer team that built and shipped Sound Journey, a music game with 1K+ App Store downloads. Built iOS and watchOS apps in teams of up to 40 people over 15 months. Projects included AI photo restoration with a model-serving REST API, an astronomy app for iOS and watchOS, and WeatherKit alerts with widgets. Helped with ML lectures and the competitive-programming study group.

Quantum Finance

2021
Software Engineer Intern

Remote internship at a fintech company (January–July 2021).

Education

MSc Data Science, IT University of Copenhagen

2026 – 2028 (expected)

Alongside full-time work. Advanced Applied Statistics, Algorithm Design, Data in the Wild, Seminars in Data Science. Current seminar: reproducing a NAACL 2025 study on LLM prompt sensitivity on the university's HPC cluster.

BSc Computer Science, PUC-Rio

2019 – 2024

Department of Informatics, whose graduate program holds CAPES grade 7, the highest grade in Brazil's national evaluation. Final paper with the Tecgraf Institute on deep-learning segmentation of mammography images that still works on images from other scanner vendors, graded 10/10. It became a co-authored journal paper in Signal, Image and Video Processing (2025).

Publications

VeriEvolve: Evaluator-First Evolution for Tool-Using Agents

Y. Li, K. A. Yuksel, G. Tur, D. Hakkani-Tür, J. P. Maia

REALM Workshop at EMNLP 2026 · Budapest · Accepted · OpenReview

LLM-Driven Correlation-Aware Tournaments

K. Yuksel, J. P. Maia, T. Castro Ferreira, M. Al-Badrashiny

ICLR 2026 Workshop on Advances in Financial AI · OpenReview

LLM-Driven Active Listwise Tournaments for Portfolio Selection in Large Asset Universes

K. Yuksel, J. P. Maia, T. Castro Ferreira, M. Al-Badrashiny

ICLR 2026 Workshop on Advances in Financial AI · OpenReview

AlphaLoss: LLM-Driven Evolution of Robust and Interpretable Portfolio Optimization Objectives

K. Yuksel, J. P. Maia, T. Castro Ferreira, M. Al-Badrashiny

ICLR 2026 Workshop on Advances in Financial AI · OpenReview

Improving the generalization of deep learning models in the segmentation of mammography images

J. Hurtado, J. P. Maia, C. A. Sierra-Franco, A. Raposo

Signal, Image and Video Processing 19(18):1451 · Springer · 2025 · DOI · arXiv

Recognition

Invited to Apple Park for WWDC24

2024

WWDC23 Swift Student Challenge Winner

2023

Apple. One of 350 winners worldwide. Built Night Canvas, an AR playground that matches a constellation drawn with a finger to the real one using spectral graph matching.

Writing

A step-by-step guide to running an AI agent on a rented server with zero-trust security: key-only SSH, Tailscale private networking, systemd sandboxing, and automatic patching.

All writing