Essays
Writing
Topics
12 of 43 essays
2026
· 0 min read
Prompt Versioning in Production: Managing LLM Prompts Like Code
How EasyCommerce manages LLM prompts across Claude, OpenAI, and DeepSeek with a versioned registry, structured evals in CI, and a rollback path that does not require a deployment.
· 0 min read
Building a Claude Code MCP Server in Python: Lessons from codebase-research-agent
How codebase-research-agent exposes a tool-using AI agent as a Claude Code MCP server — JSON-RPC over Streamable HTTP, tool registration, streaming SSE, and the four things that broke in production before it worked reliably.
· 0 min read
Scaling a Laravel MCP Tool Registry to 46 Tools
The May 12 post covered the MCP server architecture. This one goes inside the tool registry: class-per-tool structure, Sanctum ability scoping, JSON Schema validation before dispatch, tag-based auto-discovery, and the three things that broke when the registry hit 46 tools.
· 0 min read
A Claude Tool-Calling Loop in Laravel: From First Request to Final Answer
The exact pattern for registering tools, dispatching multi-turn Claude conversations, and processing tool results in a Laravel service — including the three production failure modes the happy path does not cover.
· 0 min read
Embedding LLMs in a WordPress Plugin: EasyCommerce's Async Architecture
How EasyCommerce wires LLM calls — product description generation, fraud detection, and inventory forecasting — into a WordPress plugin using async dispatch and a provider abstraction that survives outages and scales across catalogues.
· 0 min read
MCP Servers for Laravel: A Production Pattern
How I built the MCP server that powers AI access to this portfolio — JSON-RPC over Streamable HTTP, Sanctum bearer auth, an ability-scoped tool registry, and the gotchas worth knowing before you ship.
· 10 min read
A Multi-Provider AI Driver Pattern for Laravel
A clean driver pattern for switching between Claude, OpenAI, Groq, and Ollama in a Laravel app — with failover, testing, and a single calling interface.
2025
· 11 min read
Building Custom Commission Logic in Dokan Multi-Vendor
How Dokan's commission system actually works, the filters you need, per-category and tiered commission patterns, and what to never do.
· 8 min read
Tailwind v4 Migration: From v3 Config to CSS-First Tokens
A practical guide to migrating a real Laravel app from Tailwind v3 to v4 — what breaks, the new @theme syntax, plugin migration, and the 5× build speedup.
· 9 min read
React 19 in Production: useTransition, useOptimistic, and the End of forwardRef
How I use the new React 19 hooks in this portfolio's admin — useTransition for non-blocking input, useOptimistic for instant UI, and refs as props.
· 9 min read
A Code Review Playbook That Catches Real Bugs
The three-pass review structure I've refined over a decade — when to push back, how to write comments, and what makes reviews valuable instead of performative.
2023
· 10 min read
TypeScript for PHP Developers
A practical transition guide for PHP developers picking up TypeScript — mapping familiar PHP concepts to their TypeScript equivalents, from null safety to generics.
About Architecture
Everything Al Amin Ahamed has written about Architecture — written after shipping rather than before, so what is in here is what the constraint turned out to be and what I got wrong first.