# Gul’s Notebook: Muhammad Gulzaib
> Notes from building AI-native SaaS: founder lessons, engineering deep dives, AI systems research and the craft of technical writing, by Muhammad Gulzaib.
Written by Muhammad Gulzaib (Gul), Founder & CEO of SynergyFlow Labs and a senior full stack engineer in Islamabad, Pakistan. Posts are first-hand notes from building SaaS products (Laravel, React), AI systems (RAG, agents) and early-stage companies. Every post has a clean Markdown version (the links below) and the full corpus is at https://gulzaib.vercel.app/llms-full.txt.
Citing: please cite posts by author, title, date and URL (or DOI when a post has one), e.g. “Gulzaib, M. (2026).
. Gul’s Notebook. ”. Author ORCID iD: https://orcid.org/0009-0000-8709-6989. AI Research, Engineering and Writing posts are licensed CC BY 4.0 (reuse with credit); Founder posts are all rights reserved (quote with a link). Each post page offers APA, MLA, Chicago, IEEE, Harvard, BibTeX and RIS citations, and a PDF version.
## Founder
- [School software pricing: per student or per branch?](https://gulzaib.vercel.app/blog/school-software-pricing-per-student-or-per-branch.md): A Pakistan-focused guide to school software pricing, with published local rates, practical PKR examples and costs to check before quoting.
- [Projects I turned down and what each one taught me](https://gulzaib.vercel.app/blog/projects-i-turned-down-and-what-each-one-taught-me.md): A practical guide to when to turn down a software client, with fictional project scenarios, alternatives and a checklist for saying no respectfully.
- [Simple wins: designing for the least technical user in the room](https://gulzaib.vercel.app/blog/simple-wins-designing-for-the-least-technical-user-in-the-room.md): People pick software they enjoy over the longest feature list. A practical guide to designing SaaS for users who would rather not use software at all.
- [Distribution beats features: notes from cold-calling schools](https://gulzaib.vercel.app/blog/distribution-beats-features-notes-from-cold-calling-schools.md): What cold-calling school principals taught me about selling software to schools: the script, the numbers, and why a rejected call beats a landing page.
- [Code is not a business: what 20 paying customers taught me](https://gulzaib.vercel.app/blog/code-is-not-a-business-what-20-paying-customers-taught-me.md): I built a POS SaaS, sold it to about 20 shops, then saw it solved the wrong problem. How I validate a SaaS idea now, and the checklist I use before coding.
- [How I scope an MVP in one call: my question list](https://gulzaib.vercel.app/blog/how-i-scope-an-mvp-in-one-call-my-question-list.md): A practical first-call checklist for scoping an MVP, from the user's problem and core workflow to risks, estimates and a one-page proposal.
- [The InclinePOS Failure: What Ignoring Offline Requirements Taught Me](https://gulzaib.vercel.app/blog/the-inclinepos-failure-what-ignoring-offline-requirements-taught-me.md): How a cloud-first point-of-sale product missed an offline requirement, and what I would change about discovery, transactions and synchronisation.
- [Fee vouchers, not dashboards: what schools pay for](https://gulzaib.vercel.app/blog/fee-vouchers-not-dashboards-what-schools-pay-for.md): What Pakistani private schools asked for when I pitched school software: fee vouchers that follow their rules, a defaulter list they trust and Urdu SMS.
## Engineering
- [How to Build a Production-Ready AI Agent with Laravel, Python, and Redis](https://gulzaib.vercel.app/blog/how-to-build-a-production-ready-ai-agent-with-laravel-python-and-redis.md): Design a Laravel, Python and Redis AI agent with durable queues, safe tool execution, retries, audit logs and evaluation before release.
- [Setting up laravel-agent-guard: budgets, loops, kill switch](https://gulzaib.vercel.app/blog/setting-up-laravel-agent-guard-budgets-loops-kill-switch.md): Wire laravel-agent-guard into a laravel/ai agent: tenant budgets, loop detection, the kill switch and the gotchas I found running v1.2.0 step by step.
- [laravel-agent-guard: why your Laravel AI agents need brakes](https://gulzaib.vercel.app/blog/laravel-agent-guard-why-your-laravel-ai-agents-need-brakes.md): AI agents can loop for hours and run up a bill nobody sees. Why I built laravel-agent-guard, a free, open-source safety net for Laravel apps that use agents.
- [Multi-tenant Laravel SaaS: the architecture I actually use](https://gulzaib.vercel.app/blog/multi-tenant-laravel-saas-the-architecture-i-actually-use.md): Single database or one per tenant? A production-tested multi-tenant setup for Laravel SaaS: global scopes, tenant resolution, queues and the mistakes to avoid.
- [Shipping AI features in Laravel without blocking your app](https://gulzaib.vercel.app/blog/shipping-ai-features-in-laravel-without-blocking-your-app.md): LLM calls are slow, flaky and expensive. How I wrap them in Laravel with queues, streaming, retries, caching and cost tracking so users never wait on a spinner.
- [My code review checklist for junior Laravel developers](https://gulzaib.vercel.app/blog/my-code-review-checklist-for-junior-laravel-developers.md): A Laravel code review checklist covering authorisation, validation, queries, migrations, queues and constructive feedback, with before-and-after code.
- [An attendance flow teachers finish in under a minute](https://gulzaib.vercel.app/blog/an-attendance-flow-teachers-finish-in-under-a-minute.md): Design a fast school attendance register for teachers: a mobile flow, safe defaults, reliable saves and a practical way to measure completion time.
- [Designing the database for a school ERP](https://gulzaib.vercel.app/blog/designing-the-database-for-a-school-erp.md): A tested MySQL schema for a school ERP: dated enrolments for promotions, composite tenant keys and an append-only fee ledger in paisa. With Laravel migration.
## AI Research
- [Agents that do real work: a pragmatic multi-agent design](https://gulzaib.vercel.app/blog/agents-that-do-real-work-a-pragmatic-multi-agent-design.md): Start with a workflow and add an agent only where the path can’t be known. The design I use at SynergyFlow Labs: narrow tools, state, budgets and approvals.
- [Grounded exam generation with RAG: retrieval and evaluation](https://gulzaib.vercel.app/blog/grounded-exam-generation-with-rag-retrieval-and-evaluation.md): How ZeroExam AI keeps generated exam questions inside the syllabus: hybrid retrieval, rank fusion, grounding checks and an evaluation plan you can run.
- [RAG over textbooks with tables, formulas and Urdu text](https://gulzaib.vercel.app/blog/rag-over-textbooks-with-tables-formulas-and-urdu-text.md): A practical approach to chunking PDF textbooks for RAG, preserving table context, formulas and Urdu text, with a retrieval evaluation fixture.
- [The evals I run before shipping a prompt change](https://gulzaib.vercel.app/blog/the-evals-i-run-before-shipping-a-prompt-change.md): A practical prompt regression testing workflow: compare baseline and candidate, check hard failures, review quality and gate a release.
- [Grading written answers with AI: what worked, what didn’t](https://gulzaib.vercel.app/blog/grading-written-answers-with-ai-what-worked-what-didnt.md): What research says about AI grading of subjective answers, with a sample rubric, teacher review workflow and a plan for measuring agreement.
## Writing
- [How I write technical posts: a field guide with examples](https://gulzaib.vercel.app/blog/how-i-write-technical-posts-a-field-guide-with-examples.md): A practical process for clear technical articles, from finding the one idea to editing for skimmers, plus a live reference of every block this blog supports.
- [Write a README people actually read](https://gulzaib.vercel.app/blog/write-a-readme-people-actually-read.md): A README is the landing page of your code. Four questions to answer in order, plus a template for open-source projects, client handovers and internal tools.
## Series
### [Distribution Before Product-Market Fit](https://gulzaib.vercel.app/blog/series/distribution-before-product-market-fit): A practical field guide for technical founders who can build products but have not yet built a repeatable path to customers. (0 of 15 published)
### [Founder lessons](https://gulzaib.vercel.app/blog/series/founder-lessons): Lessons from building and selling software: validation, distribution and designing for the least technical user. (3 of 3 published)
- Part 1: [Code is not a business: what 20 paying customers taught me](https://gulzaib.vercel.app/blog/code-is-not-a-business-what-20-paying-customers-taught-me.md): I built a POS SaaS, sold it to about 20 shops, then saw it solved the wrong problem. How I validate a SaaS idea now, and the checklist I use before coding.
- Part 2: [Distribution beats features: notes from cold-calling schools](https://gulzaib.vercel.app/blog/distribution-beats-features-notes-from-cold-calling-schools.md): What cold-calling school principals taught me about selling software to schools: the script, the numbers, and why a rejected call beats a landing page.
- Part 3: [Simple wins: designing for the least technical user in the room](https://gulzaib.vercel.app/blog/simple-wins-designing-for-the-least-technical-user-in-the-room.md): People pick software they enjoy over the longest feature list. A practical guide to designing SaaS for users who would rather not use software at all.
## Optional
- [Portfolio](https://gulzaib.vercel.app/): Muhammad Gulzaib's experience, ventures and skills
- [RSS feed](https://gulzaib.vercel.app/rss.xml): every post with full content
- [JSON feed](https://gulzaib.vercel.app/feed.json)
- [Research & citation](https://gulzaib.vercel.app/blog/research): author identifiers (ORCID), open-access posts and how to cite them
- [Open-access feed](https://gulzaib.vercel.app/feeds/open-access.xml): CC BY posts with full text (Atom)