Portfolio/ AI engineering, 20266.9271° N, 79.8612° E
AIENGINEER
I build AI-powered software and the production systems underneath it: LLM applications, agents and agentic workflows that stay fast, measurable and recoverable under real load.
I build AI systems that stay measurable in production.
I build AI systems that stay measurable in production.
production.0.81
demos.0.10
theory.0.06
slides.0.03
SAMPLING 01 — Next-token probabilities, one word at a time.
01/Profile
Who isbehind it
PL-01
Colombo, Sri Lanka Software engineer at Metarune Labs. Frontend team lead. B.Sc. Software Engineering at SLIIT.
Three years of building real-time, multi-tenant systems on AWS taught me what actually breaks in production: latency, retries, cost and failure modes. I now point that instinct at AI, building LLM applications and agents that are bounded, measured and recoverable, not just impressive in a demo.
02/Capabilities05 disciplines
What Ibuild
01
LLM applications
Features where the model is one component, not the architecture — provider abstraction, timeouts, validation and graceful fallbacks.
02
Agents & agentic workflows
Tool-calling agents and multi-step graphs with explicit state, bounded loops and a human in the loop where the risk demands it.
03
RAG & structured outputs
Retrieval pipelines and schema-validated generation, so downstream code receives data it can trust.
04
Evaluation & LLMOps
Versioned prompts, tracing, per-tenant cost tracking and regression checks — measuring before optimising.
05
Cloud & distributed systems
Event-driven, serverless and real-time infrastructure on AWS that the AI layer can lean on at scale.
03/Selected work06 systems
Casestudies
Production systems and shipped products, written up the way I would explain them to another engineer: the problem, the architecture, and the decisions I made and rejected.
Product wanted AI summarisation. Engineering's question was how to ship it without making a slow, non-deterministic, swappable third-party API a load-bearing dependency of every request.
After the first LLM feature shipped, API spend spiked. Some tenants were heavy users, most barely touched it, and identical requests kept hitting the provider. There was no visibility into who was spending what.
AI-generated drafts were not accurate enough to ship directly, and one bad output in front of a client would damage trust. Reviewing everything by hand, though, would create a permanent backlog.
Single-model image generators put the burden of prompt-craft on the user. The goal was a product where a rough idea becomes a finished wallpaper without the user needing to know the prompt dialect.
A real-time chat platform serving 100K+ users had to stay reliable under bursty load, while one small team onboarded multiple client products onto the same codebase.
01Clientweb · React Native
02API layertenant context injected
03SQSbuffering under load
04Lambdaevent-driven workers
05PostgreSQL + Redistenant_id scoped
Open
06/06—Open source · infrastructure@aplanka/reliable-queue · MIT
Agentic and LLM workloads are made of flaky, rate-limited async calls. Teams keep hand-rolling retry and concurrency logic around them, and getting it subtly wrong.
01Enqueuepriority · metadata
02Schedulerconcurrency limit
03Workerretry · backoff
04Persistencesurvives reloads
05EventsReact hooks
Open
04/Expertise
Technicaldepth
01 / AI
What I design
LLM applications
RAG
AI agents
Agentic workflows
Structured outputs
Tool calling
Evaluation
LLMOps
02 / Engineering
What I build it with
Python
TypeScript
Node.js
Next.js
NestJS
FastAPI
PostgreSQL
Redis
Kafka
Docker
03 / Frameworks & platforms
What it runs on
LangChain
LangGraph
LangSmith
OpenAI
Anthropic
AWS
Azure AI
05/Experience
Path toAI
Now — Current focus
AI Engineering
Moving the systems instincts I built in production — latency, retries, cost, failure modes — into LLM applications, agents and evaluation. Building and writing up the patterns that make AI features dependable.
LLM apps
/Agents
/RAG
/Evaluation
/LLMOps
Apr 2023 — Present
Software Engineer
Metarune Labs
Full-stack and distributed-systems engineer on a real-time platform serving 100K+ users with $10M+ revenue impact.
→Architected full-stack features for a real-time chat platform and event-driven serverless workflows (AWS Lambda, SQS) built for reliability under load.
→Led a frontend team of 7+ engineers: PR standards, code quality and mentoring.
→Designed shared-schema multi-tenancy on PostgreSQL serving several client products from one platform.
→Shipped LLM-backed features with provider abstraction, caching and cost controls.
→Cross-platform mobile with React Native; gameplay and backend work in Unity (C#) and Node.js; testing with Jest, Vitest and Playwright.
AWS
/TypeScript
/Node.js
/PostgreSQL
/Redis
/React Native
Feb — Apr 2023
Trainee Software Engineer
Metarune Labs
Full-stack work across web, backend and mobile while learning the team's engineering standards.
Education / 2023 — 2027
B.Sc. Software Engineering
SLIIT
Distributed Systems, Software Architecture, Application Frameworks, Data Structures & Algorithms.