Matin Labkhandagh

Production AI & Agentic Systems Engineer

I help startups and AI teams turn unreliable AI prototypes into measurable, production-ready systems.

I build and run production AI systems that survive real users, LangGraph agents, RAG and GraphRAG, MCP infrastructure, and the evaluation and cost layer that keeps them reliable.

Matin Labkhandagh
Matin LabkhandaghProduction AI & Agentic Systems EngineerTen years in software, five in AI. Remote, in English or Persian.
Reference architecture: client, API, complexity-based router, LangGraph agent with MCP tools and RAG/GraphRAG retrieval, LLM judge, streamed response; platform layer of cost ledger, semantic cache, traces and evals, quotas and billing.platform layerclientweb · appapiFastAPI · streamingrouterby complexityagentLangGraph · statejudgeLLM-as-a-judgeresponsestreamed · citedtoolsvia MCPretrievalRAG · GraphRAGcost ledgerper-tokensemantic cachehits skip the modeltraces · evalsRAGAS · judgequotas · billingper-user limits

Reference architecture — the layers I build and run. Not a client system.

Who I work with

Startup founders, CTOs and engineering leads, AI product teams, SaaS companies and AI agencies that need contract AI engineering.

Usually the call starts with one of these:

  • The demo works. Real users keep finding the failure modes.
  • Retrieval returns the wrong passage and nobody can say why.
  • Token spend grows faster than usage.
  • There is no evaluation, so every prompt change is a gamble.

Services

Three fixed-scope engagements. Scope, timeline and price are agreed in writing before work starts.

AI / LLM Technical Audit

A technical audit for an existing AI feature that is unreliable, expensive, slow, or difficult to evaluate.

Timeline 5 working days
Starting at $400
You get
  • Architecture review
  • Retrieval / RAG review
  • Tool-calling review
  • Prompt review
  • Hallucination analysis
  • Latency analysis
  • Token-cost analysis
  • Evaluation strategy
  • Prioritized implementation roadmap

AI Agent Engineering Sprint

A fixed-scope engineering sprint for teams whose AI agent or RAG prototype needs to become more reliable and production-ready.

Timeline 7–10 working days
Starting at $1,200
You get
  • LangGraph orchestration
  • State and retry handling
  • Tool-calling hardening
  • MCP integration
  • RAG integration
  • Evaluation tests
  • Docker deployment
  • Documentation

Prototype → Production AI Sprint

Take an existing AI prototype toward production with architecture, orchestration, evaluation, observability, cost controls, security, and deployment.

Timeline 3–4 weeks
Starting at $2,500
You get
  • Architecture
  • Agent orchestration
  • RAG / GraphRAG
  • Evaluation
  • Observability
  • Semantic caching
  • Model routing
  • Security review
  • Deployment
  • Runbook

All nine service areas — agents, LangGraph, MCP, RAG, GraphRAG, evaluation, automation, audits, prototype to production

Built and operated, not just prototyped.

Three systems I designed, shipped and still run. The numbers are the ones I can stand behind.

OmidGPT — Multi-provider agentic AI platform

omidgpt.ir · Read the case study

A multi-model AI assistant needed frontier models from multiple providers, real-time streaming, tool calling, voice, moderation, and sustainable serving economics.

API endpoints
209
Database models
50
Lines of Python + TypeScript
~94K
Commits
391
  1. Next.js · React · TypeScript
  2. Django · DRF · Channels
  3. Redis · PostgreSQL
  4. Router · semantic cache
  5. Providers (multi-model)
  6. MCP connectors · FastAPI

Django, DRF, Channels, Redis, PostgreSQL, Next.js, React, TypeScript, FastAPI and MCP.

  • Multi-provider model integration
  • Database-driven model catalog
  • Per-token cost accounting
  • Resumable tool turns
  • Tool-call ledger
  • Per-tool consent
  • MCP connectors
  • OAuth / MCP relay
  • Semantic caching
  • Complexity-based model routing
  • Real-time streaming
  • Production billing and quota systems

Jozveh-AI — Eight-agent GraphRAG pipeline

jozveh-ai.com · Read the case study

Turn heterogeneous source material into cited, structured study documents while maintaining faithfulness and predictable cost.

Tests
673
Test files
77

673 tests across 77 files

  1. Source material
  2. LangGraph supervisor
  3. Eight agents
  4. Neo4j GraphRAG · reranking
  5. Cited generation
  6. RAGAS · LLM judge · grounding filters
  7. RTL document

A LangGraph supervisor over eight agents, Neo4j GraphRAG, and a layered evaluation stack.

  • LangGraph supervisor
  • Eight-agent architecture
  • Neo4j GraphRAG
  • Retrieval and reranking
  • Source-cited generation
  • RAGAS
  • Claim-level LLM judge
  • Post-generation grounding filters
  • Controlled model evaluation
  • Rate limiting
  • Token accounting
  • Automated RTL document generation

AiMatin — AI-operated business automation

aimatin.com (Persian) · Read the case study

A solo-operated education and commerce platform needed automation for marketing, reporting, CRM-related workflows, and operations.

Monthly organic unique visitors
~4,000
Organic traffic from Google
~90%
Visitor-to-lead conversion, popup funnels
~10%

~4,000 monthly organic unique visitors within months of launch

  1. Next.js · static site
  2. FastAPI
  3. PostgreSQL
  4. Node.js MCP server
  5. AI-operated admin
  6. SMS · Telegram · Bale

FastAPI and PostgreSQL behind a Next.js front end, operated through a custom Node.js MCP server.

  • Custom Node.js MCP server
  • AI-operated admin workflows
  • Marketing automation
  • Reporting tools
  • PostgreSQL backend
  • FastAPI
  • Next.js
  • Telegram / Bale integrations
  • Automated SMS workflows
  • SEO / GEO infrastructure

All case studies, with architecture, decisions, failure modes and evaluation

Technical capabilities

Agents & orchestration

  • Agentic AI
  • LangGraph
  • LangChain
  • MCP
  • Tool Calling

Retrieval

  • RAG
  • GraphRAG
  • Neo4j

Evaluation

  • RAGAS
  • LLM Evaluation
  • LLM-as-a-Judge

Operations

  • LLM Ops
  • Semantic Caching
  • Model Routing

Stack

  • Python
  • FastAPI
  • Django
  • TypeScript
  • Next.js
  • PostgreSQL
  • Redis
  • Docker
  • Linux

From the guides

Engineering notes written from the systems above: what was built, what failed, and what the evidence says.

All guides

How I work

  1. 1

    20-minute technical call

    You walk me through the system and what is failing. I ask the questions that decide feasibility.

  2. 2

    Written diagnosis

    What is actually wrong, what it would take to fix, and what I would leave alone.

  3. 3

    Fixed-scope proposal

    Scope, timeline and price agreed in writing before any work starts.

  4. 4

    Implementation + handover

    Code, documentation and a runbook your team can operate without me.

Tests are used as acceptance criteria wherever practical.

Questions a CTO asks first

Short answers to the questions that usually open the first call.

What exactly do you do?
I build and run production AI systems: LangGraph agents, RAG and GraphRAG pipelines, MCP infrastructure, and the evaluation and cost layer around them. I work as an independent contract engineer with founders, CTOs and AI product teams.
Our agent works in the demo but fails with real users. Can you make it production-ready?
Yes. That is the AI Agent Engineering Sprint: a fixed scope of 7–10 working days, starting at $1,200, covering LangGraph orchestration, state and retry handling, tool-calling hardening, MCP and RAG integration, evaluation tests, Docker deployment and documentation.
Our RAG answers are wrong or hallucinated. Where do we start?
Start with the AI / LLM Technical Audit: five working days, starting at $400. You get an architecture and retrieval review, a tool-calling and prompt review, hallucination, latency and token-cost analysis, an evaluation strategy and a prioritized implementation roadmap.
How do you keep LLM costs predictable?
With per-token cost accounting, semantic caching, complexity-based model routing and per-user quotas. I built and operate exactly this stack in OmidGPT, a multi-provider agentic AI platform.
How do you measure whether an AI system is actually good?
With evaluation as code: RAGAS, a claim-level LLM judge, post-generation grounding filters and controlled model comparisons, wired into tests that serve as acceptance criteria. Jozveh-AI, an eight-agent GraphRAG pipeline, runs 673 tests across 77 files.
Do you work with companies outside Iran?
Yes, remotely. I am based in Iran and work with clients whose compliance and banking arrangements permit contracting an Iran-resident engineer. I raise this on the first call so both sides can confirm feasibility before starting.
What happens after the 20-minute call?
You get a written diagnosis, then a fixed-scope proposal with scope, timeline and price. Implementation ends with a handover: code, documentation and a runbook your team can operate without me.

More questions: existing codebases, agencies, what I need to start

Book a 20-minute technical call

Tell me what you are building and what is failing. I reply by email to set up the call.

Matin Labkhandagh, Production AI & Agentic Systems Engineer. You talk to the engineer who does the work.

Goes straight to my inbox. No newsletter, no third parties.