yastrebov

AI Engineer / Team Lead

Roman Yastrebov

14 years of commercial software development in Python, Go and PHP; team lead and architect. Since 2025 I build LLM systems for production: agent harnesses with tool calling, eval sets, model cascades, LLM gateways and self-hosted open-weight models. I judge quality by evals, not by demos: on my latest project recognition accuracy went from 53% to 96% at about $0.01 per page.

Key skills

LLM engineering
Agent harness with tool calling, eval sets and model selection, model cascades, structured extraction, trust boundaries against prompt injection, LiteLLM, RAG on pgvector, open-weight models (vLLM, Ollama, Whisper); OpenAI, Anthropic and Gemini APIs; Claude Code and MCP in the development process.
Backend and architecture
Python (FastAPI), Go (gRPC microservices), PHP 8 / Symfony; DDD, Hexagonal, CQRS, Event Sourcing, microservices and modular monoliths; asynchronous processing with queues.
Code quality and review
Code and architecture reviews, functional tests for the whole API, static analysis (PHPStan, Psalm, mypy, ruff), architectural boundary checks (Deptrac), TypeScript models generated from OpenAPI.
Leadership
Cross-functional teams of up to 8 (backend, frontend, QA), hiring interviews, Scrum, Jira, Confluence, YouTrack, mentoring.
Data and operations
PostgreSQL, MySQL, Elasticsearch, Redis, RabbitMQ, Kafka, Docker, Kubernetes, GitLab CI/CD, Prometheus, Grafana, Sentry.
Mobile
Flutter/Dart, my own apps in the App Store and Google Play; backends for iOS and Android apps with in-app purchases.

Experience

Independent AI productsOwn apps and R&D2025 — present

I build and ship my own Flutter apps with an AI assistant, and the LLM infrastructure behind them.

Code PilotsSoftware engineering and AI consultancy2017 — present

Started as a backend developer, then became an architect and team lead. Now I lead AI projects for clients.

GigWorkHRM and workforce platform (contract)January 2023 — December 2025

Team lead of GigWork Exchange, then architect of the HRM platform on PHP/Symfony and Go.

Amelia UnderwritersInsurance company (USA)March 2012 — August 2016

Full-stack developer and team lead of a team of 5.

Projects

April 2026 — presentCode PilotsTeam lead and AI engineer

Underdogi

An LLM pipeline that recognizes scanned PDF protocols of sports competitions and computes athlete ratings.

  • Built an eval bench on a reference set of 43 pages and 423 bouts and used it to choose models for 30k pages of protocols. Accuracy on the reference set went from 53% to 96% at about $0.01 per page.
  • Designed the recognition engine: the model extracts the bracket structure and deterministic code rebuilds the tournament logic; disputed pages go to a stronger model, and spending is capped.
  • Added validation and deduplication of results, a data snapshot and automatic rollback on failure to the weekly run.
  • Sped up the rating page from 10 seconds to 60 ms with precomputed snapshots.

Stack: Python, FastAPI, OpenAI API, Gemini API, PHP 8.4, Symfony 7.4, MySQL, Nuxt 3, Docker.

2025 — presentIndependent products

AI assistant and LLM infrastructure

  • Designed an AI assistant for my Flutter mobile app on a custom agent harness: a tool-calling loop with tools over user data, web search, streamed answers, memory and parsing of uploaded documents. Models are connected through LiteLLM, so the provider changes without code edits and a failed request falls back to a backup model.
  • Took the assistant to production: daily quotas, an answer deadline, token accounting and a trust boundary for tool results against prompt injection. Prompts are versioned with the code and updated without an app release.
  • Deployed an LLM gateway on LiteLLM: one OpenAI-compatible API for cloud and self-hosted models, per-project keys and budgets, fallbacks between providers.
  • Ran open-weight models on my own servers for tasks where data cannot go to external APIs: LLMs on vLLM and Ollama, speech recognition with Whisper and meeting diarization.
  • Built RAG search over documents on PostgreSQL with pgvector, with hybrid search and an eval set of questions I use to check answer quality.

Stack: Flutter, Dart, LiteLLM, vLLM, Ollama, Whisper, PostgreSQL, pgvector, Docker.

January 2026 — April 2026Code Pilots

Go-Base Platform

AI-assisted modernization of an ERP/WMS warehouse system with RFID. Heavy legacy: PHP 7.0, a custom framework on Zend Framework 1, 58 business modules.

  • Introduced a spec-driven process with AI agents: agents create a branch from a YouTrack task, open a merge request and update the task status on their own.
  • Moved the codebase from Zend Framework 1 to Symfony components step by step, with no regressions for neighbouring teams.

Stack: PHP, Zend Framework 1, Symfony, MariaDB, PostgreSQL, RabbitMQ, gRPC, Claude Code, MCP.

January 2024 — December 2025ContractArchitect

GigWork

An HRM platform for staff outsourcing with its own payroll flow: piece-rate accruals, reconciliation and payouts to contractors. Several PHP/Symfony services and Go microservices.

  • Owned the platform architecture. Designed new modules, agreed technical decisions with the team and introduced architecture reviews for major changes.
  • Wrote Go microservices for the high-load parts of the platform: RabbitMQ event handlers and services with gRPC APIs.
  • Built accounting of accruals and payouts on Event Sourcing: operations go to an event log, a contractor's balance is rebuilt from it, and reprocessing of messages is idempotent.
  • Moved mass accruals and payouts to asynchronous batch processing so that peaks do not block the API.
  • Proposed and carried out merging the customer portal and HRM into one service. Duplicated code went away and new features started shipping about 25% faster.
  • Upgraded the services from PHP 7.4 and Symfony 5.4 to PHP 8.3 and Symfony 6.4 and covered the whole customer portal API with functional tests.

Stack: Go, gRPC, PHP 8.3, Symfony 6.4, PostgreSQL, Redis, RabbitMQ, Graylog, GitLab CI/CD, Jira, Confluence.

January 2023 — January 2024ContractTeam lead

GigWork Exchange

A request exchange for outsourcing companies, built from scratch.

  • Led a team of 8: 4 backend, 2 frontend, 2 QA. Ran the hiring interviews myself.
  • Ran the team on Scrum: two-week sprints, planning, retrospectives. Tasks in Jira, documentation and team agreements in Confluence.
  • Laid down the architecture on DDD and Hexagonal, with module boundaries checked by Deptrac.
  • Set up TypeScript model generation from OpenAPI: the frontend received contracts automatically, without manual syncing.

Stack: PHP, Symfony, PostgreSQL, Deptrac, Psalm, PHPStan, OpenAPI, GitLab CI/CD, Jira, Confluence.

September 2021 — January 2023Code PilotsArchitect, then team lead of a team of 4

Too Many Gifts

A B2B store of corporate gifts with over a million products in the catalogue.

  • Designed the platform from scratch: the main backend and an import microservice connected through RabbitMQ.
  • Built faceted catalogue search on Elasticsearch; filters and counters are computed with aggregations without database queries.
  • Designed the import from 15+ suppliers with different protocols (REST, SOAP, FTP, XML feeds) and gigabytes of data. Parsers stream within bounded memory, synchronization is incremental, and a new supplier is added with a single parser.

Stack: PHP 8.1, Symfony 5.4, PostgreSQL, Elasticsearch, Redis, RabbitMQ, S3, Docker.

Earlier projects

Code Pilots, 2017 — 2022

Before Code Pilots

March 2012 — August 2016Insurance company (USA)Full-stack developer and team lead of a team of 5

Amelia Underwriters

A platform for issuing insurance policies through agents across the USA, running since the early 2000s.

  • Led a team of 5.
  • Built HTML-to-PDF generation of policy documents and an interface that simplified their layout; optimized and tested the step-by-step policy issuing flow.
  • Started an in-house framework that automated routine administration tasks.
  • Built a separate platform for monitoring and managing the core components of the system.

Stack: ColdFusion, PHP, MSSQL, JavaScript, jQuery.

Education and languages