Cairo, Egypt · open to remote and relocation

Mohamed Ghoniem

Mobile and AI engineer. 7+ years shipping Flutter and native Android, ten apps in the stores, 1.1M downloads between them. These days the work is LLM systems: retrieval that cites what it used and refuses when the documents don't cover the question, an agent that needs a human to approve before it acts, and a model that runs on the phone with the network off.

01 AI systems

Retrieval · citations · evaluation

Document chat that cites its sources and refuses to guess

A FastAPI service over Postgres and pgvector. It answers only from the passages it retrieved, names the file and the chunk, and says the documents don't cover the question instead of inventing an answer. A Flutter client streams the reply over SSE. Retrieval is scoped per owner, so one person's documents never turn up in another person's answer.

Hard partMulti-part questions. A question asking about two things was being answered from a single passage. Splitting the retrieval and merging the citations took the score from failing to 53 of 53. The eval is a 53-question golden set with a regression gate that fails the build when the score drops.

Agents · approvals · audit

An agent that can propose but cannot act alone

It reads a request, drafts a GitHub issue, and stops. Nothing is written until someone taps approve. The proposal, the approval and the result are recorded in Postgres, so there is a row for every action taken. It runs on LangGraph with a local MCP server, and the executor re-checks each proposal against an allow-list before anything fires.

Hard partMaking the boundary real instead of promised. There is a prompt-injection suite aimed at the propose step: the model can be talked into drafting anything, and the write still doesn't happen. Running the same approval twice produces one issue, not two.

On-device inference · Flutter

Summarising on the phone, with the network off

Paste a note, get a one-line summary and a category. It runs through ML Kit GenAI and Gemini Nano on the device itself. There is a cloud fallback, and it stays off until you turn it on, because the case worth showing is the one with no network at all.

Hard partHardware. AICore only exists on recent Android phones, so every emulator fails the on-device path. That forced the cloud path to be a visible switch rather than a silent fallback that would have hidden the failure.

02 Case study

Live app · shipped end to end

Ordering for a restaurant, end to end

Built for a restaurant. The menu lives in a Google Sheet the owner edits himself, the app builds the cart from that sheet, and the finished order goes out as a WhatsApp message to the shop. Arabic first with an English toggle, built in Flutter and shipped as a web app.

You can order by typing too. One message becomes two items:

عايز ساندوتش كبدة وساندوتش كفتة

Because كبدة is sold as two rows, the app asks which one instead of picking for you. Anything left over waits in a queue, and the app comes back with والـباقي؟ until the queue is empty, so a long order typed in one message never gets half dropped.

Behind it: a Cloudflare Worker and D1. The caps are per visitor, per day and shop-wide, counted in the database rather than in memory. Prices never come from the model. Every line is rebuilt from the sheet, and anything the model invents is scrubbed before the reply leaves the worker.

  • 585Flutter tests
  • 80bilingual cases
  • 2.7saverage reply
  • Worker + D1Cloudflare

The demo runs a made-up sample menu on its own database, with payments and the shop's notifications switched off, so you can order without reaching anyone.

03 Mobile

7+ years, mostly Flutter, with native Android in Java and Kotlin where a plugin fell short. Senior mobile engineer on Al Rajhi Takaful's insurance app, which has passed 1M downloads on iOS and Android. Before that: Mozare3's farmer app, the Qoodz and MakanE apps, InGame for Openner, and a handful more across fintech, sport and e-commerce. Ten production apps, 1.1M downloads between them.

04 Elsewhere