✍️Engineering & AI Blog

Thoughts, Tutorials & Dev Notes

Practical insights on MERN Stack, Next.js, AI Agents, Python ML, and scalable web architecture — everything I'm building and learning as an engineer. Also available in বাংলা.

Showing 5 of 34 articles
A Practical Guide to Keeping Your Entire AI Agent System End-to-End Type-Safe with TypeScript

A Practical Guide to Keeping Your Entire AI Agent System End-to-End Type-Safe with TypeScript

Eliminate 'as any' casts and runtime crashes in your Next.js AI agent by building an end-to-end type-safe architecture with Zod schemas, Mapped Types, discriminated unions, and React type guards.

Oct 26, 202613 min read
How Autonomous Should an AI Agent Be? Autonomy Levels From 0 to Full

How Autonomous Should an AI Agent Be? Autonomy Levels From 0 to Full

Autonomy isn't a trait of the model, it's a policy your code enforces. This post lays out a 0 to 4 scale, sorts tools by what a mistake costs, and shows the approval gate in a short TypeScript file.

Oct 13, 202610 min read
Python or TypeScript for AI Agents? The Languages, Libraries and Tools You Actually Need

Python or TypeScript for AI Agents? The Languages, Libraries and Tools You Actually Need

Python people say Python, JavaScript people say TypeScript. This post opens up what actually matters — the one required SDK, which tools are optional, and the same minimal agent written side by side in both languages.

Oct 2, 202610 min read
What Is RAG? How AI Agents Retrieve and Use Real Knowledge
Learning Journal

What Is RAG? How AI Agents Retrieve and Use Real Knowledge

An agent can have every tool it needs and still answer wrong because it doesn't know something. This post opens up RAG — how retrieval and a working TypeScript example let a model answer from real documents instead of guessing.

Sep 30, 20269 min read
What's Inside an AI Agent? Brain, Memory, Tools and the Action Loop
Learning Journal

What's Inside an AI Agent? Brain, Memory, Tools and the Action Loop

An AI agent is a brain, memory, tools and a loop. This post pulls the four apart with a small TypeScript expense tracker, so you can tell which one is misbehaving.

Sep 28, 202610 min read

Looking for daily learning notes? Check my Development Journal.

📓 View Dev Journal →

Stay Updated

Subscribe to get insights on full-stack architecture, AI agent engineering, and web development.