
Cutting Coding-Agent Token Costs by >50%: Dynamic Prompt Caching & RAG Intent Gating
How dynamic-tail prompt caching, tool-pair-safe compaction, and Redis RAG gating cut multi-turn build token burn in Qtec Cloud.
< Shariar Nafiz • ShariarUnix />
Architecting autonomous AI agents, RAG pipelines, scalable backends, and production web & mobile applications.
I'm Shariar Nafiz, an AI-First Engineer with 2 yrs 9 mos of hands-on experience shipping agentic AI workflows, RAG pipelines, scalable backends, and production web & mobile applications.
From cutting LLM token costs by over 50% through multi-agent routing and structured context pipelines on Qtec Cloud, to rendering 60fps financial canvases via Dart isolates in Bitcoin Canvas and bridging mobile clients with BLE & NFC hardware, I own every layer from prototype to resilient production.
2.8+
Years Experience (2 yrs 9 mos)
~40%
CPU/GPU Load Reduction
3+
Live Web & Store Products
100%
End-to-End Ownership
Shipping AI-first cloud platforms, scalable Flutter & Kotlin apps, Spring Boot microservices, and real-time hardware integrations.
June 2025 – Present
Dhaka, Bangladesh
Engineer production AI workflows on Qtec Cloud—multi-turn Gemini/Claude coding agents, dynamic Prompt Caching (>50% build cost cut), and RAG intent gating.
Architect and scale modular, production-grade Flutter applications using Riverpod and Clean Architecture across Android, iOS, and Web.
Optimize live feeds through WebSockets, CustomPainter canvas rendering, RepaintBoundary, and Dart Isolates—cutting CPU/GPU load by ~40%.
Engineer Spring Boot REST APIs, PostgreSQL schemas, zero-downtime legacy refactoring, and batch-processing optimizations eliminating N+1 bottlenecks.
Implement native Android hardware bridges—including background NFC scanning and location services—inside Flutter via Kotlin/Java Method Channels.
Drive full-stack feature delivery across mobile and backend systems, leveraging agentic coding workflows and managing DigitalOcean cloud deployments.
Full-lifecycle capabilities spanning AI-first workflows, cross-platform mobile, native Android, Spring Boot backends, and real-time protocols.
Strongly-typed languages for mobile, native Android, web frontends, and backend services.
Production mobile engineering with custom rendering and native hardware bridges.
Resilient RESTful services, modern React/Next.js frontends, and enterprise data access.
Relational, in-memory, and local embedded storage across cloud and mobile.
Agentic AI pipelines, prompt caching, real-time hardware/network protocols, CI/CD, and cloud ops.
Featured live products at the top, alongside enterprise systems, hardware companions, and open-source tooling.
Focused engineering across AI agents, RAG pipelines, scalable backends, mobile apps, and hardware.
Select a scenario to inspect the architectural trade-off and outcome.
>50%
Build Cost Cut
Multi-turn coding agents repeated 15 KB system prompts, redundant RAG lookups, and unpruned histories—driving up token burn and breaking paired tool_use blocks.
Engineered dynamic-tail Prompt Caching (>75% hit rate), RAG intent gating, 24h Redis embedding caching, and boundary-safe history compression with Flash/Haiku summarization (4 KB prompt; 46 tests / 207 assertions).
Grounded in computer science fundamentals, algorithms, and hands-on engineering.
Southeast University
Pursuing advanced coursework in Java, Discrete Mathematics, Data Structures & Algorithms, and Software Engineering.
Cumilla Polytechnic Institute
Completed foundational studies in computer science focusing on Android development, Java, data structures, networking, and database systems.
Ostad
IT Bangladesh
Technical deep dives documenting real-world engineering lessons from production systems.
Open to full-time engineering roles, AI-first architecture consulting, and product builds.