Skip to content
Khalfoun M. El Mehdi

Khalfoun Mohamed El Mehdi

AI / Agent Engineer · Full-Stack Engineer

I build AI agents and the systems around them. Over the past two years I have shipped three production AI agent systems: a sales agent that answers product questions and closes cash-on-delivery orders in chat, an AI receptionist that qualifies leads and books appointments across Instagram and WhatsApp, and a document-intelligence pipeline that turns receipts into structured, tax-compliant records.

I build the system around the model — tool-calling and orchestration, retrieval, evaluation and continuous improvement, and the integration work that makes an agent usable inside a real product.

Algiers, Algeria · Open to remote work

Production agent systems shipped, 2024–2026
3Production agent systems shipped, 2024–2026
Years building production software
6+Years building production software
Parcels routed by the engine I built at 3M Express
300K+Parcels routed by the engine I built at 3M Express
Weekly downloads on the SDK I patched
1M+Weekly downloads on the SDK I patched

Selected projects

Four systems built between 2024 and 2026. Each has a full write-up: what the problem was, what the product does, how it is built, and what was hard.

How I work

  • Take the model out of decisions it should not make

    A language model that is usually right is not good enough for a step that moves money. At Kommerce the order-confirmation step reads through a deterministic parser instead, and anything ambiguous goes to a person.

  • Keep models out of the scoring path

    Scoring an agent with another model means the quality bar moves whenever the judge model does. Kommerce's eval harness has no model in it at all; OCR-AI derives per-field confidence from cross-model agreement rather than from a model's opinion of itself.

  • Treat escalation as a normal outcome

    Handing a conversation to a person is a success path, not a failure. Both agent systems are built so the handoff is a designed route rather than an error branch.

Skills and tools

AI & agents
  • AI agents & tool-calling
  • LangGraph
  • LangChain
  • Agent orchestration
  • Agent memory & context management
  • RAG & vector search
  • Multimodal (vision)
  • Multi-model ensembles
  • Conversational UX (debouncing, presence, dialect)
  • OpenRouter
  • LangSmith
Evaluation & improvement
  • Evaluation harness engineering
  • Golden-case & regression suites
  • LLM-as-judge with deterministic scorers
  • A/B experimentation
  • Prompt engineering & versioning
Backend & data
  • TypeScript
  • Python
  • Go
  • Node.js
  • NestJS
  • FastAPI
  • PostgreSQL
  • pgvector
  • Redis
  • MongoDB
  • Kafka
  • Multi-tenant SaaS
  • Event-driven systems
Infrastructure & frontend
  • Docker
  • GCP (Cloud Run, Cloud SQL, Pub/Sub)
  • Terraform
  • AWS
  • CI/CD
  • React
  • Next.js
  • React Native
  • Stripe
  • WhatsApp & Instagram APIs

Experience

Algorithme Agency Founder

Sep 2024 – Present

Web development and AI agency. The four projects above ran concurrently alongside it — they overlap, and are not four sequential full-time roles.

  1. 3M Express Backend Engineer

    Jun 2023 – Sep 2024

    Algiers, Algeria

    Owned the routing domain — pathfinding and vehicle routing deciding how an order moves between facilities and out for delivery — plus the middle-mile transfer and facility model underneath it, and order fulfilment on top. Also built the internal admin platform and the release-qualification test suite.

    300K+ Parcels routed

  2. Riverdone Full-Stack Engineer

    Mar 2022 – May 2023

    London, UK (remote)

    Led web and mobile development for client products including Finimize.

    100K+ Active users

  3. TemtemOne Full-Stack Engineer

    Nov 2021 – Mar 2022

    Algiers, Algeria

    Built the back-office and administration dashboards in React, Node.js, TypeScript and MongoDB.

    1M+ Downloads

  4. Techsio Lead Frontend Engineer

    Sep 2020 – Dec 2021

    Algiers, Algeria

    Owned the customer-facing frontend of an e-product sales platform across North Africa, the Middle East and Europe as lead frontend developer.

    60K+ Active users

  5. Iwello Full-Stack Engineer

    Oct 2019 – Aug 2020

    Lagos, Nigeria (remote)

    Contributed telemedicine features for online appointments and teleconsultation, including real-time chat over Socket.IO.

Open source

Background

I am finishing a Medicine M.D. alongside engineering. It is why I am drawn to domains where being probably right is not good enough, and where an audit trail and a human backstop are the point rather than overhead.

  • University of Algiers — Medicine, M.D.

    Sep 2019 – present, studied alongside full-time engineering work

  • EFSET English — 82/100 (Proficient)

    Third-party assessed

  • Convolutional Neural Networks in TensorFlow

    DeepLearning.AI

Get in touch

Open to remote work. The fastest route is email.

© 2026 Khalfoun Mohamed El Mehdi
EmailRésumé (PDF)