Ahmed Mahdy
Ahmed Mahdy

Ahmed Mahdy.

21 · Engineering & AI

Mechatronics engineering student at BUC (Class of 2028), building AI systems and hardware from scratch.

View CV

Designing the Collective Mind.

Building Intelligence Through Engineering.

Scroll
01
Method

Build from Scratch.

“I don't use frameworks to hide complexity. LLM in C++/CUDA. x86 OS in Assembly. Custom network protocol in Go. Every line written by hand — because understanding at the deepest level is the only way to build something new.”

02
Stack

Full-Stack Engineer.

“From bootloaders to vector databases. From raw CUDA kernels to Dockerized microservices. I work at every layer of the stack — hardware, OS, network, backend, AI. The gaps between layers are where innovation lives.”

03
Current Build

Arthur: My Own AI Fleet.

“A local-first AI system that runs on my own machine: a dual-model brain, trust-gated tools, voice and vision, and a fleet that orchestrates coding agents like Codex, OpenCode and DeepSeek. No cloud.”

Core Expertise

Engineering &
Intelligence.

Protocol 01

LLMs from Scratch

Built charGPT — a complete GPT-style Transformer (10.7M params) in C++/CUDA with zero ML frameworks. Raw CUDA kernels for matrix ops, attention, backprop, Adam optimizer. GPU-resident training with zero PCIe transfers.

1 / 4
Protocol 02

x86 OS Kernel Dev

Built hydra-os — a monolithic x86 OS from scratch in C and Assembly in 3 days. GRUB bootloader, GDT, IDT, keyboard driver, VGA framebuffer, PIC interrupts, serial debugging, and a built-in Snake game.

2 / 4
Protocol 03

Network Protocols

Built nexa — a custom network protocol with its own DNS system in Go. Custom .nexa domain resolution, content server, smart client with automatic DNS lookups. Your own mini-internet on TCP/IP.

3 / 4
Protocol 04

RAG & AI Systems

Built The Last Archive — a privacy-first RAG search engine. Go web crawler, Python embeddings, Ollama LLM bridge, Qdrant vector DB. Fully Dockerized microservices, offline-capable semantic retrieval.

4 / 4
The Philosophy

Build it yourself,
from the metal up.

Foundation — Pillar 1

From-Scratch Engineering

No frameworks. No abstractions. Every matrix operation in charGPT is hand-written CUDA. Every interrupt handler in hydra-os is raw Assembly. Understanding at the deepest level — from silicon to intelligence.

Architecture — Pillar 2

Systems Architecture

From x86 bootloaders to Dockerized microservices. From custom TCP protocols to RAG pipelines. Building at every layer of the stack — the only way to design systems that truly work together.

North Star — Pillar 3

AI Agents That Do Real Work

Arthur, my local-first AI assistant: it routes between local models, gates every tool call through a trust layer, and orchestrates a fleet of coding agents (Codex, OpenCode, DeepSeek) from one machine. AI that works for me, offline.

Ahmed Mahdy · Engineering & AI

Experience

Roles &
Achievements.

Arthur★ Active Build

Local-first AI assistant: dual-model brain, trust-gated tools, voice and vision, and a fleet that orchestrates Codex, OpenCode and DeepSeek coding agents — no cloud.

View Details
AFRICA RESQ★ 1st Place

AI for All Regional Hackathon winner (African Union Commission, 2026). Fire, smoke and survivor detection, risk scoring and safe routes on a Raspberry Pi rover. Hardware lead.

View Details
charGPT★ LLM from Scratch

Built a complete GPT-style Transformer (10.7M params) entirely in C++ and CUDA — zero ML frameworks, raw CUDA kernels, GPU-resident memory training.

View Details
hydra-os★ x86 OS Kernel

Built a monolithic x86 OS from scratch in 3 days — Assembly bootloader, C kernel, GDT, IDT, keyboard driver, VGA framebuffer, Snake game.

View Details
nexa★ Custom Protocol

Built a custom network protocol with its own DNS system in Go — your own mini-internet on top of TCP/IP with .nexa domain resolution.

View Details
Last Archive★ RAG Engine

Privacy-first local RAG search engine with Go crawler, Python embeddings, Ollama bridge, Qdrant vector DB, and Next.js frontend.

View Details
Laptop→Server★ DevOps Guide

Complete guide: turning an old laptop into a Linux server with Docker, UFW, Cloudflare Tunnels, Tailscale VPN, and Minecraft hosting.

View Details
IEEEPresent

Tech Vice Chair, IEEE BUC — Technical leadership, team management, and organizational strategy for the student branch.

View Details
Badr University in Cairo2023 — Present

Mechatronics Engineering — 4th year, expected graduation 2028.

View Details
Bavarian International SchoolGraduated

International Education — Foundation in BASIC programming, cost accounting, and interdisciplinary social sciences.

View Details

12

Open-Source Projects

45+

Skills & Tools

22 ★

GitHub Stars

Explore Projects & Experience