# Fady Mondy > Fady Mondy is an AI Engineering Leader and Product Builder, building AI-agentic systems, developer infrastructure and production software, from architecture and engineering leadership to shipping the product. This site is Fady Mondy's portfolio and consulting practice. It contains case studies of products (CaBrain, memory infrastructure for AI agents; Orchestra MCP, plugin-based infrastructure for agentic developer environments; ToGO, a Go and React framework for AI-native applications; the TomatoPHP and Laravilt open-source ecosystems) and of professional engagements (iStoria, Naqrat, Rize and others); experience and résumé; AI and engineering consulting; open-source work; Engineering Notes on AI agents, MCP, Laravel and Go; and a contact page that routes hiring, consulting and speaking enquiries. This is the full-text companion of https://fadymondy.com/llms.txt. Each section is one page of fadymondy.com, ending with its URL. --- # MCP Server Development: A Custom, Official MCP Server for Your SaaS > An official, production-grade MCP server for your product's API — built in about two weeks for a fixed price, documented, listed, and fully owned by you. Your users already work inside AI assistants. The Model Context Protocol (MCP) is how those assistants (Claude, ChatGPT, Cursor and others) reach real products. If your product has an API but no official MCP server, users either can't use it from their assistant, or they run unvetted community servers with their API keys. I build **custom, official MCP servers for SaaS products**: production-grade, secured, documented, and owned by you. ## What a custom MCP server for your SaaS includes - **An official MCP server** on top of your existing REST or GraphQL API. It exposes the tools your users actually ask for (create, search, update, report), designed around real prompts rather than a one-to-one copy of every endpoint. - **Safe access.** OAuth 2.1 or scoped API keys, read-only and write scopes kept separate, and destructive actions clearly marked with MCP tool annotations. - **Remote or self-hosted.** A hosted endpoint for your cloud customers, and a package for self-hosted installs where that applies. - **Docs and distribution.** Setup guides for Claude, ChatGPT and Cursor, a plain-language permissions page, and listings in the main MCP directories. ## How it works: 4 steps 1. **Free one-page tool spec.** I read your API docs and propose the tool set: what each tool does, whether it reads or writes, and which scope it needs. You judge it before committing. 2. **Fixed scope and price.** Agreed in writing up front, based on the spec. 3. **Build in about two weeks.** Tool design, auth, then testing against real assistants (Claude, ChatGPT, Cursor) until they pick the right tool for real prompts. 4. **Handover.** Repository, deployment notes and a walkthrough. The code is yours, with optional maintenance as your API evolves. Want the detail? Read [how to ship an official MCP server for your SaaS in 2 weeks](/en/blog/ship-official-mcp-server-for-saas-in-2-weeks). ## MCP servers I have built and run These are my own products, running in production: - **[Orchestra MCP](/en/projects/orchestra-mcp)**: an AI-agentic IDE framework with a plugin-host architecture ([orchestra-mcp.dev](https://orchestra-mcp.dev)). - **[Zekra](/en/projects/cabrain)**: shared memory for AI agents, served over a remote MCP endpoint with OAuth 2.1 (PKCE, dynamic client registration, per-brain consent) and read-only tool annotations. See the [Zekra MCP docs](https://zekra.dev/en/docs/mcp). - **[Moharrik](https://moharrik.com)**: a CRM with shared inbox and WhatsApp that is fully operable over MCP. Keys are read-only by default with an expiry, and the permissions page is generated from the tool registry. - **[Nasaq UI](https://mcp.nasaqui.com)**: an open-source design system with its own MCP server. I also created [TomatoPHP](/en/projects/tomatophp), 90+ open-source Laravel and Filament packages. For Laravel products, the MCP server can ship alongside [white-label Laravel and Filament work](/en/services/white-label-laravel-filament). If you need broader technical leadership, see [fractional CTO](/en/services/fractional-cto). **[Ask for your free tool spec](/en/contact)** ## FAQ ### What is MCP server development? Building a server that implements the Model Context Protocol for your product, so AI assistants can discover and call your product's actions as tools, with proper authentication and permissions. ### We already have a public API. Isn't that enough? An API is built for developers. An MCP server is built for AI assistants: fewer, better-described tools that map to what users ask for, with safe defaults. ### How long does it take? About two weeks when your API exists and is documented, for a first version covering the actions users ask for most. Anything that adds time (no API yet, complex multi-tenant permissions, long-running jobs) is listed in the spec before we start. ### Remote or local MCP server? Remote (a hosted HTTP endpoint with OAuth) suits most SaaS products. A local package suits self-hosted installs. Some products need both, which is decided in the spec. ### Who owns the code? You do. It ships under your name and licence. ### Can you work with our stack? The MCP server sits beside your product and talks to your API, so your backend language doesn't matter. I usually build in TypeScript or Go, or PHP for Laravel products. --- Source: https://fadymondy.com/en/services/mcp-server-development --- # Fractional CTO and CTO as a Service for Startups, SMEs and Agencies > Fractional CTO and CTO as a service for funded startups, SMEs in Egypt, Saudi Arabia and the Gulf, and agencies: tech due-diligence pack, architecture, hiring, AI roadmap and vendor oversight, on a monthly engagement that starts with a 90-day trial. A fractional CTO gives your company senior technical leadership for part of the week: the roadmap, the architecture, the team, and the decisions that are expensive to get wrong. You get it without hiring a full-time executive before you need one. Some people call it **CTO as a service**. Either way, the job is the same: someone senior owns technology decisions and follows them through. ## Who this is for - **Funded startups** that need a technical owner. Typical moments: before or after a round, when investors ask technical questions, or when an MVP has to become a product people rely on. - **SMEs in Egypt, Saudi Arabia and the Gulf** that run on software they don't fully control: an agency-built app, a legacy system, or a plan to "add AI" with no one technical to judge it. - **Agencies and software houses** that win bigger projects than their senior bench can lead and need a CTO-level lead for a client account, under their brand. ## What's included ### Tech due-diligence pack Before a funding round or a big customer review, I put together a clear picture of your technology. It covers the architecture overview, security and data handling, technical debt and its business impact, the team and delivery process, hosting and running costs, and the risks with a plan for each. It's written so founders can answer investor questions with confidence. ### Architecture and roadmap Which architecture to commit to, what to build first, what to buy instead of build, and when a rebuild is justified (and when it isn't). For a one-off review, see [software architecture consulting](/en/services/engineering-architecture) or an [AI and codebase audit](/en/services/codebase-audits). ### Hiring Defining the roles, running technical interviews and shaping how the team works. When you're ready for a full-time CTO, I help write the role, interview candidates and hand over. ### AI roadmap Where AI agents, automation and assistants actually pay off in your business, and where they don't. That includes whether your product should expose an [MCP server](/en/services/mcp-server-development) so customers can use it from Claude, ChatGPT or Cursor. ### Vendor oversight If an agency or outsourced team builds your product, I review estimates, architecture and code on your side of the table, so you know what you are paying for. For agencies that need senior delivery capacity themselves, see [white-label Laravel and Filament development](/en/services/white-label-laravel-filament). ## How engagements work 1. **Fit call.** A short call about where the company is and what isn't working. If a fractional CTO isn't the right answer, I'll say so. 2. **90-day trial.** We agree in writing on the goals for the first 90 days, for example a due-diligence pack, a hiring plan or a stabilised release process. Either side can stop at the end. 3. **Monthly engagement.** A fixed number of days per month with a regular rhythm: leadership sync, architecture and roadmap reviews, hiring loops and written decisions. 4. **Exit by design.** Success means your internal lead or a full-time CTO can own the function. The handover is planned from the start. ## Why me I have held the role itself: CTO at Lun Startup Studio, Head of Engineering at Rize.gg and CPTO at One Studio. I also founded and run 3x1. I still build. I created [TomatoPHP](/en/projects/tomatophp), 90+ open-source Laravel and Filament packages. I also build AI-agent infrastructure in production: [Orchestra MCP](/en/projects/orchestra-mcp), [Zekra](/en/projects/cabrain) (shared memory for AI agents) and [Moharrik](https://moharrik.com), a CRM fully operable over MCP. I work in Arabic and English. Not sure whether you need a fractional CTO, a consultant or a full-time hire? Read [Full-time CTO vs fractional CTO vs technical consultant](/en/blog/full-time-cto-vs-fractional-cto-vs-technical-consultant). **[Book a fit call](/en/contact)** ## FAQ ### What is a fractional CTO? A senior technology leader who works with your company part-time, on a regular rhythm, and owns technical decisions: architecture, roadmap, hiring and technical risk. Unlike an advisor, a fractional CTO is accountable for follow-through. ### What's the difference between a fractional CTO and a CTO consultant? A consultant is usually hired for a defined problem or deliverable, like an audit or a migration plan, and ownership goes back to your team afterwards. A fractional CTO stays on and owns the outcome across several areas over months. For a longer comparison, see [CTO consultant vs fractional CTO](/en/blog/full-time-cto-vs-fractional-cto-vs-technical-consultant). ### Is "CTO as a service" the same thing? In practice, yes. It's the same model: senior technical leadership on a monthly basis instead of a full-time executive hire. What matters is the written scope: what I own, what I advise on and what your team runs day to day. ### How much time does a fractional CTO spend with us? A fixed number of days per month, agreed up front, with regular fixed sessions. The 90-day trial sets the rhythm and the goals. ### Do you work with companies in Saudi Arabia, the Gulf and Egypt? Yes. I'm based in Cairo, I work remotely with teams across the region and beyond, and I work in both Arabic and English. ### Can you oversee the agency or outsourced team that builds our product? Yes. That's one of the most common reasons to bring in a fractional CTO: reviewing estimates, architecture and code on your behalf, and making sure what's delivered matches what was agreed. ### What happens when we need a full-time CTO? Preparing for that is part of the role. I define the position, help recruit and interview, and hand over context and documentation to the new leader. --- Source: https://fadymondy.com/en/services/fractional-cto --- # AI & Codebase Audits > Architecture reviews, performance reviews, technical debt and AI adoption — findings ordered by what they cost you. A read of the codebase and the architecture, with findings ordered by what they cost you — not a list of style preferences. ## What an audit covers - **Architecture:** where the design will stop scaling, and what to change first. - **Performance:** the hot paths, the database queries behind them, and the infrastructure bill. This is the work that fixed iStoria's performance within three months and took Naqrat's API from ~6 s to ~35 ms. - **Technical debt:** which debt is costing you now and which can wait. - **AI adoption:** how the team uses AI tooling today, and a practical path to coding agents and agentic workflows that genuinely help. You get a written report with prioritised findings, and a walkthrough with the team. --- Source: https://fadymondy.com/en/services/codebase-audits --- # Product Engineering > Product engineering for existing teams: developer tools, platform features and rebuilds of products that have outgrown their first version. Building and improving the product itself: web, mobile and developer tools that ship and keep running — usually alongside a team that already exists. ## Products and platforms I have built - **Frameworks and developer tools:** [ToGO](/en/projects/togo), a Go + React framework; [TomatoPHP](/en/projects/tomatophp), an ecosystem of open-source Laravel/Filament packages; [Laravilt](/en/projects/laravilt), an admin panel framework for Laravel. - **Platforms for clients:** an IoT ticketing system for a bus fleet with NFC cards, driver and rider apps and a live dashboard ([Motamayez](/en/projects/motamayez)); a workspace booking platform where members pick the room off the floor plan ([Shace](/en/projects/shace)). ## Typical engagements Rebuilding a product that has outgrown its first version, adding a major feature area to an existing platform, fixing performance under growth, or building internal developer tools. Starting from an idea? See [MVP development](/en/services/mvp-development). Building a subscription product from scratch? See [SaaS development](/en/services/saas-development). --- Source: https://fadymondy.com/en/services/product-engineering --- # White-Label Laravel & Filament Development for Agencies > Senior Laravel, Filament and AI capacity for agencies and studios — delivered under your brand, at a fixed price per project or on a monthly contract, from the creator of TomatoPHP. Agencies win more Laravel work than their team can take on — or win projects that need a specialist skill they don't have in-house, like AI features or a complex Filament build. I work as your senior engineer behind the scenes. ## What I take on - **Filament** — admin panels, back-offices, multi-tenant dashboards and custom plugins. - **Migrations** — moving legacy PHP or other stacks to modern Laravel without stopping the business. - **AI features** — agents, chat assistants (including Arabic), RAG over client data, and MCP servers. - **Rescue and audits** — taking over stuck projects and reviewing codebases before you quote. ## How we work - **Under your brand** — your client, your relationship; I join your tools and your process. - **Fixed price per project, or a monthly contract** — agreed in writing before work starts. - **Start small** — a short paid pilot so you can judge code quality before committing to more. - **Timezone** — based in Cairo (UTC+3): close to European hours, and handovers ready for the US morning. ## Experience I created [TomatoPHP](/en/projects/tomatophp), an ecosystem of 90+ open-source Laravel and [Filament plugins](/en/projects/filament-plugins), and [Laravilt](/en/projects/laravilt). I was CPTO and co-founder at One-Studio in Saudi Arabia, leading engineering across several products at once. ## FAQ ### Will our client know? Only if you want them to. White-label means the work ships under your name. ### How do you price? A fixed price per project after a scoping call, or a monthly contract for ongoing capacity. ### Can you join our repo and standards? Yes — your Git, your conventions, your review process. --- Source: https://fadymondy.com/en/services/white-label-laravel-filament --- # Engineering Leadership > Technical leadership, engineering teams, architecture and product engineering — leading the people who ship it. Leading engineering is deciding what the team stops doing as much as what it builds, and leaving decisions the team can keep maintaining. ## Roles this comes from - **CPTO, One Studio** — led engineering across multiple simultaneous ventures and client workstreams with a team of 5–6 engineers, and defined the Lead Product Engineer role. - **Senior Engineering Manager, ID8 Media** — split a platform into three independently ownable products and documented the handover so the team could own each one. - **Fullstack Team Leader, Queen Tech Solutions** — led delivery of government and private-sector platforms and introduced agile practices. - **Head of Engineering, [Rize.gg](/en/projects/rize)** — delivered the MVP on a tight deadline, migrated the codebase from Symfony to Laravel/Vue.js and set up GitFlow and Jira. - **CTO, Lun Startup Studio** — built the studio's Egypt engineering team and shipped FLK and Shogl to launch. The full record is on the [experience](/en/experience) page. --- Source: https://fadymondy.com/en/services/engineering-leadership --- # Engineering Architecture > Architecture, scalability, APIs, databases and technical strategy — the system underneath the product. The system underneath: services, APIs, the data model, and the path from today's load to ten times it. ## Work this is drawn from - **Event-driven under load.** At [Naqrat](/en/projects/naqrat) I rebuilt a marketing-conversion API as an event-driven system on Laravel Octane, taking response time from ~6 seconds to ~35 ms while handling millions of events. - **A platform failing under load.** At [iStoria](/en/projects/istoria) I took over an English-learning platform with 2.5M users and 165M+ tracking records and resolved its performance issues within three months, moving the backend toward microservices. - **Infrastructure that costs less.** At ID8 Media I migrated a platform from GKE to Cloud Run: deploys from 10–15 minutes to about 60–90 seconds, and 30–60% lower infrastructure cost. - **The foundation of a platform.** At Lun Startup Studio I built the base of [Shogol](/en/projects/shogol), with its full architecture and database. ## Typical engagements System and API design for a new product, a data model review before it becomes hard to change, a scaling plan for traffic that is about to arrive, or an infrastructure migration. --- Source: https://fadymondy.com/en/services/engineering-architecture --- # TomatoPHP > Full-stack framework for building Laravel applications with FilamentPHP admin panel TomatoPHP is a comprehensive ecosystem of packages for Laravel that helps developers build applications faster with pre-built components and admin panels. --- Source: https://fadymondy.com/en/portfolio/tomatophp --- # FilamentPHP Plugins > Collection of 50+ plugins for FilamentPHP admin panel A comprehensive collection of open-source plugins for FilamentPHP including translations, settings, media manager, and more. --- Source: https://fadymondy.com/en/portfolio/filament-plugins --- # Moharrik > The AI engine behind a business: a CRM with a shared inbox, WhatsApp, research and browser automation — fully operable from Claude and other AI assistants over MCP. Moharrik (Arabic for "engine") is my own product: one workspace where a business keeps its contacts, companies and deals, answers customers across WhatsApp, email and chat, and runs research and browser automations. ## What it does - **CRM** — contacts, companies, deals, pipeline stages, activities and tasks. - **Shared inbox** — WhatsApp, email, website chat and more in one place, with labels, assignment and AI summaries. - **WhatsApp** — linked to the business number, with opt-in and pacing rules built in. - **Research and discovery** — finds opportunities and prospects and attaches evidence. - **Browser automation** — a Chrome extension that runs saved, reusable presets on allowed sites only. ## Built for AI from day one Every capability is exposed through a full MCP server, so the whole CRM can be operated from Claude and other AI assistants — with confirmation steps for anything that sends a message or changes data. It is the reference implementation behind my [MCP server development](/en/services/mcp-server-development) and [WhatsApp AI](/en/services/whatsapp-ai) services. --- Source: https://fadymondy.com/en/portfolio/moharrik --- # iStoria > English-learning platform — taken over at 2.5M users and stabilised under load within three months Took over a platform with 2.5M users and 165M+ tracking records that was failing under load; resolved the performance issues within three months and cut AWS costs. --- Source: https://fadymondy.com/en/portfolio/istoria --- # Laravilt > Modern admin panel framework for Laravel with Vue.js and Inertia A full-featured admin panel solution that combines the power of Laravel, Vue.js, and Inertia.js for building modern web applications. --- Source: https://fadymondy.com/en/portfolio/laravilt --- # Naqrat > Marketing funnel conversion API rebuilt as an event-driven system — millions of events per hour, stable under load. The platform was buckling under load. I moved it to an event-driven architecture so the funnel’s conversion API could absorb millions of events per hour and stay stable. --- Source: https://fadymondy.com/en/portfolio/naqrat --- # Rize > From a 10% build to a shipping MVP in one month, then the whole UI/UX rebuilt in a second. I joined with the product about a tenth built, shipped a complete MVP in the first month, then rebuilt the platform’s UI and UX end to end in the second — before the AI wave reshaped the space. --- Source: https://fadymondy.com/en/portfolio/rize --- # Motamayez > IoT ticketing for city buses — NFC cards on board, a driver tablet app, wallet top-ups in the rider app and live fleet tracking. Built the whole solution: NFC cards read on board, a tablet app for the driver, a rider app for topping up a wallet and paying the fare, and a dashboard that tracks every bus in the fleet. --- Source: https://fadymondy.com/en/portfolio/motamayez --- # Shace > Workspace booking where you pick the actual room off a 2D floor plan — interactive, not a dropdown. Built the booking product around the floor plan: the visitor sees the workspace in 2D, picks the room they want from it, and books it — a smart booking flow that answers "which room am I getting?" before payment. --- Source: https://fadymondy.com/en/portfolio/shace --- # Shogol > Built the foundation at Lun Startup Studio — the architecture and the database design the platform still runs on. As CTO at Lun Startup Studio I built Shogol's base: the system architecture and the database design underneath it, years before the AI wave. --- Source: https://fadymondy.com/en/portfolio/shogol --- # C++: From a PhD program to Arduino and the printer I assembled > He sped up his program and made his own life harder. The story behind C++, and how it connects to Arduino and a printer I assembled. *2026-11-03T13:20:54Z* He sped up his program, but made his own life harder. How? Imagine making your program run faster, then feeling lost every time you return to fix it. That is the tradeoff in Stroustrup’s PhD story, by his own account. Years later, the language that grew from that question became a way to write Arduino sketches. Code can leave the screen and make something move! ## In 60 seconds By his own account, Stroustrup wrote a PhD simulator in Simula. It helped him organize the program, but it ran too slowly. Rewriting it in BCPL made it fast enough, while writing and debugging it became painful. In 1979 at Bell Labs, he began working toward structure and speed together. C with Classes came first; the name C++ followed in 1983. Today, we use C++ for Arduino sketches that can control physical movement. ## Whose account is this? The PhD story comes from Stroustrup himself: *A History of C++: 1979–1991*, especially section 2.1 on printed page 3, and his interview published in 1996. These are two tellings by the same person, rather than independent witnesses. That is why the attribution matters. Bell Labs confirms the 1979 start and the aim of combining Simula’s abstraction with C’s efficiency. Its biographical paragraph conflicts with his account about where he earned his PhD; that paragraph is not used here. ## Before Bell Labs: faster program, harder life By his own account, Simula helped him organize his PhD simulation, but execution was too slow for the job. The BCPL rewrite ran fast enough and rescued the project, while making the coding and debugging painful. Like widening a road, then removing every road sign! That is our analogy, not his quotation. The story concerns this particular program and implementation. It does not establish that every Simula program is slow, or that his doctorate failed. ## 1979: why choose? At Bell Labs, he wanted structure and execution speed together. He began adding Simula-style classes to C. A useful first explanation is that a class groups data with the operations that work on it. That is a logical grouping; it does not require every function definition to sit physically inside the same block. It also does not describe everything modern C++ has become. ## From C with Classes to C++ Work began as C with Classes in 1979. According to Stroustrup’s FAQ, the name C++ arrived in late 1983. This was an evolution over years. The name was not there on day one, and Arduino was not part of the original story. ## Then the code left the screen Arduino’s build documentation explains how preprocessing turns a sketch into a C++ program. The page describes AVR targets and says other architectures follow a similar process. That supports saying we write Arduino sketches in C++; it does not mean any desktop program runs unchanged on any board. The official Stepper library gives us a concrete example: code controlling a stepper motor with suitable hardware. The board provides control signals; this is not an instruction to power a printer motor directly from an I/O pin. Like the Arduino Mega wired into the printer I assembled. That is my personal connection to the story: I assembled the printer from a kit, and its wires go to an Arduino Mega. That does not identify its installed firmware. ## Where do 3D printers fit? Marlin is a documented example of printer firmware using C++, built around the Arduino framework. It runs on the printer’s mainboard and manages heaters, steppers and sensors. It is a general example, not a claim about what runs on my printer. The control software also differs from the instructions for each print. Marlin processes G-code produced by the slicer. Using C++ in firmware does not mean writing every print job in C++. ## Learn it if Learn it to program Arduino, drive motors, and program 3D printers. That makes the connection tangible: a line of code, a signal, and something moving in front of you. ## Frequently asked questions ### Was C++ invented for printers? No. The early motivation concerned structure and efficiency in systems and simulation work. Arduino and printers are later applications here. ### Do I need C++ just to print a model? No. Using a slicer and sending print instructions is different from developing the control software. ### Does my printer run Marlin? These sources do not establish that. An Arduino Mega alone cannot identify the installed firmware. ## Sources - [Stroustrup: A History of C++, sections 2.1–2.2 and printed page 6](https://www.stroustrup.com/hopl2.pdf) - [Stroustrup interview, winter 1996](https://stroustrup.com/gillies.htm) - [Bell Labs: The rise of C++](https://www.nokia.com/bell-labs/about/history/innovation-stories/rise-c-plus-plus/) - [Stroustrup: When was C++ invented?](https://www.stroustrup.com/bs_faq.html#invention) - [Arduino: Sketch build process](https://docs.arduino.cc/arduino-cli/sketch-build-process/) - [Official Stepper library](https://github.com/arduino-libraries/Stepper) - [Marlin introduction](https://marlinfw.org/docs/basics/) and [code structure](https://marlinfw.org/docs/development/code_structure.html) To see the other end of this story, [here is the printer I assembled from a kit](https://fadymondy.com/en/blog/built-3d-printer-from-kit). --- Source: https://fadymondy.com/en/blog/cpp-history-from-phd-to-arduino --- # Go: From C++ build waits to the API behind my website > A 45-minute build sets the scene for Go’s origins at Google. Meet its designers, understand goroutines, and connect the story to my website’s API. *2026-11-03T17:35:23Z* How did programmers at Google get tired of waiting and start Go? In 2007, building one large C++ program there took forty-five minutes. Enough time to make coffee, drink it, and wash the mug! That wait sets the scene for a problem Go addressed: developers’ own time. ## In 60 seconds Rob Pike, Robert Griesemer, and Ken Thompson began designing Go in 2007; the public announcement followed in November 2009. They wanted simpler development, shorter builds, and tools suited to server software. Goroutines help you organize tasks that make progress concurrently. The API behind my own website is written in Go. ## Where does the 45-minute story come from? Rob Pike described a 45-minute C++ build in his 2012 Go at Google article and presentation. This was the build time of a particular program, not its runtime or a measurement of every C++ project. In that same article, Pike calls the scene of Go being conceived during one such build an origin myth. The wait supplies context; it does not prove a precise founding scene or mean the language was completed in 45 minutes. The coffee and mug are our analogy. ## Three designers, a 2007 beginning The official FAQ dates the initial whiteboard work to 21 September 2007 and names Pike, Griesemer, and Thompson. Griesemer’s account of Go’s evolution includes software complexity, build times, and concurrency among the motivations. The aim reached beyond one inconvenient wait to a simpler way of developing substantial software. The open-source public announcement came on 10 November 2009, two years after design began. ## Goroutines: more than one request making progress A goroutine is a function executing concurrently with other goroutines in the same address space. You structure the tasks; the runtime schedules them. A server can serve requests concurrently. Concurrency does not require every task to execute simultaneously on its own CPU core, and Go does not automatically split arbitrary code into tasks. The net/http documentation provides a concrete server example. Goroutines concern how a program works, rather than explaining its build speed. ## The API behind my website The API behind my own website is written in Go. That is my personal connection: a request arrives, code handles it, and a response returns. This statement concerns the API, rather than describing the frontend. Go ranked eleventh in the October 2026 TIOBE index. That is a search-based popularity indicator, not a ranking of quality, execution speed, or job share. The month belongs with the number. ## Learn it if Learn it if you want to build APIs, servers, and cloud tools. Start with a small server that accepts a request and returns a response, then learn to manage shared tasks and errors. Goroutines make more sense when they solve a problem you understand. ## Frequently asked questions ### Was Go built in 45 minutes? No. The build wait is context for the problem. Design began in 2007 and the public announcement followed in November 2009. ### Do goroutines run every task at the same instant? No. They support concurrent progress. Parallel execution across CPU cores depends on the program and its runtime environment. ### Does TIOBE establish that Go is a better language? No. Eleventh place refers to the October 2026 popularity index, not language quality, program speed, or job opportunities. ## Sources - [Rob Pike — Go at Google, 2012](https://go.dev/talks/2012/splash.article) - [Rob Pike — original slides](https://go.dev/talks/2012/splash.slide) - [Go FAQ — history](https://go.dev/doc/faq#history) - [Robert Griesemer — The Evolution of Go, 2015](https://go.dev/talks/2015/gophercon-goevolution.slide) - [Go — public announcement, 2009](https://developers.googleblog.com/go-a-new-programming-language/) - [Effective Go — goroutines](https://go.dev/doc/effective_go#goroutines) - [Go — net/http](https://pkg.go.dev/net/http) - [TIOBE Index — October 2026 edition checked 3 November](https://www.tiobe.com/tiobe-index/) ## Read next - [Python](https://fadymondy.com/en/blog/why-slow-python-won-ai) - [JavaScript](https://fadymondy.com/en/blog/javascript-history-why-it-won) - [Java](https://fadymondy.com/en/blog/java-history-cable-box-deal-android) - [C++](https://fadymondy.com/en/blog/cpp-history-from-phd-to-arduino) --- Source: https://fadymondy.com/en/blog/go-history-from-build-waits-to-apis --- # Laravel: From CodeIgniter edits to tools we build with > Taylor wanted to build web apps, then built a framework. The story of Laravel, its PHP toolkit, and my connection through TomatoPHP. *2026-11-03T16:46:14Z* He wanted to build a website, so he built a framework first. Why? Taylor Otwell wanted to build web apps for his own projects. While using CodeIgniter, he found that the tools he wanted kept pulling him into changes to its core. Should he keep altering the foundations, or build the toolkit he needed? ## In 60 seconds Laravel began with Taylor’s own web-app development needs. Work started in 2010; the first release arrived in June 2011. Laravel is a framework built on PHP, with routing, database tools, and other facilities for recurring application work. I use it too, and created TomatoPHP: over ninety open-source packages. ## Whose account is this? Taylor described the initial problem on The Laravel Podcast in 2017 and discussed the development and release dates on Build Your SaaS in 2019. These are two accounts from the creator. His desire to build his own applications supplies the hook; it is a narrative summary, not a quotation or a claim that he had never built a website before. ## Change a bulb, demolish the ceiling In the 2017 interview, Taylor described wanting an ORM, dependency injection, and template inheritance. Integrating automatically resolved dependencies into CodeIgniter controllers required intrusive changes. Like changing a light bulb and ending up demolishing the ceiling! That is our analogy for the work, not a historical home renovation. He could fork the framework or start a new one. He chose a fresh start. ## Development in 2010, release in 2011 In the 2019 interview, Taylor dates the start to around September or October 2010 and the first release to June 2011. Development and public release are different milestones. Laravel did not appear fully formed in a single day. ## A toolkit built on PHP Laravel is a web application framework, not a new programming language. PHP is the language underneath it. Routing connects a request to the code that handles it; Eloquent lets developers work with database records through models. Instead of rebuilding the same foundations for every application, you have tools to build on. You still design the business rules, write the application logic, and test the result. ## My connection: TomatoPHP I use Laravel and created TomatoPHP: over ninety open-source packages. My aim is to turn repeated work into tools other developers can use too. The repositories include Laravel and Filament packages, with contributor credits. That is a package claim, not a count of every GitHub repository. The collection includes historical packages; check each package’s requirements and compatibility before adopting it. Filament is another layer in the ecosystem, not another name for Laravel. ## Learn it if Learn it if you know PHP and want to build stores, business systems, or subscription services. Start with a request reaching a route, code working with data, and a response returning to the user. Add tools as your project needs them. Cashier is an official example for subscription billing; it still needs your application logic. ## Frequently asked questions ### Is Laravel a programming language? No. Laravel is a PHP web application framework. Learn PHP fundamentals so you understand the code you write. ### Did Laravel start in 2010 or 2011? Development started in 2010. The first public release arrived in June 2011, according to Taylor Otwell’s account. ### Is TomatoPHP the same as Laravel? No. TomatoPHP is a collection of open-source packages in the Laravel and Filament ecosystem. Check each package’s requirements before using it. ## Sources - [Taylor Otwell — The Laravel Podcast, 2017](https://laravelpodcast.com/episodes/c7807d42/transcript) - [Taylor Otwell — Build Your SaaS, 2019](https://saas.transistor.fm/episodes/taylor-otwell-didnt-even-like-computers/transcript) - [Laravel — framework repository](https://github.com/laravel/laravel) - [Laravel — routing](https://laravel.com/framework/docs/13.x/routing) - [Laravel — Eloquent](https://laravel.com/framework/docs/13.x/eloquent) - [Laravel — Cashier](https://laravel.com/framework/docs/13.x/billing) - [TomatoPHP](https://github.com/tomatophp) - [TomatoPHP packages and credits](https://github.com/tomatophp/awesome) - [Fady Mondy](https://github.com/fadymondy) ## Read next - [Python](https://fadymondy.com/en/blog/why-slow-python-won-ai) - [JavaScript](https://fadymondy.com/en/blog/javascript-history-why-it-won) - [Java](https://fadymondy.com/en/blog/java-history-cable-box-deal-android) - [C++](https://fadymondy.com/en/blog/cpp-history-from-phd-to-arduino) --- Source: https://fadymondy.com/en/blog/laravel-history-from-codeigniter-to-tomatophp --- # Rust: A broken elevator and a gate for memory safety > What connects a broken elevator to Rust? Graydon Hoare’s account, ownership checks before execution, and Rust’s use in Android system code. *2026-11-03T17:35:27Z* What does a broken elevator have to do with a programming language? In 2006, Graydon Hoare was frustrated with his building’s broken elevator, as he later recalled. The story opens a larger question: how can we build software close to the hardware without leaving invalid memory use waiting to surface at runtime? ## In 60 seconds Rust began as Hoare’s personal project in 2006; Mozilla later supported it. Stable version 1.0 arrived in May 2015. Ownership is a central idea: compiler-checked rules prevent invalid uses of memory. Today, Rust is used in Android operating-system code itself. ## The elevator, in its creator’s account In his 2025 Rust Foundation article, Hoare revisited his frustration with the broken elevator in 2006. His rust-prehistory archive identifies 2006–2009 as the personal-project phase, followed by a private Mozilla project from late 2009. The elevator account is not a technical diagnosis. It does not establish a particular memory bug, identify the code as C++, or show that Rust was written to repair that elevator. We keep the story attributed to the person who told it. ## From personal project to stable language Mozilla’s support helped the project grow, with Servo becoming a place to exercise and develop the language. Servo is a browser engine; that does not mean all of Firefox is written in Rust. The official Rust 1.0 announcement on 15 May 2015 connects efficient systems software, resource control, and safety guarantees. The 2006 personal beginning and the 2015 first stable release are different milestones. ## The doorman says the apartment was handed back With C++, we saw speed. Can we retain resource control while protecting memory too? Rust checks ownership rules before execution. The official Book demonstrates moving a String from one variable to another. Trying to use the old variable after that move is rejected by the compiler. Like a doorman saying: that apartment’s been handed back. Who are you visiting? That is our analogy. The example does not first execute a use-after-free; compilation prevents the invalid use from reaching execution. Nor does it eliminate every kind of bug. Safe Rust also relies on unsafe code and external boundaries fulfilling their safety contracts. ## Rust inside Android itself AOSP documentation identifies Android 12 as introducing Rust for platform development, bringing memory and thread safety with performance similar to C and C++. This concerns parts of the operating system. It does not mean all of Android has been rewritten in Rust, or that every application should replace Kotlin or Java with it. Rust ranked tenth in the October 2026 TIOBE index, a search-based popularity indicator rather than a performance or security test. ## Learn it if Learn it to build systems, servers, and fast tools with memory safety. Start by understanding who owns a value, who borrows it, and how long that borrow remains valid. A compiler rejection becomes a chance to understand the rule before an error reaches a running program. ## Frequently asked questions ### Was the elevator failure caused by a memory bug? The origin account does not establish a technical diagnosis. We attribute the broken-elevator story to Hoare without inventing its cause. ### Does Rust prevent every bug? No. Ownership rules prevent classes of memory errors. Logic bugs remain possible, and unsafe code and external boundaries must uphold safety contracts. ### Is all of Android written in Rust? No. Rust is used in parts of Android platform code. That is different from saying the entire system or all its apps are written in Rust. ## Sources - [Graydon Hoare — 10 Years of Stable Rust, 2025](https://rustfoundation.org/media/10-years-of-stable-rust-an-infrastructure-story/) - [Graydon Hoare — Rust prehistory](https://github.com/graydon/rust-prehistory) - [Rust Core Team — Announcing Rust 1.0, 2015](https://blog.rust-lang.org/2015/05/15/Rust-1.0/) - [Mozilla — Servo collaboration, 2013](https://blog.mozilla.org/en/mozilla/mozilla-and-samsung-collaborate-on-next-generation-web-browser-engine/) - [The Rust Book — ownership](https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html) - [Rust — unsafe contracts](https://rust.docs.kernel.org/next/core/keyword.unsafe.html) - [AOSP — memory safety](https://source.android.com/docs/security/test/memory-safety) - [Android — Rust in the platform, 2021](https://security.googleblog.com/2021/04/rust-in-android-platform.html) - [TIOBE Index — October 2026 edition checked 3 November](https://www.tiobe.com/tiobe-index/) ## Read next - [Python](https://fadymondy.com/en/blog/why-slow-python-won-ai) - [JavaScript](https://fadymondy.com/en/blog/javascript-history-why-it-won) - [Java](https://fadymondy.com/en/blog/java-history-cable-box-deal-android) - [C++](https://fadymondy.com/en/blog/cpp-history-from-phd-to-arduino) --- Source: https://fadymondy.com/en/blog/rust-history-from-broken-elevator-to-memory-safety --- # It Lost a Cable Box Deal, Then Google Picked It for Android: The Story of Java > Java's first big bid was a cable box contract, and it lost. Years later Google chose it for Android. Here is what happened in between. *2026-11-02T15:44:39Z* Java lost a cable box deal, and then Google picked it for Android. How does a language go from losing a contract for a box under the TV to becoming the reason millions of programmers could write for a new phone platform? The deal was gone, but the idea was bigger than a cable box. ## In 60 seconds (the video) 1. **Java lost a cable box deal**, and then Google picked it for Android. How does that happen? 2. **It started at Sun**, when James Gosling wrote a language for home devices. The idea: write a program once, and it runs on different machines. 3. **According to one member of the Sun team**, Time Warner's staff chose their bid unanimously, but one rival was still to present, and it took the deal by doing the work almost for free. 4. **So you got the job**, until they found a guy who doesn't want a salary! 5. **Throw the language away?** Wait, the web is full of different machines! The same idea found its home, and later Google used it for Android, because millions of programmers already knew it. 6. **The deal was gone**, but the idea was bigger than a cable box. ## Whose story this is The main source here is [*The Long Strange Trip to Java*](https://www.blinkenlights.com/classiccmp/javaorigin.html) by Patrick Naughton, dated March 18, 1996. Naughton was on the team and was in the room with Time Warner. It is also one insider's account, written after he left Sun. So everything below about the vote and the near-free bid is the Sun team's account, and we mark it as such. We found no Time Warner source for it. ## 1991: a language for home devices The project starts in Naughton's telling "in mid January 1991", when he, James Gosling and three colleagues went to Aspen to work out what they were building. The plan included a hardware prototype, and "the target market was 'consumer electronics'". That detail matters, because the popular version gets it wrong. Java wasn't built for cable boxes. It was built for home devices in general, and the set-top bid came two years later. By the end of the summer of 1992, "James' language, Oak, was running pretty well". The hardware prototype, Star7, fit in a box "about 6\" x 4\" x 4\"". The idea behind the language is the one still attached to it. Sun's [1995 white paper](https://www.stroustrup.com/1995_Java_whitepaper.pdf) describes the need for applications that "can run on any hardware and software platform" (p. 12), and one of Sun's slogans was "write once, run anywhere". ## 1993: the Time Warner bid In March 1993, Naughton was in Denver "at the introduction of the Time Warner Interactive Television trial". As he puts it: "We put together a set-top-box proposal." This is where the language met the receiver: a bid for the box under the TV, running on Oak. ## The vote and the near-free bid (the Sun team's account) Here is the scene in Naughton's words. In his last meeting with "the rank and file at Time Warner", he was told "they had taken a vote the day before and they unanimously picked FirstPerson's solution". FirstPerson was the Sun team. They added that "they only had one more presentation to get through". Then: "It turns out that the next presentation was SGIs." According to Naughton, SGI "won the contract by basically doing the work for free". Two limits on this. The vote was by staff, not by Time Warner as a company. And SGI was the competitor, so "for free" is the loser's description, which is why the video says "almost". SGI's [own release from December 14, 1994](https://archive.irixnet.org/siliconsurf/news/Time_Warner.html) confirms its part in the project, "Scientific-Atlanta's prototype FSN home communications terminal, or set-top device". It says nothing about the price. So you got the job, until they found a guy who doesn't want a salary. ## No customer, then the web The loss left the team with a hard sentence, about 1993: "we still don't have a business plan, nor any major customers". A deal with 3DO fell through as well. The obvious move was to throw the language away. Instead the team looked at the web, which already existed and was full of different machines. Naughton calls the result "a new agenda for us, which was Oak and web focused". The white paper describes the same fit in its own words: "heterogeneous, network-wide distributed environments" (p. 12). A language built to run on many kinds of device had found a place where that was the whole problem. Nobody redesigned the idea. It just finally had the right customer. ## From Oak to Java The name changed because it had to. Frank Yellin told [JavaWorld](https://www.infoworld.com/article/2077265/so-why-did-they-decide-to-call-it-java.html): "The lawyers had told us that we couldn't use the name 'OAK'." How the new name was picked depends on who you ask. Arthur van Hoff remembers "drinking a cup of Peet's Java". Polese says "I named Java". Yellin recalls that the same name drew both most-favourite and least-favourite votes. The year of the rename is disputed too, 1994 or 1995, so we don't state one. You may have heard the name Oak came from a tree outside Gosling's window. We found no primary source for that, so we leave it out. The public launch date is firm: [May 23, 1995](https://www.computerhistory.org/tdih/may/23/), at SunWorld. ## Why Google picked it for Android The clearest statement comes from a court. In [*Google LLC v. Oracle America*](https://www.supremecourt.gov/opinions/20pdf/18-956_d18f.pdf) (April 5, 2021), the US Supreme Court notes that "about six million programmers" had spent considerable time learning and using Java (opinion, p. 2). Then it gives the reason: "Because Google wanted millions of programmers, familiar with Java, to be able easily to work with its new Android platform, it also copied roughly 11,500 lines of code from the Java SE program" (p. 3). The Court held that this copying was a fair use. That's the turn in one sentence. Google wasn't buying a technology so much as an audience. Two things to keep straight: - Android uses the Java language and part of its API, with Google's own implementation. It isn't Sun's Java platform. - Since I/O 2019 Google has been ["committed to Kotlin-first Android development"](https://android-developers.googleblog.com/2022/08/celebrating-5-years-of-kotlin-on-android.html), "while still supporting users of the Java programming language". ## And JavaScript? This story touches the [previous episode](https://fadymondy.com/en/blog/javascript-history-why-it-won). Netscape's "initial name, 'LiveScript,' had been replaced by 'JavaScript' as part of its strategic partnership with Sun" (*JavaScript: The First 20 Years*, p. 38). They are separate languages. The name came from here. ## Where does it stand now? It depends on what you measure: | Source | What it says about Java | |---|---| | [TIOBE Index, October 2026](https://www.tiobe.com/tiobe-index/) | #4, rating 8.41% (also #4 in October 2025) | | [Stack Overflow Developer Survey 2026](https://survey.stackoverflow.co/2026/technology) | #7, 27.6% of all respondents | The two rankings measure different things, so don't quote one without its source and month. ## Learn it if - You want to write one program for different machines. That has been the point of the language since the start. - You want to come into Android through the front door. That means knowing what it was built on, not that new apps should be written in Java, since Android is Kotlin-first. ## FAQ ### Was Java built for cable boxes? No. The first target was consumer electronics. The set-top bid came in 1993, after the language already existed. ### Did Time Warner really vote for Sun's team? That is the account of Patrick Naughton, who was on the team. We found no Time Warner source for the vote. SGI's own release confirms its role in the project, not the price. ### Is Android built on Java? Android uses the Java language and part of its API, with Google's own implementation. It is not Sun's Java platform, and since 2019 Android development has been Kotlin-first. ### Are Java and JavaScript the same language? No. They are separate languages. JavaScript took its name from a partnership with Sun. ## Sources - [Patrick Naughton, *The Long Strange Trip to Java*, March 18, 1996](https://www.blinkenlights.com/classiccmp/javaorigin.html): the project's start, Oak, the Time Warner bid, the vote, the SGI bid, the turn to the web. One insider's account. - [James Gosling and Henry McGilton, *The Java Language Environment*, October 1995](https://www.stroustrup.com/1995_Java_whitepaper.pdf): p. 12. - [SGI press release, December 14, 1994](https://archive.irixnet.org/siliconsurf/news/Time_Warner.html): SGI's part in the Time Warner project. - [*Google LLC v. Oracle America*, No. 18-956, US Supreme Court, April 5, 2021](https://www.supremecourt.gov/opinions/20pdf/18-956_d18f.pdf): six million programmers, 11,500 lines, fair use, "write once, run anywhere". - [Kieron Murphy, 1996 JavaWorld interview, InfoWorld reprint](https://www.infoworld.com/article/2077265/so-why-did-they-decide-to-call-it-java.html): the name. - [Computer History Museum, May 23](https://www.computerhistory.org/tdih/may/23/): the public launch. The page's heading says 1994; its text says SunWorld '95. - [Android Developers Blog, August 17, 2022](https://android-developers.googleblog.com/2022/08/celebrating-5-years-of-kotlin-on-android.html): Kotlin-first since I/O 2019. - [TIOBE Index, October 2026](https://www.tiobe.com/tiobe-index/): #4, 8.41%. - [Stack Overflow Developer Survey 2026](https://survey.stackoverflow.co/2026/technology): #7, 27.6%. - James Gosling portrait in the video: Peter Campbell, [CC BY-SA 4.0](https://commons.wikimedia.org/wiki/File:James_Gosling_2008.jpg). ## Next steps - [Written in 10 Days, on Nearly Every Website: Why JavaScript Won](https://fadymondy.com/en/blog/javascript-history-why-it-won) - [582,000 AI Projects, One Slow Language: Why Python Won](https://fadymondy.com/en/blog/why-slow-python-won-ai) - [Top Programming Languages in 2026: Rankings and How to Choose](https://fadymondy.com/en/blog/top-programming-languages) --- Source: https://fadymondy.com/en/blog/java-history-cable-box-deal-android --- # Written in 10 Days, on Nearly Every Website: Why JavaScript Won > Its first version took ten days and shipped with bugs, yet it runs on 98.9% of sites W3Techs tracks. Here is why nobody could drop it. *2026-11-02T13:50:40Z* How can a language whose first version took ten days run on nearly every website? [W3Techs](https://w3techs.com/technologies/details/cp-javascript) puts JavaScript on 98.9% of the websites it tracks as of November 2026. The answer isn't that JavaScript turned out to be the best language. Once the web depended on it, nobody could take it out. ## In 60 seconds (the video) 1. **A language written in ten days** now runs on nearly every website. How? 2. **1995.** Netscape wanted a small language in the browser, and Brendan Eich wrote the first version in time for a demo. 3. **The name came from a deal** with Sun, the owner of Java. 4. **Java and JavaScript are separate languages.** Only the name makes them sound like family. 5. **It came out with plenty of bugs**, so it should have disappeared. 6. **Microsoft wasn't happy about it**, but had to put it in its own browser so websites would work there. 7. **From then on**, any browser that dropped it would break the sites. 8. **It didn't win as the best language.** It won because nobody could live without it. ## What the 98.9% means The W3Techs sentence is: "JavaScript is used as client-side programming language by 98.9% of all the websites." Three things to keep in mind: - The figure is for November 2026, and W3Techs updates it, so always quote it with the month. - "Client-side" means code that runs in the visitor's browser. Server code doesn't enter into this number. - "All the websites" means the [W3Techs sample](https://w3techs.com/technologies): "well over 20 million sites" that have meaningful content, with subdomains counted as part of their main site. It's a very large sample, not a census of the whole web. That is why we say nearly every website and not every website. ## Ten days in May 1995 The main source for this story is [*JavaScript: The First 20 Years*](https://wirfs-brock.com/allen/jshopl.pdf), a paper by Allen Wirfs-Brock and Brendan Eich himself. Page numbers below refer to its PDF. Eich joined Netscape on April 3, 1995, recruited with the bait of "come and do Scheme in the browser" (p. 7). He arrived to find that plan overtaken. Sun's Java was rising, Netscape had agreed to put Java in its browser, and senior managers at both companies decided the only viable path was a "little language" to complement Java (p. 7). Java alone wasn't enough, because in spring 1995 it wasn't a suitable language for beginners. You had to wrap your code in a class and declare types for everything (p. 7). Marc Andreessen wanted something so easy that anyone could write a few lines directly in an HTML page (p. 8). And management added one condition. In [Eich's words](https://brendaneich.com/2008/04/popularity/): "The diktat from upper engineering management was that the language must 'look like Java'." The code name was Mocha. Then came the sentence behind the whole legend: Eich "prototyped the first Mocha implementation in ten contiguous days in May, 1995. This work was rushed to meet a feasibility demonstration deadline" (p. 8). There's no record of the exact dates; Eich believes it was May 6 to 15 (p. 8). [On his own blog](https://brendaneich.com/2011/06/new-javascript-engine-module-owner/) he puts it shortly: "As you may know, I wrote JavaScript in ten days." Notice the word *prototype*. Ten days produced a working first version, not the language you write today. At the end of the sprint it was demonstrated to Netscape's full engineering staff and it was a success (p. 9), and the real work on shipping it started there. ## From Mocha to JavaScript The language had three names in under a year: | Name | When | Where | |---|---|---| | Mocha | May 1995 | Internal code name, proposed by Andreessen (p. 8) | | LiveScript | September 1995 | First public exposure, in the Navigator 2.0 beta (p. 10) | | JavaScript | December 4, 1995 | Joint press release from Netscape and Sun (p. 9, p. 145) | The paper is direct about why: "LiveScript" was replaced by "JavaScript" "as part of its strategic partnership with Sun", and Sun trademarked the name and licensed it to Netscape (p. 38). According to Eich, Andreessen had hoped for that rename from the start (p. 8). The release called JavaScript a "complement to Java" and listed 28 companies endorsing it (p. 145). ## Java and JavaScript are separate languages This confusion is old enough that the paper raises it in its opening pages: "Because of its name, JavaScript is often confused with the Java programming language" (p. 3). The companies wanted a strong brand link, "even though their technical designs were only superficially similar", and the name became "a continuing source of confusion" (p. 9). The likeness in the syntax is real, because that was the requirement. The relationship stops around there. ## It shipped with bugs JavaScript 1.0 reached production with Navigator 2.0 in March 1996 (p. 10). Features had to freeze in August 1995, so the feature set was "essentially a triage of what was working or near working" (p. 10). The result "exhibited various problematic bugs and edge case behaviors" (p. 10). Eich said so himself in an interview shortly before release: "because JavaScript was too much of a one-man show, [Netscape] 2.0 will contain numerous annoying little bugs" (p. 11). JavaScript 1.1, in Navigator 3.0 in August 1996, "still consisted primarily of code from the 10-day May 1995 prototype" (p. 27). Only after that did Eich rewrite the core of the engine, working from home for two weeks (p. 27). A buggy language by a one-man team, in one company's browser. By ordinary logic, it should have been replaced. ## Why Microsoft had to adopt it Inside Microsoft, the plan was different. Its developer division wanted Visual Basic for scripting and Java for applications (p. 26). But the Internet Explorer team wanted IE 3 to be compatible with Netscape 3, "and that required including JavaScript support". The paper's summary: "Microsoft was not happy about having to support JavaScript but it was too late to ignore it" (p. 26). The compromise was to support both JavaScript and Visual Basic for scripting. Microsoft's version, JScript, shipped in 1996 as part of IE 3 (p. 26). The interesting part is how they tested it. The IE team understood that working with sites built for Netscape was essential to IE's adoption. Shon Katzenberger and others ran development versions of IE 3 against thousands of websites that used JavaScript and compared the results with Netscape 2 and 3. Whenever they found a difference, Katzenberger had to reverse engineer what Netscape was doing (p. 26–27). The paper calls it "Microsoft's reverse-engineered implementation" (p. 3). That's the turning point. JavaScript stopped being one company's feature and became what websites expected from any browser. ## "Don't break the Web!" Eich later described the trap browsers were in (p. 51): - "Breaking-changes (even bug fixes) can drive away users." - "New browsers must conform to what is already there." The first rule is often shortened to the slogan "Don't break the Web!" (p. 51). The reason is practical. Many pages are no longer maintained by the people who wrote them, but they are still used, and the browser reads their source code on every visit. Break something in one browser and users may move to another. Break it in all browsers and parts of the web stay broken for good (p. 51). Even its creator lost this fight. Look at `==`: ```js 1 == "1" // true: the values are converted before comparing 0 == "" // true ``` Eich changed `==` in JavaScript 1.2 to remove these conversions, and hoped to bring that into the first standard. Katzenberger argued it was too late, given the large number of existing pages it would break, and Eich reverted to the original behavior in JavaScript 1.3 (p. 38). The language instead gained a separate operator for strict equality, `===` (p. 148): ```js 1 === "1" // false ``` So the fix was added alongside the old behavior, and the old behavior stayed. The paper's rule is about changing behavior, not about deleting the whole language. Our conclusion is the obvious next step: if fixing `==` was too risky, a browser that removed JavaScript would break far more. It didn't win a contest. It became impossible to remove. ## The language kept changing "Ten days and it hasn't changed" is false. The first official standard came in 1997, under the name ECMAScript, and two more revised editions followed by the end of 1999 (p. 3). The name is a story of its own: Sun would not license "JavaScript" to the standards body, Netscape would not formally transfer "LiveScript", and the placeholder name stuck (p. 39). Today JavaScript also runs outside the browser. [Node.js](https://nodejs.org/en/about) describes itself as "an asynchronous event-driven JavaScript runtime", designed to build scalable network applications. ## How popular is it now? It depends on what you measure, and well-known sources give different pictures: | Source | What it says about JavaScript | |---|---| | [W3Techs, November 2026](https://w3techs.com/technologies/details/cp-javascript) | 98.9% of tracked websites, client-side | | [Stack Overflow Developer Survey 2026](https://survey.stackoverflow.co/2026/technology) | 62.0% of all respondents, top of most used languages for the 12th year in a row | | [TIOBE Index, October 2026](https://www.tiobe.com/tiobe-index/) | #6, rating 2.77% | None of these is wrong. The first counts websites, the second asks developers, and the third is a separate popularity indicator. Don't quote one of them without its source and date. ## Learn it if - You want to build a website or web app that opens in any browser. In the browser, this is the language W3Techs finds on 98.9% of tracked sites. - You want one language on both sides. With Node.js, the same language you use in the browser can run your server code too. ## FAQ ### Was JavaScript really written in ten days? The first prototype was. Brendan Eich built it in ten contiguous days in May 1995. The language then kept changing, and it still does. ### Are Java and JavaScript the same language? No. They are separate languages. JavaScript was made to look like Java, but the paper by its creators calls their technical designs only superficially similar. ### Does every website use JavaScript? Not every one. W3Techs reports 98.9% in November 2026, within its own sample of well over 20 million sites. ## Sources - [Allen Wirfs-Brock and Brendan Eich, *JavaScript: The First 20 Years*](https://wirfs-brock.com/allen/jshopl.pdf): the story of Mocha, the naming, the bugs, Microsoft, "Don't break the Web!", `==` and the standard. Pages cited in the text; the December 4, 1995 press release is reproduced on p. 145. - [Brendan Eich, *New JavaScript engine module owner*, June 21, 2011](https://brendaneich.com/2011/06/new-javascript-engine-module-owner/): "I wrote JavaScript in ten days." - [Brendan Eich, *Popularity*, April 3, 2008](https://brendaneich.com/2008/04/popularity/): the "look like Java" requirement. - [W3Techs, JavaScript usage, November 2026](https://w3techs.com/technologies/details/cp-javascript): the 98.9% figure. - [W3Techs technology overview](https://w3techs.com/technologies): what the sample includes. - [Stack Overflow Developer Survey 2026](https://survey.stackoverflow.co/2026/technology): 62.0% and the 12-year streak. - [TIOBE Index, October 2026](https://www.tiobe.com/tiobe-index/): #6, 2.77%. - [About Node.js](https://nodejs.org/en/about): how Node.js describes itself. - Brendan Eich portrait in the video: Darcy Padilla, [CC BY-SA 3.0](https://commons.wikimedia.org/wiki/File:Brendan_Eich_Mozilla_Foundation_official_photo.jpg). ## Next steps - [582,000 AI Projects, One Slow Language: Why Python Won](https://fadymondy.com/en/blog/why-slow-python-won-ai) - [Top Programming Languages in 2026: Rankings and How to Choose](https://fadymondy.com/en/blog/top-programming-languages) - [What Is Null in Programming?](https://fadymondy.com/en/blog/what-is-null) --- Source: https://fadymondy.com/en/blog/javascript-history-why-it-won --- # 582,000 AI Projects, One Slow Language: Why Python Won > C is far faster, yet nearly half of new AI projects on GitHub use Python. The answer is what actually runs the math. *2026-11-02T13:42:20Z* Why is Python used for AI despite being slower than C? GitHub reports that Python powers nearly half of all new AI repositories. That looks like a contradiction until you see what actually runs the math. ## In 60 seconds (the video) 1. **582,000 AI projects use a slow language.** Why? 2. **C is much faster.** Yet nearly half of new AI projects on GitHub are in Python. 3. **Christmas 1989.** Guido van Rossum had time on his hands and started a language that is easy to read. 4. **Easy has a price.** Hand it millions of numbers and a Python loop crawls. 5. **Python stopped running.** A library like NumPy takes the order and runs it in C. 6. **It didn't win on speed.** It won by getting the faster one to run for it. ## What the 582,000 means GitHub's Octoverse 2025 report, covering September 1, 2024 to August 31, 2025, says: "Python now powers nearly half of all new AI repositories (582,196; +50.7% YoY)." Three things to keep in mind: - These are repositories on GitHub, and GitHub's own wording is that Python powers them. The report assigns each repository one primary language, so the count most likely means repositories whose primary language is Python. - GitHub's metrics reflect public activity unless noted otherwise. - The report doesn't give the total behind "nearly half", so don't divide 582,196 by the 4.3 million AI-related repositories it mentions elsewhere. ## It started in a holiday week In his foreword to *Programming Python*, Guido van Rossum says that in December 1989 he was looking for a hobby programming project for the week around Christmas, while his office at a research lab in Amsterdam was closed. The Python FAQ quotes him: "During the 1989 Christmas holidays, I had a lot of time on my hand, so I decided to give it a try." There was a work reason too. His group on the Amoeba operating system needed a better way to do system administration than C programs or Bourne shell scripts. The name has nothing to do with snakes. The Python tutorial says the language is "named after the BBC show 'Monty Python's Flying Circus' and has nothing to do with reptiles." Readability stayed central. Python groups statements by indentation instead of brackets, and in 1999 van Rossum described it as "easy to learn, read, and use". ## Why loops are slow, and how NumPy gets around it This is the plain Python way to multiply two lists: ```python c = [] for i in range(len(a)): c.append(a[i]*b[i]) ``` The NumPy documentation says that if `a` and `b` each contain millions of numbers, "we will pay the price for the inefficiencies of looping in Python." The same task runs much more quickly in C, but you lose the simplicity of Python. NumPy keeps both: ```python c = a * b ``` That one line does the same work, and according to the docs the operation is "speedily executed by pre-compiled C code", at near-C speeds. You write the order in Python, and C does the running. ## Learn it if - You want to get into AI. Python remains GitHub's leading language for AI and data science work. - You want your computer to do repetitive work. The Python tutorial opens with exactly that: renaming files, search and replace, tasks you would like to automate. ## FAQ ### Is Python the slowest programming language? The sources here don't claim that. NumPy's documentation compares Python loops with C and says the same task runs much more quickly in C. ### Does all AI code run through NumPy? No. NumPy is the example documented here. PyTorch, for instance, describes itself as deeply integrated into Python rather than a binding into a monolithic C++ framework. ## Sources - [GitHub Octoverse 2025](https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/): the 582,196 figure, the report period and the methodology. - [Python General FAQ](https://docs.python.org/3/faq/general.html): Guido van Rossum's account of how Python started. - [Foreword to *Programming Python*, Guido van Rossum, May 1996](https://www.python.org/doc/essays/foreword/): December 1989 and the closed office. - [Python Tutorial, Whetting Your Appetite](https://docs.python.org/3/tutorial/appetite.html): the name, indentation and automation. - [Computer Programming for Everybody, July 1999](https://www.python.org/doc/essays/cp4e/): "easy to learn, read, and use". - [What is NumPy?](https://numpy.org/doc/stable/user/whatisnumpy.html): Python loops and pre-compiled C code. - [PyTorch README](https://github.com/pytorch/pytorch): how PyTorch describes itself. - Guido van Rossum portrait in the video: Daniel Stroud, [CC BY-SA 4.0](https://commons.wikimedia.org/wiki/File:Guido-portrait-2014-drc.jpg). ## Next steps - [Top Programming Languages in 2026: Rankings and How to Choose](https://fadymondy.com/en/blog/top-programming-languages) - [What Is Null in Programming? The Billion-Dollar Mistake](https://fadymondy.com/en/blog/what-is-null) --- Source: https://fadymondy.com/en/blog/why-slow-python-won-ai --- # One Missed Update: How Knight Capital Lost $460 Million > One server missed an update, and old code from 2003 woke up. Here is what the SEC found about Knight Capital's 45 minutes on August 1, 2012. *2026-11-02T13:42:58Z* # One Missed Update: How Knight Capital Lost $460 Million On August 1, 2012, a US trading firm called Knight Capital deployed new code to eight servers and missed one. About 45 minutes after the market opened, it was holding billions of dollars of stock it never meant to buy or sell, and it ultimately lost more than $460 million. This is the story as the US Securities and Exchange Commission (SEC) documented it. ## In 60 seconds (the video) 1. **One server missed an update.** It ended up costing the company over $460 million. 2. **Eight servers, seven updated.** Knight pushed new code and forgot one. 3. **97 error emails.** From about 8:01 a.m. the system sent them. Nobody treated them as alerts. 4. **9:30, the market opens.** Server eight wakes up code abandoned since 2003. 5. **The code doesn't know the word "done".** The order fills, and it keeps sending more. 6. **About 1,500 trades a second, on average.** And no plan to stop it. 7. **The fix made it worse.** The team pulled the new code from the seven healthy servers. 8. **45 minutes.** Not a hacker. Old code nobody deleted, and a server nobody checked. ## What actually happened Knight's automated order router was called SMARS. It took an incoming order, the "parent", and sent smaller "child" orders to the market until the parent was filled. To join a new New York Stock Exchange program for retail orders, which started on August 1, Knight wrote new code for SMARS. That code was meant to replace an old, unused feature called **Power Peg**, and it reused the flag that used to switch Power Peg on. Three old decisions were waiting: - **2003:** Knight stopped using Power Peg but left the code on its production servers. - **2005:** Knight moved the part of the code that counted filled shares, the part that told Power Peg to stop. It did not retest Power Peg afterwards. - **July 27, 2012 onward:** the new code went out in stages. One technician did not copy it to one of the eight servers. No second technician reviewed the deployment, and no written procedure required one. So on the morning of August 1, seven servers read the flag as the new feature. The eighth read it as Power Peg. ## The warning nobody read From about 8:01 a.m., an internal system sent automated emails that mentioned SMARS and the error "Power Peg disabled". 97 of them went out before the 9:30 a.m. open. They were not designed as system alerts, and staff generally did not review them when they arrived. The SEC notes they gave Knight a potential chance to find the problem before the market opened. ## 45 minutes For 212 small retail orders, the eighth server sent millions of child orders. Because the counting function had moved, it kept sending without regard to how many shares had already been filled. | What the SEC recorded | Number | |---|---| | Incoming orders that triggered it | 212 | | Executions | Over 4 million | | Stocks | 154 | | Shares | More than 397 million | | Time | About 45 minutes | | Net long position | About $3.5 billion in 80 stocks | | Net short position | About $3.15 billion in 74 stocks | | Ultimate loss | Over $460 million | Two numbers need care: - **$460 million is the eventual loss** on those positions, not a per-minute rate and not money that vanished at the moment of the deploy. - **1,500 trades a second is an average.** It is our arithmetic, not an SEC figure: about 4 million executions over about 45 minutes comes to roughly 1,500 a second. ## The fix that made it worse During the incident, Knight removed the new code from the seven servers where it had been deployed correctly. That worsened the problem: more incoming orders activated Power Peg. Knight also had no procedures to halt SMARS when it misbehaved, and no control comparing the orders leaving SMARS with those entering it. ## What the SEC did In an order dated October 16, 2013, the SEC found that Knight had violated the rule requiring brokers to control the risks of their market access. Knight settled without admitting or denying the findings, agreed to pay a $12 million penalty, and undertook to hire an independent consultant to review its procedures and controls. ## What to take to your own deploys - **Delete code you don't use.** Dead code still runs if something calls it. - **Never reuse a flag** that used to mean something else. - **Verify every server after a deploy**, automatically, instead of trusting the process. - **Decide what an alert is.** An error email nobody reads is not monitoring. - **Keep a written stop plan**, and know whether a rollback could make things worse. The code you don't use? Delete it, before it deletes you. ## FAQ ### Did Knight Capital lose $460 million per minute or in one instant? No. The orders ran for about 45 minutes and left Knight holding unwanted positions. The loss of over $460 million is what those positions ultimately cost. ### Was it a hacker? No. The SEC describes a deployment error and old code left on a production server, not an attack. ### Is 1,500 trades a second an exact figure? No. It is an average: about 4 million executions divided by about 45 minutes comes to roughly 1,500 a second. ## Sources - [SEC press release 2013-222](https://www.sec.gov/newsroom/press-releases/2013-222): the charges and the loss of more than $460 million. - [SEC administrative order, Release No. 70694 (October 16, 2013)](https://www.sec.gov/litigation/admin/2013/34-70694.pdf): the deployment, Power Peg, the emails, the numbers, the controls and the undertakings. Every fact above comes from this order, except the per-second average, which we calculated from it. ## Next steps - [What Is Null in Programming? The Billion-Dollar Mistake](https://fadymondy.com/en/blog/what-is-null) - [What Is a Variable in Programming?](https://fadymondy.com/en/blog/what-is-a-variable) --- Source: https://fadymondy.com/en/blog/knight-capital-460-million-bug --- # I Built My Own 3D Printer From a Kit > Ready-made 3D printers cost a lot more, so I got a kit and put one together by hand. It took about a week of work. Here is how it went. *2026-11-02T13:41:48Z* # I Built My Own 3D Printer From a Kit Ready-made 3D printers cost a lot more, so I got a kit and put one together by hand. **The price:** under $200. ## What this machine does It takes a plastic thread, melts it, and stacks it layer by layer, until it's a real object you can hold in your hand. ## Why a kit A kit came out much cheaper than a ready-made printer. The orange parts you see in the video came printed with the kit. All the wires run to an Arduino Mega, the brain of the printer. ## A week of work It took me about a week of work to get it running. The hardest parts were three things: - The filament, the plastic thread the printer melts. - The temperature. - Calibrating the axes. And now it prints. What do you want to see in detail? Tell me in the comments on the video. --- Source: https://fadymondy.com/en/blog/built-3d-printer-from-kit --- # PHP2Shell: Patch PHP Today in 3 Steps > Two critical PHP RCE flaws (CVSS 9.2), found with AI's help, were attacked before the patch shipped. Who's at risk, and the 3-step fix. *2026-10-25T08:11:44Z* On Wednesday 21 October 2026, the PHP security team shipped emergency releases for every supported branch. The reason: two flaws, together called **PHP2Shell**, each rated **9.2 out of 10**. Two things are new this time: AI helped find them, and attacks started hours before the patch shipped. If you run any server with PHP on it (Laravel, WordPress, anything), this is for you. The 3-step fix is below. ## What happened? The two flaws: - **CVE-2026-109618 (RCE via OOM corruption):** when PHP runs out of memory at the wrong moment, request data can be left half-initialized, and request cleanup may treat it as valid. - **CVE-2026-109619 (RCE via stale global state):** request-owned internal state can survive after its memory is freed, and a later request on the same worker may use it before it is reset. In both cases the result is **unauthenticated remote code execution, with no user interaction**. ## Who is at risk? According to php.net: **every PHP installation serving web requests**. That includes PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest for **mod_php**, where a demonstrated exploit triggers with one request before any application code runs. So updating Laravel or WordPress **does not fix it**. The bug is in PHP, not your framework. ## How did AI find it? PHP's GitHub advisories credit researchers from **Calif**, **Wiz** and **OpenAI**. Per the coverage, Calif found the first bug in August with help from **GPT-5.6 Sol**, in an OpenAI-funded audit of PHP's source, and Wiz found the flaws independently weeks later using Gemini and GPT. Calif says it used generally available models and no special tooling. Meanwhile the details leaked early, PHP moved the release up, and Cloudflare saw the first attacks at 07:43 UTC. The patch shipped at 14:00. ## The fix in 3 steps **1. Check your version** ```bash php -v ``` Safe versions: **8.5.12**, **8.4.27**, **8.3.36** or **8.2.35**. Note that distro packages (Ubuntu, Debian, RHEL) may keep the old version number with the fix backported. Look for the CVE in the changelog: ```bash # Debian / Ubuntu (adjust the version) zgrep CVE-2026-109618 /usr/share/doc/php8.3-common/changelog.Debian.gz # RHEL / AlmaLinux / Rocky rpm -q --changelog php-common | grep CVE-2026-109618 ``` **2. Update PHP** From your distro or php.net. On **8.1 or older** there are no official PHP releases: get a vendor backport or upgrade to a supported version. Note that 8.2 reaches end of life on 31 December 2026. **3. Restart every worker** ```bash sudo systemctl restart php8.4-fpm # or apache2 ``` Without a restart, the old build is still the one in memory. ## Can't update today? php.net published settings that reduce exposure, such as `session.upload_progress.enabled=0` in php.ini (not via `ini_set`), `fatal_error_backtraces=0` on 8.5, and a low `post_max_size` if you don't need big uploads. **They are painkillers**: php.net itself says they "do not make an installation safe". Updating is the only fix. ## The lesson AI now finds bugs faster, for defenders and attackers alike. OpenAI calls this the "Defender's Window": the gap between discovery and exploitation is now hours. So: - Security updates on servers should be automatic, or at least same-day. - You should know which PHP version every server runs without having to look it up. If you run a fleet of servers and want help finding every PHP install and patching without downtime, that's part of my [codebase audits](https://fadymondy.com/en/services/codebase-audits). Patched? Tell me your version in the comments. --- *Sources: [php.net advisory (21 October 2026)](https://www.php.net/archive/2026.php#2026-10-21-5), [GHSA-w8hw-w9fx-j79w](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w), [GHSA-6wmf-4rv5-p3rp](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp), [Sansec](https://sansec.io/research/php2shell), [The Next Web](https://thenextweb.com/news/php2shell-php-rce-ai-openai-wiz). Facts checked on 23 October 2026.* --- Source: https://fadymondy.com/en/blog/php2shell-patch-php-today --- # REA: The Tool That Lets AI Reverse Engineer Any App (and How to Use It Right) > REA is an open-source MCP server that lets your AI agent inspect apps without their source code, with evidence for every conclusion. How it works and how to use it safely. *2026-10-25T08:11:44Z* Ever wanted to know how a feature in some app works inside, without having its source code? That is exactly what **REA** (Reverse Engineer Anything) is for. In the first week of October 2026 it became one of the most talked-about projects on GitHub. Here is what REA does, how it works in five steps, and how I would use it with Claude Code without getting myself into trouble. ## What REA actually is REA is an open-source **MCP server + CLI** (MIT licence, TypeScript). MCP is the protocol that lets AI agents like Claude Code, Codex and Cursor call external tools. Install REA and your agent gets a new pair of hands: it can inspect a running app, a native binary, an Electron app or a website, and work out how something is built. The README puts it this way: «One MCP for reverse engineering across binaries, applications, and runtime behavior». As of 21 October 2026 the GitHub API shows **353K stars** and **88K forks**, and the npm package (`rea-agents`) was downloaded more than 415K times in a single week. These numbers move daily, so check the source before you quote them. ## How it works: 5 steps 1. **The agent:** you ask your agent to understand a feature. The README's own example: «Understand how search works in the Notes app, show me the evidence, and build a similar feature for my project». 2. **REA (MCP):** the agent talks to REA as an MCP server, one more tool it can call. 3. **Analysis engines:** for native apps REA doesn't reinvent the wheel. It drives a reverse-engineering tool you already have, such as **Ghidra**, **IDA** or **Hopper**. 4. **The target:** a native binary, a JavaScript or Electron app, a .NET assembly, a website, and many more formats such as APKs, HAR files and WASM. 5. **An evidence report:** you get a report back where every conclusion carries its evidence and its limits. To me this is the key point: «Analysis runs locally, and results include the evidence and limitations behind each conclusion». It runs on your machine, and the output is more than confident-sounding AI prose. ## How I would use it with Claude Code I work in the MCP world every day: I build [Orchestra MCP](https://github.com/orchestra-mcp/framework) for agent-driven project management and [Zekra](https://zekra.dev), a shared memory for agents. My plan for REA is simple: 1. **One setup command** from the official source: ```bash npx rea-agents setup ``` It wires REA into Claude Code, Codex, Cursor, Gemini CLI, Grok Build and others. 2. **A narrow question, not an open one:** "How does search work in this app? Show me the evidence" beats "reverse engineer the whole thing". 3. **Read the evidence before the conclusion:** if the report says a feature uses a certain index, look at the evidence it cites. Weak evidence means a weak conclusion. 4. **Build it my way:** the goal is to understand the idea and build something similar in my own project, not to copy someone else's code. It's the same principle as in [Multi-Agent Architecture Without the Chaos](/en/blog/multi-agent-architecture-without-chaos): one agent with clear tools beats a crowd of agents. ## Use it right **1. Official sources only.** The README itself warns about copycats: «A similar repository name or copied README does not establish that a download is official». There are three official sources: [github.com/morluto/rea](https://github.com/morluto/rea), [rea.tools](https://rea.tools) and the [`rea-agents` package on npm](https://www.npmjs.com/package/rea-agents). **2. Only analyse what you're allowed to.** Per the README, REA is «for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine». That means your own software, or software you have written permission to analyse, respecting its licence and EULA. Reverse engineering without permission can be illegal even when the tool makes it easy. **3. Your agent gets more power.** A tool like this runs things on your machine. Use an isolated project and review the commands your agent wants to run. ## The takeaway REA moves AI agents from "writes code" to "understands existing software", with evidence for each claim. Use it to learn, understand and build better, on software you're allowed to analyse, installed from the official sources only. Tried it? Tell me what you used it for. **Sources:** [GitHub: morluto/rea](https://github.com/morluto/rea) · [rea.tools](https://rea.tools) · [npm: rea-agents](https://www.npmjs.com/package/rea-agents) · [GitHub API](https://api.github.com/repos/morluto/rea) (numbers as of 21 October 2026) --- Source: https://fadymondy.com/en/blog/rea-reverse-engineer-anything-ai-agents --- # Why I built Nasaq, an Arabic RTL design system > I ship products for Arabic and English users. Fixing a Western UI kit for right-to-left every time got old, so I built Nasaq and open sourced it. *2026-10-19T12:49:01Z* # Why I built Nasaq, an Arabic RTL design system I build products for Arabic and English users at the same time. Every time, the same job came first: take a good Western UI kit and make it work right-to-left. Margins on the wrong side, arrows pointing backwards, strings that exist only in English. So I wrote down the rules once, in code, and called it Nasaq (نسق). The full technical tour is in the launch article: [Nasaq UI: an Arabic RTL design system your AI agent can read](https://nasaqui.com/en/blog/nasaq-arabic-rtl-design-system-mcp). ![Nasaq: Arabic RTL design system](/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/nasaq-founder-og-en.png) ## What I decided - **Right-to-left is enforced, not remembered.** A lint rule fails the build on physical classes like `ml-` or `text-right`, and on raw hex colours. The effect: RTL can't regress quietly. - **One look across stacks.** The same components and tokens exist for React, Vue, Laravel and plain HTML, because my products are not all in one framework. - **Agents get the manual.** A public MCP server with six read-only tools lets Claude, Cursor or Codex look up a component before writing code. - **Open source under MIT.** The repo's first commit is from 30 September 2026. The code is at [github.com/fadymondy/nasaq](https://github.com/fadymondy/nasaq). ## Where it stands The registry has 390 items. 49 are stable; the rest are beta and may gain props. There is one maintainer, me, and no community yet. Issues and PRs are welcome. ## Next steps - Launch article: [nasaqui.com](https://nasaqui.com/en/blog/nasaq-arabic-rtl-design-system-mcp) - Code: [GitHub](https://github.com/fadymondy/nasaq) - Product Hunt: [Nasaq](https://www.producthunt.com/products/nasaq) ## FAQ ### Why not just use an existing UI kit? I did, and then spent time fixing right-to-left each time. Nasaq moves that work into the system. ### Is Nasaq open source? Yes, MIT licensed. ### Does it only work with React? No. React 19, Vue 3, Laravel (Blade, Livewire, Filament) and HTML with Alpine. --- Source: https://fadymondy.com/en/blog/why-i-built-nasaq-arabic-rtl-design-system --- # Why I Built Claude Notifications: Claude Code Notifications on Any Channel > I kept coming back to Claude Code runs that had been waiting on me. So I built an open-source plugin that sends hook events to Slack, Discord, email, WhatsApp, voice or web push. *2026-10-19T12:49:01Z* # Why I Built Claude Notifications: Claude Code Notifications on Any Channel I start long Claude Code runs and walk away. Too often I came back about forty minutes later to find it had been waiting for my answer the whole time. That is the whole reason **Claude Notifications** exists. It is a Claude Code plugin that sends Claude Code notifications to where I will actually see them. ![Why I built Claude Notifications](https://fadymondy.com/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/why-i-built-claude-notifications-en.png) ## What I wanted Two moments matter in a long run: it finished, and it needs me. Claude Code already exposes both as hook events. What was missing was something that takes those events and sends them out, to Slack, Discord, email, WhatsApp, a desktop voice line or a web push on my phone, with me choosing the channels and the events. So the plugin does exactly that and nothing more. One script, `scripts/notify.sh`, is bound to the hook events. It runs each enabled channel in parallel with a 5-second cap and always exits 0, so a broken webhook can never block Claude. ## Choices I made, and what they cost - **Plain bash for the dispatcher.** It needs `bash`, `jq` and `curl`, which most machines already have. The cost: it is shell, so adding a channel means writing a small shell script. I made that the documented path: drop a `.sh` in `~/.claude-notifications/channels/`. - **Seven channels built in:** desktop, Slack, Discord, email, WhatsApp, web push and a signed generic webhook. WhatsApp goes through Twilio or CallMeBot, so it needs an account or key with one of them. - **Routing per event.** Nothing fires unless you list the event. The README warns that `pre-tool`, `post-tool` and `user-prompt` fire many times per turn, so they are opt-in for a reason. - **A tray app, optional.** The repo history shows the Electron tray app arriving within the first two days (the first commit is dated 2 May 2026), because editing JSON for credentials is not how most people want to configure Slack. It reads and writes the same `config.json` as the dispatcher. ## Where it is now It is open source under the MIT license and free. There are three slash commands (`/notify`, `/notify-test`, `/notify-setup`), three skills and a `notification-manager` agent for wiring up custom channels and debugging silence. It launches on Product Hunt on 21 October. It is not built on ToGO. It is a Claude Code plugin with a bash core. ## FAQ **Who is it for?** Anyone who runs Claude Code on long tasks and doesn't want to sit and watch the terminal. **Is it open source?** Yes, MIT. **What would I like to hear?** Which channel you would turn on first, and which event you would want that isn't there yet. ## Next steps - The full guide with install steps, config and troubleshooting: [Claude Code notifications on Slack, Discord, WhatsApp or voice](https://notifications.fadymondy.com/en/blog/claude-code-notifications-slack-discord-whatsapp-voice). - The code: [github.com/fadymondy/claude-notifications](https://github.com/fadymondy/claude-notifications). - The launch: [Product Hunt](https://www.producthunt.com/products/claude-notifications). --- Source: https://fadymondy.com/en/blog/why-i-built-claude-notifications --- # Why I Built Claude GitHub PMS: Project Management Where the Code Lives > I let Claude Code work on my repos all day, so I wanted project management to live where the code lives. Here is why Claude GitHub PMS exists and the choices behind it. *2026-10-19T12:49:02Z* # Why I Built Claude GitHub PMS: Project Management Where the Code Lives I let Claude Code work on my repos all day. At some point the question stopped being "can it write the change?" and became "where does the work get tracked, and who decides it's done?" Claude GitHub PMS (gh-pms) is my answer: GitHub Issues project management, run from Claude Code. This is the short story of why it looks the way it does. ## The itch I wanted project management to live where the code lives, not in yet another tool. If the agent opens branches and pull requests in GitHub, then the plan, the issue, the status and the review should be in GitHub too, where anyone on the team can open the Issues, Milestones or Projects tab and see the same thing. ## The choices The first commit landed on 29 April 2026 as a Claude Code plugin marketplace. The README says it was inspired by Orchestra MCP and Studio PMS, and the idea was to build that kind of lifecycle on top of GitHub instead of beside it. A few choices followed from that. - **Use GitHub's own primitives.** Plans are milestones, features and bugs use native Issue Types, status lives on a Projects v2 board, and breakdowns are real sub-issues. Labels stay as a fallback when an account doesn't have the native feature. The effect: nothing is hidden in a side database, and your team adopts nothing new. - **Make "done" cost something.** An issue can't advance until the required sections, with file paths where they matter, are in an evidence comment. There are five gates, and only a human can pass the last one. The effect: a status change carries a record of what changed and how it was checked. - **Add friction on purpose.** One in-progress issue per assignee, a 30-second cooldown between gated moves, and no feature work on `main`. The effect: it's harder to fake progress by batch-advancing issues. - **Keep it configurable.** The defaults live in one workflow file and a repo can override them in `.github/gh-pms.yaml`. The effect: the gates are a starting point, not a rule imposed on you. It grew release by release from there. The changelog goes from the first gates to severity on every issue kind, an optional AI reviewer on Gate 4, triage for deferred requests, metrics and bulk actions. Today the plugin has 22 skills and 4 hooks. ## What it doesn't do - It only works with GitHub. - The gate checks that evidence exists and has the right shape. It can't prove the tests passed, so the final approval stays with a person. - I don't know yet whether the default gates are too strict or too loose for how other teams work. That's the feedback I'm asking for. ## Try it ```bash /plugin marketplace add fadymondy/gh-pms /plugin install gh-pms@gh-pms /gh-pms:gh-init --with-project ``` It's open source under the MIT license. The full walkthrough, with the gate table and the FAQ, is in [GitHub Issues project management with Claude Code](https://gh-pms.fadymondy.com/en/blog/github-issues-project-management-claude-code). ## FAQ **Is Claude GitHub PMS free?** It's open source under the MIT license. **Who is it for?** Teams and solo developers who use Claude Code and already live in GitHub. **Do I need a GitHub organization?** No. Native Issue Types need one, but the plugin falls back to labels on a personal account. ## Next steps - Read the product walkthrough: [gh-pms.fadymondy.com](https://gh-pms.fadymondy.com/en/blog/github-issues-project-management-claude-code). - Source: [github.com/fadymondy/gh-pms](https://github.com/fadymondy/gh-pms). - Tell me whether the gate is too strict, too loose or about right on [Product Hunt](https://www.producthunt.com/products/claude-github-pms) (launching 20 October). --- Source: https://fadymondy.com/en/blog/why-i-built-claude-github-pms --- # Reviewing AI-written code before you ship it: 4 gates > Reviewing AI-written code isn't "read every line" or "trust the model". These are the 4 gates I use with a team of Claude Code agents before anything ships. *2026-10-20T10:25:30Z* # Reviewing AI-written code before you ship it: 4 gates There's an Ask HN thread getting a lot of attention today: ["How to deal with shipping AI-written code you don't understand?"](https://news.ycombinator.com/item?id=50151036). It has passed 500 comments, and the answers split two ways. Some say "don't ship what you don't understand." Others say "whoever deploys it owns it, so lean on tests and monitoring." I run a team of Claude Code agents every day, coordinated with Orchestra MCP, with the work tracked in GitHub Issues through [Claude GitHub PMS](https://gh-pms.fadymondy.com/en/blog/github-issues-project-management-claude-code). So for me this question isn't theoretical. My answer isn't "read every line" and it isn't "trust the model." It's that reviewing AI-written code is a system of gates, and each gate has an owner. ## Gate 1: the author agent never approves its own PR This is the simplest rule and the most important one. The agent that wrote a change carries the same assumptions that made it write the change that way. Ask it to review itself and it will usually find the code fine, because it's looking with the same eyes. In my setup the author agent opens the PR and writes the evidence: what changed, in which files, and how it was checked. That's where its job ends. Approval isn't its call. ## Gate 2: a separate reviewer agent, plus a QA agent with real tests Review is done by a different agent, with different instructions, whose job is to look for problems, not to finish the work. Next to it, a QA agent runs real tests against the behavior: it runs the test suite, tries the edge cases, and checks that the thing actually works, not just that it reads well. The same idea comes up again and again in the HN thread: separate the writer from the checker, and rely on tests and automated verification instead of your feeling about the code. ## Gate 3: a human reads every diff that touches money, auth or data Not every line needs human eyes. But some areas are expensive to get wrong and hard to undo: - **Money:** payments, invoices, prices, discounts. - **Auth:** login, permissions, tokens, who can see what. - **Data:** migrations, deletes, any change to the shape of real data. Any diff that touches one of these, I read myself before merge, however green the tests are. A test tells you the code does what the test expects. It doesn't tell you the expectation was right. ## Gate 4: small PRs. If it can't be read in 10 minutes, split it Gate 3 is impossible on a 2,000-line PR. AI writes a lot of code fast, and that's exactly what turns review into a rubber stamp. So my rule: if a PR can't be read and understood in 10 minutes, it gets split into smaller PRs before anyone reviews it. A small PR is also easier to roll back if something turns up after you ship. ## How the gates actually get enforced Rules on their own get forgotten. That's why I built [Claude GitHub PMS](https://gh-pms.fadymondy.com/en/blog/github-issues-project-management-claude-code) (gh-pms), an open-source Claude Code plugin that makes "done" cost something: - An issue can't advance until the required evidence is in a comment, with file paths where they matter. - There's an optional AI reviewer on the review gate, and only a human can pass the final gate. - One in-progress issue per assignee, and no feature work on `main`. Know its limits: the gate checks that evidence exists and has the right shape. It can't prove the tests passed, which is why Gate 3 stays with a person. I told the full story in [Why I built Claude GitHub PMS](/en/blog/why-i-built-claude-github-pms), and the plugin [launched on Product Hunt today](https://www.producthunt.com/products/claude-github-pms). ## The takeaway You don't have to understand every line the AI wrote. You do have to understand the system the code went through: who wrote it, who reviewed it, what was tested, and what a human read with their own eyes. If you have a clear answer to those four, you can ship with confidence. ## FAQ **Do I have to read every line AI writes?** No. Read anything that touches money, auth or data yourself, and leave the rest to a separate reviewer and real tests. **Can the same agent review the code it wrote?** Better not. The reviewer should be separate, with different instructions, so it doesn't repeat the author's assumptions. **How big should a PR be?** Small enough to read and understand in about 10 minutes. If it's bigger, split it. ## Next steps - Try [Claude GitHub PMS](https://gh-pms.fadymondy.com/en/blog/github-issues-project-management-claude-code); the source is on [GitHub](https://github.com/fadymondy/gh-pms). - Want someone to review your codebase or how your team works with AI? See [AI & codebase audits](/en/services/codebase-audits). --- Source: https://fadymondy.com/en/blog/review-ai-written-code-before-shipping --- # Why I Built Zekra: Shared AI Agent Memory, on ToGO > I run agents in Claude Code, Codex and Cursor, and each session started from zero. This is why I built Zekra, and why on ToGO. *2026-10-19T12:49:04Z* # Why I Built Zekra: Shared AI Agent Memory, on ToGO I run a lot of AI agents across Claude Code, Codex and Cursor. Every new session started from zero, and I kept re-explaining the same decisions. That is the whole reason Zekra exists. ![Why I built Zekra](/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/why-i-built-zekra-og.png) ## What I wanted One memory that every agent could reach, without custom glue for each tool. MCP was the obvious door: if an agent speaks MCP, it can use the memory. I also did not want a pile of notes. Every write in Zekra becomes an add, an update, an invalidate or a no-op, so a changed decision replaces the old one instead of sitting next to it. Recall mixes vectors, BM25 and a knowledge graph, and it works in Arabic and English. ## How it started The repository history shows the order of work. The first commits are from 16 July 2026: the source-of-truth artifacts, then a ToGO app scaffold, then a split into a thin app and a separate `brain` plugin that holds the memory logic. Later commits add the TEI embedding plugin, hybrid BM25 recall, a Redis cache and single-binary serving. The project began under the working name cabrain; the legacy `CABRAIN_*` environment variables are still honoured. As of this writing the repo has 350 commits on `main`, counted with `git rev-list --count origin/main`. ## Why on ToGO ToGO already had the database, cache, queue and storage pieces as plugins. That let me put the memory logic in its own plugin, with its own module and tests, and keep the app around it small. The full details, with code and counts, are in the [case study](https://to-go.dev/en/blog/zekra-togo-case-study), including what was awkward. ## Why open source Zekra is open source under AGPL-3.0, so you can self-host it. There is also a hosted version at app.zekra.dev. I use it every day, and my own assistant runs on it. ## What I would like to hear What would you want your agent to remember first, and what should it never keep? I am asking for feedback, not votes. ## FAQ **Why did you build Zekra?** Because every agent session started from zero and I was tired of repeating decisions. **Why build it on ToGO?** The infrastructure plugins already existed, so the memory logic could be its own plugin. **Is it open source?** Yes, under AGPL-3.0-only. ## Links - Product article: [Self-hosted AI agent memory with Zekra](https://zekra.dev/en/blog/self-hosted-ai-agent-memory-server) - Case study: [Zekra on ToGO](https://to-go.dev/en/blog/zekra-togo-case-study) - GitHub: [fadymondy/zekra](https://github.com/fadymondy/zekra) - Product Hunt: [Zekra](https://www.producthunt.com/products/zekra) - Site: [zekra.dev](https://zekra.dev) --- Source: https://fadymondy.com/en/blog/why-i-built-zekra --- # Quantum Computers Explained: Qubits, Superposition and Where We Are in 2026 > A quantum computer uses qubits to solve some problems far faster than classical machines. Here is how it works and where the field stands in 2026. *2026-10-29T13:06:13Z* # Quantum Computers Explained: Qubits, Superposition and Where We Are in 2026 *Originally published in Arabic on parmgy.com on June 8, 2019. Updated October 2026.* A quantum computer uses qubits instead of ordinary bits, which lets it solve certain problems far faster than a classical computer. It is not a faster laptop, though. Today's quantum machines are still small, noisy and experimental. ## In the short video 1. **The hook:** Google framed its Willow chip as a random-circuit-sampling benchmark done in under five minutes that it estimated would take Frontier, one of the fastest supercomputers, about 10^25 years. It is a benchmark with no practical use, so read it as a milestone. 2. **The idea:** a quantum computer, such as IBM's Quantum System One. 3. **Bit vs qubit:** a bit is 0 or 1; a qubit can be in a combination of both (the Bloch sphere picture). 4. **Superposition and entanglement:** the combination state, and two qubits whose results stay correlated even when far apart (the Bell-test picture). 5. **Willow:** announced in December 2024: as the error-correcting grid grew, the logical error rate roughly halved at each step. 6. **The security angle:** estimates for breaking RSA-2048 fell from about 20 million qubits to far fewer, so the world is preparing post-quantum encryption. ## Bits vs qubits A classical computer stores information in **bits**, and each bit is either 0 or 1. Chips are made of silicon transistors. A quantum computer uses **qubits**. A qubit is a quantum system, such as a superconducting circuit or a trapped ion, that can be in a combination of 0 and 1 at once. This is called **superposition**. It is often described as "both 0 and 1", but more precisely a qubit has probability-like amplitudes for each outcome, and when you measure it you get either 0 or 1. Qubits also exploit two other effects: - **Entanglement:** qubits can be linked so their measured results are correlated, even if physically apart. - **Interference:** a quantum algorithm is arranged so that wrong answers cancel out and right answers are reinforced. The point is not that a quantum computer tries every answer at once and reads them all. The skill is in designing algorithms where interference makes the right answer likely when you measure. ## Classical vs quantum at a glance | | Classical computer | Quantum computer | |---|---|---| | Unit of information | Bit (0 or 1) | Qubit (superposition of 0 and 1) | | Hardware | Silicon chips | Superconducting circuits, trapped ions, photons and others, often at extremely low temperatures | | Strength | Almost everything we do daily | Specific problems such as simulating molecules or factoring numbers | | Errors | Very rare | Frequent, and the main engineering challenge | ## What they could be good for - **Chemistry and materials:** simulating molecules to design drugs, batteries and catalysts. - **Cryptography:** Shor's algorithm (1994) could factor large numbers and break today's RSA and elliptic-curve encryption on a large enough machine. - **Optimization and search:** Grover's algorithm (1996) gives a quadratic speedup for unstructured search, and research continues on optimization problems. They are not expected to speed up web browsing, games or everyday programs. Several claims you may have read, such as quantum computers replacing silicon or "solving everything", are hype. ## Where we are in 2026 - **1998:** the first quantum computers with 2 qubits showed the idea was feasible. - **2019:** Google claimed "quantum supremacy" with a 54-qubit processor. IBM disputed the claim, arguing a classical supercomputer could do the task in far less time. - **December 2024:** Google's 105-qubit **Willow** chip showed error correction working "below threshold": adding more qubits to a logical qubit reduced its errors, an important step for scaling. - **October 2025:** Google reported its "Quantum Echoes" algorithm on Willow, which it said ran about 13,000 times faster than the best classical method for that task. That figure is Google's own estimate. - **March 2026:** a Caltech and Oratomic preprint (arXiv 2603.28627, 31 March) estimated that Shor's algorithm could run at cryptographically relevant scale on as few as 10,000 reconfigurable neutral-atom qubits: elliptic-curve P-256 in a few days with about 26,000 qubits, and 2,048-bit RSA one to two orders of magnitude slower, versus the roughly 20 million qubits estimated in 2019. The paper had not been peer-reviewed at the time, and neutral-atom machines of that quality do not exist yet. - **Roadmaps:** IBM plans a large fault-tolerant system, Starling, by 2029, with 200 logical qubits running 100 million quantum operations. This is a company plan, not a delivered machine. The big remaining problem is noise. Qubits lose their state quickly (decoherence), so useful machines will need error correction that turns many physical qubits into a few reliable logical ones. Even with the lower 2026 estimates, breaking today's encryption still needs a machine far larger and more reliable than anything that exists. Fully fault-tolerant quantum computing is still out of reach as of 2026. ## What it means for security Governments and companies are not waiting. In August 2024 NIST published its first post-quantum encryption standards (FIPS 203, 204 and 205), and in March 2025 it chose HQC as another algorithm to standardize. Moving systems to these algorithms is called **post-quantum cryptography**. ## FAQ ### What is a quantum computer in simple words? A computer that uses qubits and the rules of quantum mechanics to solve certain problems much faster than ordinary computers. ### Is a qubit really 0 and 1 at the same time? It is in a superposition of the two. When measured, it gives 0 or 1 with certain probabilities. ### Can quantum computers break encryption today? No. A machine big enough to break RSA or elliptic-curve encryption doesn't exist yet. But organizations are already moving to post-quantum algorithms to be ready. ### Will quantum computers replace regular computers? No. They will work alongside classical computers for specific tasks. ## Sources - Google, «Meet Willow, our state-of-the-art quantum chip» (9 Dec 2024): https://blog.google/technology/research/google-willow-quantum-chip/ - Nature, «Quantum error correction below the surface code threshold»: https://www.nature.com/articles/s41586-024-08449-y - Gidney (2025), «How to factor 2048 bit RSA integers with less than a million noisy qubits»: https://arxiv.org/abs/2505.15917 - Caltech and Oratomic (2026), «Shor's algorithm is possible with as few as 10,000 reconfigurable atomic qubits» (preprint): https://arxiv.org/abs/2603.28627 - Image credits (video): Frontier supercomputer (Oak Ridge National Laboratory, CC BY 2.0), IBM Quantum System One (IBM Research, CC BY 2.0), Bloch sphere (Qupybara, CC0), Bell test (Manwesulimo2004, CC BY 3.0), Wikimedia Commons. --- Source: https://fadymondy.com/en/blog/quantum-computers-explained --- # Top Programming Languages in 2026: Rankings and How to Choose > A 2026 look at the most popular programming languages using TIOBE (Oct 2026), the Stack Overflow 2025 survey and GitHub Octoverse 2025, and how to choose one. *2026-10-29T13:06:10Z* # Top Programming Languages in 2026: Rankings and How to Choose *Originally published in Arabic on parmgy.com on June 8, 2019. Updated October 2026.* Which programming language is the most popular? It depends on what you measure. This 2026 edition compares three well-known sources, each answering a different question, and then helps you choose a language for your goals. ## In the short video 1. **Starting in 2026, which language?** The numbers first. 2. **TIOBE, October 2026:** Python is still #1 (19.23%), then C (11.33%), C++ (8.87%) and Java (8.41%). 3. **GitHub:** TypeScript passed Python and JavaScript in August 2025 by monthly contributors. 4. **Each language its job:** Python for AI, TypeScript and JavaScript for the web, Go and Rust for fast servers. 5. **The advice:** don't freeze on the choice; learn the fundamentals first. Languages change, the way of thinking stays. ## TIOBE Index, October 2026 The TIOBE Index estimates popularity from search-engine queries about each language. In October 2026 the top four were: | Rank | Language | Rating | |---|---|---| | 1 | Python | 19.23% | | 2 | C | 11.33% | | 3 | C++ | 8.87% | | 4 | Java | 8.41% | Ranks 5 to 10 were C#, JavaScript, Visual Basic, R, SQL and Rust, in that order. R moved ahead of SQL this month, and Julia returned to the top 20. TIOBE measures how much people search for a language, not how good it is or how much code is written in it. ## Stack Overflow Developer Survey 2025 This survey asks developers what they used in the past year. Among all respondents: | Language | Used by | |---|---| | JavaScript | 66.0% | | HTML/CSS | 61.9% | | SQL | 58.6% | | Python | 57.9% | | Bash/Shell | 48.7% | | TypeScript | 43.6% | | Java | 29.4% | | C# | 27.8% | | C++ | 23.5% | | Rust | 14.8% | Notice that SQL ranks third here but ninth on TIOBE. Surveys count everyday use, including markup and query languages. I could not find 2026 survey results, so 2025 is the latest. ## GitHub Octoverse 2025 GitHub's yearly report (covering September 2024 to August 2025) shows what developers build on GitHub. In August 2025, **TypeScript became the most used language by monthly contributors**, with about 2.64 million contributors, up 66.6 percent year over year. Python added about 850,000 contributors (+48.8%) and JavaScript about 427,000 (+24.8%). Python also leads in repositories tagged for AI. ## What changed since 2019 The original 2019 post ranked languages by job postings: Java 30%, JavaScript 26%, HTML 18%, Python 17%, C# 15%, C++ 12%, XML 9%, Ruby 6%, PHP 5% and Perl 4%. Those numbers were a snapshot of one job market, and a few things stand out today: - **Python moved to the top** of TIOBE, driven by data science, automation and AI. - **TypeScript rose** as teams add types to JavaScript. - **Rust arrived** in the top ten, valued for memory safety. - HTML and XML are markup languages, not programming languages, so we leave them out of language comparisons now. - Ruby, PHP and Perl are still used, but are far from the top. ## Which language should you learn? - **Data, AI and automation:** Python. - **Websites and web apps:** JavaScript and TypeScript, plus HTML/CSS and SQL. - **Android and enterprise back ends:** Java and Kotlin. - **Games, systems and embedded:** C and C++, or Rust for safer systems code. - **Windows and game development with Unity:** C#. - **Databases:** SQL, which almost every developer needs. Pick based on the project you want to build, not on a ranking. Once you know one language well, the second one comes much faster. ## FAQ **What is the most popular programming language in 2026?** On TIOBE, Python. In the 2025 Stack Overflow survey, JavaScript was the most used. By GitHub contributors, TypeScript led in 2025. **Which language is best for beginners?** Python is a common first choice for its readable syntax. JavaScript is a good alternative if you want to build websites. **Is SQL a programming language?** It is a query language for databases. It is widely used and worth learning, even though it works differently from general-purpose languages. **Will AI replace programmers?** AI tools now help write code, but you still need to understand problems, review results and design systems. Fundamentals matter more, not less. ## Sources - TIOBE Index: https://www.tiobe.com/tiobe-index/ (October 2026 table) - GitHub blog, Octoverse 2025: https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/ - Stack Overflow Developer Survey 2025: https://survey.stackoverflow.co/2025/ - Logos: simple-icons (CC0) and devicon (MIT) via the video. --- Source: https://fadymondy.com/en/blog/top-programming-languages --- # Why I Built Claude Agents Team: Stop Hand-Writing Your .claude Directory > I kept hand-building agent teams for Claude Code. Claude Agents Team is what I extracted from three of them, with a linter that checks every file. *2026-10-19T12:49:03Z* # Why I Built Claude Agents Team: Stop Hand-Writing Your .claude Directory I run three large agent teams in Claude Code, with about 14, 42 and 40 agents. I built each one by hand, from scratch. Claude Agents Team is what I got when I stopped and wrote down the patterns that worked. ![Why I built Claude Agents Team](/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/claude-agents-team-founder-en.png) It is an open-source Claude Code plugin (MIT). You give it a product description, and it writes an orchestrator, specialist agents, skills, rules and hooks into `.claude/`. Then it lints every file before the run exits. ## The problem I kept hitting A good `.claude` directory takes hours. You need an orchestrator, the right specialists, skills, rules and hooks, and every file has to be right: valid frontmatter, a description that tells Claude when to delegate, sensible tools, a fitting model. It is easy to get one of those subtly wrong, and nothing tells you. Doing that three times made the pattern obvious. The same archetypes kept coming back, so I turned them into templates. ## What I built The repo's first commit is dated 29 April 2026, and v0.1.0 was tagged the same day. It has three pillars: - `/team-gen` turns a product brief into a team from a library of 8 agent archetypes, 4 skill archetypes, 13 rule templates and 4 hook templates. - `/evaluate-agent` scores an agent or skill file against a rubric where each rule cites a source. A static linter is free and deterministic. `--deep` adds an LLM judge. - `/meet` sends a topic to every agent in parallel and writes the minutes. The design choice I care about most is that the generator lints its own output. If any file gets a `reject` verdict, the run fails. A team that was never checked is just a pile of prompts. ## Honest limits - A passing grade means the files meet the rules. It does not prove the team behaves well on your codebase. - The behavioral harness is a first version: it replays a transcript after the fact. - `--deep` calls the Anthropic API and needs `ANTHROPIC_API_KEY`. - The defaults are my opinions: plan first, small wins, no push without permission, a QA agent and a security agent. Delete what you do not want. - It is not Claude Code's experimental agent-teams feature. It generates the definition files and does not change how Claude Code runs them. ## FAQ **Who is it for?** Claude Code users starting a new project, and teams that want the same agent setup across repos. **Is it free?** It is open source under the MIT license. **What should I tell you if it gets something wrong?** Tell me what your generated team got wrong. That is how the rule set improves. ## Next steps - Read the full guide: [Claude Code agent team generator](https://agents-team.fadymondy.com/en/blog/claude-code-agent-team-generator) - Source: [github.com/fadymondy/agents-team](https://github.com/fadymondy/agents-team) - Product Hunt: [Claude Agents Team](https://www.producthunt.com/products/claude-agents-team) - Arabic version: [النسخة العربية](https://fadymondy.com/ar/blog/why-i-built-claude-agents-team) — Fady Mondy --- Source: https://fadymondy.com/en/blog/why-i-built-claude-agents-team --- # Why I Built Moharrik, a CRM and Shared Inbox on ToGO > Clients wrote to me on WhatsApp, email and my site chat, and I kept losing context. Here is why I built Moharrik on ToGO and what I chose. *2026-10-19T12:49:04Z* # Why I Built Moharrik, a CRM and Shared Inbox on ToGO Most of my clients talk to me on WhatsApp. Some write by email, and some use the chat on my sites. I kept losing context between the three, and my CRM knew none of it. That is the whole reason Moharrik exists. I wanted the contacts, the deals and those conversations in one workspace, in Arabic and English. ## The part I use most Every capability in Moharrik is an MCP tool. I can ask Claude to triage the inbox or draft replies. The `reply` tool sends through the real channel, so I keep my client's per-tool approval on and confirm before anything goes out. ## What I chose, and what it cost - **Go on ToGO, with Next.js in the same container.** The backend imports the ToGO framework and its auth, cache, Postgres, i18n, queue, rate-limit, realtime and storage plugins. - **Isolation in the database.** Each workspace's rows are protected by Postgres row-level security, and the app connects as a role with no superuser and no BYPASSRLS. The cost: the ORM holds a concrete `*sql.DB`, so I wrapped the connection to set the workspace on every statement. - **Scopes on every tool.** A CI test fails the build if an MCP tool has no scope. The cost is a little friction each time I add a tool. - **Open source from the start of the public repo.** It is AGPL-3.0, so you can read all of it. The first commit is dated 2026-09-19. Four weeks later the repo has 445 commits and launched on Product Hunt on 17 October. ## The details I wrote the technical version separately: how the plugins fit together, the two connection pools, the real code and what was hard. Read it here: [Multi-tenant Postgres RLS in Go: Moharrik on ToGO](https://to-go.dev/en/blog/moharrik-togo-case-study). If you want to know what the inbox does and how to run it, start with [One Shared Inbox for WhatsApp, Email and Website Chat](https://moharrik.com/en/blog/shared-inbox-whatsapp-email-website-chat). ## FAQ **Why ToGO?** It is the framework I maintain, and Moharrik's go.mod imports it. The case study names each plugin and what it does. **Is it open source?** Yes, AGPL-3.0. ## Next steps - [Moharrik on Product Hunt](https://www.producthunt.com/products/moharrik) - [GitHub](https://github.com/fadymondy/moharrik) and [Discord](https://discord.gg/BMERkavdVq) - [ToGO showcase](https://to-go.dev/en/showcase) --- Source: https://fadymondy.com/en/blog/why-i-built-moharrik --- # Why I Built Mahaam: Open Source Project Management for Agencies > Projects, time sheets and invoices lived in three tools that never agreed. Why I built Mahaam, open source project management for agencies, on ToGO. *2026-10-19T12:49:03Z* # Why I Built Mahaam: Open Source Project Management for Agencies I run a software studio. For years our projects, time sheets and invoices lived in three different tools that never agreed with each other. Mahaam is the one place I built to fix that, and I built it as open source project management for agencies like ours. ![Why I built Mahaam](https://fadymondy.com/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/why-i-built-mahaam-en.png) ## The problem I had Hours were tracked in one place, budgets lived in another and the invoice was typed from memory and a spreadsheet. Every handover between those tools was a place for a number to go wrong. I wanted hours tracked against a project budget, and the invoice drafted from the same entries, so nothing is retyped. ## What I built Projects, issues, time tracking and invoices share one dataset. A few choices matter more than the feature list: - **Clients get a portal.** They see what you choose to show: their projects, their issues and their invoices, without taking a staff seat. - **A feedback widget for client sites.** One script tag, and bug reports with screenshots and diagnostics land on the right project's board. - **Arabic and English**, right-to-left included. - **An MCP server.** Claude Code can pick up an issue, work it and report back on the board, under the same permission checks as a person. ## The first week The repository starts on 2026-09-14. The first commit already had tenancy, Postgres row-level security, the user and admin MCP servers and the feedback intake. The project was still called Managy then. By the end of that day it had the schema for clients, projects and tasks, a kanban board and the first version of time entries with database-enforced invariants. I did not plan to add MCP late. The domain layer in `internal/work` serves both the REST API and the MCP tools, so an agent and a browser go through one authorization path. That is a design choice, and its effect is that I do not maintain two sets of rules. ## Why ToGO Mahaam is built on [ToGO](https://github.com/togo-framework/togo), the Go framework I also work on. I wanted the boring parts, such as mail, queue, scheduler and storage, to arrive as plugins. ToGO did not give me multi-tenancy, so I built that myself with Postgres row-level security. The [case study](https://to-go.dev/en/blog/mahaam-togo-case-study) has the code, the numbers and the places where the framework got in the way. ## What is not done I do not have usage numbers, customer quotes or benchmarks to show, so I am not showing any. The repository is public under AGPL-3.0 and the README lists the framework notes I collected while building it. Some of them may be fixed in newer ToGO releases. ## FAQ **Who is Mahaam for?** Agencies, studios and freelancers who bill by the hour or by the project. **Is it open source?** Yes, AGPL-3.0, at [github.com/fadymondy/mahaam](https://github.com/fadymondy/mahaam). **How can an AI agent use it?** Through the MCP endpoint with a scoped token. See the [product article](https://mahaam.app/en/blog/project-management-mcp-server-for-ai-agents). ## What I would like from you Tell me what would make you move your time tracking over, and what is missing from the invoice flow. Open an issue on GitHub or find me on [Discord](https://discord.gg/a59RzxnB2H). ## Next steps - Product article: [A project management MCP server for AI agents](https://mahaam.app/en/blog/project-management-mcp-server-for-ai-agents) - Case study: [How Mahaam is built on ToGO](https://to-go.dev/en/blog/mahaam-togo-case-study) - [mahaam.app](https://mahaam.app) · [GitHub](https://github.com/fadymondy/mahaam) · [Product Hunt](https://www.producthunt.com/products/mahaam) --- Source: https://fadymondy.com/en/blog/why-i-built-mahaam --- # Why I built Hosbah (on ToGO) > I wanted Heroku-style deploys on servers I already pay for. This is what I built, in what order, and what is still not finished. *2026-10-19T12:49:04Z* # Why I built Hosbah (on ToGO) I wanted Heroku-style deploys on servers I already pay for. Every platform I tried either wanted my workloads on its own cloud or wanted me to become a Kubernetes admin. [Hosbah](https://hosbah.com) is what I built instead, on [ToGO](https://github.com/togo-framework/togo). ![Why I built Hosbah](/uploads/sites/3b93f650-28ec-4093-99aa-e7b16c2a2e2f/media/why-i-built-hosbah-en.png) ## What I wanted Push code, have it build, deploy behind a health check with no downtime, and roll back if the deploy is bad. Databases, backups and domains in the same place. And an MCP server, so an AI agent can check a deploy or read logs. That is the list I wrote in the Product Hunt first comment, and it is still the list. ## What the git history shows The first commit is dated 2026-09-14, and the project was called Cloudy then. The order of the early commits tells you what I treated as the hard part: 1. **2026-09-14:** tenancy foundation, row-level security, envelope encryption, and the user and admin MCP servers. Before any deploy feature existed, I built the part that keeps one team away from another team's data. 2. **2026-09-14:** servers, agent enrolment, the operation queue and sealed logs; then the agent and its signed-operation protocol; then the Proxmox driver (VM clone and unprivileged LXC). 3. **2026-09-17:** apps, environment variables, domains, deployments and releases; typed signed operations for build, release, health-gated start, Caddy routes, drain and rollback; and the deploy pipeline with deploy hooks. 4. **2026-09-19:** the rename from Cloudy to Hosbah. Some old names (`cloudy.toml`, `cld_` tokens) stayed for compatibility. 5. **2026-10-13 and 2026-10-14:** an Electron desktop app, an Expo phone app, and the preparation for open source. I put the security model first because the product holds secrets and runs commands on other people's machines. I do not have a story about how I decided that; the commit order is the evidence. ## Why ToGO Hosbah's `go.mod` imports ToGO and its auth, audit, authz, cache, db-postgres, i18n, queue, realtime and storage plugins. I also build other products on it, which is a reason for me and not a claim for everyone. The [case study](https://to-go.dev/en/blog/hosbah-togo-case-study) covers what helped and what did not, for example that the generated CRUD has no concept of a team, so Hosbah does not mount it for tenant tables. ## What is not finished - The Proxmox driver is tested against a fake Proxmox API; the test against a real node is opt-in. - Builds need a public git URL for now, and the GitHub App integration is coded but not configured. - MinIO backups are not point-in-time. - The README status line still says development, local only. That line is out of date. The code is open source under AGPL-3.0. ## FAQ ### Why build on ToGO? ToGO already provided auth, audit, authz, queue, realtime and storage as plugins, plus code generation. The case study lists what helped and what did not. ### Was Hosbah always called Hosbah? No. The first commits call it Cloudy. It was renamed on 2026-09-19. ### Is Hosbah open source? Yes, AGPL-3.0, at [github.com/fadymondy/hosbah](https://github.com/fadymondy/hosbah). ## Next steps - Read the product article: [Self-hosted PaaS on Proxmox: push to deploy](https://hosbah.com/en/blog/self-hosted-paas-proxmox-push-to-deploy) - Read the case study: [Hosbah on ToGO](https://to-go.dev/en/blog/hosbah-togo-case-study) - Source: [GitHub](https://github.com/fadymondy/hosbah) - Product Hunt: [Hosbah](https://www.producthunt.com/products/hosbah) --- Source: https://fadymondy.com/en/blog/why-i-built-hosbah --- # Claude Plugin Search: Find and Install Claude Code Plugins > Looking for `claude plugin search`? It doesn't exist. These are the real ways to search and install Claude Code plugins, in a session and from the shell. *2026-10-15T14:50:48Z* # Claude Plugin Search: Find and Install Claude Code Plugins If you typed `claude plugin search` and got nothing useful, you're not doing it wrong. **There's no `search` subcommand.** Claude Code does have plugin search, though. It just lives in a different place. **The short answer:** inside a Claude Code session, run `/plugin` and start typing in the **Discover** tab. From the shell, run `claude plugin list --json --available` and filter the output. Install with `/plugin install @` or `claude plugin install @`. Everything here is checked against Anthropic's [Claude Code plugin docs](https://code.claude.com/docs/en/discover-plugins). ## What a plugin is (in one paragraph) A Claude Code plugin is a bundle that can add slash commands, skills, subagents, hooks and MCP servers in one install. Plugins come from **marketplaces**, which are catalogs hosted in a Git repo, a URL or a local folder. A plugin is always identified as `name@marketplace`. ## Method 1: Search inside a session (`/plugin`) This is the main way to search. 1. Start Claude Code in your project: `claude` 2. Run `/plugin`. The plugin manager opens on the **Discover** tab. 3. Start typing. The list filters as you type, across every marketplace you've added. 4. Select a plugin to see its description, then choose where to install it. A useful shortcut: if you type an unknown word after `/plugin`, such as `/plugin github`, Claude Code opens Discover with that word as the search. If you already know the name: ```text /plugin install code-review@claude-plugins-official ``` If the name is wrong, or its marketplace isn't added yet, you'll see: ```text Plugin "" not found in any marketplace ``` That almost always means you need to add the marketplace first (see Method 3). After installing or changing plugins, run `/reload-plugins` to pick up the changes without restarting. ## Method 2: Search from the shell (scripts and CI) There's no `claude plugin search`, but `list` with `--available` does the same job, and `--json` makes it scriptable: ```bash claude plugin list --json --available ``` The output has an `available` array. Each entry includes `pluginId`, `name`, `marketplaceName`, `description`, `version` and `installCount`. To search it with `jq`: ```bash claude plugin list --json --available \ | jq -r '.available[] | select((.name + " " + (.description // "")) | test("github"; "i")) | "\(.pluginId)\t\(.installCount // 0)\t\(.description // "")"' ``` That prints matching plugin ids, install counts and descriptions. Then install: ```bash claude plugin install @ # team-wide, written to the project's settings claude plugin install @ --scope project ``` To inspect one plugin before installing it, use `claude plugin details `. ## Method 3: Add more marketplaces You can only search marketplaces Claude Code knows about. - **`claude-plugins-official`** is Anthropic's official marketplace. It's added automatically. - **The community marketplace** has to be added once: ```text /plugin marketplace add anthropics/claude-plugins-community ``` The same `marketplace add` command takes any GitHub `owner/repo`, a Git URL, or a local path, so teams can run a private marketplace for internal plugins. Newer versions can also add the marketplace and install in one step with `--marketplace ` on install. In a session that needs v2.1.275 or later, and from the shell v2.1.292 or later. Check yours with `claude --version`. ## Method 4: Browse on the web To browse before opening a terminal, Anthropic lists plugins at [claude.com/marketplace/plugins](https://claude.com/marketplace/plugins). Copy the `name@marketplace` from there and use Method 1 or 2 to install. ## In other clients - **Claude Desktop:** **+** → **Plugins** → **Add plugin**. - **VS Code extension:** run `/plugins` in the Claude panel. - **Headless (`claude -p`):** `/plugin` isn't available there ("/plugin isn't available in this environment"). Install plugins beforehand with the `claude plugin` CLI. ## Quick reference | I want to… | Command | |---|---| | Search interactively | `/plugin` then type in **Discover** | | Search from the shell | `claude plugin list --json --available` + `jq` | | Install | `/plugin install name@marketplace` or `claude plugin install name@marketplace` | | Share with the team | `claude plugin install name@marketplace --scope project` | | Add a marketplace | `/plugin marketplace add owner/repo` | | See one plugin | `claude plugin details name` | | Apply changes | `/reload-plugins` | ## Picking plugins safely Plugins can run hooks and start MCP servers, which means they run code on your machine. Before installing: - Prefer the official marketplace, or publishers you know. - Read the plugin's repo. Look for hooks and MCP server commands in particular. - Install at `local` or `project` scope first, not globally for every project. - `installCount` is a popularity signal, not a security review. ## FAQ **Is there a `claude plugin search` command?** No. Use `/plugin` (Discover tab) in a session, or `claude plugin list --json --available` from the shell. **Why does install say "not found in any marketplace"?** The plugin's marketplace isn't added, or the name is misspelled. Add the marketplace with `/plugin marketplace add`, then retry. **Can I search plugins in CI?** Yes, with the JSON list output above. `/plugin` itself is interactive only. ## Next steps - Plugins often bundle MCP servers. If you want your own product reachable from Claude Code, see [how to ship an official MCP server for your SaaS in 2 weeks](https://fadymondy.com/en/blog/ship-official-mcp-server-for-saas-in-2-weeks). - Need one built? [MCP server development](https://fadymondy.com/en/services/mcp-server-development). --- Source: https://fadymondy.com/en/blog/claude-plugin-search-claude-code --- # OpenAI's Secret Device and Apple: What Happened > The Apple vs OpenAI fight over a secret AI device: verified facts with dates, and why AI moving from chat to devices matters to anyone building agents. *2026-10-15T14:50:40Z* # OpenAI's Secret Device and Apple: What Happened, and Why Developers Should Care **The short answer:** OpenAI is building its first AI device, and Apple has been suing it since July 2026 over alleged trade-secret theft through former Apple employees. On October 13, 2026 a judge gave Apple early access to some OpenAI documents. On October 14, OpenAI said a former employee who returned to Apple took more than 100 confidential files about the device. Nothing has been decided on the merits. ## The verified facts - **2025:** OpenAI acquired Jony Ive's io; the design and engineering teams merged with OpenAI in July 2025. Bloomberg reports the first product may be a smart speaker priced above $300. That's reporting, not an official announcement. - **July 2026:** Apple sued OpenAI, io Products and two former Apple employees, Chang Liu and Tang Tan, in federal court in San Jose (*Apple Inc. v. Liu*). OpenAI denies the claims and has moved to dismiss. - **October 13, 2026:** Judge Edward Davila partly granted Apple expedited discovery: forensic images, interview materials for Apple candidates and early depositions. He denied early access to OpenAI's R&D on metal finishes, power and batteries. The order doesn't decide whether anything was misappropriated. - **October 14, 2026:** At the injunction hearing, Bloomberg reports Davila said he was "highly likely" to side with Apple. OpenAI voluntarily agreed not to use the alleged trade secrets while the case runs. No written injunction had been issued at the time of writing. - **Same day:** OpenAI told the court an unnamed employee who spent about six months at OpenAI downloaded 100+ confidential files on June 2, 2026, his last day, and later presented device information to Apple leaders. Apple told CNN it found no evidence to support this. - **Separate case:** per AP, an OpenAI engineer was charged after a listening device was found in a company conference room on September 30. He was arrested on October 9. OpenAI says there's no sign he accessed model weights, code or customer data. He is charged, not convicted, and there's no stated link to the Apple case. ## The developer angle The two biggest names in the field are fighting over a **device**, not a chatbot. AI is moving from a chat window to screenless, voice-first hardware and to agents that act. That changes three things: 1. **Your product needs to be a tool, not just a UI.** Expose core operations through an MCP server so any agent can call them. See [how to ship an official MCP server for your SaaS in two weeks](https://fadymondy.com/en/blog/ship-official-mcp-server-for-saas-in-2-weeks). 2. **Memory matters more than the model.** An assistant you wear for weeks has to remember, and to know when a fact stopped being true. That's what I work on in [Zekra](https://github.com/fadymondy/zekra), an open-source MCP memory server that invalidates outdated facts instead of deleting them. 3. **Logs and permissions are part of the product.** In both cases, device images, chat messages and prompt logs became evidence. Design agents with least privilege and a clear audit trail of every tool call. ## FAQ **Did Apple stop OpenAI's device project?** No. The judge signalled a likely preliminary injunction, and OpenAI agreed not to use the disputed information. That limits what OpenAI can use; it doesn't halt the project. **When will the device ship?** There's no official date. Reports say OpenAI still aims to unveil it this year and ship in 2027. ## Sources [CNN](https://www.cnn.com/2026/10/14/tech/openai-accuses-former-employee-of-leaking-intel-on-ai-device-to-apple) · [9to5Mac](https://9to5mac.com/2026/10/13/apple-wins-early-access-to-openai-documents-and-employee-testimony-in-trade-secrets-lawsuit/) · [Bloomberg](https://www.bloomberg.com/news/articles/2026-10-14/apple-openai-head-to-court-in-high-stakes-ai-trade-secret-fight) · [MacRumors](https://www.macrumors.com/2026/10/14/openai-apple-potential-counterclaim/) · [AP via ABC News](https://abcnews.com/Technology/wireStory/employee-arrested-after-listening-device-found-openai-conference-137239998) *This covers an open case. All allegations are claims by the parties; no court has ruled on the merits.* Getting your product agent-ready? See [MCP server development](https://fadymondy.com/en/services/mcp-server-development). --- Source: https://fadymondy.com/en/blog/openai-secret-device-apple-arab-developers --- # AI Business Automation: A Practical Guide > Five processes you can automate with AI this week: WhatsApp bookings, invoice extraction, CRM lead routing, support summaries and weekly reports. *2026-10-15T14:50:49Z* # AI Business Automation: A Practical Guide Most writing about AI business automation stops at "AI will change how you work." This guide does the opposite. It walks through five real processes, each with its inputs, steps and outputs, where a human stays in the loop, and how to measure whether it worked. If you're still deciding where to start, read [AI business automation in the GCC: where to start](https://fadymondy.com/en/blog/ai-business-automation-gcc-where-to-start) first. This post is the next step: execution. ## The core rule: AI understands, code executes Every example below uses the same split. - **The model (LLM)** does what needs understanding: reading a message, extracting data from a PDF, classifying a request, summarising a conversation. - **Code or your automation tool** does what must be exact: writing to the database, sending the message, computing totals, applying rules. This split is what makes automation reliable. The model can misread things, so you give it a fixed output shape (JSON) and validate that output in code before anything happens. ## Example 1: WhatsApp bookings and FAQs **Problem:** a clinic, salon or service business gets the same WhatsApp questions every day: hours, prices, location, bookings. **Steps:** 1. Messages arrive through the WhatsApp Business Platform, Meta's official API. 2. The model classifies intent: question, booking, cancellation, complaint, or "needs a human". 3. For questions, it answers from a knowledge base you wrote, not from memory. 4. For bookings, it extracts the service, day and time. Code checks the slot is free and records the booking. 5. Complaints and anything unclear go straight to a person. **Human in the loop:** complaints, refunds and low-confidence cases. **Measure:** the share of conversations closed without a human, and time to first reply. WhatsApp has clear rules for business-initiated messages (templates and opt-in), so start with inbound replies. More in [WhatsApp AI automation for business](https://fadymondy.com/en/blog/whatsapp-ai-automation-business). ## Example 2: Invoice data extraction **Problem:** an accountant spends hours keying supplier invoices (PDFs and photos) into the accounting system. **Steps:** 1. Invoices land in a dedicated inbox or folder. 2. The model reads each file and returns fixed-shape JSON: ```json { "supplier": "", "invoice_number": "", "date": "YYYY-MM-DD", "currency": "SAR", "lines": [{"description": "", "qty": 0, "unit_price": 0}], "vat": 0, "total": 0 } ``` 3. Code checks it. Do the lines plus VAT equal the total? Is the supplier's tax number known? Is this a duplicate? 4. Invoices that pass become drafts in the accounting system. Invoices that fail go to a review queue. **Human in the loop:** the accountant approves drafts instead of typing them. **Measure:** the share of invoices accepted without edits, and time per invoice. ## Example 3: Routing leads into the CRM **Problem:** leads arrive from the website form, WhatsApp and email, and get lost between people. **Steps:** 1. Every new lead is collected in one place. 2. The model extracts name, company, need, budget (if mentioned) and seriousness. 3. Code applies the routing rules: region, service and deal size. 4. A contact or deal is created in the CRM, and the owner gets a notification with a ready-made summary. **Human in the loop:** the selling itself. Automation gets the right lead to the right person quickly. **Measure:** time from lead to first contact, and the share of leads that never got a reply. ## Example 4: Support summaries **Problem:** a support manager can't read 300 conversations a week to spot recurring issues. **Steps:** 1. Each closed conversation gets a two-line summary, a category and a sentiment. 2. Weekly, these roll up into the top five contact reasons, the escalations and suggested fixes. **Human in the loop:** the manager reads the summary and decides. The model never closes tickets on its own. **Measure:** whether recurring issues go down week over week. ## Example 5: The weekly management report **Problem:** someone pulls numbers from four systems every Sunday and writes an email. **Steps:** 1. Code pulls the numbers (sales, new customers, tickets, collections) through APIs or queries. 2. Code does the maths, not the model. 3. The model writes the narrative: what changed since last week and what needs attention. **Rule:** the model never calculates. It only describes numbers that code has already computed. ## The tool stack | Layer | Options | |---|---| | Orchestration | n8n, Make or Zapier, or code (Go / Laravel / Node) for sensitive or high-volume flows | | Model | Claude, GPT or Gemini, or an open model on your own server if data must stay in-house | | Channels | WhatsApp Business Platform, email, website forms | | Data | The CRM and accounting system you already use | | Agent access | MCP (Model Context Protocol) if you want AI agents to use your systems as tools | I'm building **[Moharrik](https://moharrik.com)**, which is **still in development**. The idea is to bring WhatsApp, live chat, email campaigns and a CRM built from collected data together, with each part exposed as an MCP tool for agents. Every example above works with any stack from the table. ## Checklist before you start - [ ] You picked **one** repetitive process with clear inputs and outputs. - [ ] You measured the baseline: time, volume and error rate. - [ ] Model output is fixed-shape JSON, and code validates it. - [ ] There's a clear handoff path to a human. - [ ] Sensitive data (IDs, health or payment data) doesn't go to a model until you've checked hosting and terms. - [ ] Every automated decision is logged. - [ ] You estimated the monthly running cost. See [AI automation operating cost](https://fadymondy.com/en/blog/ai-automation-operating-cost). - [ ] You piloted it for two weeks on part of the work before rolling it out. ## Common mistakes 1. **Automating a broken process.** If staff don't understand the procedure, automation only speeds up the mess. 2. **Letting the model act.** The model proposes; code executes after validation. 3. **No measurement.** Without a before and after number, you can't tell whether it saved anything. 4. **An agent for everything.** Most cases need a fixed workflow with one AI step, not an autonomous agent. See [AI agents vs chatbots](https://fadymondy.com/en/blog/ai-agents-vs-chatbots-business). ## FAQ **Which process should I start with?** One that repeats often, takes text or documents as input, and where mistakes are easy to fix. WhatsApp replies and invoice extraction are good first picks. **Do I need a developer?** For a prototype, tools like n8n are enough. For sensitive or high-volume processes, tested code is safer. **Will AI replace staff?** In these examples it removes the repetitive work. People review, decide and handle the hard cases. **Want help building it?** See [AI business automation](https://fadymondy.com/en/ai/automation). --- Source: https://fadymondy.com/en/blog/ai-business-automation-practical-guide --- # Who Is Fady Mondy? Applied AI Engineer, Fractional CTO and Founder of TomatoPHP > A short, factual profile: what I build, the open-source projects I maintain, the roles I've held and the kind of work I take on. *2026-10-12T12:32:38Z* **The short answer:** I'm Fady Mondy, an Egyptian software engineer based in Cairo. I work as an **applied AI engineer and fractional CTO**: I design and build AI systems, SaaS products and developer tools, and I lead engineering teams. I founded **TomatoPHP**, an open-source ecosystem of Filament plugins for Laravel, and I created **Laravilt**, **ToGO**, **Zekra** and **Orchestra MCP**. ## What I build - **AI systems that run in production:** agents, RAG, MCP servers and automation, with the cost controls, evaluation and permissions they need to stay useful after the demo. - **SaaS products:** multi-tenant platforms, admin panels and APIs, mostly on Laravel and Go. - **Developer tools:** frameworks and plugins other engineers build on. ## Open source and products | Project | What it is | |---|---| | [TomatoPHP](https://tomatophp.com) | Filament plugins for Laravel: CMS, SEO, invoices, PWA, settings and more | | [Laravilt](https://laravilt.com) | A Laravel admin panel framework with a Vue or React frontend, MIT | | [ToGO](https://to-go.dev) | A full-stack Go + React framework with a Laravel-style CLI | | [Zekra](https://zekra.dev) | Shared long-term memory for AI agents | | [Orchestra MCP](https://orchestra-mcp.dev) | Tools for running and orchestrating MCP servers | | [Moharrik](https://moharrik.com) | A CRM and inbox with AI built in | | [CircleXO](https://circlexo.com) | A business app hub | ## Roles I've held | Years | Role | |---|---| | 2026 | CPTO, One Studio | | 2026 | Senior Engineering Manager, ID8 Media | | 2024–2026 | Tech Lead, iStoria | | 2024 | Technical Lead, Naqrat | | 2023 | Head of Engineering, Rize.gg | | 2022–2024 | Fullstack Team Leader, Queen Tech Solutions | | 2020–2021 | CTO, Lun Startup Studio | In those roles I owned architecture, delivery and hiring for product teams. Before software I was a **graphic designer and art director (2015–2020)**, which is why I care about how products look and read, not only how they run. ## Selected work - **Naqrat:** as Technical Lead, cut a core response time from about 6 seconds to about 35 ms. - **iStoria:** Tech Lead on the product's engineering team. - **Rize.gg:** Head of Engineering for the platform team. ## How I work with companies - **Fractional CTO:** technical leadership without a full-time hire. - **[AI integration](/en/ai/integration):** adding AI to an existing product without runaway costs. - **Product engineering:** building SaaS products and MCP servers end to end. ## FAQ ### Who is Fady Mondy? Fady Mondy is an Egyptian software engineer in Cairo. He works as an applied AI engineer and fractional CTO, founded TomatoPHP, and created Laravilt, ToGO, Zekra and Orchestra MCP. ### What is TomatoPHP? TomatoPHP is an open-source ecosystem of Filament plugins for Laravel, founded by Fady Mondy. It covers features such as CMS, SEO, invoicing, PWA and settings. ### What does Fady Mondy do? He designs and builds AI systems, SaaS products and developer tools, and leads engineering teams as a CTO or fractional CTO. ### How can I contact Fady Mondy? Through the [contact page](/en/contact), or on [LinkedIn](https://www.linkedin.com/in/fadymondy) and [X (@fadymondy)](https://x.com/fadymondy). ## Find me elsewhere [GitHub](https://github.com/fadymondy) · [LinkedIn](https://www.linkedin.com/in/fadymondy) · [X](https://x.com/fadymondy) · [YouTube](https://www.youtube.com/@FadyMondy) · [dev.to](https://dev.to/fadymondy) · [Behance](https://www.behance.net/fadymondy) Working on something where AI, product and engineering meet? [Get in touch](/en/contact). --- Source: https://fadymondy.com/en/blog/who-is-fady-mondy --- # Laravel AI Integration: Is There a LangChain for PHP, and What Should You Use? > LangChain is Python and JavaScript. Laravel teams have their own options: a provider client, a multi-provider layer, or a LangChain-style framework for RAG and agents. Which one fits which job. *2026-10-12T12:32:39Z* A question I get from Laravel teams: "We want to add AI. Is there a LangChain for Laravel, or do we need a Python service?" **The short answer:** you don't need Python. LangChain itself is Python and JavaScript, but PHP has three kinds of tools that cover the same ground: a **provider client** (such as `openai-php/laravel`) when you call one model, a **multi-provider layer** (such as Prism) when you want to switch between OpenAI, Anthropic, Gemini or a local model, and **LangChain-style frameworks** (such as LLPhant or Neuron AI) when you need RAG pipelines or agents. Start with the smallest one that does the job, and keep it behind your own service class. ## Do you need LangChain at all? LangChain bundles many things: model clients, prompt templates, document loaders, text splitters, vector stores, retrievers, tools and agents. Most Laravel features need one or two of these. | You're building | What you actually need | |---|---| | Summaries, classification, extraction | One model call with structured output | | A chat feature | A model client, conversation storage, streaming | | Search over your own documents (RAG) | Embeddings, a vector store, retrieval, a model call | | An agent that takes actions | Tool calling, a loop with a budget, authorization on every tool | The first two don't need a framework. The last two are where a LangChain-style library saves time. ## The three kinds of tools ### 1. A provider client `openai-php/laravel` wraps the OpenAI API with a Laravel facade and config. Anthropic and other providers have PHP clients too. Use one when a feature talks to one provider and you're happy to stay there. ### 2. A multi-provider layer **Prism** gives you one fluent API over several providers, including OpenAI, Anthropic, Gemini and Ollama, with text, structured output, tool calling and embeddings. Use it when you want to route different tasks to different models, or keep the option to switch providers without touching business code. ### 3. A LangChain-style framework **LLPhant** is a PHP framework inspired by LangChain, with document readers, splitters, embeddings, vector store adapters and question-answering chains. **Neuron AI** focuses on agents: tools, memory and RAG in PHP. Use one of these when you're building RAG or agents and don't want to write the plumbing yourself. ## The part no library does for you Whichever you pick, the hard parts of production AI are architecture, not the SDK: - **One boundary.** Call AI through your own use-case services, such as `SummariseTicket` or `ClassifyLead`, not from controllers. Then a library change touches one layer. - **Queues.** Most AI work, like embeddings, enrichment and batch summaries, belongs in Laravel queue jobs, not the request. - **Structured output.** Ask for JSON, validate it into a DTO, and reject anything that doesn't fit. - **Authorization.** If an agent can call a tool, the tool runs your normal policies. The model proposes; your app decides. - **Budgets.** Cap retries, tool steps and tokens per workflow, and log cost per tenant. I wrote about the cost side in detail in [Adding AI to a Laravel or Go product without runaway costs](/en/blog/add-ai-laravel-go-without-runaway-costs). ## Where RAG data should live If you already run PostgreSQL, `pgvector` is often enough for a Laravel RAG feature: embeddings sit next to the records they describe, and permissions stay in one database. A dedicated vector database makes sense at larger scale. I covered a private setup in [Building a private RAG stack on PostgreSQL](/en/blog/private-rag-postgres-pgvector-bm25-tei). ## When a separate Python service does make sense - You need a Python-only library, such as a specific model runtime or evaluation tool. - A data or ML team already owns Python services. - You run local models on GPUs, and that box has its own scaling needs. Even then, keep the Laravel side the same: a use-case service that calls an internal API instead of a provider. ## Honest limits - **PHP's AI ecosystem is smaller than Python's.** New techniques usually land in Python first. - **These libraries move fast.** Pin versions and read the changelog before upgrading. - **A framework won't fix a vague use case.** If you can't say what a good answer looks like, no library will make the feature reliable. ## FAQ ### Is there a LangChain for Laravel? Not LangChain itself, which is Python and JavaScript. PHP has LangChain-style frameworks such as LLPhant and Neuron AI for RAG and agents, and Prism for a single API over several model providers. ### Do I need Python to add AI to a Laravel app? No. Model APIs are HTTP, and PHP libraries cover model calls, structured output, tool calling, embeddings and RAG. A Python service only makes sense for Python-only tools or GPU workloads. ### What's the best way to integrate OpenAI into Laravel? Use a client such as `openai-php/laravel` or a multi-provider layer such as Prism, call it from your own service classes, run heavy work in queues, and validate structured output before using it. ### Can Laravel do RAG? Yes. Store embeddings in PostgreSQL with pgvector or in a vector database, retrieve the relevant chunks for a question, and pass them to the model. LLPhant and Neuron AI include RAG building blocks. ## Next steps Adding AI to a Laravel product and want it to stay maintainable as usage grows? See [AI integration](/en/ai/integration) or [get in touch](/en/contact). --- Source: https://fadymondy.com/en/blog/laravel-ai-integration-langchain-php --- # How to Ship an Official MCP Server for Your SaaS in 2 Weeks > A practical 2-week plan to build an official MCP server on your existing API: tool spec, OAuth and scopes, testing in Claude/ChatGPT/Cursor, docs and handover. *2026-10-11T11:43:43Z* Your customers are starting to ask a new question in sales calls and support tickets: *"Does it work with Claude?"* Sometimes it is ChatGPT or Cursor instead, but the request is the same. They want to ask their AI assistant to do real work inside your product, without copying data between tabs. The standard way to make that happen is an **MCP server**. The Model Context Protocol is the open protocol AI assistants use to discover and call tools in other products. If you already have a decent API, an official MCP server is a small, well-bounded project. Here is how I plan and ship one in about two weeks, and what to decide before anyone writes code. ## What an MCP server actually is (for a SaaS team) An MCP server is a thin layer that sits **beside** your product and talks to your existing API. It exposes a short list of *tools*, each with a name, a plain-language description and a typed input schema. The assistant reads those descriptions, decides which tool fits the user's request, and calls it. Three things follow from that: - **Your backend doesn't change.** The server is a client of your API, like your web app is. - **Your language doesn't matter.** I usually build in TypeScript or Go, or PHP for Laravel products, whatever your team can maintain. - **Tool design matters more than code volume.** Most of the work is deciding what the assistant should be able to do, and describing it so the model picks the right tool. There are two common ways to run one: **remote** (a hosted HTTP endpoint your cloud customers connect to with OAuth) and **local** (a package the user runs on their machine, which suits self-hosted installs). Many SaaS products start with remote. ## Why "official" matters If you don't ship one, someone else might. Community MCP servers for popular products appear quickly, and they usually ask users to paste a full-access API key into a config file. Your customers then run unvetted code with their production credentials, and you get the support tickets. An official server lets you control three things: which actions are exposed, how authentication works, and how your product is described to the assistant. ## The 2-week plan Two weeks is realistic when the API exists and is documented, and the first version focuses on the 10–20 actions people actually ask for. Here is the sequence I use. ### Step 0: a one-page tool spec (before any commitment) Before building, I read your API docs and write a one-page spec. It lists the proposed tools, what each one does, its inputs, whether it reads or writes, and which auth scope it needs. I offer this for free, because it is the cheapest way for both sides to see whether the project makes sense. A good spec answers: - What are the five things a user will ask the assistant to do on day one? - Which of those are read-only and which change data? - Which actions are destructive or expensive and need a clear warning? - What does the assistant need to *find* things (search, filters, IDs)? ### Days 1–3: tool design and scaffolding Turn the spec into tool definitions. Keep the list short and the names obvious. **Don't mirror every endpoint.** An assistant does better with `find_customer` and `create_invoice` than with forty CRUD endpoints that differ by one field. Write the descriptions as instructions to the model: when to use the tool, what it returns, and what *not* to use it for. In my experience this is the work that most changes how well the server performs. On my own servers, tools live in a **registry**: one list the protocol layer reads. Adding a tool later means adding one entry, not touching the transport or auth plumbing. That is how the MCP surface on fadymondy.com's issue tracker is built, and it keeps the server easy to grow after handover. ### Days 4–7: authentication and permissions This is where an official server earns its name. - **OAuth for remote servers.** The MCP authorization spec is built on OAuth 2.1. On [Zekra](https://zekra.dev/en/docs/mcp)'s remote MCP endpoint I implemented the full flow: PKCE (S256), dynamic client registration and per-brain consent, with access re-checked against current membership on every call. - **Scoped API keys as a fallback.** In [Moharrik](https://moharrik.com), keys are read-only by default and expire after 90 days. - **Read and write separated.** Mark read-only tools as read-only (MCP tool annotations support `readOnlyHint` and `destructiveHint`). On Zekra, adding read-only annotations let AI coding agents and other MCP clients run recall and list tools without an approval prompt, while writes still ask. - **Make agent actions traceable.** When an assistant writes data, record that it was an agent. On my issue tracker, comments created over MCP are stored with `author_kind = 'agent'`, so a human can always tell them apart. ### Days 8–10: test against real assistants Unit tests aren't enough. Connect the server to Claude, ChatGPT and Cursor and run the prompts from the spec. Watch for: - the assistant picking the wrong tool (fix the description, not the model); - tools returning too much data (paginate and trim; context is not free); - vague errors (return messages the assistant can act on, like "customer not found, try search_customers"). ### Days 11–14: docs, listing and handover - **Setup guides** for each assistant: one page each, with the exact config. - **A permissions page** that explains in plain language what each scope allows. In Moharrik this explainer is generated from the tool registry, so it can't drift from the code. - **Listings** in the main MCP directories, so users can find the official server. - **Handover.** The repository, deployment notes and a short walkthrough. The code ships under your name and licence. ## What stretches past two weeks Be honest about scope up front. These usually add time: - no public API yet, or an API that can't do what users ask; - complex multi-tenant permissions that aren't modelled in the API; - long-running jobs that need progress reporting or webhooks; - a self-hosted package *and* a remote endpoint in the first release. None of them blocks a project. They belong in the spec so the plan and the price stay fixed. ## Checklist before you start - [ ] Your API is documented and stable enough to build against. - [ ] You have listed the top 5 user requests the assistant should handle. - [ ] You know which actions must never run without a confirmation. - [ ] You have decided on remote, local or both. - [ ] Someone on your team will own the server after handover. ## Proof, not promises I build MCP servers for my own products, and they run in production: - **[Orchestra MCP](/en/projects/orchestra-mcp)**: an AI-agentic IDE framework with a plugin-host architecture. - **[Zekra](/en/projects/cabrain)**: shared memory for AI agents, served over a remote MCP endpoint with OAuth 2.1. - **[Moharrik](https://moharrik.com)**: a CRM with inbox and WhatsApp that is fully operable over MCP. - **[Nasaq UI](https://mcp.nasaqui.com)**: an open-source design system with its own MCP server. If you want the same for your product, see [MCP server development](/en/services/mcp-server-development). The process starts with the free one-page tool spec. If you run a Laravel or Filament product and need more than the MCP layer, there is also [white-label Laravel and Filament development](/en/services/white-label-laravel-filament). [Ask for your free tool spec](/en/contact). --- Source: https://fadymondy.com/en/blog/ship-official-mcp-server-for-saas-in-2-weeks --- # Taking Over a Production Platform: What to Fix in the First 90 Days > Taking over an existing production platform is not the moment for a rewrite. The first 90 days should reduce uncertainty: map the system, make failures visible, protect critical paths, understand delivery bottlenecks and only then change architecture. A practical stabilization playbook for engineering leaders. #EngineeringLeadership #ProductionEngineering #Scalability #Observability #TechnicalDebt #Laravel #SaaS *2026-09-17T09:41:32Z* # Taking Over a Production Platform: What to Fix in the First 90 Days Taking responsibility for an existing production platform is very different from starting a greenfield project. The system already has users, revenue, operational habits, technical debt, integrations, deployment history and undocumented assumptions. You cannot stop everything while the engineering team redraws the architecture. And you should not assume that the code that looks worst is the thing hurting the business most. The first job is not modernization. It is **reducing uncertainty**. > **Before changing the system, make the system understandable. Before making it faster, make failure visible. Before rewriting it, learn why it evolved this way.** A useful first-90-days plan therefore moves through three broad phases: ```text Days 1–30 → Understand and stabilize Days 31–60 → Control and simplify Days 61–90 → Improve and prepare to scale ``` The dates are not rigid deadlines. A serious incident can change the order immediately. The value is in the sequence of priorities. ## Do not begin with a rewrite A new technical leader can quickly find code they would not have written themselves. That is not evidence that the platform needs rewriting. Existing code contains years of business decisions, edge cases and operational knowledge. Some of it may be poor. Some may look poor because the original constraint is no longer visible. A rewrite started before understanding the system creates two simultaneous platforms: - The production system that still needs support. - The replacement system consuming engineering capacity. Now the team has twice the surface area and the business still needs features. Rewrite only when evidence shows that incremental change cannot reasonably solve the actual constraint. ## Day one: establish the critical business paths Do not start by reading every repository from top to bottom. Start with the product. Which workflows must work for the business to operate? For a SaaS platform these might include: ```text Sign up → Authentication → Subscription/payment → Core product action → Notifications/integrations → Reporting ``` For a marketplace they might be search, order creation, payment, fulfilment and refund. For a learning product they may be authentication, content delivery, progress tracking, quizzes and subscription state. The exact paths differ. The principle does not: > **Technical priority should begin with business-critical flows.** If one obscure admin page is slow, that is different from authentication intermittently failing. ## Build a system map before an architecture diagram Architecture diagrams often show what people believe exists. A system map should show what actually participates in production. Inventory: - Applications and services. - Databases and caches. - Queues and workers. - Object storage. - Search systems. - Scheduled jobs. - External APIs. - Payment providers. - Authentication providers. - Email/SMS/push services. - Analytics. - Monitoring and error tracking. - CI/CD pipelines. - Cloud accounts and deployment environments. - DNS/CDN/WAF layers. - Secrets and configuration sources. Then map dependencies. ```text Mobile/Web ↓ API/Application ↓ DB · Cache · Queue · Storage ↓ Workers / Integrations ↓ External providers ``` You are looking for hidden single points of failure and hidden ownership. ## Find out how production changes reach users One of the first questions I want answered is: **What exactly happens between merging code and users receiving it?** Document: ```text Commit → CI → Tests → Build → Deploy → Migrations → Health checks → Traffic → Monitoring ``` If parts are manual, record them. If one person knows a secret deployment step, that is operational risk. If migrations run without visibility, that is risk. If rollback is theoretical, that is risk. You do not need to automate everything in week one. You need to know where the danger is. ## Observability before optimization A platform cannot be stabilized from user complaints alone. At minimum, you need enough visibility to answer: - Is the application healthy? - Which endpoints or jobs are failing? - What changed before the failure? - Are database queries slowing down? - Are queues building up? - Are workers crashing? - Are external providers timing out? - Which version is running? - Is the problem global or isolated? Useful signals usually include application errors, structured logs, request latency, database health, queue depth/age, worker failures, infrastructure metrics and deployment markers. Do not collect telemetry merely because a dashboard looks professional. Collect it because it helps someone make a decision. ## Alerts should represent action An alert that nobody understands or acts on becomes noise. For each important alert, define: - What condition triggered it? - Why does it matter? - Who owns it? - What should they check first? - When should it escalate? If the team receives hundreds of unactionable alerts, the monitoring system can hide incidents rather than reveal them. Alert quality matters more than alert quantity. ## Learn the incident history Past incidents are one of the fastest ways to understand a mature platform. Look for recurring patterns: - Database saturation. - Queue backlog. - Memory exhaustion. - Third-party failures. - Deployment regressions. - Data inconsistencies. - Expired credentials. - Storage limits. - Slow queries. - Race conditions. - Cache failures. Ask not only “what broke?” but: **Why was the system allowed to reach that state without earlier detection or containment?** The answer often identifies a higher-leverage fix than the original bug. ## Separate symptoms from constraints A slow API endpoint is a symptom. The constraint might be an unindexed query, N+1 access, an external API in the request path, lock contention, serialization cost, oversized payloads or insufficient capacity. High cloud cost is a symptom. The constraint might be idle resources, inefficient queries, overprovisioning, excessive logs, expensive network traffic or architecture designed for a workload that no longer exists. Do not create roadmap items such as “improve performance” without identifying what constrains performance. ## Understand the data before changing the code In an established platform, the database often contains more truth about the product than documentation does. Inspect: - Largest tables. - Growth rate where data is available. - Indexes. - Slow queries. - Foreign-key and integrity assumptions. - Soft-delete behavior. - JSON/unstructured fields. - Background cleanup. - Retention. - Replication/backups. - Migration history. A code refactor that ignores data shape can make production worse even when the new code is cleaner. ## Backups are not enough; verify recovery A dashboard saying “backup successful” is comforting but incomplete. You need to understand: - What is backed up? - How often? - For how long? - Where is it stored? - Who can restore it? - How long would recovery approximately take under current procedures? - Have restore procedures actually been tested? The goal is not a theoretical backup. The goal is recoverability. ## Security: fix exposed risk before architecture elegance Early security review should prioritize concrete exposure. Examples: - Shared credentials. - Secrets committed to repositories. - Excessive production access. - Missing MFA for critical infrastructure. - Publicly exposed services. - Unpatched critical dependencies. - Weak authorization boundaries. - Missing audit trails for sensitive actions. - Overpowered API tokens. A beautiful service decomposition does not compensate for an exposed production database. ## Map ownership, not only technology A platform can be technically healthy and operationally fragile because nobody knows who owns what. Create ownership for critical areas: ```text Authentication → owner Payments → owner Mobile API → owner Infrastructure → owner Data pipeline → owner Notifications → owner ``` Ownership does not mean only one person may touch the code. It means someone is responsible for understanding health, changes and risks in that area. ## The team is part of the architecture During the first month, understand how work actually moves. Ask: - How does a requirement become engineering work? - Who decides priority? - How large are work items? - How are changes reviewed? - What blocks releases? - How is QA performed? - How are production bugs handled? - How often does work return because requirements were unclear? A delivery problem is not always a developer-performance problem. The bottleneck can be requirements, ownership, reviews, QA, dependencies, deployment or architecture. ## Days 1–30: the output should be a risk map By the end of the first phase, I want more than a list of bugs. I want a map such as: ```text Risk / constraint Business impact Evidence Current owner Immediate containment Longer-term fix Confidence ``` This changes conversations with product and business teams. Instead of “the codebase is bad,” engineering can say: > This queue delays a critical workflow under load; here is the evidence, containment and proposed fix. That is actionable technical leadership. # Days 31–60: control and simplify Once critical risks are visible, the second phase is about making production change safer and removing recurring operational friction. ## Fix the repeat offenders first Do not sort technical debt by how ugly the code looks. Prioritize issues that repeatedly create: - Incidents. - Customer impact. - Delivery delay. - Security exposure. - High operating cost. - Manual operational work. A boring reliability fix can create more business value than an exciting architecture project. ## Create a safe deployment baseline The exact pipeline depends on the product, but the goal is consistent: **A normal change should be boring to release.** Improve the weakest points in: - Automated tests. - Static analysis/linting. - Build reproducibility. - Environment configuration. - Database migration safety. - Health checks. - Deployment visibility. - Rollback/roll-forward procedures. - Feature flags where appropriate. Do not chase a perfect CI/CD diagram. Remove the most dangerous uncertainty first. ## Put critical workflows under tests A mature platform can have thousands of tests and still miss the paths that matter. Or it can have few tests and be afraid to change anything. Start from risk. Protect business-critical workflows, authorization boundaries, money-changing logic, data transformations and bugs that have already escaped to production. Every serious regression is a candidate for a test that prevents the same class of failure. Test count is not the objective. Confidence to change the system is. ## Reduce production access If engineers routinely SSH into servers or edit production data manually, ask why. Sometimes emergency access is necessary. But frequent manual production intervention usually signals missing tooling. Replace repeated manual operations with controlled commands, admin workflows, audited jobs or deployment automation. The goal is not to prevent engineers from solving incidents. It is to make the safe path easier than the dangerous path. ## Make background work observable Queues can hide enormous amounts of operational risk. Track at least what matters for the platform: - Pending work. - Age of oldest job. - Failure rate. - Retry behavior. - Worker health. - Processing latency. A queue with 100 jobs may be healthy if jobs complete in seconds. A queue with 10 jobs may be broken if the oldest has been waiting for hours. Context matters. ## Put limits around external dependencies Every third-party API is part of your production system whether you own it or not. Define timeouts, retries, rate-limit handling and failure behavior. Ask what happens if the provider is unavailable for five minutes, one hour or a day. Should the user request fail? Should work queue for later? Can the product operate in degraded mode? Do not let an optional integration become an accidental single point of failure for the core platform. ## Remove hidden synchronous work A common mature-platform problem is too much work inside the web request: ```text User request → database writes → third-party API → email → analytics → document generation → response ``` Some of that work may be moved to background jobs when business semantics allow it. This can improve latency and resilience, but do not move work to a queue blindly. You now need idempotency, retry safety and job observability. Asynchronous architecture trades one set of problems for another. Make the trade deliberately. ## Attack expensive queries with evidence Do not start by adding indexes everywhere. Use query data. Identify expensive/high-frequency queries, inspect execution plans, understand data distribution and then change indexes or access patterns. An index improves reads but has storage and write costs. Performance work should be evidence-driven. ## Control technical debt through the roadmap A separate “technical debt backlog” can become a graveyard. Tie debt to business outcomes: ```text Debt: synchronous provider call Impact: checkout fails when provider is slow Work: decouple non-critical step Outcome: checkout no longer depends on provider latency ``` Now product leadership can understand why the work matters. ## Standardize the way incidents are learned from You do not need a bureaucratic postmortem for every small bug. For meaningful incidents, capture: - What happened? - User/business impact. - Timeline. - Detection. - Root/contributing factors. - Containment. - What prevented earlier detection? - Follow-up actions and owners. Avoid turning incident review into a search for the engineer who made the mistake. Systems improve when teams can expose failure honestly. ## Days 31–60: the output should be control At this point the platform should be easier to reason about. You should know what is deployed, see important failures, have clearer ownership, understand major operational constraints and have safer paths for routine changes. That foundation is what makes deeper architecture work possible. # Days 61–90: improve and prepare to scale Only after stabilization do I want to make larger structural decisions. ## Build the architecture roadmap from measured constraints Now you can ask: - Which database limit will hurt first? - Which service has a different scaling profile? - Which queue needs partitioning? - Which external dependency needs decoupling? - Which table needs archival/partitioning? - Which module creates the most change risk? - Which infrastructure spend is unjustified? This produces a roadmap based on observed constraints rather than architecture fashion. ## Do not split the monolith because it is a monolith A large Laravel application is not automatically a problem. A microservice architecture is not automatically scalable. Split a boundary when there is a reason such as: - Independent scaling. - Different reliability requirement. - Security/isolation boundary. - Separate ownership. - Different runtime requirement. - A domain that genuinely needs independent deployment. Otherwise, improving modularity inside the existing application may be cheaper and safer. ## Capacity planning starts with workload shape “Can this handle ten million users?” is not a useful capacity question by itself. Ten million registered users can create very different load depending on activity. Measure the dimensions that matter: - Concurrent users. - Requests per second. - Read/write ratio. - Queue throughput. - Peak-to-average traffic. - Data growth. - File/storage growth. - Expensive endpoint frequency. - External API quotas. Scale the workload, not the marketing number. ## Load-test critical paths, not vanity endpoints A homepage returning 200 OK under heavy synthetic traffic proves little if the real bottleneck is booking creation, checkout, content progress or report generation. Load tests should model important user flows and realistic data access. Then observe the whole system: application, database, cache, queues and dependencies. The purpose is to discover the first constraint safely before customers discover it in production. ## Define reliability targets that match the business Not every internal admin screen needs the same reliability target as authentication or payments. Identify critical capabilities and define meaningful service indicators around them. Examples can include successful authentication, successful order creation, API latency or job completion time. Targets should help teams decide when reliability work outranks feature work. Do not create SLOs only because the acronym belongs in an engineering deck. ## Cost optimization comes after attribution Cloud cost discussions often begin with “AWS is expensive” or “we should move providers.” First understand where cost comes from. Attribute spend to compute, database, storage, network, logs, third-party services and workloads where possible. Then optimize the expensive constraint. Moving an inefficient workload to another cloud may only move the invoice. ## Decide what should be modernized — and what should be left alone By this point, you have enough evidence to classify legacy areas: **Keep:** stable, low-risk, low-change code that does its job. **Improve:** important areas where incremental refactoring reduces risk. **Replace:** components whose constraints cannot reasonably be solved incrementally. **Retire:** features/services that no longer justify their operational cost. Not touching stable legacy code is sometimes an architecture decision. ## Create an engineering scorecard that drives decisions Avoid a giant dashboard of metrics nobody uses. Choose a small set that reflects delivery and production health. Depending on the product, that might include: - Critical incident trend. - Deployment health. - Change failure/regression signals. - Critical endpoint latency/errors. - Queue health. - Database saturation/slow-query signals. - Lead time or blocked-work indicators. - Infrastructure cost trends. Metrics should create questions and actions, not performance theatre. ## Build a roadmap in horizons A useful engineering roadmap after the takeover can separate: ### Now Risks that can hurt users/business today. ### Next Structural improvements that reduce recurring delivery or operational cost. ### Later Scale and modernization work justified by expected growth. This prevents long-term architecture work from hiding immediate reliability risk, and prevents urgent bugs from consuming every future investment. ## Communicate in business language A technical leader taking over an existing platform needs to translate engineering risk. Instead of: > We need to refactor the queue architecture. Explain: > This workflow can currently delay customer-facing processing when the external provider slows down. Decoupling it reduces that dependency and gives us controlled retries. Instead of: > The database schema is terrible. Explain: > This table is creating measurable query pressure on a critical workflow; here is the change and the expected operational effect we will verify. The architecture is technical. The prioritization is business. ## What I would want by day 90 Not a perfect platform. Not a completed rewrite. Not zero technical debt. I would want: - A reliable system/dependency map. - Clear critical business flows. - Actionable production observability. - Known top risks and owners. - A safer deployment path. - Better protection for critical workflows. - A tested understanding of backup/recovery. - Fewer recurring manual operations. - Evidence about performance and scale constraints. - A technical roadmap tied to business impact. Most importantly, the team should be making fewer decisions from guesses. ## The first 90 days are about earning the right to make bigger changes When you inherit a large production platform, architecture opinions arrive immediately. Evidence takes longer. The job of the first phase is to create enough visibility and operational control that larger decisions become defensible. That is why my preferred sequence is: ```text Understand → Observe → Stabilize → Control → Measure → Improve → Scale ``` Not: ```text Arrive → Rewrite ``` > **The best first 90 days do not make the platform look newer. They make the next 900 days safer to build.** **Taking over an existing SaaS or production platform and need to stabilize delivery, architecture and infrastructure without stopping the business?** I work with product and engineering teams on platform takeovers, technical leadership, architecture, production reliability and modernization — turning unknown technical risk into an evidence-based roadmap. --- **Related:** Engineering Leadership, Custom Software Development, Technical Debt: When Is It a Business Problem?, and Why Software Projects Are Late When Engineers Are Busy. --- Source: https://fadymondy.com/en/blog/taking-over-production-platform-first-90-days --- # What Does AI Automation Really Cost to Run? Beyond Tokens and API Pricing > The model bill is only one line in the cost of AI automation. Retrieval, infrastructure, retries, monitoring, human review, integrations, failures and maintenance can matter just as much. Measure cost per successful business task, not cost per API call. #AIAutomation #AICost #AIForBusiness #LLMOps #AIEngineering #BusinessAutomation *2026-09-17T06:46:45Z* # What Does AI Automation Really Cost to Run? Beyond Tokens and API Pricing When teams estimate an AI automation project, they often open a model pricing page, estimate tokens and call that the operating cost. That number is useful, but incomplete. A production AI workflow may also pay for retrieval, embeddings, reranking, storage, queues, observability, external APIs, retries, human review, fallbacks, integration maintenance and the cost of failed tasks. The business metric that matters is rarely **cost per model call**. It is closer to: > **Cost per successfully completed business task.** That changes how you design and optimize the system. ## Start with the unit of work Before calculating cost, define what the system actually completes. Examples: - One support case resolved. - One document processed correctly. - One qualified lead created in the CRM. - One internal question answered with sufficient evidence. - One approved workflow action completed. If you measure only tokens, a workflow can look cheap while still requiring employees to repair many outputs. If you measure only employee time saved, you may miss infrastructure and review costs. Choose a business-level unit first. ## A practical cost equation For a given period, think of operating cost as: **Model + Retrieval + Infrastructure + External services + Human review + Failures/retries + Monitoring/maintenance** Then divide by successful outcomes: **Cost per successful task = Total operating cost / Successfully completed tasks** This is deliberately broader than API pricing. It lets two architectures be compared on the same business outcome. ## 1. Model inference cost This is the visible part. Depending on architecture, model cost can include input tokens, output tokens, cached context, reasoning usage, image/audio processing or multiple model calls inside one task. One user action does not necessarily equal one inference call. An agent may classify the request, retrieve context, call a tool, inspect the result and generate a final response. A RAG workflow may rewrite a query, rerank results and generate an answer. Count the full execution path. ## 2. Context is a cost multiplier Sending large histories or entire documents on every request can quietly increase spend and latency. More context is not automatically better context. Ask what the model actually needs for this step. Useful controls include selecting only relevant conversation turns, retrieving targeted passages, summarizing older state, storing structured state outside the prompt and avoiding repeated static instructions where platform caching can help. Context engineering is both a quality problem and a cost problem. ## 3. Retrieval has an operating cost too RAG is not free because the final model sees fewer documents. A retrieval system can include ingestion, chunking, embeddings, indexing, vector or lexical search, reranking, permission filtering, storage and re-indexing when documents change. For a small knowledge base this may be modest. At larger scale, architecture choices matter. The important comparison is whether retrieval improves successful outcomes enough to justify its complexity. ## 4. Agents can multiply calls An agent that can loop indefinitely is also a cost-control problem. One business task might trigger multiple reasoning steps, tool calls and retries. Set boundaries such as maximum steps, maximum tool calls, timeout budgets, allowed tools and escalation conditions. The goal is not to minimize every call. It is to prevent uncontrolled execution that does not improve the outcome. ## 5. Tool and external API costs AI automation often depends on services outside the model: search, OCR, transcription, email, messaging, maps, enrichment, payments or proprietary business APIs. These costs should be attributed to the workflow when they are required to complete it. A cheap model combined with expensive enrichment may cost more than a stronger model that needs fewer external steps. Again, compare the complete task. ## 6. Infrastructure is not just GPU hosting Hosted-model architectures still need application infrastructure. Depending on the system, that may include API servers, queues, workers, databases, caches, object storage, vector search, logs, tracing and background jobs. Self-hosted models add another layer: compute capacity, model serving, scaling, utilization, deployment, monitoring and operational expertise. A local model can reduce variable inference spend for the right workload, but unused capacity is still a cost. ## 7. Human review can dominate the economics Suppose an automation produces a result in seconds but an employee must spend several minutes verifying every output. The system may still be valuable, but the review cost belongs in the calculation. Track: - Percentage of tasks reviewed. - Average review time. - Percentage corrected. - Percentage escalated. - Severity of errors caught. The objective is not necessarily zero human involvement. High-risk workflows may intentionally require approval. The important thing is to price that operating model honestly. ## 8. Failed tasks are part of cost If a task consumes model calls, retrieval and employee time but fails to produce a usable result, those resources do not disappear from the economics. Measure first-pass success and eventual success separately. For example: **Attempt → Validation failure → Retry → Human review → Success** is more expensive than: **Attempt → Success** even if both appear as one completed task in a dashboard. ## 9. Retries need a reason Blind retries can turn one bad request into several paid bad requests. Retry when the failure is plausibly transient or a controlled second strategy can improve the result. Do not retry indefinitely when the input is missing required information or the workflow requires a human decision. Classify failure types and give each one an explicit path. ## 10. Observability is an operating requirement Production AI needs more than application uptime. You may need visibility into model/provider, prompt or workflow version, latency, token usage, tool calls, retrieval results, validation failures, fallback path, human escalation and final task outcome. Without that information, cost optimization becomes guesswork. You cannot reliably answer which step is expensive or which version improved successful completion. ## 11. Evaluation is part of maintenance Models change. Prompts change. Documents change. Business rules change. A workflow that worked last month can regress after a seemingly small update. Maintaining an evaluation set and running relevant checks has a cost, but operating without evaluation can make failures much more expensive. Treat evaluation as part of production engineering, not a one-time pre-launch exercise. ## 12. Integration maintenance is easy to underestimate A useful AI automation usually connects to real systems. APIs change. Authentication expires. CRM fields evolve. Permissions change. Teams introduce new workflows. The AI layer may be stable while the surrounding business environment moves. Budget for maintaining the integration boundary, not just the model prompt. ## Variable cost vs fixed cost It helps to separate the two. **Variable costs** grow roughly with usage: model calls, some APIs, messages, per-request search and human review. **Fixed or step-fixed costs** may include reserved compute, base infrastructure, monitoring subscriptions and engineering maintenance. This distinction matters when volume changes. A hosted API may be economical at low or irregular volume because you pay mostly for use. Self-hosted inference may become interesting for stable workloads where infrastructure can be utilized efficiently — but there is no universal crossover point. Measure your workload. ## The cheapest model is not necessarily the cheapest workflow A smaller model may require more retries, more elaborate prompts or more human correction. A larger model may cost more per call but complete the task more reliably. Compare: **Cost per attempt** versus **cost per successful outcome**. For a simplified illustration, imagine Model A costs one unit per attempt and succeeds 60% of the time, while Model B costs 1.5 units and succeeds 95% of the time. Before even adding review cost, the effective economics are already different from the headline call price. The percentages here are illustrative, not market benchmarks. Your evaluation data should determine the real comparison. ## Routing can reduce cost without lowering quality everywhere Not every request needs the same model. A production system can route tasks by complexity or risk: **Simple extraction → smaller model** **Complex reasoning → stronger model** **Exact lookup → database/API, no LLM** **Known rule → deterministic code, no LLM** **Low-confidence/high-risk → human review** This is usually more useful than forcing one model to handle every step. ## Caching can help, but cache the right thing Some workloads repeat context or results. Potentially reusable elements include static prompt context, embeddings for unchanged documents, deterministic tool results with safe freshness windows and generated artifacts that do not need recomputation. But caching live account state or rapidly changing business data can create correctness problems. Cost optimization cannot ignore freshness. ## Batch work when latency is not important Not every AI task needs an immediate response. Back-office classification, document enrichment, metadata generation or analytics may be processed asynchronously or in batches. That can improve infrastructure utilization and make rate limits easier to manage. Do not pay interactive-system complexity for a workflow that can finish later. ## Reduce AI surface area One of the strongest cost optimizations is architectural: use AI only where it adds capability. A workflow might be: **Message → LLM extraction → Validation → Rules → Database → Notification** rather than: **Message → Agent decides everything → Agent calls every system → Agent generates every intermediate step** The first architecture may need one bounded inference call. The second may need many. Use deterministic software for deterministic work. ## Cost controls should exist before scale Useful guardrails can include per-user or per-tenant limits, maximum agent steps, maximum context size, request timeouts, provider budgets, queue backpressure and human escalation. These are not only financial controls. They also protect reliability. A bug that creates an execution loop is both an engineering incident and a billing incident. ## Multi-tenant AI needs cost attribution In a SaaS product, total monthly AI spend is not enough. Track usage by tenant, feature and ideally workflow outcome. Two customers on the same subscription can create radically different AI load. Without attribution, pricing and margin decisions become difficult. This is especially important when AI is bundled into a flat subscription. ## Build a cost dashboard around outcomes A useful operational dashboard might show: - Tasks attempted. - Tasks successfully completed. - First-pass success rate. - Model cost. - External API cost. - Human review time. - Average latency. - Retry rate. - Escalation rate. - Cost per successful task. For revenue-related workflows, you may also connect downstream business outcomes where attribution is reasonable. The goal is to understand the system, not produce a vanity token chart. ## Example: support automation Imagine an AI support workflow. The naive calculation is: **Monthly model tokens = AI cost.** A better calculation includes: **Customer message → classification → retrieval → answer generation → validation → possible tool call → possible human review → final resolution** Now compare the cost per resolved case with the previous support process. Also measure whether resolution quality, response time or escalation patterns changed. Only then can you judge the operating economics. ## Example: document processing A document workflow may include upload, OCR, classification, extraction, validation, database write and exception handling. If 20% of documents require manual correction, that correction belongs in cost. The biggest optimization may not be switching models. It may be improving input quality, validation, document routing or handling one problematic document type separately. Optimize the bottleneck, not the most visible invoice. ## Example: an AI agent An agent receives a task and can use several tools. Track the execution trace: **Task → Reason → Tool A → Result → Tool B → Validation → Completion** If successful tasks average three tool calls but failed tasks average twelve, the failure path is consuming disproportionate resources. That tells you where to investigate. Maybe the agent needs a better stopping condition, missing data detection or a narrower tool set. ## A practical pre-production cost test Before launch, run a representative evaluation set and record for every task: 1. Number of model calls. 2. Input/output usage. 3. Retrieval operations. 4. External tool calls. 5. Latency. 6. Validation result. 7. Retry count. 8. Human review time. 9. Final success/failure. Then estimate expected volume using ranges rather than one optimistic number. Test low, expected and high usage scenarios. This produces a much more useful operating model than multiplying average tokens by expected users. ## Do not optimize cost before measuring quality A cheaper system that produces worse outcomes may be more expensive overall. Establish the acceptable quality and safety threshold first. Then optimize within it. Possible sequence: **Correctness → Safety → Reliability → Observability → Cost optimization** For some applications latency belongs near the front as well. The order can vary, but raw token price should not override the business requirement. ## What should a company ask before approving AI automation? Ask: - What is one successful task? - What is the current cost of that task? - How many tasks occur per month? - What percentage can be deterministic? - How many model calls does the AI path require? - What other services does it depend on? - How often will humans review outputs? - What happens when the model fails? - What are the fixed infrastructure costs? - How will costs be attributed by workflow or tenant? - What quality threshold must be preserved? - How will we know if economics improve after launch? If the architecture cannot answer these questions, the cost estimate is probably incomplete. ## AI cost is an architecture problem Model pricing matters, but architecture determines how many calls happen, how much context is sent, which tasks need AI, how failures behave and how much human work remains. That is why two systems using the same model can have very different economics. The strongest optimization is often not negotiating a cheaper token. It is designing a workflow that uses intelligence only where intelligence creates value. **Planning an AI automation and want to understand its real operating economics before scaling it?** I help businesses design AI workflows around measurable outcomes, controlled model usage, reliable integrations, evaluation and cost visibility — from architecture through production. --- **Related:** AI Automation, AI ROI, Custom AI System Cost, Local LLM vs Hosted AI, AI Automation vs Traditional Automation and When Your Business Should NOT Use AI. --- Source: https://fadymondy.com/en/blog/ai-automation-operating-cost --- # Full-Time CTO vs Fractional CTO vs Technical Consultant: Which Does Your Company Need? > Do you need a full-time CTO, a Fractional CTO, or a technical consultant? The titles overlap, but the engagement models solve different leadership problems. *2026-10-14T10:39:48Z* # Full-Time CTO vs Fractional CTO vs Technical Consultant: Which Does Your Company Need? > **Quick answer.** A **technical consultant** (often called a CTO consultant) is hired for a defined problem, and ownership returns to your team when the deliverable is done. A **fractional CTO** owns technology decisions part-time and follows them through over months. A **full-time CTO** is right when technology needs daily executive ownership. If you're unsure, start by writing down which responsibilities nobody owns today. A founder says: > “We need a CTO.” That can mean very different things. Maybe the engineering team has no technical leader. Maybe the company is about to rebuild a product and needs architecture decisions. Maybe hiring has started but nobody can properly evaluate senior engineers. Maybe investors or enterprise customers are asking technical questions the founders cannot confidently answer. Or maybe there is one difficult problem — cloud cost, scalability, AI architecture, security, technical due diligence — that needs an experienced specialist for a limited period. Those situations do not automatically require the same engagement model. A full-time CTO, Fractional CTO and technical consultant can all provide senior technical expertise, but they differ in **ownership, continuity and scope**. The useful question is not: > “Which title sounds more senior?” It is: > **What technical responsibility does the company need someone to own?** ## The short version A **full-time CTO** makes sense when technical leadership is a permanent executive responsibility requiring deep daily involvement. A **Fractional CTO** can make sense when the company needs ongoing senior technical ownership but does not yet need — or cannot justify — that leadership as a full-time executive role. A **technical consultant** is usually a better fit when the company has a defined problem, decision or project and needs specialist advice or delivery without transferring broad technical ownership. There is overlap, and the exact responsibilities should always be written explicitly. ## Start with responsibility, not hours It is tempting to define the difference like this: - Full-time CTO: 40 hours. - Fractional CTO: fewer hours. - Consultant: occasional calls. That misses the important distinction. Two people can both work one day per week and have completely different responsibilities. One may advise on architecture and leave the decision to the internal team. The other may own the technical roadmap, run engineering leadership meetings, approve architecture, help hire the team and report technology risks to the CEO. The second relationship is much closer to fractional executive leadership. So begin with an ownership map. ## What does a full-time CTO typically own? The role varies dramatically by company stage, but a full-time CTO can be responsible for areas such as: - Technology strategy. - Engineering organization. - Architecture. - Technical roadmap. - Hiring and leadership development. - Security and operational risk. - Infrastructure strategy. - Technical budgeting. - Build-versus-buy decisions. - Product and engineering alignment. - Executive communication. - Technical due diligence. In an early startup, the CTO may still write significant code. In a larger organization, the role may be much more about leadership, organization design, budgets, risk and executive decisions. The title alone does not define the job. ## When a full-time CTO becomes appropriate A permanent CTO becomes more compelling when several of these are true: - Technology is central to the company's product or competitive advantage. - Engineering decisions happen every day and require executive ownership. - The engineering organization is growing. - Multiple technical leaders need alignment. - Hiring and retention require continuous leadership. - Technology risk materially affects the business. - Product, commercial and technical roadmaps must be coordinated continuously. - The company needs a long-term executive accountable for technology outcomes. At that point, technical leadership is not a project. It is an organizational function. ## What does a Fractional CTO actually mean? A Fractional CTO is not simply “a cheaper CTO.” The useful model is **part-time executive technical ownership**. The Fractional CTO works with the company continuously but for only a portion of their capacity. Responsibilities might include: - Setting technical priorities. - Reviewing architecture. - Creating an engineering roadmap. - Establishing delivery practices. - Hiring or evaluating engineers. - Mentoring an internal technical lead. - Managing technical risk. - Improving infrastructure and engineering economics. - Helping founders make product/technology trade-offs. - Preparing the company for a future permanent CTO. The exact scope matters more than the title. ## When a Fractional CTO can be useful This model is often worth considering when the company has real technical complexity but does not yet have enough executive technical work for a permanent CTO. Examples: ### A non-technical founding team has a product and developers Development is happening, but nobody represents technology at the leadership level. The company may need someone who can translate business goals into technical priorities and hold engineering decisions together. ### A startup is moving from MVP to production The MVP worked, but now the team is dealing with reliability, security, architecture, hiring and scaling decisions. The technical problem changed from “can we build it?” to “can we operate and evolve it?” ### The company has engineers but no senior technical manager A strong engineering team can still become inefficient without clear ownership of architecture, priorities and delivery standards. ### The business needs to hire its first senior engineering leader A Fractional CTO can help define the role, evaluate candidates and reduce the chance of hiring for the wrong problem. ### The existing technical lead needs executive support Sometimes the company does not need to replace its lead. It needs someone more experienced to help with strategy, organizational design and difficult decisions while the internal leader grows. ## Fractional should not mean absent A fractional leader still needs enough context to make responsible decisions. If someone attends one meeting per month, has no access to engineering information and is not accountable for follow-through, the relationship is probably advisory rather than fractional leadership. Useful fractional work needs operating rhythm. For example: - Regular leadership sync. - Engineering review. - Architecture decisions. - Risk tracking. - Roadmap review. - Hiring involvement when needed. - Written decisions and follow-up. The company should know what the Fractional CTO owns between meetings. ## What is a technical consultant? A technical consultant is usually engaged around a defined expertise, problem or outcome. Examples: - Architecture review. - Cloud migration plan. - AI implementation strategy. - Security assessment. - Performance investigation. - Technical due diligence. - Vendor evaluation. - Codebase audit. - Cost optimization. - Database scaling plan. The consultant may deliver recommendations, implementation or both. But the engagement does not necessarily make them the executive owner of the entire technology function. ## What a CTO consultant actually does "CTO consultant" is a loose label. In practice it usually means a senior technical person you bring in for a specific job, with a start and an end. Typical CTO consultant work: - A codebase or architecture audit before you invest more in the product. - Technical due diligence before a funding round or an acquisition. - A second opinion on an agency's estimate or proposed stack. - A plan for one hard problem: cloud cost, scaling, security, or where AI fits. You get a written deliverable: findings, risks ranked by business impact, and a plan your team can follow. Then the consultant steps out, and your team owns the result. That is the main difference from a [fractional CTO](/en/services/fractional-cto). A fractional CTO stays. They own the roadmap and the architecture decisions, sit in on hiring, and follow the plan through over months. A simple test: if the problem fits in one document, hire a CTO consultant. If it needs someone to keep making decisions after the document is written, you need a fractional CTO. A focused consulting job, usually an audit, is also a low-risk way to start. If it goes well, it can turn into [fractional CTO work](/en/services/fractional-cto) once both sides know how the other works. ## CTO consultant vs fractional CTO The distinction becomes clearer through a question: > **After the recommendation is made, who owns making sure the organization follows through?** With consulting, ownership commonly returns to the client team. With fractional leadership, follow-through may remain part of the Fractional CTO's responsibility. For example: A consultant might say: > “Your deployment process needs automated testing and a staged release workflow. Here is the implementation plan.” A Fractional CTO might additionally: - Prioritize it against the roadmap. - Assign ownership. - Review implementation. - Track the risk until it is resolved. - Explain the trade-off to the founders. The technical recommendation can be identical. The ownership model is different. ## Advisor is another different role Companies also use technical advisors. An advisor may provide periodic perspective, introductions or strategic feedback without operating inside the company. A rough continuum can be useful: **Advisor → Consultant → Fractional Executive → Full-Time Executive** As you move right, continuity and organizational ownership generally increase. But titles are inconsistent in the market, so always inspect the actual scope. ## What if you mainly need someone to build the product? Then you may not need a CTO engagement at all. If the requirement is: > “We know what we want and need an experienced team to design and ship it.” that may be a **product engineering** or **software development** engagement. Leadership titles should not be used to disguise delivery work. Likewise, hiring a CTO does not automatically give you a complete engineering team. Separate: **Executive ownership → Engineering leadership → Product engineering → Specialist consulting** Then fill the missing capability. ## What if the founder needs a technical co-founder? A Fractional CTO is not automatically a substitute for a technical co-founder. A co-founder relationship includes company ownership, long-term incentives, entrepreneurial risk and usually a much broader commitment than a service engagement. If the business needs somebody to share founder-level risk for years, structure that conversation honestly. Do not use a consulting contract to pretend the relationship is something else. ## A practical scenario: pre-MVP startup Imagine two domain founders with a validated problem but no technical team. They need to decide: - What to build first. - Whether to buy or build parts of the stack. - How to estimate the MVP. - Which architecture is enough. - Who should build it. They may not need a permanent CTO yet. A focused technical consultant or Fractional CTO could help depending on whether they only need the initial decisions or want ongoing ownership through hiring and delivery. If the next six months involve continuous technology decisions, fractional leadership becomes more relevant. If they only need a technical plan before hiring a team, consulting may be enough. ## Scenario: product has traction but engineering is unstable Now imagine a SaaS company with customers and five engineers. Releases are unpredictable. Incidents are increasing. Nobody owns architecture. The founder directly manages developers. This is no longer one isolated technical question. The company likely needs an engineering leadership function. A Fractional CTO could temporarily establish that function, or the company may decide the workload and strategic importance justify hiring a permanent CTO or engineering leader. The choice depends on the depth and permanence of the need. ## Scenario: strong CTO, specific AI question A company already has a capable CTO and engineering organization. They want to evaluate whether a private RAG architecture should run on hosted models, local LLMs or a hybrid stack. They probably do not need another CTO. They need an **AI/architecture consultant** for a bounded problem. Senior expertise does not always require executive ownership. ## Scenario: preparing to hire a permanent CTO Fractional leadership can also be transitional. A company may use a Fractional CTO to: 1. Stabilize engineering. 2. Document the technical landscape. 3. Define the permanent role. 4. Help interview candidates. 5. Transfer context to the new leader. This can reduce the pressure to make a rushed executive hire. The transition should be designed from the beginning if that is the goal. ## How to decide: start with the time horizon Ask how long the responsibility exists. ### Days or weeks A defined audit, architecture decision or investigation often points toward consulting. ### Months A company building leadership processes, hiring a team or moving from MVP to stable production may benefit from fractional ownership. ### Indefinitely If technology needs permanent executive leadership every week, a full-time hire becomes increasingly logical. Time horizon alone does not decide it, but it exposes whether the need is temporary or structural. ## Then map decision frequency How often do important technical decisions happen? If leadership input is required every day across hiring, architecture, delivery, security and product, fractional availability may become a bottleneck. If the most important decisions happen weekly or around specific milestones, a fractional model may be enough. If there is one bounded decision, consulting is usually easier to structure. ## Map the engineering organization Ask: - How many engineers are there? - Who manages them today? - Is there a Tech Lead or Engineering Manager? - Who evaluates performance? - Who owns delivery? - Who resolves architecture disagreements? - Who hires senior engineers? - Who handles incidents? A company may think it needs architecture advice when the real missing capability is engineering management. Those are not the same job. ## Map business dependency on technology Technology leadership becomes more strategic when failures directly affect: - Revenue. - Customer retention. - Enterprise sales. - Regulatory obligations. - Operational continuity. - Product differentiation. The more the company depends on technology for its core business, the more dangerous it becomes to leave ownership ambiguous. ## Do you need strategy or execution? Another important distinction: Some companies need someone to decide **what should happen**. Others need somebody to make sure it **actually happens**. Many need both. Ask a candidate or provider explicitly: - Do you only recommend? - Do you manage the engineering team? - Do you write specifications? - Do you review code? - Do you implement critical pieces? - Do you hire? - Do you own vendors? - Do you join executive planning? Never infer these responsibilities from “CTO” or “consultant.” ## Can a Fractional CTO write code? Yes, depending on the company stage and agreement. But coding should not consume the leadership capacity the company actually hired. If the business needs 30 hours of feature development and two hours of technical direction, that is primarily an engineering engagement. If it needs architecture, prioritization, hiring, team leadership and occasional critical implementation, that can fit a hands-on Fractional CTO model. Define the ratio intentionally. ## What should the first month produce? A senior technical engagement should create clarity quickly. Depending on the situation, early outputs may include: - Current-state architecture map. - Technical risk register. - Delivery bottleneck analysis. - Roadmap priorities. - Infrastructure cost review. - Security gaps. - Hiring plan. - Engineering ownership map. - Product/technology trade-offs. - Immediate remediation actions. Avoid a relationship where the only output is meetings. The company should be able to see decisions, changes or artifacts. ## How to evaluate a Fractional CTO Do not evaluate only by technologies listed on a CV. Ask for evidence of handling the type of responsibility you need. For example: - Have they led engineers, not just written software? - Can they explain technical risk to non-technical executives? - Have they taken systems from development into production? - Can they make trade-offs under budget and time constraints? - Do they understand hiring and team design? - Can they challenge unnecessary engineering? - Can they operate hands-on when the situation requires it? A CTO role sits between business and engineering. Technical depth matters, but translation and decision ownership matter too. ## How to evaluate a technical consultant For consulting, go deeper on the specific problem. Ask: - Have they solved a comparable technical class of problem? - What evidence will they inspect? - What deliverable will you receive? - How will recommendations be prioritized? - Will they help implement or only advise? - How will success be verified? A narrowly excellent consultant can be more valuable than a broad executive for a narrow technical problem. ## Avoid title inflation Early companies sometimes give the CTO title to the most senior developer by default. That can create problems later if the company actually needs a different executive profile. Likewise, consultants sometimes use Fractional CTO as a premium label while providing only ad-hoc advice. Ignore the label. Write the responsibility. ## Define decision rights explicitly Before starting, document who can decide what. For example: | Area | Founder/CEO | Fractional CTO | Tech Lead | | --- | --- | --- | --- | | Business priorities | Owns | Advises | Informed | | Technical architecture | Consulted | Owns | Contributes | | Engineering execution | Informed | Accountable | Runs daily work | | Senior hiring | Approves | Leads technical evaluation | Participates | | Production incidents | Informed | Owns escalation model | Leads response | This is only an example. Your organization may assign responsibilities differently. The value is removing ambiguity. ## Define the engagement exit before it starts Especially for fractional leadership, ask what success changes. Possible outcomes: - Internal Tech Lead becomes ready to own the function. - Permanent CTO is hired. - Product reaches a stable stage. - Engineering processes become self-sustaining. - A funding or expansion milestone changes leadership needs. A good fractional engagement does not need to create permanent dependency. It should increase the organization's ability to operate. ## Cost should be compared to the responsibility, not just hourly rate The cheapest senior person is not necessarily the cheapest outcome. But neither is the most expensive title automatically better. Compare the engagement against: - Decisions that need to be made. - Risks being reduced. - Hiring mistakes potentially avoided. - Delivery problems being addressed. - Internal leadership capacity being created. Then choose the smallest engagement model capable of owning the requirement. ## A decision framework ### Choose a technical consultant when The problem is bounded, specialist and has a clear deliverable or decision. ### Consider a Fractional CTO when The company needs recurring senior technical leadership and accountability across several areas, but the role does not yet justify permanent full-time executive capacity. ### Consider a full-time CTO when Technology requires continuous executive ownership and the responsibility is structural to the company rather than transitional or project-based. ### Consider an engineering/product engagement when The main need is building and shipping rather than executive technical leadership. These are starting points, not rigid rules. ## The question I would ask a founder Not: > “Do you want a Fractional CTO?” But: > **What happens in your company today because nobody owns technology at the level you need?** Maybe the answer is: - Roadmap decisions are inconsistent. - Developers are unmanaged. - Architecture keeps changing. - Hiring is failing. - Production is unstable. - Nobody can challenge vendors. - Technical debt is invisible to leadership. - The founder spends half the week managing engineering. Once the failure mode is visible, the role becomes easier to design. ## FAQ ### What is the difference between a fractional CTO and a CTO consultant? A CTO consultant is engaged for a bounded problem (an audit, an architecture decision, a migration plan) and hands ownership back to your team. A fractional CTO owns technical decisions on a recurring basis and is accountable for follow-through. ### When should a startup hire a fractional CTO instead of a full-time CTO? When it needs senior technical ownership across several areas (architecture, hiring, delivery, technical risk) but not yet every day. Common moments are moving from MVP to production, preparing for a funding round, or hiring the first senior engineers. ### Can a fractional CTO prepare us for technical due diligence? Yes. A fractional CTO can document the architecture, risks, security posture and roadmap so founders can answer investor questions, and then own the fixes afterwards. ### Can a consultant become our fractional CTO later? Often, yes. A bounded engagement like an audit is a low-risk way to test working together before agreeing to ongoing ownership. ### Is a fractional CTO a replacement for a technical co-founder? No. A co-founder shares company ownership and long-term risk. A fractional CTO is a service engagement with a defined scope. ## Need senior technical leadership but unsure which model fits? Start with the responsibility map rather than the title. We can identify what needs executive ownership, what belongs to the engineering team, what is a specialist consulting problem and whether the need is temporary or permanent. **[Discuss your technical leadership needs with Fady Mondy](/en/contact).** I work across technical strategy, architecture, engineering leadership, AI systems and product delivery — from focused consulting engagements to ongoing [Fractional CTO](/en/services/fractional-cto) ownership. --- **Related:** [Fractional CTO](/en/services/fractional-cto) · [Engineering leadership](/en/services/engineering-leadership) · [Software architecture consulting](/en/services/engineering-architecture) · [AI and codebase audits](/en/services/codebase-audits) · [MVP development](/en/services/mvp-development) · [MCP server development](/en/services/mcp-server-development) · [AI consulting](/en/ai/consulting) --- Source: https://fadymondy.com/en/blog/full-time-cto-vs-fractional-cto-vs-technical-consultant --- # How to Build Open Source People Actually Use — Not Just Another GitHub Repository > Publishing code to GitHub is easy. The harder part is helping developers discover a project, understand it, trust it, install it, and keep using it. These are the lessons I learned building and maintaining real open-source products. *2026-09-17T03:23:43Z* In [the previous article](/en/blog/from-projects-to-an-ecosystem), I wrote about the moment I stopped seeing my open-source work as a collection of separate repositories and started seeing an ecosystem. But before you can have an ecosystem, you need at least one project people genuinely want to use. Publishing a repository on GitHub is easy. Getting someone who does not know you to discover the project, understand it, trust it, install it, and eventually rely on it in a real application is a very different problem. I have built a lot of open-source software over the years. Some projects gained traction faster than others, and the difference was not always code quality. Sometimes the project I considered technically stronger was not the one people adopted. Sometimes a much smaller tool spread faster simply because it solved one clear problem at exactly the right level. That changed the way I think about open-source success. A repository is not the product. The code is part of the product. The product is the full experience that starts when a developer first hears the name and ends when the software is quietly doing useful work inside their application. ## Be the first real user of your project The projects I keep maintaining the longest are usually projects I needed myself. That is not because my needs matter more than anyone else's. It is because real use exposes problems that theoretical development never will. When you use your own package inside a production application, you discover things very quickly: - Is the API annoying in daily use? - Are there configuration steps that should not exist? - Do you need to reread your own documentation every time? - Does a small upgrade break too much? - Is the naming obvious? - Do the error messages actually help? There is a big difference between: > “The feature works.” and: > “I am happy to use this feature every day.” Dogfooding has become one of my most useful quality checks for open source. If I do not enjoy using the tool I built, why should another developer be excited about adopting it? ## Start with the problem, not the feature list One of the easiest ways to ruin a small project is to add features too quickly. You begin with a simple idea. Then someone asks for an option. Someone else wants an integration. Soon there is a dashboard, an API, events, drivers, and eventually a plugin system. A few months later, the original problem the project was good at solving is buried under configuration. I have fallen into this line of thinking more than once. Today I try to ask a much simpler question: **What is the one problem this project should be exceptionally good at solving?** If I cannot answer that in one sentence, there is usually a positioning problem before there is an engineering problem. A project does not need to do everything. It needs to do something important very well. ## Your README is often the real homepage For many open-source projects, the README is the actual homepage whether we planned it that way or not. A developer may arrive from Google, GitHub search, an Awesome list, a newsletter, or a link from a friend. Very often, the first thing they see is the README. Yet many READMEs start like this: ```bash composer require vendor/package ``` before explaining why anyone would want the package in the first place. I prefer to answer four questions first: **What is this?** **What problem does it solve?** **Who is it for?** **What is the fastest way to see the result?** Installation can come after that. If a developer has to scroll through half the page to understand why the repository exists, we already created friction. ## Reduce time to the first useful result There is an unofficial metric I like to think about: **Time to First Useful Result.** How long does it take from discovering the project to seeing something genuinely useful happen? Not until the developer finishes the documentation. Not until they understand every architectural decision. Just until they reach the moment where they think: > “Okay. I understand why this is useful.” Every extra setup step gives someone another opportunity to leave. If installation requires: 1. Installing the package. 2. Publishing configuration. 3. Editing three files. 4. Registering a provider. 5. Running a migration. 6. Copying a component. 7. Updating JavaScript. 8. Rebuilding assets. then every one of those steps needs to justify its existence. This is not about hiding complexity. It is about asking whether the user should have to experience that complexity at the beginning. ## Give people a good default Developers like flexibility. They do not necessarily want to make twenty decisions before the project runs. One of the things I have always appreciated in Laravel is that it has opinions. You can change many of them, but you do not need to design your whole architecture before writing the first feature. I try to bring the same idea into my own tools. Give me a default that works. Then let me replace it when I have a real reason to. Instead of saying: > “Choose one of seven drivers and provide forty lines of configuration.” start with the choice that works for most people. Configuration should often be an escape hatch, not an entrance requirement. ## Good documentation is organized around tasks A developer rarely opens the docs thinking: > “I would like to learn every method on this class.” They are usually thinking: > “I need to do X.” That is why I increasingly prefer task-oriented documentation over documentation that mirrors the code structure too closely. For example: - How to install - How to create your first resource - How to customize authentication - How to connect an MCP server - How to add persistent memory - How to deploy An API reference can still exist for people who need detail. But one complete example that solves a real task is often more valuable than ten pages describing individual options. ## Never make users guess the state of the project A common GitHub problem is finding a repository that looks useful but gives you no idea what state it is in. Is it still maintained? Does it support the latest framework version? Is it something people use in production? Is it only a proof of concept? The last commit may be a year old because the project is stable. Or the last commit may have been yesterday and the project is still an experiment. Users should not have to guess. Make the basics obvious: - Supported versions - Current project status - Upgrade policy - License - Release history If you stop maintaining a project, say that too. A clearly archived repository is better than a project that looks alive but has silently been abandoned. ## Compatibility eventually matters more than the exciting new feature Your responsibility changes when people begin using the project for real work. Before that point, you can rewrite everything on Thursday because you found a cleaner architecture on Wednesday night. Once the package is in other people's production systems, breaking changes create costs you do not pay alone. I learned to respect this more over time. It does not mean projects should stop evolving. It means the value of the following increases as adoption grows: - Semantic versioning - Migration guides - Deprecation periods - Changelogs - Backward compatibility A developer needs to trust that an upgrade will not turn the beginning of their workday into an unexpected debugging session. That trust can become more valuable than the next feature. ## Issues are product research, not just support tickets GitHub Issues can be an excellent source of product research, especially when the same questions keep appearing. If three people ask the same question, maybe the problem is not that they failed to read the documentation. Maybe the documentation is not clear enough. If many users need the same workaround, maybe the abstraction is incomplete. If everyone makes the same configuration mistake, maybe the API itself deserves another look. The most valuable feedback is not always: > “Great project!” Sometimes it is the annoying issue that exposes a real design problem. ## Say no more often than you say yes This is one of the hardest parts of maintaining open source. Someone took the time to open an issue or feature request. Naturally, you want to help. But every feature that enters the project becomes something you may need to: - Maintain - Test - Document - Keep backward compatible - Support when it breaks A feature that takes two hours to implement can create a maintenance commitment that lasts years. So the question is not only: > Can I build this? It is also: > Should this be part of this project at all? Sometimes the right answer to a feature request is that the problem is outside the scope of the project. That is not ignoring the user. It is protecting the product. ## Distribution is part of engineering For a long time, I believed some version of this: > If the project is good enough, people will find it. That is only partially true. There are thousands of excellent projects that almost nobody knows exist. Distribution is not something developers need to be embarrassed about. Publishing to Packagist, npm, pkg.go.dev, or the appropriate ecosystem matters. Searchable documentation matters. A clear GitHub description matters. Relevant directories and Awesome lists can matter. Writing a real technical article about the problem that caused the project to exist can matter. Connecting the project to related tools when the relationship is useful can matter. The problem is not marketing. The problem is marketing that has nothing useful behind it. ## Stars are not the only metric GitHub stars are nice. I enjoy watching them increase too. But a star does not necessarily mean someone is using the software. There are repositories with thousands of stars where most people who clicked the button never installed the project once. There are other signals I find more interesting: Do people come back to the documentation? Are there real installations? Do contributors begin appearing? Do issues evolve from “How do I install this?” into deeper usage questions? Do people build integrations you never asked them to build? Does someone explain the project to another developer before you get the chance? Those are signs that a repository is becoming something with actual users. ## Community starts with one person The word community sometimes makes us imagine a Discord server with thousands of members. But a community can begin with one user who comes back twice. Then someone opens a pull request. Someone fixes a typo in the docs. Eventually someone answers an issue before you do. Those moments look small, but they matter. People contribute to projects where contribution feels welcome. A clear contributor guide helps. Good issue descriptions help. Respectful responses help. An architecture people can understand helps. Those things are often more important than adding a “community driven” badge to the README. ## Open source is a long-term contract Creating a repository is free. Maintaining one is not. It takes time. It takes focus. And sometimes it creates its own mental load when dozens of issues are waiting while you are already responsible for other products. That is another reason I have started thinking more about an ecosystem and less about increasing the number of repositories I own. The goal is not to have the largest possible project list. The goal is to keep projects that are useful, clear, and worth maintaining. Sometimes merging two projects is better than maintaining both. Sometimes archiving is better than rewriting. Sometimes not building the project in the first place is the best engineering decision. ## Before you publish your next open-source project Today, if I build a new open-source project, there are a few questions I like to ask before calling it ready: Can I explain the problem in one sentence? Have I used the project myself? Does the README explain the value before the installation command? Can someone reach a useful result quickly? Is there a sensible default? Is the documentation organized around what users want to accomplish? Are supported versions obvious? Am I willing to maintain this API? Is the project meaningfully different from what already exists? And would I still be happy maintaining it three years from now? That last question matters more than it sounds. Sometimes success means people actually use what you built. When that happens, you get to live with the decisions you made during the first week for much longer than you expected. ## In the end The best open-source projects, to me, are not the ones with the most code. They are the ones that almost disappear while you use them. They solve the problem. They behave the way you expect. They explain themselves clearly. And they do not force you to think about them more than necessary. If you want people to use your project, do not begin by trying to convince them the code is impressive. Begin by making their work easier. Solve a real problem. Make the first experience simple. Write documentation that respects the developer's time. Protect their trust as the project grows. And pay attention to what happens after the code leaves your machine and starts running inside projects you know nothing about. That is the point where your project stops being just another GitHub repository. It becomes a product. --- Source: https://fadymondy.com/en/blog/building-open-source-people-actually-use --- # From Separate Projects to One Ecosystem: What I Learned Building Developer Tools > I spent years building open-source tools as separate projects. Over time, TomatoPHP, Laravilt, ToGO, Orchestra MCP, and CaBrain started revealing something bigger: an ecosystem shaped by real developer problems, not a master plan. *2026-10-12T13:31:58Z* For a long time, I treated every open-source project I built as a separate thing. I would run into a problem, build something to solve it, publish it, document it, and eventually move on to the next problem. [TomatoPHP](https://tomatophp.com) grew out of patterns I kept repeating while building Laravel and Filament applications. [Laravilt](https://laravilt.com) came from a different need: building modern Laravel admin applications with Inertia and Vue or React without letting the project architecture become harder to control than the product itself. Then I started spending more time with Go and AI-powered systems. That led to [ToGO](https://to-go.dev), then [Orchestra MCP](https://orchestra-mcp.dev), and then [CaBrain](https://cabrain.fadymondy.com). At first, I saw them as different tools. Over time, I realized the bigger problem was not building the projects. It was that I was still thinking about them as isolated projects instead of parts of a system. That shift changed how I think about open source today. ## Good projects usually start with friction, not ideas Most of the open-source tools I keep working on did not start in a brainstorming session or with me trying to come up with a startup idea. They started with something annoying that kept happening. A piece of code I had to rebuild in every project. A workflow that took more steps than it should. A good tool that still forced me into an architecture I did not want. Or a gap between two useful tools that made using them together harder than necessary. Those problems are valuable because when you build for friction you have personally experienced, you know the small details. You know where the wasted minutes are. You know which part feels unnecessarily complicated. And you learn the difference between a solution that is technically correct and one that is actually pleasant to use. Developers do not just need a library that works. They need something they can understand quickly, trust, and add to a project without feeling like they have adopted an entire worldview they can never leave. ## When separate problems start becoming adjacent problems After enough time, I started noticing that the problems I was solving were not as separate as I thought. In the Laravel world, TomatoPHP and Laravilt solve different problems, but they sit close to each other in a developer's journey. One focuses on reusable plugins and packages. The other focuses on building modern admin applications and giving the application structure a clear shape. Then I moved further into Go. The goal with ToGO was never to make Go look like Laravel on the surface. What interested me was preserving some of the ideas I value as a Laravel developer: strong conventions, fast onboarding, clear structure, and a productive way to compose the pieces an application needs. Then AI agents stopped being experiments for me and started becoming infrastructure. That created a different set of questions. How do I give an agent access to many tools without turning the system into a mess? How should those tools be composed? How can different IDEs expose the same capabilities? How does an agent keep memory after the conversation ends? How can the notes and knowledge I already write become useful to those agents? That is where the relationship between Orchestra MCP, CaBrain, and ToGO became much more obvious. They were no longer just repositories. They were different layers of the same broader problem. ## An ecosystem matters more than a project count One trap in open source is measuring progress by how many repositories you have. Ten repositories look better than three. One hundred packages sound more impressive than ten. But the number itself does not tell you much. You can have fifty projects where users of one have no idea the others exist. Or you can have five projects where each one naturally leads to another when the developer reaches the next problem. The second is much stronger. So I started thinking about projects as relationships instead of a list. If someone is using TomatoPHP, what else might genuinely help them? If someone is building with ToGO, what happens when they start adding AI agents? If they use Orchestra, what happens when those agents need long-term memory? And if they already have Markdown notes, technical knowledge, and documentation, how does that knowledge become available to an agent? When those answers are natural, connecting the projects helps the user instead of acting like cross-promotion. That is the difference between a real ecosystem and a page full of logos. ## Open source is not only the code It is easy for developers to spend 90 percent of the effort on the code and then wonder why only a small number of people use the project. But the product experience starts before anyone runs the first command. It starts the first time someone sees the project's name. Do they understand what it does? Can they tell whether it is for them? Can they see a real example? Does the documentation explain the reason before it explains the API? Can they get from the homepage to installation in less than a minute? Can they tell whether the project is experimental, stable, or something you actually use in production? These things are not marketing in the superficial sense. They are part of the product. That became especially obvious while I was reviewing my own project websites recently. Some of the projects were much stronger technically than their websites suggested. Orchestra MCP was a good example. If the project has a serious plugin architecture, MCP tooling, agent workflows, and developer infrastructure, but the website communicates almost none of that, then the project is hiding its own value. That is not primarily an SEO problem. It is a clarity problem. ## Good SEO is often a side effect of clarity While improving the sites, I tried not to think about SEO as a process of adding keywords. Repeating “AI agents” fifty times does not make a page more useful. The better question is: If a developer lands on this page from search, will they find a real answer to the question that brought them here? A name like ToGO is difficult in search by itself. The name does not tell a person or a search engine what the product is. But pairing it with a useful description such as “Laravel-inspired Go framework” or “Go framework for AI-native applications” does more than add a keyword. It explains the product. The best SEO improvement I have found is often simply making the product easier to understand. ## Not every project needs its own content machine I do not want to put a blog on every project and start generating dozens of articles just because “content is good for SEO.” That usually creates a large amount of repetitive material with very little value. A better approach is to let each project own a clear technical area. TomatoPHP can talk about Filament, Laravel plugin architecture, and maintaining reusable packages. Laravilt can focus on Laravel admin panels, Inertia, Vue, React, and application structure. ToGO can explore Go architecture, developer experience, plugins, and AI-native application design. Orchestra can go deeper into MCP, agent tooling, orchestration, and developer environments. CaBrain can focus on agent memory, RAG, retrieval, and entity graphs. Then the content exists because there is real experience inside the project worth sharing. Search traffic becomes a consequence rather than the reason the article exists. ## Metrics without context do not build trust Another lesson is simple: do not display metrics just because they look impressive. Stars. Downloads. Users. Tools. Those numbers are only useful when they are correct, current, and understandable. While reviewing some of my sites, I found cases where numbers differed between language versions or between a website and its repository. Even if the reason is caching or stale content, the result for the visitor is the same: something feels inconsistent. I would rather show a smaller number that I know is correct than a larger one that needs explaining. And when a metric changes frequently, it is usually better to fetch it from the source than to copy it manually across several places. Trust in an open-source project is built from small details like these. ## Old documentation is more dangerous than it looks Projects that live for years change. Frameworks move on. Versions change. Architectures evolve. But old documentation pages can remain in search results for years. This creates a strange situation where the product improves but search engines continue sending users into an older version of it. A developer may then judge the entire project from a page you wrote three years ago. That is why I now see documentation maintenance as product maintenance. You do not need to erase history. Older version docs can be extremely useful. But they should clearly say what version they belong to. Users should know what they are reading. And old and new pages should not compete for the same search intent as if they describe the same product state. ## What makes a project part of an ecosystem? I have started using a few simple rules. First, every project should solve a real problem on its own. I do not want one project to exist only to force you to install another one. Second, the relationship between projects should make sense. CaBrain does not need to appear in every product I own. But when someone is building an AI agent that needs memory, mentioning it becomes relevant. Third, each project should keep its own identity. I do not want TomatoPHP, ToGO, and Orchestra to become the same visual product just because they share a creator. A project should have its own personality. At the same time, it should be possible to see that the tools share a certain engineering philosophy. Fourth, the ecosystem should reduce friction, not create more of it. If a developer has to visit five websites just to figure out where to begin, then the ecosystem has failed. ## The network I am trying to build Today I roughly see the projects like this. On the Laravel side, there are TomatoPHP and Laravilt. On the Go side, there is ToGO. At the AI-agent infrastructure layer, there is Orchestra MCP. And at the memory and retrieval layer, there is CaBrain. That does not mean this architecture existed from day one. It did not. That may be the most important point in this whole article. The ecosystem did not come from a giant roadmap I drew years ago. It emerged gradually from the problems I kept solving. At some point, the main thing I needed to do was stop and look at the whole picture. ## You do not need to build everything yourself Building an ecosystem does not mean building an authentication library just because you can. It does not mean writing a new database, queue, UI framework, or protocol so everything can be “in-house.” In many cases, the opposite is better. The more you build on strong standards and good existing tools, the more time you can spend on the part that actually makes your project different. MCP is a good example. Instead of inventing a private protocol for every tool that needs to communicate with AI agents, you can build on a standard that is already being adopted across the ecosystem. The same principle applies to frameworks, databases, transport layers, and infrastructure. The value of your ecosystem is not that you own every dependency. It is that the pieces you chose to build work well together. ## What I would do differently if I started again If I could go back a few years, I would do a few things much earlier. I would write a clear positioning statement for every project before it became large. I would treat documentation as a product from day one. I would use one source of truth for changing metrics. I would connect related projects earlier. I would pay more attention to the pages people actually land on from search, not only the homepage. And I would try to explain fewer things at the same time. When a developer reaches your site, they do not need your entire history. They need an answer to one question: Will this solve my problem? If you can answer that quickly, you have already done half the work. ## What comes next The next phase for me is not to create more repositories just to make the list longer. I want the current projects to become better. Better documentation. More real production examples. Simpler integration between the tools where that integration makes sense. Technical writing based on problems I have actually faced. And most importantly, I want each project to remain useful even if the person using it knows nothing about the rest of the ecosystem. If they eventually move to another project, it should be because they discovered something there that solves the next problem they have—not because a website pushed them into it. That is the kind of open-source ecosystem I want to build. Start with a problem. Build a good solution. Share it. Listen to the people using it. Then pay attention to the problems that appear next to it. After enough time, you may discover that you were never building a collection of separate projects. You were building an ecosystem all along. --- Source: https://fadymondy.com/en/blog/from-projects-to-an-ecosystem --- # SaaS vs Custom Software: What Should Your Business Choose Before You Invest? > Should your business buy SaaS or build custom software? Compare workflow fit, integrations, ownership, switching cost, security, speed and total cost before paying for development. Sometimes the best architecture is both. #SaaS #CustomSoftware #SoftwareDevelopment #BuyVsBuild #DigitalTransformation #BusinessSoftware #SystemIntegration *2026-09-17T05:38:17Z* # SaaS vs Custom Software: What Should Your Business Choose Before You Invest? A business reaches a point where spreadsheets, chat messages and disconnected tools are no longer enough. Then somebody asks: > **Should we buy an existing SaaS product or build our own system?** This is not really a software question. It is an ownership and economics question. Buying SaaS gives you a product someone else already operates. Building custom software gives you control over a system you now have to own. Neither is automatically better. The useful decision is: > **Which parts of our operation are commodities, and which parts are important enough to own?** ## Start with the workflow, not the feature list A common buying process starts by comparing hundreds of features. That can hide the real requirement. Map the workflow first: **Trigger → Data → Decision → Approval → Action → Record → Reporting** Then identify which steps are standard and which are genuinely specific to your business. If your process is basically the same as thousands of other companies, a mature SaaS product may already solve it well. If your advantage depends on a workflow that existing products repeatedly force you to compromise, custom software becomes more interesting. ## When SaaS is usually attractive SaaS can be an excellent choice when the problem is common and well understood. Examples include commodity capabilities such as email, accounting in supported markets, project management, identity, basic CRM, support ticketing or file collaboration — depending on your requirements. SaaS is particularly attractive when: - You need to launch quickly. - The workflow is mostly standard. - Configuration covers the important requirements. - Existing integrations are sufficient. - The capability is not a competitive differentiator. - You do not want to operate another product internally. You are effectively buying years of product development, maintenance and operational experience as a subscription. ## What you are really buying with SaaS You are not just buying features. A mature SaaS product may also provide: - Hosting. - Security maintenance. - Backups. - Product updates. - Mobile applications. - APIs. - Integrations. - Support. - Documentation. - Reliability work. Rebuilding all of that only to avoid a subscription can be a bad trade. ## The hidden cost of SaaS: adapting your business to the product The subscription price is not the entire cost. A SaaS product can become expensive operationally when employees constantly work around it. For example: 1. The CRM cannot represent your actual sales process. 2. Employees maintain an Excel sheet beside it. 3. Managers ask for manual reports. 4. Another automation tool copies data between systems. 5. Important approvals happen in WhatsApp. You technically “have a system,” but the real workflow lives outside it. That operational friction belongs in the cost calculation. ## When custom software becomes attractive Custom software is worth investigating when the workflow itself matters strategically. Signals include: - Your process is materially different from standard products. - Multiple systems need one orchestration layer. - Existing SaaS requires excessive workarounds. - Permissions and approval logic are specific. - Your company owns proprietary data or business logic. - The customer experience depends on capabilities standard software cannot provide. - Automation of the workflow could create meaningful operational leverage. - The system may become an asset or product capability rather than merely an internal tool. Custom software lets the system follow the business instead of forcing the business to follow the product. But that flexibility comes with ownership. ## What ownership actually means When you build a custom system, somebody must own: - Product decisions. - Architecture. - Development. - Testing. - Security updates. - Infrastructure. - Monitoring. - Backups. - Incident response. - Documentation. - Future changes. This can be the right investment. But the decision should acknowledge those responsibilities from the beginning. “Build once and finish” is usually the wrong mental model for important business software. ## Compare total cost of ownership, not subscription versus development invoice A weak comparison looks like this: > SaaS costs X per month. Custom development costs Y once. The real comparison is broader. ### SaaS TCO can include - Subscription fees. - Per-user or usage-based charges. - Add-ons. - Integration tools. - Implementation and configuration. - Training. - Data migration. - Manual workarounds. - Switching cost later. ### Custom software TCO can include - Discovery and design. - Development. - Infrastructure. - Maintenance. - Monitoring. - Security. - Support. - Ongoing product changes. - Engineering ownership. Compare both over a meaningful time horizon for your business. ## Do not assume custom becomes cheaper at a specific number of users There is no universal threshold. A simple internal application for many employees can be inexpensive to operate. A highly available, regulated or integration-heavy system for a small number of users can be expensive to build and maintain. User count is only one variable. The architecture and workflow complexity matter more. ## Integration can change the decision completely The choice is not always: **Buy everything OR build everything.** A powerful third option is: > **Buy the commodity systems and build the business layer between them.** For example: **WhatsApp → Custom Workflow → CRM → ERP → Payment Provider → Analytics** The CRM remains SaaS. Accounting remains SaaS. Payments remain a managed service. But your unique workflow, permissions and orchestration live in a custom application. This hybrid architecture often preserves the advantages of mature products without surrendering the workflow that differentiates the business. ## Build the differentiator, buy the commodity This is one of the most useful heuristics. Ask of every component: > **Does owning this create strategic value?** You probably do not need to build your own email delivery infrastructure just because you are building custom software. You may not need your own authentication protocol, payment processor or object storage either. Use mature infrastructure where the capability is commodity. Spend engineering effort where your business is actually different. ## Consider the cost of switching A SaaS product can be easy to start and difficult to leave. Before adopting one deeply, ask: - Can we export our data? - In what format? - Are relationships and history preserved? - Does the API expose the data we need? - Can integrations be moved? - What happens to attachments and audit history? - How much of our workflow will depend on provider-specific behavior? Vendor lock-in is not automatically bad. Every architecture creates dependencies. The goal is to understand them before they become expensive surprises. ## Custom software has lock-in too Owning the code does not automatically mean freedom. You can become dependent on: - A single developer. - An undocumented architecture. - An obsolete framework. - Proprietary infrastructure choices. - Missing automated tests. - Credentials only one person controls. If ownership matters, design for actual ownership: - Code repository under the company's control. - Infrastructure access. - Documentation. - Automated deployment where practical. - Backups. - Dependency visibility. - Clear intellectual-property terms. Code ownership without operational ownership is incomplete. ## Security: managed does not mean automatically safe, custom does not mean automatically unsafe With SaaS, the provider handles a large part of the platform security, but your organization still owns configuration, access control, user lifecycle and how data is used. With custom software, your responsibility is broader because your team owns more of the stack. Evaluate the actual requirements: - Authentication. - Authorization. - Audit logs. - Encryption. - Tenant isolation. - Backups. - Data retention. - Incident handling. - Compliance or contractual constraints where applicable. Choose based on the system you can operate responsibly, not a generic security label. ## Data ownership deserves its own discussion Ask where your operational data lives and who controls it. Important questions include: - Can we retrieve a complete copy? - Can we delete data when required? - Can our systems access it programmatically? - Where is the source of truth? - Are we duplicating sensitive information across integrations? This matters whether you buy or build. ## SaaS can be customized — but know the boundary Many SaaS products offer custom fields, workflows, plugins, APIs and automation. That can extend their useful life significantly. The question is whether you are configuring the product or fighting it. If every release depends on increasingly fragile workarounds, the organization may have crossed the point where configuration is cheaper than ownership. Measure the ongoing friction rather than debating it philosophically. ## Custom software should not start as a giant ERP replacement Once a company decides to build, another mistake appears: > “Let's rebuild everything.” That dramatically increases risk. Start with the workflow creating the most measurable friction. For example: **Lead → Qualification → Proposal → Approval** or: **Request → Assignment → Execution → Completion** Integrate existing systems around it. Prove the operating improvement. Then expand. ## What about low-code and no-code? They are additional options, not enemies of custom development. A workflow tool may be perfect when: - The process is relatively simple. - Integrations already exist. - Scale and permissions are manageable. - The workflow is still being validated. If complexity grows, you can later move the parts that require stronger control into custom software. The architecture should match the stage of the business. ## What about AI? AI does not change the buy-versus-build fundamentals. You can buy an AI SaaS product. You can integrate an AI API into your existing systems. You can build a custom AI workflow. You can self-host parts of the AI stack when requirements justify it. The same question remains: > **Which capability creates enough value for us to own?** For example, a generic meeting summarizer may be a commodity SaaS purchase. An AI workflow that understands your proprietary operational process, retrieves internal knowledge and performs controlled actions across your systems may justify a custom layer. ## Example: sales operation Imagine leads arrive from the website, WhatsApp and campaigns. The company uses a CRM but qualification and approvals happen outside it. ### Option A: configure the CRM Best if the CRM's workflow engine can model the process adequately. ### Option B: add automation Best if the CRM is fine but systems need to exchange information automatically. ### Option C: custom workflow layer Best if qualification, routing, pricing or approval logic is sufficiently unique and important. ### Option D: replace the CRM Only worth considering if the CRM itself has become the wrong system, not merely because one workflow is inconvenient. The smallest effective intervention should usually be tested first. ## Example: operations platform Suppose a service business coordinates jobs using Excel, WhatsApp and accounting software. It may not need a complete custom ERP. A custom operations layer could own: - Requests. - Assignment. - Status. - Approval. - Customer communication. - Operational reporting. while accounting remains in the existing financial system. That can reduce scope dramatically. ## A practical decision scorecard Evaluate both options against the same questions. ### Workflow fit Does the system naturally represent how the business works? ### Speed How quickly can the company reach a usable production state? ### Integration Can it reliably connect to the systems that matter? ### Ownership Which capabilities, data and roadmap decisions do you need to control? ### Operations Who maintains and supports the system? ### Security Can the architecture satisfy the real access and data requirements? ### Economics What is the total cost over the period you care about? ### Exit How difficult is migration if the decision changes later? Do not assign arbitrary weights before understanding which of these actually matter to the business. ## Questions to ask before buying SaaS 1. Which parts of our workflow require workarounds? 2. Which integrations are native, and which require another tool? 3. Can we export all important data? 4. What happens as users or usage grow? 5. Which capabilities require higher plans or add-ons? 6. How are permissions and audit history handled? 7. What is our exit path? ## Questions to ask before building custom software 1. What measurable problem are we solving? 2. Why can't configuration or integration solve it? 3. Which workflow should version one own? 4. Which existing systems should remain? 5. Who owns product decisions after launch? 6. Who operates and maintains it? 7. What is the smallest production scope that can prove the business case? If these questions do not have clear answers, the project is probably not ready for a large build. ## The decision may change over time A startup can begin with SaaS because speed matters more than customization. Later, volume and process maturity may justify a custom layer. A larger company can also move in the opposite direction by replacing expensive internal commodity systems with SaaS. Architecture should follow the business stage. There is no prize for owning more code. ## A simple rule to remember **Buy what is standard. Integrate what already works. Build what makes your business different.** Then revisit the decision when economics or requirements change. That is more useful than treating SaaS and custom development as opposing camps. ## Deciding between SaaS and custom software? Map one real workflow before requesting development estimates or signing a long software contract. Identify what is standard, what is unique, where data lives, which integrations matter, and what ownership would create value. Then compare SaaS, integration, automation and custom development against the same business case. **Discuss your software architecture with Fady Mondy.** I help businesses decide what to buy, what to integrate and what is worth building — then design and ship the custom layer when ownership creates real value. --- **Related:** Custom Software Development, SaaS Development, From Excel and WhatsApp to One System, Digital Transformation, AI Integration, AI Automation and AI ROI. --- Source: https://fadymondy.com/en/blog/saas-vs-custom-software-business --- # WhatsApp AI Automation for Business: From Replies to Real Workflows > A WhatsApp AI bot becomes valuable when it does more than reply. This guide shows how businesses can connect WhatsApp to customer service, lead qualification, CRM, bookings and controlled AI-agent workflows — with human handoff when it matters. #WhatsAppAI #WhatsAppAutomation #AIChatbot #CustomerServiceAI #AIAutomation #BusinessAutomation #AIAgents *2026-09-17T05:38:16Z* # WhatsApp AI Automation for Business: From Replies to Real Workflows When a business says, **"We need an AI bot on WhatsApp,"** my first question is not which model to use. It's: > **What should happen after the customer sends a message?** If the answer is simply "reply to frequently asked questions," a chatbot may be enough. But if the business wants to qualify a lead, retrieve an order, create a booking, update a CRM, collect missing information, route a case, or prepare an action for approval, the real project is not a WhatsApp bot. It is a **business workflow with WhatsApp as the interface.** That distinction changes the architecture, cost, permissions, measurement, and ultimately whether the project creates useful business value. ## WhatsApp is the channel, not the system It is easy to focus on the visible part: a customer sends a message and receives a response. Behind a useful business implementation, however, the flow may look more like: **Customer → WhatsApp → Intent → Company Knowledge → Business Rules → CRM/ERP/API → Action or Human → Response** The AI model may only be responsible for a few parts of that process. This is a useful design principle because it prevents a common mistake: trying to make the LLM responsible for everything. ## Start with the conversations your team already handles Before building anything, look at the real categories of messages the business receives. They might include: - "How much does this cost?" - "Is this product available?" - "Where is my order?" - "Can I change my booking?" - "I want to talk to sales." - "I have a technical problem." - "Can you send me a quotation?" - "Which package is right for my company?" These requests do not all require the same architecture. Some need information. Some need data from another system. Some need an action. Some should go directly to a human. The first useful exercise is therefore to classify the existing conversations and map what currently happens after each one. ## Level 1: FAQ and knowledge chatbot The simplest useful implementation answers questions from approved company knowledge. Instead of letting a general model improvise, the chatbot can retrieve information from sources such as: - Product documentation. - Service descriptions. - Policies. - FAQs. - Internal knowledge bases. - Current structured product data where appropriate. This is where RAG can be useful. The goal is not merely a more fluent bot. It is a bot whose answers are grounded in the information the company actually wants customers to receive. For many businesses, this level alone can remove a meaningful amount of repetitive support work. ## Level 2: Lead qualification Now imagine the customer writes: > "We need an AI system for our company." A useful workflow could collect the information a sales person would otherwise ask manually: - Company name. - Website. - Business problem. - Current process. - Required integration. - Timeline. - Budget range, when appropriate. - Preferred next step. The system can then create or update a lead in the CRM and route it to the right person. AI is useful here because customers rarely answer in perfectly structured fields. They write naturally. The system can understand the conversation while the underlying workflow keeps the business data structured. ## Level 3: Connect the conversation to business systems This is where WhatsApp automation becomes significantly more useful — and more serious. The system might need to connect to: - CRM. - ERP. - Booking systems. - E-commerce systems. - Customer databases. - Ticketing systems. - Internal APIs. - Payment or invoicing workflows. Suppose a customer asks: > "Where is order 1842?" The AI shouldn't invent an answer. The workflow should identify the customer where required, retrieve the authoritative order information, and present the permitted result. The important engineering question becomes: > **What is the source of truth for this answer?** For an order status, that is probably the order system — not the LLM and not a vector database. ## Level 4: AI agents and actions Some WhatsApp workflows need more than retrieval. Consider: > "Move my appointment to Thursday after 4 PM." An agentic workflow might: 1. Understand the request. 2. Identify the relevant booking. 3. Check Thursday availability. 4. Apply scheduling rules. 5. Offer valid options. 6. Receive the customer's choice. 7. Request approval if required. 8. Update the booking. 9. Record the action. 10. Confirm the result. At this point, we are no longer discussing a chatbot that produces text. We are designing software that can **change business state**. That requires a different level of engineering discipline. ## Don't give the model unrestricted access One of the worst shortcuts in agent development is exposing powerful tools and hoping the prompt will keep the model safe. Permissions should be enforced by the system around the model. If an AI can update a booking, for example, the booking API should still validate: - The authenticated customer. - Allowed fields. - Available slots. - Business rules. - Rate limits. - Conflicting operations. The LLM can help understand intent and select an appropriate action. It should not replace authorization and domain rules. ## Human handoff should be designed from the beginning A WhatsApp AI system should know when to stop automating. Examples include: - The customer explicitly asks for a person. - Confidence is too low. - The request is outside supported workflows. - A sensitive financial action is required. - The customer is angry or the conversation requires judgment. - Required data is missing or contradictory. - A tool or integration fails. A bad bot keeps replying because it can. A useful system recognizes that escalation is part of the workflow. When handing off, provide the employee with context: - Conversation summary. - Identified intent. - Relevant customer information. - Actions already attempted. - Why the case was escalated. The customer should not have to repeat the entire conversation. ## Arabic and English are not just translation problems For businesses serving customers across the Gulf and wider Arab market, conversations may switch naturally between Arabic and English — sometimes inside the same message. Users may also write Arabic dialects, English product names, numbers, abbreviations, and technical terms together. A production system should therefore be evaluated using **real examples from the business's customers**, not only clean benchmark prompts. The objective is not perfect literary Arabic. It is correctly understanding the customer's intent and completing the business process reliably. ## Memory can improve continuity — but use it deliberately A returning customer may expect the system to understand context from a previous interaction. That does not mean every old message should be placed into every prompt. Useful memory might include: - Relevant previous requests. - Customer preferences when appropriate and permitted. - Unresolved cases. - Previous decisions. - Important relationship context. This is related to the long-term memory problem I have been working on with **CaBrain**: deciding what should be retained, what should be retrieved, and how entities and previous events relate to the current task. Memory should improve the workflow without turning the prompt into an uncontrolled archive of customer history. ## Measure business outcomes, not messages sent A dashboard saying "the bot handled 20,000 messages" tells you very little by itself. More useful measurements can include: - Percentage of supported requests resolved without human intervention. - Correct escalation rate. - Median response time. - Lead qualification completion. - Booking completion. - Hours of repetitive work reduced. - Cost per resolved request. - Failed tool actions. - Customer abandonment during automated flows. The metric should match the business problem the automation was built to improve. ## Don't automate a broken process Suppose a customer request currently requires an employee to copy data between five spreadsheets because the systems are disconnected. Adding an AI agent may hide the problem rather than solve it. Sometimes the right project is: **Integration first → Workflow second → AI where useful.** A significant part of good AI engineering is knowing when *not* to use AI. ## A practical architecture A production WhatsApp AI system can conceptually be separated into layers: ### Channel Layer Receives and sends messages through the supported WhatsApp integration. ### Identity & Session Layer Associates the conversation with the correct customer/session where permitted. ### Understanding Layer Classifies intent and extracts relevant information. ### Knowledge Layer Retrieves approved company information. ### Workflow Layer Determines the supported business process. ### Tool Layer Connects to CRM, ERP, booking, commerce, support, or internal APIs. ### Safety Layer Permissions, validation, rate limits, approvals, and policy enforcement. ### Human Handoff Escalates with useful context. ### Observability Records decisions, tool calls, failures, latency, and outcomes where appropriate. The exact implementation can be much simpler for a small use case. The point is to separate responsibilities instead of making one giant prompt responsible for the business. ## Start with one WhatsApp workflow Don't begin with: > "Automate our entire WhatsApp." Start with something measurable. For example: > Answer a defined set of product questions and escalate everything else. Then: > Qualify incoming sales leads and create them in the CRM. Then perhaps: > Allow customers to check and change selected bookings through controlled tools. Each stage teaches you about real customer language, integration quality, failure cases, and business value. ## The goal isn't a bot that talks like a human A convincing conversation is useful, but it isn't the main objective. A successful WhatsApp AI system should help the customer get something done. That may mean finding the right information in seconds. It may mean qualifying a lead without waiting for a salesperson. It may mean completing a booking. Or it may simply mean recognizing that a human should take over immediately. The best architecture is the one that makes that process reliable. ## Thinking about automating WhatsApp in your business? Start by mapping the ten most common conversations your team handles today and what employees do after receiving each one. That map will tell you much more than starting with a model comparison. **Discuss your WhatsApp AI automation project with Fady Mondy.** We can start with the workflow, integrations, and business outcome — then decide how much AI the solution actually needs. --- **Related:** AI Agents vs Chatbots, AI Chatbots for Business, AI Automation, AI Integration, and AI for Business. --- Source: https://fadymondy.com/en/blog/whatsapp-ai-automation-business --- # AI Agents vs Chatbots: Which Does Your Business Actually Need? > AI agent or chatbot? The difference is not the chat window — it is what happens after the system understands the request. This practical guide explains chatbots, AI agents, RAG, memory, permissions and human approval so businesses can choose the simplest architecture that solves the real workflow. #AIAgents #AIChatbots #AIAutomation #AgenticAI #RAG #AIForBusiness *2026-09-17T05:38:16Z* # AI Agents vs Chatbots: Which Does Your Business Actually Need? A customer sends a message on your website or WhatsApp. They want to know whether an order can be changed. One system answers with your company's policy. Another system finds the customer, checks the order, verifies whether a change is allowed, updates the relevant system, records what happened, and asks a human for approval if the case falls outside its permissions. Both may have a chat interface. Technically and operationally, however, they are very different systems. This distinction matters because businesses increasingly ask for an **AI agent** when what they actually need is a good chatbot — or buy a chatbot when the workflow requires an agent that can take controlled actions. The right question isn't which term sounds more advanced. It's: > **What does the system need to do after it understands the user's request?** ## A chatbot primarily communicates At its simplest, a chatbot receives a message and returns a response. A traditional scripted bot might follow fixed rules. A modern AI chatbot can understand natural language and generate more flexible answers. Add retrieval, and it can answer using approved company knowledge rather than relying only on the model's general knowledge. A useful business chatbot might: - Answer frequently asked questions. - Explain products or services. - Search a knowledge base. - Summarize information. - Collect initial customer details. - Help employees find internal documentation. - Route a conversation to the right team. For many businesses, this is enough. If the problem is **help people find and understand information**, don't add agent complexity simply because agents are fashionable. ## An AI agent can operate tools An agent goes beyond generating an answer. It can potentially decide what action is required, select an available tool, retrieve information, perform a step, inspect the result, and continue until the task reaches a defined state. Consider this request: > "Can you move my booking from Tuesday to Thursday afternoon?" A chatbot may explain the rescheduling policy. An agentic system could, depending on its permissions: 1. Identify the customer. 2. Retrieve the current booking. 3. Check available Thursday slots. 4. Apply business rules. 5. Ask the customer to select a valid option. 6. Update the booking through an API. 7. Record the change. 8. Send confirmation. The important difference isn't that the agent writes a better answer. **It can interact with the business workflow.** ## Chat is an interface, not an architecture One source of confusion is that both systems can look identical to the user. A chat window could be connected to: - A scripted bot. - An LLM. - An LLM with RAG. - A workflow automation system. - An AI agent with tools. - A multi-agent system. So don't choose architecture based on the interface. Start with what must happen behind it. ## Where does RAG fit? Suppose a customer asks: > "What is your refund policy for this product?" A general model shouldn't be expected to know your current internal policy. A RAG system can retrieve relevant information from approved sources such as documentation, product data, policies, or internal knowledge and provide that context to the model. That makes RAG useful for both chatbots and agents. A chatbot may use RAG to answer accurately. An agent may use retrieval as one step before deciding what action is allowed. RAG therefore doesn't turn a chatbot into an agent. It solves a different problem: **getting relevant knowledge into the current task.** ## Memory is another separate problem Now imagine the customer says: > "I spoke to you about this last week." Retrieving the refund policy doesn't solve that problem. The system may need access to conversation history, previous decisions, customer context, or long-term memory. This distinction between retrieval and memory became important in my own work on **CaBrain**, where I have been building a long-term memory layer for AI agents rather than treating vector similarity as the entire memory problem. An agent may need to know: - What is true about the business. - What happened previously. - What changed recently. - Which entities are related. - Which information is authoritative. Those are related problems, but they aren't identical. ## The real jump in complexity is permission Giving a system information is one thing. Giving it the ability to act is another. A chatbot that produces a bad answer creates a customer experience problem. An agent with permission to issue refunds, change bookings, send messages, modify records, or trigger infrastructure can create a much larger problem if its controls are poorly designed. Once an AI system can take actions, I start thinking about: - Authentication. - Authorization. - Tool-level permissions. - Validation. - Audit logs. - Rate limits. - Idempotency. - Human approval. - Reversibility. - Failure recovery. - Monitoring. This is why a production AI agent is not simply an LLM plus a few function calls. ## Human approval is often the correct architecture Autonomy doesn't need to be binary. A useful pattern is: **Understand → Prepare → Ask for approval → Execute → Record** For example, an agent can prepare a refund decision with the relevant evidence, but a human approves the transaction. Or it can draft a sales follow-up but require approval before sending it. As confidence, testing, and business rules improve, selected low-risk actions can become more automated. This lets companies gain value without giving a probabilistic system unrestricted authority on day one. ## What about WhatsApp AI? This distinction is particularly useful when thinking about WhatsApp automation. A WhatsApp AI chatbot could answer: > "What time do you close?" or: > "Which package includes this feature?" An AI agent connected to WhatsApp could potentially handle a larger workflow: > Understand the request → find the customer → retrieve the order → check available actions → perform an approved action → update the CRM → respond. WhatsApp remains the channel. The intelligence and workflow live behind it. ## When should you choose a chatbot? A chatbot is usually a strong starting point when the primary job is: - Answering questions. - Navigating knowledge. - Explaining products. - Internal knowledge search. - Collecting information. - Basic qualification. - Routing users. It's especially attractive when you want a narrower system with fewer operational risks. ## When should you consider an AI agent? An agent becomes more relevant when the system must: - Use multiple tools. - Perform multi-step tasks. - Search and compare information. - Interact with business systems. - Make bounded decisions about the next step. - Maintain task state. - Execute actions. - Work asynchronously. But "can use an agent" doesn't mean "should use an agent." If a deterministic workflow can solve the process reliably, I usually prefer the simpler architecture. ## Sometimes the best solution is both A customer-facing chatbot can be the interface while controlled agents or workflows operate behind it. For example: **Customer → Chatbot → Intent → Workflow/Agent → Business Systems → Result → Chatbot** The customer gets a simple conversation. The company gets a structured system behind it. This is often more useful than trying to turn the entire application into one autonomous agent. ## A practical decision framework Before choosing between a chatbot and an agent, answer these questions: ### 1. Does the system only need to answer, or must it act? If it only needs to answer, start with a chatbot. ### 2. Does it need company knowledge? Consider retrieval/RAG. ### 3. Does it need to remember previous interactions? Design explicit state or memory rather than assuming the model will remember. ### 4. Does it need external systems? List the APIs and tools it actually needs. ### 5. Can the workflow be deterministic? If yes, conventional automation may be the better core architecture. ### 6. What happens when it is wrong? This determines permissions, validation, and human approval. ### 7. Can you measure success? Define metrics such as resolution time, automation rate, escalation rate, accuracy, cost per task, or hours recovered. ## Don't buy the label. Design the workflow. The market will continue producing new terms for AI systems. Your business problem doesn't care what the architecture is called. If a chatbot solves it, build a chatbot. If a deterministic workflow solves it, build automation. If the system genuinely needs to reason across tools and execute multi-step work, consider an agent. And if the workflow requires all three, combine them deliberately. The objective isn't maximum autonomy. It's **reliable business value with the minimum necessary complexity.** ## Not sure whether your workflow needs a chatbot or an AI agent? Describe what happens today from the moment a customer or employee makes a request until the work is completed. From that workflow, it becomes much easier to decide what should be deterministic, where AI adds value, and where human approval belongs. **Discuss your AI project with Fady Mondy.** Start with the workflow — not the AI label. --- **Related:** AI Automation for business, AI Agents for real business workflows, AI Chatbots for business, AI Integration, and AI for Business. --- Source: https://fadymondy.com/en/blog/ai-agents-vs-chatbots-business --- # How Much Does It Cost to Build a Custom AI System for a Business? > How much does a custom AI system cost? The useful answer starts with scope: workflow, integrations, data, permissions, AI usage and operating cost. This guide shows what actually drives the budget and how to start without overbuilding. #AIDevelopment #CustomAI #AIForBusiness #AIConsulting #AIAutomation #AIAgents #GenerativeAI *2026-09-17T05:38:16Z* # How Much Does It Cost to Build a Custom AI System for a Business? When someone asks me, **“How much does it cost to build an AI system?”**, giving a number before understanding the workflow is usually misleading. A system that answers questions from company documents is not the same project as an AI agent that connects to a CRM, reads customer data, prepares quotations, requests approval, updates records and keeps an audit trail. Both may be called “AI systems.” Their engineering scope is completely different. So the useful question is not: > **How much does AI cost?** It is: > **What business process are we changing, what must the system be allowed to do, and what does success look like?** ## The AI model is only one part of the cost It is tempting to estimate a project by looking at API token prices or comparing models. In production, the model may be one of the smaller parts of the engineering problem. A real system can include: - Product and workflow design. - Backend and frontend development. - Authentication and permissions. - CRM, ERP, booking or internal API integrations. - Data preparation and retrieval. - RAG or search infrastructure. - Agent tools and orchestration. - Human approval flows. - Logging and auditability. - Evaluation and testing. - Monitoring and failure handling. - Hosting, databases and queues. - Ongoing model usage. - Security and privacy controls. That is why two systems using the same LLM can have dramatically different implementation costs. ## Start by pricing the workflow, not the prompt Imagine two companies asking for an “AI customer service system.” The first wants the system to answer 50 common questions using approved documentation and hand everything else to an employee. The second wants it to identify customers, retrieve orders, check policies, modify bookings, update the CRM, create tickets, work on WhatsApp and the website, support Arabic and English, and request approval for sensitive actions. The prompt is not what separates these projects. The workflow does. Before discussing a budget, I would map: **Trigger → Input → Knowledge → Decision → Systems → Action → Approval → Result → Measurement** Once that exists, the estimate becomes much more meaningful. ## What actually drives the cost? ### 1. Scope A narrowly defined workflow is cheaper to build, test and operate than an open-ended assistant expected to “help with everything.” This is one reason I prefer starting with one measurable use case. For example: > Qualify inbound leads and create structured records in the CRM. That is much easier to estimate than: > Build an AI employee for the company. ### 2. Integrations Every external system introduces real engineering work. A CRM may have a clean API. An old ERP may not. Internal systems may require authentication changes, new endpoints or data cleanup before AI can use them safely. Integration work can include: - Authentication. - API clients. - Field mapping. - Webhooks. - Retries. - Idempotency. - Rate limits. - Error handling. - Sync logic. - Permission boundaries. If the AI must act inside the business, integrations often matter more than the model choice. ### 3. Company knowledge and data If the system needs your private knowledge, we need to understand where that knowledge lives and how reliable it is. It may be spread across PDFs, a CMS, Notion-like documents, a database, CRM notes, support tickets or internal applications. A RAG system may be appropriate, but “add RAG” is not a complete architecture. Questions include: - Which sources are authoritative? - How often do they change? - Who can see which information? - How is content chunked and indexed? - What happens when sources disagree? - Do answers need citations or provenance? Poor data does not become good data because an LLM can read it. ### 4. Actions and autonomy The cost and risk increase when a system moves from **answering** to **doing**. Reading an order status is one thing. Changing the order is another. Issuing a refund is another again. An AI agent that can execute actions may require tool permissions, validation, approvals, audit logs, recovery paths and tests around each action. The more business state the system can change, the more carefully it should be engineered. ### 5. User experience An internal tool for five employees can have a very different product scope from a customer-facing system used across web and WhatsApp. Cost can increase with requirements such as: - Admin dashboards. - Customer chat interfaces. - Arabic/English UX. - Conversation history. - Role-based access. - Notifications. - Human handoff. - Analytics. - Mobile support. The AI backend is only part of the product. ### 6. Accuracy and evaluation requirements A prototype can look impressive after ten good demonstrations. Production needs to handle the cases that do not appear in the demo. Evaluation may include datasets of real tasks, expected outputs, tool-call correctness, retrieval quality, escalation behavior, latency and failure scenarios. A low-risk internal summarizer and a system that changes customer records should not have the same acceptance bar. ### 7. Privacy and deployment Some businesses can use hosted AI APIs comfortably within their requirements. Others may need stronger data isolation, private infrastructure, a local LLM or an on-premise deployment. Private AI can change the infrastructure work significantly because you may now own model serving, GPU capacity, scaling, monitoring and upgrades. The cheapest model per token is not automatically the cheapest system to operate. ## Build cost and operating cost are different A useful estimate separates at least two things: **Implementation cost** — designing and building the system. **Operating cost** — keeping it running as usage grows. Operating cost may include: - Model/API usage. - Embeddings and reranking. - Databases and vector/search infrastructure. - Application hosting. - Queues and workers. - Observability. - Storage. - Third-party APIs. - Messaging channels. - Maintenance and model changes. A system with a higher implementation cost can sometimes be cheaper to operate if its architecture avoids unnecessary model calls or uses deterministic code for work that does not need AI. ## Don't send every task to the most expensive model A production AI architecture can use different components for different jobs. For example: - Deterministic code for business rules. - Search or RAG for knowledge retrieval. - A smaller model for classification or extraction. - A stronger model only for tasks that require deeper reasoning. - Human approval for high-risk decisions. This is often better than routing every message through the largest available model. The objective is not to minimize token cost at all costs. It is to achieve the required quality and reliability without wasting compute. ## Prototype, pilot and production are different budgets One reason AI pricing discussions become confusing is that people compare different stages. ### Prototype Answers: **Can this idea work technically?** It may use sample data, limited integrations and manual steps. ### Pilot Answers: **Does this solve a useful problem for real users?** It introduces real workflows, selected integrations, measurement and controlled usage. ### Production Answers: **Can the business depend on this?** Now we care about permissions, reliability, monitoring, edge cases, support, security, scalability and operational ownership. A prototype price should never be interpreted as the total cost of a production system. ## So can you give a fixed price? For a clearly defined workflow, yes — after discovery. For an undefined request such as “we want AI in our company,” a responsible fixed price is difficult because the main variables have not been decided yet. Instead of inventing a universal number, I would first establish: - The business problem. - Current process. - Users and channels. - Data sources. - Required integrations. - Actions the system may perform. - Risk and approval requirements. - Expected usage. - Success metric. Then the project can be divided into a first valuable scope and estimated around real work. ## A better way to control the budget If budget matters — and it should — reduce uncertainty before adding features. A practical sequence is: **1. Map one expensive or repetitive workflow.** **2. Measure its current cost or friction.** **3. Identify which parts need AI and which need normal software.** **4. Build the smallest end-to-end version that can create value.** **5. Test it with real cases.** **6. Measure the result.** **7. Expand only when the evidence justifies it.** This is much safer than approving a large “AI transformation” project before proving one workflow. ## Think in ROI, not only project price Suppose a workflow consumes 200 employee-hours every month. The important questions are not simply whether the new system costs X or Y. Ask: - How many of those hours can realistically be reduced? - Does the system increase throughput? - Does it shorten customer response time? - Does it improve lead handling? - Does it reduce operational mistakes? - Does it create a capability the company could not offer before? Then compare the expected value with both implementation and ongoing cost. Do not manufacture an ROI percentage before you have baseline data. Measure the current process first. ## When custom AI is probably unnecessary You may not need custom development when an existing SaaS product already solves the workflow well, the process is generic, integrations are standard, and your business does not gain anything meaningful from owning the implementation. Buying can be the better engineering decision. Custom AI becomes more interesting when the workflow is specific to the business, requires deep integration, uses proprietary knowledge, needs controlled actions, or creates a capability that differentiates the product or operation. ## The most expensive AI system is one nobody uses A technically sophisticated system with no measurable adoption or business outcome is expensive regardless of its invoice. I would rather build a small workflow that employees or customers use every day than a broad AI platform that looks impressive in a presentation but never becomes part of operations. The budget should follow the value. ## Planning a custom AI system? Before asking vendors or engineers for a price, write down one workflow you want to improve: - What starts it? - Who handles it today? - Which systems are involved? - What decisions are made? - What actions happen? - Where does it fail or waste time? - How would you measure improvement? With those answers, the conversation can move from **“How much does AI cost?”** to **“What is the smallest system worth building?”** **Discuss your custom AI project with Fady Mondy.** I can help map the workflow, choose the architecture and turn the first valuable scope into a production system without adding AI where normal software is the better tool. --- **Related:** AI for Business, AI Consulting, AI Automation, AI Agents, AI Integration, Custom Software Development, and Private AI. --- Source: https://fadymondy.com/en/blog/custom-ai-system-cost-business --- # How to Calculate AI ROI Before You Invest in an AI Project > Before investing in AI, calculate the business case. Measure the current workflow, loaded labor cost, volume, error cost, revenue impact, implementation and operating cost — then test the assumptions with a pilot. #AIROI #AIForBusiness #AIAutomation #AIInvestment #BusinessAutomation #AIConsulting #DigitalTransformation *2026-09-17T05:38:16Z* # How to Calculate AI ROI Before You Invest in an AI Project A business should not invest in AI because the technology is impressive. It should invest because a specific change has a reasonable path to creating more value than it costs. That sounds obvious, but many AI projects begin in the opposite direction: > “We want to use AI. What can we build?” I prefer starting with: > **“Which business process is expensive, slow, constrained or creating lost opportunities — and can AI improve it enough to justify the investment?”** That question gives us something we can measure. ## ROI starts before the AI project You cannot calculate improvement if you do not know the current state. Before estimating what AI will save, measure what the workflow costs today. For a repetitive operational process, that might include: - Number of tasks per month. - Average handling time. - Number of employees involved. - Loaded labor cost. - Rework. - Error rate and error cost. - Waiting time. - Escalations. - Software costs. - Lost or delayed opportunities. For a sales workflow, the useful baseline may instead include response time, leads handled, qualification completion, meetings created, conversion rate and average contribution per converted customer. The metric depends on the business problem. ## Start with a simple ROI equation At a high level: **ROI = (Value Created − Total Cost) ÷ Total Cost × 100** If a project costs 100,000 in your chosen currency and creates 150,000 of measurable value over the period being evaluated: **ROI = (150,000 − 100,000) ÷ 100,000 × 100 = 50%** The arithmetic is easy. The difficult part is making the **Value Created** and **Total Cost** assumptions credible. That is where most of the work belongs. ## Don't confuse salary with the cost of a workflow Suppose five employees each spend 20 hours per month on a repetitive task. That is: **5 × 20 = 100 hours/month** If the relevant loaded labor cost is 100 per hour in your chosen currency, the direct labor baseline is: **100 × 100 = 10,000/month** If a tested automation reduces 60% of that effort, the theoretical recovered capacity is: **10,000 × 60% = 6,000/month** But be careful with the interpretation. Saving 60 employee-hours does not automatically mean 6,000 appears as cash in the bank. The value depends on what happens to that capacity. Can the team handle more customers? Can you avoid hiring additional staff? Can employees move to higher-value work? Does response time improve enough to affect revenue? ROI should reflect the real economic outcome, not just a spreadsheet multiplication. ## There are several kinds of AI value Cost reduction is only one category. ### 1. Labor capacity AI automation may reduce repetitive manual work. Measure hours before and after, but also measure what the recovered capacity is used for. ### 2. Increased throughput The same team may be able to process more requests, documents, leads, tickets or transactions. This can matter more than reducing headcount. ### 3. Faster response For customer service or sales, reducing waiting time can improve the experience and potentially affect business outcomes. Do not assume the revenue effect — measure it. ### 4. Error reduction Some workflows have a meaningful cost of mistakes: rework, refunds, operational delays, incorrect data or compliance handling. If AI plus validation reduces those errors, that value can be measured. ### 5. Revenue enablement An AI system might qualify more leads, improve follow-up coverage, provide a new paid capability or let a product serve a use case it could not support before. Revenue claims should be tied to observed conversion or usage data rather than optimistic assumptions. ### 6. Risk reduction Some systems create value by improving consistency, traceability or review coverage. Risk value is harder to quantify, so keep assumptions explicit rather than inventing precise numbers. ## Calculate the full project cost Do not compare business value only with the initial development invoice. A more complete cost model can include: ### One-time costs - Discovery and workflow design. - Development. - Integrations. - Data preparation. - Evaluation setup. - Migration or rollout. - Training and change management. ### Ongoing costs - Model/API usage. - Hosting and databases. - Vector/search infrastructure. - Third-party APIs. - Messaging providers. - Monitoring. - Maintenance. - Human review. - Support. If the system requires private model hosting or local LLM infrastructure, include the infrastructure and operational ownership required for that deployment too. ## Add human review to the model A common ROI mistake is assuming that automation means zero human involvement. If 30% of cases still require review, escalation or approval, include that cost. For example: **Monthly task volume × escalation rate × average review time × loaded hourly cost** That gives you a better estimate of the remaining manual work. Human-in-the-loop is not a failure. In many workflows it is the architecture that makes automation safe enough to use. But it belongs in the economics. ## Include failure and exception rates A demo often shows the happy path. ROI happens across the full distribution of real work. Track: - Tasks completed successfully. - Tasks escalated correctly. - Tasks escalated unnecessarily. - Incorrect outputs. - Failed tool calls. - Manual rework. - Customer abandonment. If an AI saves five minutes on successful cases but creates twenty minutes of cleanup on failed ones, the failure rate matters enormously. ## Use ranges instead of pretending you know the future Before a pilot, you rarely know the exact automation rate or business impact. Instead of one forecast, create scenarios. For example: **Conservative:** 25% of eligible work automated. **Expected:** 45%. **Upside:** 65%. These percentages are examples for scenario planning, not benchmarks. Then calculate the economics under each scenario. If the project only makes sense in the most optimistic case, that is useful information. ## Calculate payback period too ROI tells you efficiency over a period, but businesses also care about how long capital is tied up. A simple payback calculation is: **Payback Period = Initial Investment ÷ Monthly Net Benefit** If implementation costs 60,000 and the measured net benefit after operating costs is 10,000 per month: **Payback = 6 months** Again, these numbers are illustrative. The important part is using measured inputs from your business when making the real decision. ## Example: customer service automation Imagine a company receives a high volume of repetitive customer questions. Before building anything, measure: - Monthly supported conversations. - Average handling time. - Cost per employee hour. - Percentage of conversations that are repetitive and eligible for automation. - Escalation rate. - Current response time. Then run a controlled pilot. After the pilot, measure: - Resolution without human intervention. - Correct escalation. - Average automated handling cost. - Human review time. - Customer abandonment. - Quality against a reviewed sample. Now the ROI model is based on observed behavior rather than a vendor promise. ## Example: sales lead qualification Suppose salespeople spend significant time reading inbound enquiries and asking the same qualification questions. An AI workflow could collect missing information, structure the lead, check defined criteria and create the CRM record. Do not measure success by “number of AI conversations.” Measure things such as: - Time from enquiry to first response. - Percentage of leads fully qualified. - Sales time spent per lead. - Qualified meetings created. - Incorrect qualification or missed opportunities. - Cost per qualified lead. If the workflow improves speed but reduces lead quality, the business case may be weaker than the automation dashboard suggests. ## Example: internal knowledge assistant An internal RAG assistant may not directly generate revenue. Its value could come from reducing time employees spend searching for information. Measure a representative set of knowledge tasks before launch: - Time to find the correct answer. - Percentage completed successfully. - Number of interruptions to senior employees. Then measure the same tasks with the system. This gives you a much stronger basis than saying “employees will save time with AI.” ## Don't count the same value twice Suppose automation saves employee time and also allows the company to handle more volume. Be careful not to count the full labor saving **and** the full additional revenue if both depend on the same recovered capacity. Build the economic model around what will actually happen operationally. This is especially important when presenting AI ROI internally because inflated assumptions can make a project look attractive on paper and disappointing in production. ## Separate technical metrics from business metrics AI teams may track: - Retrieval precision. - Tool-call success. - Model latency. - Token usage. - Evaluation scores. Those are important operational metrics. Leadership may care about: - Cost per completed task. - Hours recovered. - Revenue influenced. - Customer resolution time. - Capacity gained. - Error cost reduced. - Payback period. You need both layers. Technical metrics explain **why** the system behaves as it does. Business metrics tell you whether it was worth building. ## A practical pre-investment worksheet Before approving an AI project, answer these questions: ### Current state - What workflow are we changing? - How many times does it happen per month? - How long does each case take? - What does the process cost today? - What are the current error and escalation rates? ### Proposed system - Which steps will AI handle? - Which steps remain deterministic software? - Which steps remain human? - What integrations are required? ### Economics - What is the implementation cost? - What is the expected monthly operating cost? - What human review cost remains? - What measurable value could be created? ### Validation - What assumptions are still unknown? - Can a pilot test them? - What metric would cause us to expand? - What metric would cause us to stop? This turns an AI project into an investment hypothesis that can be tested. ## The pilot should validate the economics, not only the technology A prototype asks: > Can the model do this? A useful pilot should also ask: > Does doing this create enough value in our real workflow? That means collecting baseline data **before** the pilot and measuring the same process **during** the pilot. Otherwise you may prove that the AI works technically without proving that the project makes business sense. ## When the ROI is difficult to calculate Not every project has an immediate clean financial return. A strategic product capability, research system or infrastructure investment may create optionality that is difficult to reduce to one number. In those cases, do not manufacture fake precision. Define the strategic hypothesis and measurable leading indicators instead. For example: - Adoption by target users. - Frequency of use. - Task completion. - Time-to-market improvement. - Ability to support a previously impossible workflow. Financial ROI can be revisited when enough operational data exists. ## AI should compete with other uses of the budget The real decision is rarely “AI or nothing.” The same budget might improve the underlying software, integrate disconnected systems, hire staff, improve sales operations or automate the process without AI. A strong AI business case should therefore answer: > **Why is this architecture the best way to improve this workflow compared with the realistic alternatives?** Sometimes AI wins. Sometimes conventional automation wins. Sometimes fixing the process first creates more value than either. ## Before you approve the AI budget Do not start with an ROI percentage copied from an industry report. Start with your own workflow. Measure what it costs today. Identify the part that can realistically change. Estimate implementation and operating cost. Write conservative, expected and upside scenarios. Then use a pilot to replace assumptions with evidence. That is how AI ROI becomes a business calculation instead of a marketing claim. ## Want to evaluate an AI project before investing in it? Bring me one workflow, its current volume, the people involved and the systems it touches. We can map the process, identify where AI is useful, define the baseline and design a pilot around measurable business outcomes. **Discuss your AI project with Fady Mondy.** The objective is not to prove that your company needs AI. It is to determine whether a specific AI investment is worth making. --- **Related:** AI for Business, AI Automation, AI Consulting, Custom AI Cost, AI Agents, AI Integration and Business Automation. --- Source: https://fadymondy.com/en/blog/calculate-ai-roi-before-investing --- # Private AI: Can Your Business Use AI Without Sending Its Data to External Services? > Can your business use AI without sending sensitive data to external model providers? Yes — but private AI is an architecture decision, not just a local LLM. Here’s how local models, private RAG, access control and hybrid AI fit together. #PrivateAI #LocalLLM #PrivateRAG #EnterpriseAI #DataPrivacy #AIInfrastructure #AIForBusiness *2026-09-17T05:38:17Z* # Private AI: Can Your Business Use AI Without Sending Its Data to External Services? Yes — a business can build AI systems where sensitive company data does not need to be sent to a public external model API for every task. But there is an important distinction: > **Private AI is not the same thing as downloading a local LLM.** A model is only one component. If your application runs a model locally but sends documents to an external embedding service, stores prompts in a third-party observability platform, exposes an unprotected vector database, or gives employees unrestricted access to retrieved documents, you have not solved the full privacy problem. Private AI is an **end-to-end architecture and data-flow decision**. ## Start with the data flow, not the model Before choosing a local model, draw what happens to the data. For example: **Employee → Application → Authentication → Retrieval → Model → Tools → Response → Logs** For every step, ask: - What data enters this component? - Where does it run? - Who operates it? - What is stored? - For how long? - Who can access it? - Does it cross an infrastructure or jurisdiction boundary relevant to our requirements? This exercise often reveals that “which LLM?” is only one of many privacy decisions. ## What does Private AI actually mean? There is no single architecture that every company must call private AI. In practice, the term can describe different levels of control. ### Hosted AI with controlled data handling The company uses an external model provider but carefully controls what data is sent, which services are enabled, retention settings where available, and what information is removed or minimized before requests leave the application. This may be sufficient for some workloads. ### Private application and retrieval, hosted model Company documents, search infrastructure, permissions and business systems stay in infrastructure controlled by the company, while only the minimum context required for inference is sent to a hosted model. This can reduce exposure without requiring the company to operate its own model infrastructure. ### Self-hosted model The model runs on infrastructure controlled by the organization or its chosen infrastructure environment. Now prompts and inference can remain within that boundary, depending on the rest of the architecture. ### Fully private stack The application, model serving, embeddings, reranking, retrieval, databases, logs and supporting services all run inside the defined private environment. This provides greater control, but it also gives the organization greater operational responsibility. Privacy is therefore a spectrum of architectural choices, not a checkbox. ## Local LLM: what changes when you run the model yourself? Running a model locally or on private infrastructure can provide more control over inference data. It can also introduce responsibilities that a hosted API normally handles for you: - GPU capacity. - Model serving. - Scaling. - Availability. - Monitoring. - Model upgrades. - Quantization decisions. - Latency optimization. - Security patching. - Capacity planning. The model may be open source, but operating it is not free. This is why I would not recommend local AI simply because it sounds more private. The privacy requirement should justify the operational cost. ## Private RAG is more than a vector database Suppose employees need an AI assistant that can answer questions from internal company documents. A private RAG architecture may contain: **Documents → Processing → Chunks → Embeddings → Search Index → Retrieval → Permission Filter → Model → Answer** Every component deserves scrutiny. Where are documents processed? Where are embeddings generated? Where are vectors stored? Does retrieval preserve the original access permissions? Can the user see a document they were never allowed to open directly? Does the model receive more context than the user is authorized to access? The security boundary must survive retrieval. ## Permissions are one of the hardest parts Imagine HR, finance, sales and engineering documents exist in the same knowledge platform. A technically good search result can still be a security failure if it retrieves a salary document for an employee who does not have permission to view it. Private AI therefore needs authorization-aware retrieval. A simplified flow is: **User identity → Roles/permissions → Allowed sources → Retrieval → Model** Not: **Search everything → Give the model everything → Ask the prompt not to reveal secrets.** Prompts are not access-control systems. ## Embeddings can also be part of the privacy boundary Teams sometimes self-host the main LLM but send document chunks to an external embedding API. Whether that is acceptable depends on the company's requirements and the data being processed. If the objective is to keep document content inside a controlled environment, embeddings and reranking may need to run there too. A private stack can therefore include local embedding and reranking services in addition to the generative model. ## Logs are easy to forget Production AI systems need observability. But logging can accidentally create a second copy of sensitive information. Logs may contain: - User prompts. - Retrieved context. - Model responses. - Tool arguments. - Customer identifiers. - Error payloads. Ask what actually needs to be logged. Use redaction, structured metadata, access controls and retention policies appropriate to the system. More logging is not automatically better logging. ## AI agents increase the security surface A private chatbot that reads approved documents is one security problem. An AI agent that can operate internal tools is another. If an agent can: - Read CRM records. - Create tickets. - Update orders. - Query internal databases. - Send messages. - Execute workflows. then the architecture needs explicit tool permissions, input validation, authorization, audit trails and often human approval for sensitive actions. Running the LLM on-premise does not make an over-permissioned agent safe. ## Private AI does not automatically mean secure AI A system can be private and still insecure. For example: - Weak authentication. - Excessive permissions. - Publicly exposed endpoints. - Unpatched model servers. - Secrets inside configuration files. - No tenant isolation. - Sensitive prompts stored indefinitely. Privacy describes where data goes and who controls it. Security also asks whether unauthorized parties can access or manipulate the system. You need both. ## Do you need a fully local model? Not necessarily. A hybrid architecture is often worth considering. For example: - Sensitive documents stay in private infrastructure. - Retrieval happens privately. - Deterministic processing removes unnecessary sensitive fields. - A hosted model receives only the minimum context required for a permitted task. - Highly sensitive workflows use a private model instead. Or the reverse: a local model handles routine classification while a stronger hosted model is used only for approved complex tasks with controlled data. The correct split depends on data sensitivity, quality requirements, latency, cost and operational capability. ## Model quality still matters Privacy is not useful if the system cannot perform the task reliably enough to create value. A local model should be evaluated on the actual workload: - Languages used by employees and customers. - Domain terminology. - Structured extraction. - Tool calling. - Long-context behavior. - Retrieval-grounded answering. - Required latency. For businesses operating in Arabic and English, test both languages using real examples rather than assuming a model performs equally well across them. The best benchmark is the work the system will actually perform. ## Data residency and privacy are not identical Keeping data in a particular country or cloud region may be one requirement. Preventing a third-party model provider from receiving it may be another. Controlling employee access is another. Retention is another. Encryption is another. These requirements should be separated instead of collapsing everything into “we need private AI.” For regulated or legally sensitive workloads, technical architecture should be reviewed against the organization's actual legal, contractual and compliance requirements rather than relying on a generic privacy label. ## When Private AI may be worth considering The additional control can make sense when the system handles information such as: - Confidential internal knowledge. - Proprietary research or intellectual property. - Sensitive customer information. - Internal financial or strategic data. - Restricted operational records. - Data subject to specific contractual or organizational controls. It can also be valuable when a company needs stronger control over model availability, customization or infrastructure independence. But the decision should still be workload-specific. ## When a hosted AI service may be the better choice A hosted model can be attractive when: - The data is not highly sensitive for the intended use. - The provider's terms and controls satisfy the organization's requirements. - The company wants access to stronger models without operating GPUs. - Usage is variable. - Speed of implementation matters. - The internal team does not want to own model infrastructure. Self-hosting is not automatically the more mature architecture. Sometimes using a managed service with good controls is the more responsible engineering choice. ## Compare total cost, not API price versus GPU price A meaningful cost comparison includes more than model inference. For hosted AI, consider: - API usage. - Data transfer where relevant. - Supporting application infrastructure. - Vendor constraints. For self-hosted AI, consider: - GPU infrastructure. - Idle capacity. - Engineering time. - Deployment. - Monitoring. - Scaling. - Failover. - Upgrades. - Security maintenance. A local model with zero per-token API invoice can still have a higher total cost of ownership. ## Example: private internal knowledge assistant Imagine a company wants employees to ask questions across internal policies, procedures and technical documentation. A reasonable architecture might be: 1. Documents remain in controlled storage. 2. Access permissions are synchronized. 3. Documents are processed privately. 4. Embeddings are generated inside the chosen boundary. 5. Retrieval filters results by the requesting user's permissions. 6. The model receives only authorized context. 7. Answers reference the supporting sources when useful. 8. Logs avoid unnecessarily storing sensitive document text. Whether step 6 uses a self-hosted or hosted model is then a separate decision based on the company's requirements. That is a much more useful conversation than simply saying “we need a local LLM.” ## Example: private AI agent Now imagine the assistant can also create an internal request. The architecture must add another layer: 1. Understand the employee's intent. 2. Retrieve permitted context. 3. Select an allowed tool. 4. Validate the requested action. 5. Check the user's authorization. 6. Ask for approval if required. 7. Execute through the business API. 8. Record an audit event. 9. Return the result. The model does not receive direct unrestricted database access. The business system remains responsible for enforcing business rules. ## A practical Private AI decision framework Before deciding to self-host, answer these questions: ### Data - What exact data are we protecting? - Is all of it equally sensitive? - Can sensitive fields be removed before inference? ### Boundary - What does “private” mean for this organization? - Our VPC? - Our cloud account? - Our physical infrastructure? - A specific geographic region? ### Workload - What tasks must the model perform? - What quality level is required? - Which languages must it support? ### Integration - Which internal systems will it access? - What actions can it perform? ### Operations - Do we have the capability to operate model infrastructure? - What availability and latency do we need? ### Economics - What is the total cost of ownership? - Is the additional control worth that cost for this workload? These answers should drive the architecture. ## Build the smallest privacy boundary that satisfies the real requirement There is a temptation to make everything local once privacy becomes a concern. That can create a large infrastructure project before the AI use case itself has proven value. A better approach is to classify the data and workflows first. Perhaps 80% of tasks can use a managed model with controlled inputs while 20% require a private path. Perhaps all retrieval must stay private but generation can be hosted. Perhaps the entire workload genuinely must remain inside the organization's infrastructure. Do not choose the most complicated architecture by default. Choose the smallest architecture that satisfies the requirement reliably. ## Private AI should still have a business case Privacy requirements can constrain the architecture, but the system still needs a reason to exist. Measure the same things you would measure for any AI project: - Task completion. - Time saved. - Quality. - Adoption. - Operating cost. - Error and escalation rates. A private AI platform nobody uses is not valuable simply because it runs locally. ## Considering Private AI for your company? Start by drawing your data flow and identifying which information truly cannot leave the boundary you define. Then evaluate the workload, model quality, RAG architecture, permissions, integrations and total operating cost. Only after that decide what needs to be local. **Discuss your Private AI architecture with Fady Mondy.** I can help design private or hybrid AI systems — including local LLMs, private RAG, embeddings, reranking, access-controlled retrieval and production integrations — around the actual security and business requirements rather than the label. --- **Related:** Private AI Services, AI Integration, AI Consulting, AI for Business, AI Agents, Custom AI Cost and AI ROI. --- Source: https://fadymondy.com/en/blog/private-ai-without-sending-company-data --- # From Excel and WhatsApp to One System: When Does Your Business Need Custom Software? > Excel and WhatsApp can run a business surprisingly far. The problem starts when information fragments, work is duplicated and growth depends on manual coordination. Here’s how to decide whether to integrate, buy SaaS, automate, or build custom software. #CustomSoftware #SoftwareDevelopment #BusinessAutomation #DigitalTransformation #SaaS #SystemIntegration #AIForBusiness *2026-09-17T05:38:17Z* # From Excel and WhatsApp to One System: When Does Your Business Need Custom Software? There is nothing inherently wrong with running part of a business on Excel, WhatsApp, email and a few SaaS tools. In fact, that can be exactly the right architecture when a company is small and the process is still changing. The problem begins when the business grows but the operating model does not. A customer request arrives on WhatsApp. Someone copies it into a spreadsheet. Another employee checks a separate system. A manager approves something in a group chat. Finance maintains another sheet. Nobody is completely sure which file contains the latest status. At that point, the question is not: > **“Should we replace Excel?”** The better question is: > **“Has manual coordination become part of the cost and risk of running the business?”** If it has, it may be time to integrate your existing tools, buy a better SaaS product, automate the workflow — or build custom software. The correct answer is not always custom development. ## Excel is often a good starting point Spreadsheets are flexible, familiar and fast. A new business can use them to validate a process before anyone knows exactly what the final system should look like. That is valuable. I would not replace a spreadsheet simply because a custom application looks more professional. I would start asking questions when the spreadsheet becomes a database, workflow engine, permission system, reporting platform and integration layer at the same time. Those are responsibilities it was not designed to own alone. ## WhatsApp is excellent for communication — but not necessarily as your database WhatsApp can be a critical customer channel, especially when customers naturally prefer conversational communication. The issue is not using WhatsApp. The issue is when the only record of a business process exists inside conversations. For example: - A lead is qualified in chat but never reaches the CRM. - A customer changes an order and the update remains in a message. - A manager approves a discount but the approval is difficult to trace later. - A support problem is discussed across multiple conversations with no structured ticket. The better architecture may keep WhatsApp as the customer interface while connecting it to the systems that own the business data. **Channel ≠ source of truth.** ## Sign 1: The same information is entered more than once One of the clearest signals is duplicate data entry. If an employee receives information in one system, copies it to Excel, sends it to another employee, and then someone re-enters it into a CRM or ERP, the workflow is paying a manual integration tax. That tax appears as: - Employee time. - Delays. - Typing errors. - Missing updates. - Inconsistent records. You may not need custom software yet. An integration could solve it. But repeated copying is a signal worth investigating. ## Sign 2: Nobody knows the source of truth Ask a simple question: > “Where can I see the current status of this customer/order/project?” If the answer is: > “It depends. Check the sheet, then ask Ahmed, and maybe look in the WhatsApp group.” there is a system-design problem. A healthy architecture makes ownership clear. The CRM may own customer data. The ERP may own invoices and inventory. The booking system may own availability. A custom application may orchestrate the workflow across them. The important thing is knowing which system is authoritative for each piece of information. ## Sign 3: Growth requires adding coordinators rather than capacity Suppose every increase in customers requires another employee whose main job is moving information between people and systems. That may indicate the process does not scale operationally. Software can sometimes turn coordination into workflow: **Trigger → Validation → Assignment → Action → Approval → Notification → Record** The objective is not to remove people from the business. It is to stop using people as APIs between systems. ## Sign 4: Management depends on manually prepared reports If leadership cannot answer basic operational questions without asking someone to spend hours combining spreadsheets, the company may have data but not an information system. Typical questions include: - How many requests are waiting? - Where are they blocked? - Which customers require action? - What is the current sales pipeline? - Which orders are delayed? - How long does each stage take? A custom system is not automatically required, but reporting pain often exposes fragmented workflows underneath. ## Sign 5: Permissions are managed socially Small teams often work on trust: > “Only the finance person edits this sheet.” As the company grows, access control needs to become explicit. You may need: - Roles. - Permissions. - Approval levels. - Audit history. - Separation between departments or clients. - Sensitive-field access. If the business process has real authorization requirements, relying on folder access and team habits can become risky. ## Sign 6: Exceptions are handled entirely from memory Every business has exceptions. The problem is when only one experienced employee knows how to handle them. For example: > “If this customer is enterprise and the order is above this amount, ask this manager unless it is a renewal.” When important business logic exists only in people's heads, growth and onboarding become harder. Software can encode deterministic rules, guide employees through decisions and record why an exception happened. AI may help with unstructured cases, but the stable rules should usually remain explicit software rules. ## Sign 7: Customers wait because your systems do not talk to each other A customer asks for an update. The employee opens three systems, messages another department, waits for a response, then replies to the customer. The customer experiences that as slow service. The internal cause may simply be disconnected systems. This is why I often recommend: **Integration first → Workflow second → AI where useful.** Adding a chatbot to the front of disconnected operations does not fix the operations. ## Sign 8: Your process is genuinely different from standard software Sometimes a company has already tested several SaaS products and keeps forcing its process into someone else's assumptions. Custom software becomes more interesting when your workflow is genuinely specific and strategically important. Examples might include: - A unique approval chain. - Industry-specific calculations. - Proprietary operational logic. - Multiple internal systems that need one orchestration layer. - A customer experience that standard products cannot support. - A capability that differentiates the business itself. But “we are special” is not enough. The difference should create enough business value to justify owning custom software. ## Before building: can integration solve it? This should be one of the first questions. If you already have good CRM, accounting and support systems, replacing them may be unnecessary. A better solution may be an integration layer that synchronizes data and orchestrates the workflow. For example: **Website/WhatsApp → Lead Workflow → CRM → Sales → Proposal → ERP/Finance** The custom part can be the workflow between systems rather than rebuilding every system. This usually reduces scope and preserves mature tools where they already work well. ## Before building: can an existing SaaS solve it? Buying software can be the better decision when: - The workflow is standard. - The SaaS already supports the required integrations. - Configuration covers most requirements. - The software is not a competitive differentiator. - Subscription economics are reasonable. Custom development means taking ownership of maintenance, security, infrastructure, changes and product decisions. Do not take that ownership unless it creates enough value. ## When custom software makes more sense Custom software becomes stronger when several of these are true: - The workflow is central to how the business operates. - Existing software requires excessive workarounds. - Multiple systems need coordinated logic. - Permissions or approval flows are specific. - The company owns unique data or business logic. - Automation can create meaningful operational leverage. - The system itself can become a strategic asset. The question is not whether custom software is “better.” It is whether ownership of the system is valuable enough for your business. ## Custom software does not mean rebuilding everything This is an important distinction. A custom business platform can still use: - Existing CRM. - Accounting software. - Payment providers. - WhatsApp APIs. - Identity providers. - Cloud services. - AI APIs. - Third-party logistics or commerce systems. Good custom development often means building the missing business layer and integrating mature components rather than recreating commodity infrastructure. ## Where AI fits Once the workflow and systems are connected, AI can become much more useful. It may help with: - Reading unstructured customer requests. - Classifying tickets or documents. - Extracting structured data. - Searching company knowledge. - Drafting responses. - Prioritizing work. - Assisting employees with decisions. - Operating controlled tools through AI agents. But AI should not be used simply because the new system is custom. If a normal rule can reliably determine something, use the rule. ## Example: from WhatsApp lead to structured sales workflow Consider a company where leads arrive on WhatsApp. Today: 1. Customer sends a message. 2. Salesperson asks qualification questions. 3. Information remains in the chat. 4. Salesperson manually creates a CRM record. 5. Manager asks for updates in a group. 6. Proposal status is tracked in Excel. A better system might become: 1. WhatsApp remains the communication channel. 2. The workflow collects required information. 3. AI helps understand natural-language answers where useful. 4. A structured lead is created automatically. 5. Qualification rules are applied. 6. CRM becomes the source of truth. 7. Sales receives the next action. 8. Management sees pipeline status from live data. Notice that the solution is not “replace WhatsApp with software.” It is **connect the conversation to the operating system of the business.** ## Example: operations managed in spreadsheets Imagine an operations team maintains separate sheets for requests, assignments and completion status. Employees repeatedly copy IDs between them and management asks for a consolidated report every week. The first step should not be writing code. Map: - Entities: customer, request, assignment, employee, status. - States: new, validated, assigned, in progress, blocked, completed. - Rules: who can assign, approve or close. - Events: what should trigger notifications or integrations. - Metrics: volume, cycle time, blocked work, completion rate. That model tells you whether the answer should be a configured SaaS, an integration, a low-code workflow or custom software. ## Calculate the cost of the current fragmentation Before approving development, estimate what the current operating model costs. Measure things like: - Hours spent copying information. - Time spent preparing reports. - Delays caused by handoffs. - Rework caused by inconsistent data. - Customer requests missed. - Additional coordination hires. - Software subscriptions used only to bridge gaps. Then compare those costs with implementation and ongoing ownership of the proposed system. This connects the decision directly to ROI rather than aesthetics. ## Build the smallest useful operating system One of the biggest mistakes in custom software is trying to model the whole company in version one. Start with the workflow causing the most measurable friction. For example: **Lead → Qualification → Assignment → Proposal** or: **Request → Approval → Execution → Completion** Build it end to end. Measure whether it improves the operation. Then expand to the next connected workflow. This is usually safer than starting with a giant ERP replacement project. ## A decision framework When evaluating the next step, ask: ### Keep the current tools when The process is small, flexible, inexpensive and not creating meaningful errors or delays. ### Integrate when The existing systems are good but information has to move between them manually. ### Buy SaaS when The workflow is standard and a mature product solves it at reasonable cost. ### Automate when The process is repetitive and rules can move work between existing systems. ### Build custom software when The workflow is strategically important, sufficiently unique, and ownership creates more value than the cost of building and maintaining it. ### Add AI when The workflow contains unstructured information, language, retrieval, classification or decisions where AI adds measurable value beyond deterministic software. These choices can be combined. They are not mutually exclusive. ## The goal is not digital transformation for its own sake Moving a spreadsheet into a web application without improving the workflow is not transformation. Adding AI to the same broken process is not transformation either. The useful outcome is a business that can operate with clearer data, fewer manual handoffs, faster decisions and systems that reflect how work actually happens. Technology is the mechanism. The operating improvement is the product. ## Is your business outgrowing Excel and WhatsApp? Do not begin by asking for a new ERP or an AI agent. Map one workflow where information moves between people, spreadsheets, chats and systems. Identify the source of truth, repeated work, approvals, exceptions and measurable cost. Then choose the smallest intervention that fixes the problem — integration, SaaS, automation, custom software or AI. **Discuss your custom software project with Fady Mondy.** I help businesses turn fragmented workflows into production systems — from architecture and integrations to custom software, automation and AI where it creates real value. --- **Related:** Custom Software Development, AI Automation, WhatsApp AI Automation, AI for Business, AI Integration, AI ROI, SaaS Development and Digital Transformation. --- Source: https://fadymondy.com/en/blog/when-business-needs-custom-software --- # Does Your Engineering Team Need More Developers — or Better Technical Leadership? > When delivery slows down, hiring more developers feels like the obvious answer. But if the real bottleneck is unclear ownership, architecture, priorities, technical debt or engineering management, adding people can add coordination instead of capacity. Here’s how to diagnose the difference. #EngineeringLeadership #TechnicalLeadership #TechLeadership #SoftwareEngineering #EngineeringManagement #CTO #FractionalCTO *2026-09-17T05:38:17Z* # Does Your Engineering Team Need More Developers — or Better Technical Leadership? A product is late. The backlog keeps growing. Engineers are busy, but releases still feel slow. The natural response is: > **We need more developers.** Sometimes that is exactly right. But sometimes adding developers makes the situation worse. If the real bottleneck is unclear priorities, weak technical ownership, unstable architecture, excessive work in progress, poor engineering management or unresolved technical debt, another developer adds another person who must navigate the same broken system. Before opening more engineering positions, diagnose whether the constraint is **capacity or leadership**. ## More people do not automatically create more throughput Software development is collaborative work. A new engineer needs context, access, codebase knowledge, product understanding and decisions from other people. They also create additional communication paths. If the system around the team is healthy, that investment can produce more capacity. If the system is unhealthy, hiring can amplify the dysfunction. The question is not: > “Are our developers busy?” Busy teams can still have unused effective capacity. The better question is: > **What is preventing valuable work from moving from idea to production?** ## First distinguish demand from throughput Every product team can generate more ideas than it can build. A growing backlog alone does not prove understaffing. Ask what happens to an important item after the company decides to build it. How long does it spend: - Waiting for requirements? - Waiting for a technical decision? - In active development? - Waiting for review? - Waiting for QA? - Waiting for deployment? - Returning because requirements changed? - Returning because defects were discovered? If most elapsed time is waiting rather than implementation, hiring more implementers may not attack the constraint. ## Signal 1: developers frequently wait for decisions Imagine engineers repeatedly ask: - Which approach should we use? - Is this priority higher than the other feature? - Can we change this service? - Who owns this domain? - Is this architecture acceptable? - Should we fix the root cause or patch it? If answers arrive late or change frequently, developers are not primarily constrained by coding capacity. They are constrained by **decision latency**. Technical leadership should reduce that latency by creating clear ownership and decision boundaries. ## Signal 2: every developer solves architecture independently Autonomy is valuable. Uncoordinated architecture is not. Warning signs include: - Several patterns for the same problem. - Duplicate services. - Different approaches to authentication or authorization. - Inconsistent database conventions. - New dependencies introduced without clear ownership. - Features that work individually but interact badly. This often happens when nobody owns system-level coherence. Hiring another developer gives the system one more architect by accident. The team may need architectural leadership before additional implementation capacity. ## Signal 3: the founder or product manager has become the technical router In early companies, founders often coordinate everything. That can work with a very small team. It becomes fragile when every technical question flows through someone who is also responsible for sales, product, fundraising or operations. The symptoms can look like: - Engineers wait for the founder. - Founder attends every technical discussion. - Priorities change through private conversations. - Nobody knows who can approve technical trade-offs. - The founder spends increasing time managing engineering details. The missing role may not be another developer. It may be a Tech Lead, Engineering Manager, Head of Engineering, Fractional CTO or CTO — depending on the scope and stage. ## Signal 4: adding developers has not improved delivery This is one of the clearest reasons to investigate the system. Suppose the team grew from three engineers to six, but release frequency, lead time or customer outcomes did not materially improve. Do not immediately conclude that the new engineers are weak. Investigate: - Onboarding time. - Dependencies between developers. - Review bottlenecks. - Environment problems. - Unclear requirements. - Architecture coupling. - QA queues. - Deployment constraints. - Too much work in progress. The organization may have increased headcount without increasing the capacity of the delivery system. ## Signal 5: senior engineers spend most of their time firefighting Your strongest engineers may appear extremely productive because they solve every emergency. But if the same people are constantly: - Fixing production incidents. - Answering architecture questions. - Unblocking deployments. - Reviewing every important pull request. - Explaining undocumented systems. - Handling infrastructure manually. then they have become human infrastructure. Hiring juniors around them can increase their interruption load. Technical leadership should convert repeated heroics into systems: - Documentation. - Ownership. - Automation. - Runbooks. - Standards. - Delegation. - Better architecture boundaries. ## Signal 6: everything is priority one A team with ten top priorities effectively has no priority. Engineers switch context. Features are partially completed. Urgent work interrupts planned work. Stakeholders bypass the roadmap. Then management sees slow delivery and asks for more people. But the constraint may be prioritization. Technical leadership cannot decide business strategy alone, but it can help leadership understand engineering trade-offs and enforce a workable delivery sequence. A smaller team finishing one valuable thing can outperform a larger team starting five. ## Signal 7: technical debt is discussed but never translated into business risk “Technical debt” can become a vague engineering complaint. Leadership may ignore it because the business impact is unclear. Good technical leadership translates debt into consequences such as: - Releases take longer. - Incidents recur. - A subsystem cannot support a planned feature. - Cloud cost grows unnecessarily. - Onboarding engineers takes too long. - Security changes are risky. - One person is the only safe operator of a component. Once debt is expressed as business risk or delivery cost, it can be prioritized against product work. Without that translation, the team can keep adding developers to a system that becomes progressively harder to change. ## Signal 8: nobody owns engineering quality Who owns: - Code review standards? - Testing strategy? - Release process? - Observability? - Incident learning? - Dependency upgrades? - Security practices? - Architecture decisions? If the answer is “everyone,” the practical answer may be “nobody.” Distributed responsibility works only when expectations and mechanisms are clear. Technical leadership does not mean one person performs all these tasks. It means somebody ensures the organization has a functioning system for them. ## Signal 9: engineers do not know why they are building something A ticket says: > Add export button. The developer can implement it. But why does the customer need it? What data matters? What happens after export? Is export actually the right solution, or does another system need an integration? When engineers receive isolated tasks without business context, they can ship exactly what was requested while missing the outcome. Strong technical leadership connects product intent with implementation choices. This reduces expensive rework. ## Signal 10: product and engineering speak different languages Product says engineering is slow. Engineering says requirements keep changing. Sales says customers need everything immediately. Operations says bugs are ignored. Each group may be describing a real part of the problem. Someone needs to make the trade-offs visible. Technical leadership often acts as a translation layer between: **Business goals ↔ Product decisions ↔ Engineering constraints ↔ Operational risk** Without that layer, each team optimizes locally. ## When you really do need more developers Not every delivery problem is a leadership problem. Additional engineering capacity is justified when the system is reasonably healthy and there is genuinely more parallelizable work than the current team can execute. Signals may include: - Priorities are clear. - Architecture has defined ownership. - Engineers are not routinely blocked. - Review and deployment flow reasonably well. - Work can be divided without creating excessive dependencies. - Existing engineers are sustainably loaded. - There is a clear role for the new hire. - The company can onboard them effectively. Then adding the right capability can increase throughput. The key phrase is **the right capability**. You may need a frontend engineer, platform engineer, data engineer, mobile developer or SRE — not simply “another developer.” ## Capacity problems can be skill-shape problems Imagine a team has six backend engineers and one mobile engineer. The roadmap suddenly becomes mobile-heavy. The total headcount may look sufficient, but the required skill distribution is not. Or the team has many mid-level developers but nobody experienced in infrastructure. That is not necessarily a leadership gap or a total-capacity gap. It is a capability gap. Diagnose the shape of demand before hiring. ## Leadership does not mean adding another manager This distinction matters. A team can have too many managers and still lack technical leadership. Technical leadership is a function, not necessarily a job title. It includes things like: - Making hard technical decisions. - Clarifying ownership. - Setting engineering direction. - Connecting architecture to product strategy. - Managing technical risk. - Creating standards that reduce repeated decisions. - Developing other technical leaders. Depending on the company, this function may live with a Tech Lead, Staff Engineer, Engineering Manager, Head of Engineering, CTO or Fractional CTO. Do not hire a title before defining the missing function. ## Tech Lead, Engineering Manager and CTO are not interchangeable The boundaries vary by company, but a useful distinction is: ### Tech Lead Usually closer to a team or technical domain: implementation direction, design decisions, code quality and technical coordination. ### Engineering Manager Usually closer to people and delivery systems: team health, performance, planning, hiring, execution and organizational processes. ### CTO Usually operates at company level: technology strategy, executive trade-offs, organizational design, major architecture and technology risk. A startup may combine all three in one person. As the organization grows, they often separate. The important thing is not the title. It is whether the responsibilities are covered. ## Measure the flow before reorganizing the team You do not need a giant analytics program. Start with a sample of recent meaningful work. For each item, reconstruct: **Requested → Ready → Started → Reviewed → Tested → Deployed → Verified** Then ask: - Where did it wait? - Why did it return to an earlier stage? - Who was needed to unblock it? - Which dependencies appeared? - Which failures repeated? Patterns usually become visible quickly. This is much more useful than saying “the team feels slow.” ## Track a few engineering signals carefully Metrics should support investigation, not become performance scores for individuals. Useful team-level signals can include: - Lead time for changes. - Deployment frequency. - Change failure patterns. - Time spent waiting for review. - Unplanned versus planned work. - Incident recurrence. - Work in progress. - Reopened work. The exact metric matters less than understanding why it moves. Never use one number to decide whether engineers are productive. ## Look at the calendar too Sometimes the bottleneck is visible in meetings. Ask: - How much maker time survives? - How many recurring meetings need every engineer? - How often are priorities changed mid-sprint or mid-cycle? - How many people must approve a small decision? - How often are senior engineers interrupted? A team can lose enormous effective capacity without hiring or firing anyone simply through coordination overhead. ## Architecture can create organizational bottlenecks If every feature requires changes in the same central service, ten teams cannot truly work independently. The bottleneck is architectural coupling. Likewise, if one database, deployment pipeline or person is required for every release, increasing team count does not remove the constraint. Technical leadership should identify where architecture prevents safe parallel work. The solution may be refactoring boundaries, not adding microservices indiscriminately. ## Beware of solving leadership problems with process When ownership is unclear, organizations sometimes add ceremonies: - More status meetings. - More approval steps. - More tickets. - More reports. Process can help, but it cannot replace decision ownership. If nobody can make the architecture call, another template will not solve it. If priorities conflict, another dashboard will not choose between them. Use process to support ownership, not hide its absence. ## Beware of solving process problems with AI AI coding tools can increase individual implementation speed. That can be valuable. But if the bottleneck is review, requirements, architecture or deployment, generating code faster may simply move the queue downstream. Before measuring an AI engineering initiative by lines of code or generated pull requests, ask whether it improves the complete path to production. The objective is not more code. It is better outcomes with acceptable risk. ## A simple bottleneck map When delivery is slow, classify the constraint. ### Demand problem Too many competing priorities. **Response:** product/business prioritization. ### Decision problem Engineers wait for technical direction. **Response:** clearer technical ownership. ### Architecture problem Changes are risky or highly coupled. **Response:** architecture leadership and targeted remediation. ### Management problem Ownership, performance, planning or coordination are weak. **Response:** engineering management. ### Capability problem A specific skill is missing. **Response:** hire, contract or develop that capability. ### Capacity problem The system is healthy but there is more valid work than the team can sustainably execute. **Response:** add appropriate engineering capacity. ### Quality problem Rework and incidents consume the team. **Response:** improve quality system and address root causes. Several can exist at the same time. The purpose is to avoid treating all of them as headcount problems. ## What I would inspect before approving another engineering hire I would ask for evidence around five areas. ### 1. Work What important work is waiting, and why? ### 2. Flow Where does work spend most of its time? ### 3. Ownership Who makes product, architecture and delivery decisions? ### 4. Capability Which skill is actually missing? ### 5. Economics What outcome should the new hire improve, and how will we know? If the organization cannot answer these questions, hiring may still be necessary — but the role definition is probably premature. ## A practical example Imagine a six-person SaaS engineering team. Management wants two more developers because releases take six weeks. You inspect recent work and find: - Implementation usually takes several days. - Requirements change after development starts. - Pull requests wait days for one senior engineer. - QA happens in a large batch before release. - Deployments are manual. - Production incidents interrupt planned work. Two more developers can produce more code. But they also create more pull requests for the same reviewer and more changes for the same release process. A better first investment might be: - Clarify requirements before work starts. - Distribute review ownership. - Automate testing and deployment. - Reduce batch size. - Fix recurring incidents. Then reassess capacity. If the queue is still real, hiring becomes easier to justify and the new engineers enter a healthier system. ## Another example: leadership is fine, capacity is genuinely missing Now imagine another team where: - Product priorities are stable. - Architecture is well understood. - CI/CD works. - Reviews are distributed. - Incidents are low. - Engineers can independently own areas. - The roadmap contains several validated customer commitments that can safely run in parallel. Here, additional engineers may genuinely increase delivery capacity. The diagnosis changes the answer. ## What good technical leadership should improve Do not judge leadership by the number of documents or meetings it creates. Look for improvements such as: - Faster decisions. - Clearer ownership. - Fewer recurring incidents. - Less avoidable rework. - Better roadmap trade-offs. - More predictable delivery. - Stronger technical leaders inside the team. - Architecture that supports the product direction. - Less founder dependency. Leadership should make the system more capable, not make every decision depend on the leader. ## The goal is not to avoid hiring The goal is to hire into a system where another engineer can actually create value. Sometimes the right sequence is: **Fix ownership → Improve flow → Add capacity.** Sometimes it is: **Hire specialist → Remove bottleneck → Continue.** Sometimes the team is simply understaffed and should hire immediately. Diagnosis comes first. ## Before you hire the next developer Ask one question: > **If I add an excellent engineer tomorrow, what specifically becomes faster?** If the answer is clear and the team can absorb them, you may have a capacity case. If the answer is “they will help with everything,” inspect the delivery system first. You may discover that what the team needs is not another pair of hands, but clearer technical ownership. ## Is your engineering team growing but delivery is not improving? I can help map the bottlenecks across architecture, engineering flow, ownership, team structure and technical strategy, then separate the problems that need leadership from the ones that genuinely need more engineering capacity. **Discuss Engineering Leadership with Fady Mondy.** The goal is not to add management for its own sake. It is to build an engineering system that can ship reliably as the company grows. --- **Related:** Engineering Leadership, Fractional CTO, Engineering Architecture, Product Engineering, Full-Time CTO vs Fractional CTO vs Technical Consultant, and AI & Codebase Audits. --- Source: https://fadymondy.com/en/blog/engineering-team-needs-technical-leadership-not-more-developers --- # Why Is Your Software Project Late When the Engineering Team Is Busy? > Your engineers can be busy all day while the product still moves slowly. The delay may be hiding in queues, changing requirements, approvals, reviews, QA, architecture, incidents or oversized batches — not coding speed. Here’s how a CEO or product leader can diagnose where delivery time is actually going. #SoftwareDevelopment #EngineeringLeadership #ProductDevelopment #EngineeringManagement #CTO #Delivery #SaaS *2026-09-17T05:37:56Z* # Why Is Your Software Project Late When the Engineering Team Is Busy? The engineering team is working. Tickets are moving. Slack is active. Meetings fill the calendar. Pull requests are being opened. Yet the release date keeps moving. From a CEO or product leader's perspective, this can be confusing: > **If everybody is busy, why is the product still late?** Because activity and delivery are not the same thing. A software project can contain a lot of work while very little customer value reaches production. The missing time is often not inside coding. It is between the steps. ## The first mistake: measuring effort instead of flow When a project is late, people naturally ask: - How many hours are developers working? - How many tickets were completed? - How many story points did we deliver? - How many pull requests were created? Those signals can describe activity. They do not necessarily explain elapsed delivery time. A feature may require three days of implementation but take three weeks to reach production because it spends the rest of the time waiting. So instead of asking only: > How long did development take? ask: > **How long did the work spend at every stage from request to verified production?** ## Reconstruct the journey of one feature Pick a meaningful feature that recently shipped late. Build its timeline: **Requested → Clarified → Approved → Designed → Started → Reviewed → Tested → Deployed → Verified** Write actual dates if you have them. Then calculate where the feature was actively being changed and where it was simply waiting. This exercise often changes the conversation immediately. The team may discover that “development took four weeks” actually means: - Two days waiting for a product answer. - Four days implementation. - Three days waiting for review. - Five days waiting for QA. - A week waiting for the release window. - More time after a late requirement change. Now the problem is diagnosable. ## Delay 1: requirements are still being discovered during implementation Software work always contains uncertainty. You do not need a giant specification before writing code. But there is a difference between healthy discovery and repeatedly starting work that nobody understands well enough. Common symptoms: - Acceptance criteria appear after implementation starts. - Different stakeholders expect different behavior. - Designs change after development is mostly complete. - Engineers repeatedly ask what should happen in edge cases. - Finished work is rejected because the business expected something else. The result is not merely delay. It is **rework**. The team appears busy because it is building the same outcome more than once. ## Fix the decision, not the document count The solution is not automatically more documentation. A 50-page specification can still be ambiguous. Before starting important work, establish enough clarity around: - The user or business problem. - Expected outcome. - Important constraints. - Acceptance boundary. - Who can answer unresolved product questions. The goal is to reduce expensive reversals, not eliminate all uncertainty. ## Delay 2: priorities change faster than the team can finish Imagine five developers working on five priorities. Then an urgent customer request arrives. Two developers switch. A week later, management changes the launch target. Another developer switches. At the end of the month everybody worked hard, but little is complete. This is a work-in-progress problem. Starting is easy to see. Finishing creates value. A useful question for leadership is: > **What are we willing to stop so this new priority can start?** If the answer is “nothing,” the company is not reprioritizing. It is accumulating parallel work. ## Delay 3: work waits for one senior engineer One person reviews the important code. One person understands production. One person knows the old billing system. One person can approve architecture. That person becomes a queue. They may be the strongest engineer in the company and still be the largest delivery bottleneck. This is not necessarily their failure. The organization designed a system that requires them for everything. Look for pull requests waiting for the same reviewer, repeated questions directed to one person, deployments blocked when someone is unavailable, and components only one engineer feels safe changing. The long-term fix is to distribute knowledge and decision rights, not simply ask the senior engineer to work faster. ## Delay 4: code review became an approval queue Code review is valuable for quality, knowledge sharing and risk control. But a review process can become a queue when too few people can approve, pull requests are too large, review expectations are unclear, review is treated as lower priority than writing new code, or every change requires several approvals regardless of risk. Measure **time to first meaningful review**, not only review quality. A pull request waiting three days before anybody opens it is a flow problem. ## Delay 5: QA happens as a large batch at the end A common pattern looks like: **Build for weeks → Send everything to QA → Find many issues → Return everything to development → Retest** The larger the batch, the harder it becomes to identify what caused a failure and the more work must be coordinated. Smaller testable changes usually create faster feedback. That does not mean removing QA. It means moving quality closer to development through appropriate combinations of automated tests, developer testing, continuous integration, smaller releases, earlier acceptance checks and risk-based manual testing. Quality should be part of the delivery system, not a department at the end of it. ## Delay 6: deployment is a project by itself If releasing software requires a special day, several people, a long checklist and fear, the deployment process is consuming delivery capacity. Symptoms include large release windows, manual server changes, environment differences, difficult rollbacks, long periods between production deployments and many unrelated changes released together. The company may think engineering is slow when the real constraint is getting completed work safely into production. CI/CD, automation, observability and smaller releases can change the economics of delivery significantly. ## Delay 7: architecture makes every change touch everything A feature sounds small. Then engineering discovers it requires changes across six modules, three services and an old shared database table. The estimate was not necessarily bad. The system is highly coupled. Architecture debt often appears as delivery delay. Look for small features with surprising blast radius, frequent regressions in unrelated areas, teams blocking each other, shared components nobody wants to modify and releases that require synchronized changes. Do not respond by automatically splitting everything into microservices. The goal is clearer boundaries and safer change, not more infrastructure. ## Delay 8: production incidents steal planned capacity A roadmap may assume five engineers are available for product work. But every week they lose significant time to production bugs, customer escalations, failed deployments, data fixes, infrastructure problems and emergency support. Planning ignores this because incident work is not always represented in the roadmap. The team then appears to “miss estimates.” Track unplanned work explicitly. If recurring incidents consume capacity, fixing their root causes is product delivery work. ## Delay 9: dependencies are discovered too late A feature is almost finished when somebody realizes legal approval is required, another team must expose an API, the mobile app needs a coordinated release, customer data needs migration, a vendor account has not been approved or security needs to review the integration. The implementation estimate may have been correct, but the project plan ignored the complete delivery system. During planning, ask: > **What must be true outside the code for this feature to reach a customer?** That question exposes dependencies early. ## Delay 10: too many handoffs Product writes a ticket. Design hands it to frontend. Frontend waits for backend. Backend waits for DevOps. DevOps sends it to QA. QA sends it back to product. Every handoff creates a queue, context loss, coordination and opportunity for misunderstanding. Specialization is sometimes necessary. But excessive functional handoffs can make a small change travel through an organization like paperwork. For recurring product work, teams benefit from being able to complete more of the customer journey without external queues. ## Delay 11: estimates are treated as promises under uncertainty An estimate is a model based on what the team currently knows. If scope, architecture or dependencies are uncertain, the estimate should reflect that uncertainty. Problems begin when a rough early estimate becomes a contractual date internally, scope expands but the date does not move, new information appears but the plan is never updated, or teams hide uncertainty because leadership punishes estimate changes. Good planning is not pretending uncertainty does not exist. It is reducing uncertainty and updating decisions when evidence changes. ## Delay 12: the project is too large to produce feedback A six-month project may contain hundreds of assumptions. If customers see nothing until month six, the team can spend months being wrong without knowing it. Ask whether the project can be sliced into smaller outcomes that can be deployed and verified independently. Instead of “build the new operations platform,” consider a sequence such as: **Import orders → Assign ownership → Track status → Notify customer → Add reporting** Each step can teach the team something before the entire platform exists. ## Busy can hide blocked A blocked engineer rarely sits doing nothing. They pick another task. Then another task gets blocked. Soon the team has many things in progress. Management sees activity everywhere. But completion slows. This is why utilization can be misleading. A delivery system where every person is 100% utilized can have long queues because nobody has slack to unblock, review or respond to variability. The goal is not maximum individual utilization. The goal is healthy flow of valuable work. ## Busy can also hide rework A team may produce a lot of code because it keeps replacing code it wrote last week. Track why work is reopened: defect, misunderstood requirement, late design change, integration surprise or missing acceptance criteria. Rework is real work, but reducing avoidable rework creates capacity without hiring anyone. ## The CEO does not need to manage Jira Leadership should understand delivery without micromanaging developers. You do not need to inspect every ticket. Ask for a small set of business-relevant questions: - What are the top outcomes currently in progress? - What is blocked? - How long has it been blocked? - What decision is needed and from whom? - What unplanned work changed the plan? - What was released to customers recently? - What did we learn after release? These questions focus on flow and decisions rather than surveillance. ## What should an engineering leader make visible? A healthy engineering leadership layer should help executives see current priorities, major technical risks, delivery constraints, important dependencies, unplanned work, architecture decisions with business impact and what changed in the forecast and why. Bad news arriving early is useful information. Bad news hidden until the deadline is expensive. ## Build a delivery timeline, not just a sprint report For a sample of important features, record dates such as: | Stage | Date | | --- | --- | | Requested | — | | Ready for development | — | | Development started | — | | Development completed | — | | Review completed | — | | QA completed | — | | Production release | — | | Outcome verified | — | Then inspect the gaps. You may find that the largest opportunity has nothing to do with coding speed. ## Useful metrics — with caution Metrics should trigger questions, not become weapons. Useful team-level signals can include lead time for changes, deployment frequency, change failure patterns, recovery patterns for incidents, review wait time, work in progress, reopened work and planned versus unplanned work. Do not use one metric as an individual developer productivity score. Software work is too interconnected for that shortcut to be reliable. ## Why adding developers can make a late project later A new engineer creates short-term cost before long-term capacity: onboarding, pairing, reviews, environment setup, domain learning and additional coordination. If a deadline is already near, hiring may not solve that deadline. This does not mean you should not hire. It means hiring is an organizational investment, not an emergency speed button. ## When hiring actually is the answer After removing obvious flow problems, you may still discover a genuine capacity gap. For example, the team has clear priorities, work is not spending excessive time blocked, reviews and deployment flow well, architecture supports parallel work, unplanned work is controlled, and there is more validated work than the team can sustainably deliver. Now hiring has a much stronger case. You also know what capability to hire for because you understand where the demand exists. ## A practical delivery audit If I were reviewing a delayed software project, I would start with evidence rather than opinions. 1. Select several meaningful recent features, bugs and incidents. 2. Reconstruct timelines and find active versus waiting time. 3. Classify blockers: product, technical decision, review, QA, dependency, infrastructure, approval or incident. 4. Measure why completed work returned. 5. Inspect how much work is started compared with finishing. 6. Map who can make each recurring decision. 7. Inspect how hard it is to safely move one small change to production. 8. Compare the plan with the unplanned work that actually consumed capacity. At the end, you should be able to name the major constraints rather than simply saying “engineering is slow.” ## Do not optimize every stage at once Suppose your analysis shows development takes three days, review waits four, QA waits six and deployment waits one. Making developers 20% faster will barely change total lead time. Attack the largest meaningful constraint first. Then measure again. The bottleneck can move after you improve it. ## Delivery problems are usually system problems When a project is late, blaming one group is attractive because it produces a simple story. But delivery crosses product, engineering, design, QA, infrastructure, management and sometimes sales, legal or external vendors. A local team can be efficient while the complete system is slow. That is why senior technical leadership should optimize the path to production, not merely developer output. ## A better question for the next status meeting Instead of: > “Why aren't we finished yet?” ask: > **“Where is the work waiting, and what decision or system change would remove that wait?”** That question tends to produce much more actionable information. ## Your team is busy. Is the product still late? I can help reconstruct the real delivery flow across product, engineering, architecture, QA and production, identify where time is being lost, and separate capacity problems from process and technical leadership problems. **Discuss a Software Delivery or Engineering Leadership review with Fady Mondy.** The objective is not to make developers look busier. It is to make valuable software reach production with less waiting, rework and avoidable risk. --- **Related:** Engineering Leadership, Product Engineering, Fractional CTO, Engineering Architecture, Custom Software Development, and Does Your Engineering Team Need More Developers or Better Technical Leadership? --- Source: https://fadymondy.com/en/blog/why-software-projects-are-late-when-engineers-are-busy --- # How to Choose an AI Company or Consultant for Your Business > Choosing an AI company or consultant? Don’t start with model names. Evaluate how they understand your workflow, data, integrations, security, production risks and business outcome. Here are the questions I’d ask before signing. #AIConsulting #AICompany #AIDevelopment #AIForBusiness #CustomAI #AIAutomation #AIAgents *2026-09-17T05:38:16Z* # How to Choose an AI Company or Consultant for Your Business If you are evaluating an AI company or consultant, one of the easiest mistakes is choosing based on who gives the most impressive demo. A polished chatbot can be built quickly. The harder question is whether the person or team can take your real business problem from **workflow → architecture → integration → production → measurement**. That is what I would evaluate before signing an AI project. ## Don't start by asking which model they use OpenAI, Claude, Gemini, local LLMs and open models are tools. Model choice matters, but it should come after understanding the job. If a consultant starts with: > “We will build this with Model X.” before understanding your process, data, users, systems and risk, I would ask why the architecture has already been decided. A stronger starting question is: > **What business process are we trying to improve, and what must happen from beginning to end?** The answer may require an LLM. It may require RAG. It may require an AI agent. It may mostly require integration and conventional software. Sometimes the correct recommendation is to use less AI, not more. ## 1. Can they understand the business workflow? Before discussing architecture, they should be able to map the current process. For example: **Customer request → employee checks CRM → checks another system → makes decision → updates record → sends response** Then ask: - Where is time being lost? - Which steps are repetitive? - Which decisions require judgment? - Which data sources are authoritative? - Which actions are risky? - Where should a human remain involved? If the proposed solution does not reflect the real workflow, the project can become an expensive demo disconnected from operations. ## 2. Do they know when not to use AI? This is one of my favorite tests. Ask: > **Which parts of this project would you deliberately not build with AI?** A good answer might mention deterministic business rules, permissions, calculations, validation, authentication or straightforward workflow automation. LLMs are powerful, but they are not replacements for every software component. A consultant who tries to solve every problem with an agent may be optimizing for novelty rather than reliability. ## 3. Can they explain the architecture without hiding behind jargon? You do not need to become an AI engineer to buy an AI system. But the provider should be able to explain the major components clearly. For example: - Where does customer input enter? - Where does company knowledge come from? - Which model handles which task? - What tools can the agent use? - Which system is the source of truth? - Where are permissions enforced? - What happens when AI is uncertain? - What happens when an API fails? - What gets logged? If the explanation is only a cloud of terms such as agents, embeddings, RAG, vector databases and fine-tuning, keep asking until the business flow is understandable. ## 4. Ask what happens when the AI is wrong Do not ask only for the happy-path demo. Ask: > **Show me the failure path.** What happens if: - The model misunderstands the user? - Retrieval returns the wrong document? - The CRM is unavailable? - The user asks for an unsupported action? - Required information is missing? - Two systems disagree? - The agent attempts the same action twice? Production engineering is often about what happens when the ideal path breaks. The answer should involve controls such as validation, retries, idempotency, escalation, human approval and monitoring where appropriate — not simply “the model is very accurate.” ## 5. Ask how permissions are enforced This becomes critical when the system can take actions. If an AI agent can update customer data, change a booking, send a message or trigger another business process, ask: - How is the user authenticated? - What is the agent allowed to access? - Which actions require approval? - Are permissions checked outside the LLM? - Are actions logged? - Can an action be reversed? A prompt is not an authorization system. Business permissions should be enforced by software around the model. ## 6. Ask how your data will be handled You should understand what information enters the AI system and where it goes. Questions can include: - Which data is sent to external model providers? - Which data stays in our infrastructure? - Is sensitive information filtered or minimized? - How long is application data retained? - Who can access logs? - Does the system require a private deployment? - Would a local LLM or private RAG architecture be appropriate? There is no single deployment model that is correct for every company. The architecture should match the actual sensitivity, regulatory and operational requirements of the business. ## 7. Ask how RAG and company knowledge are designed If the project uses your documents or internal knowledge, do not accept “we'll put it in a vector database” as the complete plan. Ask: - Which sources will be indexed? - Which source wins when information conflicts? - How are updates handled? - How are access permissions preserved? - Can answers show their sources when needed? - How will retrieval quality be evaluated? RAG is a retrieval architecture, not a guarantee of correctness. ## 8. Ask how they evaluate the system A demo is not an evaluation strategy. Before production, there should be a way to test the system against representative tasks. Depending on the project, that might measure: - Answer correctness. - Retrieval quality. - Tool selection. - Tool argument accuracy. - Successful task completion. - Escalation behavior. - Latency. - Cost per task. - Failure rates. Ask what the acceptance criteria are before the project begins. If nobody can define success, it becomes difficult to know whether the AI system is improving. ## 9. Ask about operating cost, not only development cost The implementation invoice is not the full cost of an AI system. You may also pay for: - Model APIs. - Hosting. - Databases. - Vector/search infrastructure. - Messaging providers. - Third-party APIs. - Observability. - Maintenance. A good architecture should avoid using expensive AI calls for tasks that deterministic software can perform reliably. Ask for the expected cost drivers and what happens to them as usage grows. ## 10. Look for production experience, not only AI vocabulary AI projects are still software projects. They need APIs, databases, queues, authentication, deployments, monitoring, testing, security and product decisions. That is why I value evidence that a provider can build and operate complete systems — not only notebooks, prompts or isolated prototypes. Useful evidence can include: - Production products. - Technical case studies. - Open-source work. - Architecture explanations. - Real integrations. - Systems they maintain over time. The exact portfolio depends on the project, but look for evidence of shipping. ## 11. Ask who will actually build the system The person selling the project and the person implementing it may not be the same. Ask: - Who owns architecture? - Who writes the production code? - Who handles infrastructure? - Who is responsible for AI evaluation? - Who responds when production fails? - Will work be outsourced? This matters especially when you choose between a large AI company and an independent consultant. A company may provide a broader team and more capacity. A senior consultant may provide more direct access to the person making architecture decisions. Neither model is automatically better. The important thing is knowing who owns the outcome. ## 12. Ask who owns the code and infrastructure Before development starts, clarify: - Who owns the source code? - Where is the repository? - Who owns cloud accounts? - Who controls API credentials? - Who owns prompts and evaluation datasets? - Can another engineering team maintain the system later? - What documentation will be delivered? Vendor lock-in should be a deliberate business decision, not a surprise discovered after launch. ## 13. Be careful with guaranteed AI accuracy claims AI systems can be evaluated and constrained, but broad guarantees such as “100% accurate” should trigger more questions. Ask: > **100% accurate on what dataset, task and conditions?** A useful provider should be comfortable discussing uncertainty, supported use cases and failure boundaries. ## 14. Ask for a smaller first scope A provider does not need to automate the whole company in phase one. A good first project is often one workflow with: - Clear inputs. - Clear outputs. - Accessible data. - A measurable current cost or pain. - Controlled risk. - Enough value to justify the work. Then measure it. If it works, expand. This reduces risk for both sides and produces real information for the next architectural decision. ## 15. Make sure the proposal contains a business outcome Compare these two project descriptions: > “Build a multi-agent RAG platform using advanced LLM orchestration.” and: > “Reduce the manual work required to qualify inbound sales enquiries by extracting the required information, checking company criteria, creating a structured CRM record and escalating qualified opportunities to sales.” The second description tells you what the system is supposed to accomplish. The technology can then be chosen around that outcome. ## A practical vendor scorecard — without the hype Instead of ranking providers by who uses the newest model, evaluate whether each candidate can clearly address: **Business** — Do they understand the workflow and measurable outcome? **Architecture** — Can they explain the system and why each component exists? **Integration** — Can they work with your real software and data? **Safety** — Are permissions, validation and failure paths designed explicitly? **Evaluation** — Is there a repeatable way to test quality? **Operations** — Can the system be monitored, maintained and scaled? **Ownership** — Are code, infrastructure, documentation and responsibilities clear? **Communication** — Can technical trade-offs be explained in business language? You do not need a numerical score. The gaps themselves are useful discussion points. ## Red flags I would investigate further I would ask more questions when I see: - Architecture chosen before the workflow is understood. - Every problem being turned into an AI agent. - No discussion of failure cases. - No human handoff for uncertain or risky actions. - Permissions controlled only by prompts. - No clear source of truth for company data. - No evaluation plan. - No explanation of operating cost. - A prototype presented as production-ready. - Unclear code or infrastructure ownership. - Claims of universal or perfect accuracy without a defined evaluation context. None of these automatically proves a provider is bad, but each deserves a concrete answer before you commit. ## The best first meeting should leave you with better questions You should leave an AI discovery conversation understanding your own workflow more clearly than when you entered it. The provider should help separate: - What needs AI. - What needs automation. - What needs integration. - What should remain human. - What can be measured. - What can wait until later. That is more valuable than hearing a long list of model names. ## Choosing an AI partner for your business? Bring one real workflow to the first conversation rather than a general request to “add AI.” Describe what happens today, which systems are involved, where time or money is being lost, and what outcome would make the project worthwhile. Then evaluate whether the person across the table can turn that process into a clear, controlled and measurable technical plan. **Discuss your AI project with Fady Mondy.** My work starts from the business workflow and continues through architecture, AI, integration and production — with the goal of building the smallest reliable system that creates a measurable result. --- **Related:** AI Consulting, AI Development Services, AI for Business, Custom AI Cost, AI Automation, AI Agents, AI Integration, Private AI and Custom Software Development. --- Source: https://fadymondy.com/en/blog/how-to-choose-ai-company-consultant --- # RAG vs Fine-Tuning vs AI Agents: Choose the Problem Before the Technology > RAG, fine-tuning and AI agents solve different problems. RAG brings external knowledge at runtime, fine-tuning changes learned behavior, and agents connect reasoning to actions and tools. Here’s how to identify which problem you actually have before building. #RAG #FineTuning #AIAgents #LLM #AIArchitecture #AIForBusiness #GenerativeAI *2026-09-17T05:38:16Z* # RAG vs Fine-Tuning vs AI Agents: Choose the Problem Before the Technology A company says: > “We want to train AI on our data.” That sentence can describe several completely different problems. Maybe employees need answers from internal documents. Maybe the model repeatedly produces output in the wrong style. Maybe the system needs to update a CRM after understanding a customer request. Those problems do **not** automatically have the same solution. RAG, fine-tuning and AI agents are often discussed as competing technologies, but they solve different layers of an AI system. A useful starting point is: > **What is the model missing: knowledge, behavior, or the ability to act?** That question can save a lot of unnecessary engineering. ## The short version If the model needs **current or private knowledge**, investigate **RAG**. If the model needs a **learned behavior or task pattern** that prompting alone does not reliably provide, investigate **fine-tuning**. If the system needs to **take actions across tools and workflows**, investigate an **AI agent or controlled agentic workflow**. And if the problem can be solved with deterministic software, use deterministic software. These approaches can also be combined. ## What RAG actually solves RAG stands for Retrieval-Augmented Generation. Instead of expecting the model to contain all required knowledge in its parameters, the application retrieves relevant information at runtime and gives it to the model as context. A simplified flow: **Question → Search/Retrieval → Relevant Evidence → LLM → Answer** Imagine an employee asks: > “What is our current refund policy for enterprise customers?” The answer belongs in company documents, not permanently inside the model. RAG can retrieve the current policy and let the model answer from that evidence. ## Use RAG when the problem is knowledge RAG is worth investigating when information is: - Private to the company. - Frequently updated. - Too large to include in every prompt. - Spread across documents or systems. - Something you want to cite or trace back to a source. - Subject to access permissions. Typical use cases include: - Internal knowledge assistants. - Customer support grounded in company documentation. - Product documentation assistants. - Policy search. - Research systems. - Technical knowledge retrieval. The important point is that the model is **retrieving knowledge at runtime**, not learning the documents permanently through ordinary RAG. ## RAG does not automatically make answers correct Putting documents in a vector database is not enough. A RAG system can fail because: - The wrong documents were indexed. - Chunking destroyed useful context. - Search retrieved irrelevant evidence. - Important metadata was missing. - Permission filtering failed. - The model ignored or misinterpreted the evidence. - The source itself was outdated. You therefore need to evaluate retrieval and generation separately. **Retrieval question:** Did the system find the right evidence? **Generation question:** Did the model use that evidence correctly? ## RAG is not a permission system either Suppose finance and HR documents are in the same knowledge store. Retrieval should not search everything and rely on the prompt to hide unauthorized information. A safer pattern is: **Identity → Permissions → Allowed Sources → Retrieval → Model** Authorization belongs in the application architecture. ## What fine-tuning actually solves Fine-tuning modifies a model based on training examples so that certain behaviors, patterns or task-specific responses become more natural or reliable for that model. That is different from simply giving it documents to search. Think of the distinction as: **RAG: “Here is information you need right now.”** **Fine-tuning: “Here are examples of how this task should be performed.”** That distinction is not perfect for every training method, but it is a useful business mental model. ## Use fine-tuning when the problem is behavior Fine-tuning may be worth evaluating when you have a repeatable task and a strong dataset of desired examples. For example: - Specialized classification behavior. - Consistent transformation of one format into another. - Domain-specific response patterns. - A repeated output style that prompting does not reliably maintain. - Task behavior where a smaller specialized model could replace a more expensive general model. The key word is **examples**. Fine-tuning needs useful training and evaluation data. If you cannot define what good output looks like, training is unlikely to solve that ambiguity for you. ## Don't fine-tune just to teach the model your latest documents Company knowledge changes. Prices change. Policies change. Products change. If the main requirement is “answer using our latest information,” retrieval is usually the first architecture to investigate because the knowledge can be updated independently of model training. Fine-tuning may still be combined with RAG for behavior, but it should not be treated as a document database. ## Fine-tuning is not magic prompt repair Before training, ask why the base system is failing. Possible causes include: - Ambiguous instructions. - Poor examples in the prompt. - Wrong model for the task. - Bad retrieval. - Missing validation. - Inconsistent source data. - A workflow that was never clearly defined. If the task itself is unclear, training on more examples can encode inconsistency rather than remove it. ## What an AI agent actually solves An AI agent becomes relevant when the system needs to move beyond generating an answer and interact with tools or workflows. For example, a customer says: > “Move my booking to next Thursday afternoon.” A knowledge assistant might explain the booking policy. An agentic system might need to: 1. Identify the customer. 2. Find the booking. 3. Check available dates. 4. Apply business rules. 5. Ask for confirmation. 6. Call the booking API. 7. Record the action. 8. Return the updated status. That is not primarily a knowledge problem. It is a **controlled action problem**. ## An agent is not just a chatbot with a better prompt The important architecture is around the model: - Authentication. - Tool definitions. - Authorization. - Validation. - State. - Retries. - Idempotency. - Human approval. - Audit logs. - Monitoring. The LLM may decide or recommend what to do, but business systems should still enforce what is allowed. A prompt is not an authorization layer. ## Use an AI agent when the problem is action Agents are worth investigating when the system needs to: - Query multiple systems dynamically. - Choose between tools. - Execute multi-step tasks. - Update business records. - Trigger workflows. - Research and synthesize information before acting. - Ask for missing information and continue later. But not every automation needs an agent. If the sequence is fixed: **Form submitted → validate → create CRM record → send email** ordinary workflow automation may be simpler, cheaper and more reliable. Use agentic behavior when dynamic interpretation or planning adds enough value to justify the additional uncertainty. ## The fourth option: normal software This option gets less attention because it is not fashionable. Sometimes the correct solution is: ```text if invoice_total > approval_limit: require_manager_approval() ``` not an LLM deciding whether approval should happen. Use deterministic software when: - Rules are explicit. - Calculations must be exact. - Permissions are fixed. - Validation is known. - Workflow transitions are predictable. AI should handle uncertainty where it creates value, not replace certainty you already have. ## A practical diagnosis When somebody says “we need AI,” I would separate the problem into four questions. ### 1. Does the system lack information? Example: > “It cannot answer questions about our internal documentation.” Investigate **RAG**. ### 2. Does the model know the information but perform the task inconsistently? Example: > “We have thousands of high-quality examples of how this classification should work, but prompting is not reliable enough.” Investigate **fine-tuning**, after establishing a baseline and evaluation set. ### 3. Does the system need to do something? Example: > “After understanding the request, it needs to create a support ticket and update the CRM.” Investigate **tools, workflow automation or an AI agent**. ### 4. Is the requirement already a clear rule? Example: > “Orders above this amount always require manager approval.” Use **normal software**. ## RAG vs fine-tuning: an example Suppose a company has 5,000 support articles and wants an assistant. The articles change every week. If the problem is that the model does not know the latest answers, RAG is the natural architecture to test first. Now suppose the assistant retrieves the correct article but consistently formats troubleshooting instructions badly despite good prompting and you have a large set of approved examples. Fine-tuning might then be evaluated for that behavior. The two approaches solve different failures. ## RAG vs agent: an example A customer asks: > “Can I cancel my subscription?” RAG can retrieve the cancellation policy and explain it. But if the customer says: > “Cancel it now.” and your system is allowed to perform that action, you now need tool integration and a controlled workflow. RAG provides knowledge. The agent or workflow performs the action. They can work together. ## Fine-tuning vs agent: an example Suppose an AI system needs to classify an incoming request and then route it to one of several tools. Fine-tuning might improve the model's classification or tool-selection behavior if you have enough representative examples. But fine-tuning itself does not create the business integration. You still need tools, permissions, APIs, validation and execution logic. Training changes the model. Agent architecture connects the model to the world. ## When you need all three Consider a technical support agent. It might use: **RAG** to retrieve current product documentation. **Fine-tuning** to improve a specialized task or behavior if evaluation shows it is justified. **Agent tools** to inspect the customer's account, create a ticket or trigger a diagnostic workflow. And **deterministic software** to enforce permissions and business rules. The production architecture could look like: **User → Auth → Agent → RAG → Model → Tool → Validation → Business API → Audit** There is no conflict between the techniques. They operate at different layers. ## What about memory? Memory is another concept that often gets mixed into the same conversation. RAG retrieves external knowledge. Conversation state keeps track of the current interaction. Long-term memory may preserve useful information from previous interactions or events. These are different responsibilities. For example, an agent may need to remember that a customer prefers English responses across future conversations. That is not necessarily something you want to encode through fine-tuning or place in a generic company-document RAG index. Memory should have its own data model, permissions, retention and update strategy. ## What about prompts? Prompt engineering is usually the cheapest layer to test first when the problem is instruction following. Before introducing training infrastructure, make sure: - The task is clearly defined. - Required context is available. - Examples are representative. - Output schema is explicit. - Validation exists where needed. Prompting will not solve missing knowledge or create APIs, but it can reveal whether fine-tuning is actually necessary. ## What about bigger models? Sometimes the simplest fix is using a more capable model. Before building a complex fine-tuning pipeline, compare the economics: - Stronger hosted model. - Smaller model + RAG. - Fine-tuned smaller model. - Local model. - Hybrid routing. Evaluate **cost per successful business task**, not model price in isolation. A more expensive model that succeeds reliably may cost less than a cheaper model that creates retries and human cleanup. ## Common mistake: building RAG before checking whether retrieval is needed If the required information already fits naturally in a small structured dataset or API lookup, a full semantic retrieval system may be unnecessary. For example, checking an order status should probably query the order system directly. Do not put live transactional truth into document retrieval if an authoritative API exists. Use RAG for the information shape it is good at. ## Common mistake: using an agent for a fixed workflow A multi-agent architecture may sound sophisticated, but if the process is known in advance, orchestration code can often implement it more predictably. Use AI for the uncertain step. Keep deterministic transitions deterministic. For example: **Incoming email → AI extracts intent → deterministic validation → workflow engine → human approval if required → API action** Only one part needed probabilistic interpretation. ## Common mistake: fine-tuning before building an evaluation set If you cannot measure the base model, you cannot prove the fine-tuned model improved. Before training: 1. Collect representative examples. 2. Define expected outputs. 3. Establish the base-model result. 4. Categorize failures. 5. Decide whether training addresses those failures. 6. Evaluate again after training. Otherwise fine-tuning becomes experimentation without a decision framework. ## Common mistake: treating company data as one thing “Train it on our data” may include: - Policies. - Customer records. - Product catalog. - Historical conversations. - Support tickets. - Analytics. - Employee preferences. Those data types have different architecture needs. Policies may belong in RAG. Customer records may belong behind APIs. Historical conversations may become an evaluation or fine-tuning dataset after appropriate governance. User preferences may belong in memory. Analytics may belong in a database query or analytics service. Classify the data before choosing the AI technique. ## A decision table | Problem | First architecture to investigate | | --- | --- | | Need current/private document knowledge | RAG | | Need live customer/order/account data | API or database tool | | Need repeatable learned behavior | Fine-tuning | | Need dynamic actions across tools | AI agent / agentic workflow | | Need fixed multi-step automation | Workflow automation | | Need exact rule or calculation | Deterministic software | | Need information across conversations | Memory/state architecture | “First architecture to investigate” is intentional. Real systems should be validated against their actual requirements. ## A better architecture workshop Instead of starting a meeting with: > “Should we use RAG or fine-tuning?” put one real business task on the board. For example: > “When a customer asks to change a booking, the system should understand the request, check policy, inspect availability, confirm the change, update the booking and record what happened.” Now decompose it: **Understand request** → LLM may help. **Check policy** → RAG may help. **Inspect availability** → Booking API. **Apply rules** → Deterministic software. **Confirm risky action** → Human/user approval. **Update booking** → Controlled tool/API. **Remember conversation state** → State/memory. The architecture becomes obvious because the problem was decomposed first. ## How to avoid over-engineering Use the minimum complexity that passes the evaluation. Start with: 1. Existing software and APIs. 2. Clear deterministic rules. 3. Prompting with a capable model. 4. Retrieval if knowledge is missing. 5. Tools if actions are required. 6. Fine-tuning when measured behavior justifies training. 7. More complex agent orchestration only when the workflow actually needs it. This is not a rigid universal sequence, but it is a useful bias toward simpler systems. Every additional layer creates something else to operate, evaluate and debug. ## The architecture should follow the failure mode This is the central idea. If the model lacks knowledge, give it the right knowledge. If the model's learned behavior is the problem, evaluate whether training improves it. If the system needs to act, connect it to controlled tools. If the rule is already known, write the rule. If it needs continuity, design state and memory. Do not use one fashionable technique to solve every category of problem. ## Planning an AI system and unsure which architecture you need? Bring one real workflow and a few representative examples. We can separate knowledge, behavior, actions, deterministic rules and memory, then choose the smallest architecture that satisfies the requirement. **Discuss your AI architecture with Fady Mondy.** I design production AI systems around the actual failure mode — including RAG, AI agents, model evaluation, private AI, integrations and fine-tuning when the evidence shows it is useful. --- **Related:** AI Agents, Private AI, Local LLM vs Hosted AI, AI Integration, AI Consulting, AI for Business and Custom AI Development. --- Source: https://fadymondy.com/en/blog/rag-vs-fine-tuning-vs-ai-agents --- # Local LLM vs OpenAI or Claude: How Should a Business Choose? > Local LLM or hosted AI? Don’t choose from model rankings alone. Compare the real workload, privacy boundary, quality, latency, scale, integrations and total cost — and consider a hybrid architecture when one model cannot optimize everything. #LocalLLM #OpenAI #ClaudeAI #PrivateAI #EnterpriseAI #AIInfrastructure #AIForBusiness *2026-09-17T05:38:16Z* # Local LLM vs OpenAI or Claude: How Should a Business Choose? When a company starts designing an AI product, one of the first technical questions often becomes: > **Should we use a local LLM, OpenAI, Claude, or something else?** It is an important question — but it is usually asked too early. A better sequence is: **Workload → Requirements → Data boundary → Evaluation → Economics → Model** because the model that performs best on a public benchmark is not automatically the model that creates the best production system for your business. And increasingly, the right answer does not have to be one model at all. ## First: separate the model from the system An AI application is rarely just: **User → LLM → Answer** A production architecture may include: **User → Application → Authentication → Retrieval → Model Router → LLM → Tools → Validation → Business System → Logs** The LLM is one component inside that system. That matters because some requirements can be solved outside the model. Privacy can be improved through data minimization and architecture. Accuracy can be improved through retrieval, validation and deterministic rules. Cost can be reduced through caching, routing and using smaller models for simpler tasks. Security belongs in permissions and business APIs — not in the model prompt. So do not ask the model to solve architecture problems that software should solve. ## What is a Local LLM? In practical business terms, a Local LLM is a model you operate inside infrastructure you control or define as your private environment. That might be: - Your own servers. - A private cloud environment. - Dedicated GPU infrastructure. - An on-premise deployment. “Local” therefore does not necessarily mean a computer sitting under a desk. The important distinction is who controls the inference environment and where the data flows. ## What is hosted AI? With hosted AI, inference is provided as a managed service through an API or platform. Services such as OpenAI or Anthropic's Claude can remove much of the operational work associated with serving large models yourself. Your application sends an allowed request, receives the model output, and the provider operates the underlying model infrastructure. This can significantly reduce the infrastructure burden — but it also means your architecture must account for the provider boundary and the applicable service controls and terms. ## Don't choose from model reputation alone A model can be excellent at coding and mediocre at a specific extraction task. Another can be excellent at general reasoning but unnecessarily expensive for classification. A smaller local model may outperform your economic requirements even if a larger hosted model scores higher on broad benchmarks. The correct question is: > **How does this model perform on the tasks our system actually needs?** Build an evaluation set from real work. ## Step 1: define the workload Write down the actual tasks. For example: - Classify incoming support tickets. - Extract fields from Arabic invoices. - Answer employee questions using internal documents. - Generate product descriptions. - Call tools inside an AI agent. - Summarize long technical documents. - Write code. - Qualify sales enquiries. These are different workloads. Do not assume one model is optimal for all of them. ## Step 2: define quality before comparing price Cheap inference that repeatedly fails the task is expensive automation. Define what acceptable quality means. For extraction, you might measure field-level correctness. For RAG, you might evaluate whether the answer is supported by the retrieved source. For an agent, measure tool selection, arguments and successful task completion. For customer-facing answers, evaluate correctness, tone, escalation and unsupported claims. Then test candidate models against the same evaluation set. Now the comparison has meaning. ## Step 3: understand the privacy boundary Ask what data the model actually needs to see. Not every AI task has the same sensitivity. A marketing copy generator and an assistant reading confidential financial documents should not automatically share the same architecture. Possible patterns include: ### Hosted model Approved data is sent to the external model service under the organization's chosen controls and requirements. ### Private retrieval + hosted generation Documents and search remain private. Only the minimum authorized context required for the answer is sent for generation. ### Fully private inference Retrieval and model inference remain inside the defined private boundary. ### Split workload Sensitive tasks use private inference while non-sensitive tasks use hosted models. This is why “our company needs a local LLM” should usually be followed by: > **Which workloads and which data require it?** ## Step 4: compare operational responsibility Hosted AI makes model operations someone else's problem to a significant degree. With self-hosting, your team may own: - GPU provisioning. - Model serving. - Quantization. - Scaling. - Load balancing. - Failover. - Monitoring. - Security updates. - Model upgrades. - Capacity planning. That control can be valuable. But control has a cost. The decision should include the engineering organization required to operate the model, not just the price of the GPU. ## Step 5: compare latency correctly A local model can have excellent latency when infrastructure is close to the application and sized correctly. It can also be slow if the model is too large for the available hardware or concurrency is underestimated. A hosted model adds network dependency, but the provider may have infrastructure far beyond what a small internal team can operate. Measure: - Time to first token where relevant. - Total response time. - P50/P95 latency. - Concurrent request behavior. - Queueing under load. Do this on your workload, not from a single local prompt test. ## Step 6: understand variable versus fixed cost Hosted models commonly create a variable cost linked to usage. Self-hosted models create more fixed or capacity-based cost. That changes the economics. At low or unpredictable volume, paying for actual usage may be attractive. At sustained high utilization, owning capacity may become more interesting. But the break-even calculation must include engineering, redundancy, idle capacity and operations — not just API tokens versus GPU rental. ## A simple cost model For hosted inference, estimate: **Requests × Average input/output usage × Provider pricing + supporting infrastructure** For self-hosting, estimate: **GPU/compute + storage + network + engineering operations + redundancy + monitoring + maintenance** Then divide by successful business tasks, not merely requests. A useful metric is: > **Cost per successfully completed task** because a cheaper model that creates more failures and human review may have a higher real cost. ## Step 7: consider scale patterns Traffic shape matters. Imagine two systems. System A receives a stable, high volume of requests throughout the day. System B receives occasional bursts and is quiet for long periods. The same infrastructure decision may not fit both. Self-hosted capacity that is valuable at steady utilization can become expensive idle hardware for bursty workloads. Hosted APIs can absorb variable demand more easily, subject to their service limits and economics. Measure the traffic pattern before choosing. ## Step 8: evaluate Arabic and multilingual performance For companies serving the Gulf and wider Arab market, English-only evaluation is not enough. Test the language people actually use. That can include: - Modern Standard Arabic. - Gulf business language. - Arabic mixed with English technical terms. - Customer messages with spelling variations. - English internal documents. - Bilingual conversations. A model that looks strong on an English benchmark may behave differently on your Arabic workflow. Use representative examples from your own use case. ## Step 9: test structured output and tool calling For production automation, beautiful prose may be irrelevant. You may need the model to reliably produce: ```json { "intent": "change_booking", "booking_id": "...", "requested_date": "..." } ``` or choose a business tool and provide valid arguments. Evaluate schema compliance, missing fields, retries and invalid calls. For an AI agent, these metrics can matter more than how natural the model sounds in conversation. ## Step 10: test RAG separately from model knowledge If your system answers from company data, the LLM does not need to memorize your company. The architecture may retrieve relevant information and give it to the model at runtime. Evaluate two layers separately: **Retrieval:** Did we find the right evidence? **Generation:** Did the model answer correctly from that evidence? Otherwise you may replace a model to fix a retrieval problem — or rebuild retrieval to fix a model-following problem. ## Step 11: don't assume Fine-Tuning is the next step When a model performs poorly, teams sometimes jump directly to fine-tuning. First identify the failure. Does the model lack company knowledge? Consider RAG. Does the prompt provide ambiguous instructions? Fix the task definition. Is output structure inconsistent? Add schema validation and constrained output where appropriate. Is the task repetitive and specialized enough that learned behavior would help? Then fine-tuning may be worth evaluating. Choose the intervention based on the failure mode. ## Local models can be excellent for narrow high-volume tasks A smaller model can be very attractive for tasks such as: - Classification. - Extraction. - Routing. - Tagging. - Summarization with controlled inputs. - Simple internal assistance. especially when the task is well defined and evaluated. You do not always need the strongest general-purpose model for every request. This is where model routing becomes powerful. ## Hosted frontier models can be valuable for harder tasks More capable hosted models may be useful for tasks that require stronger reasoning, broader language capability, complex coding or difficult instruction following. The important point is not that hosted is better. It is that **task difficulty should influence model allocation.** Do not spend premium-model inference on a task a smaller model completes reliably. And do not force a small model onto a task where its failure cost destroys the saving. ## Hybrid AI: often the more interesting architecture A production system can route work between models. For example: **Incoming task → Classifier/Router → Small local model OR hosted model → Validation → Result** Possible routing rules: - Sensitive data → Private model. - Simple extraction → Small model. - Complex reasoning → Strong hosted model. - High-risk action → Strong model + human approval. - Routine classification → Local model. This lets the architecture optimize multiple objectives instead of pretending one model must win every category. ## But model routing also has a cost Hybrid architecture adds complexity. You now need: - Routing rules. - Multiple provider integrations. - Evaluation per route. - Fallback behavior. - Observability across models. - Cost tracking. - Version management. Do not build a model router because it sounds sophisticated. Build it when workload diversity makes the complexity worthwhile. ## Avoid hard-coding your entire product to one provider If AI is central to the product, isolate provider-specific logic behind an application layer where practical. For example, your business code should ask for a capability: **extractInvoice()** rather than spreading provider-specific API calls throughout the application. This does not mean pretending all models are interchangeable. They are not. But clean boundaries make it easier to evaluate, migrate, route and test models over time. ## Don't ignore provider features around the model The decision is not always model versus model. Hosted platforms may provide useful surrounding capabilities such as managed tooling, multimodal input, structured outputs, caching or other platform services. A local stack may give you deeper infrastructure control and the ability to combine open components exactly as you want. Evaluate the whole platform required for the workload, not just raw model output. ## Reliability needs fallbacks External APIs can fail. Your private GPU can fail too. Design what happens when the primary model is unavailable. Depending on the task, the fallback might be: - Retry. - Secondary provider. - Smaller local model. - Queue for later processing. - Deterministic fallback. - Human escalation. The business process should not assume perfect model availability. ## Example: customer service Imagine a bilingual customer service system. A practical architecture might use: 1. Deterministic rules for authentication and permissions. 2. Retrieval from approved company knowledge. 3. A cost-efficient model for common questions. 4. A stronger model for complex conversations. 5. Human escalation for sensitive or uncertain cases. 6. Business APIs for actions such as changing an order. The model decision is therefore part of the workflow design, not a single global choice. ## Example: internal confidential assistant A company wants employees to query internal documents. The decision might be: - Keep documents, embeddings and retrieval private. - Use access-controlled RAG. - Run a local model for sensitive departments. - Allow an approved hosted model for less-sensitive knowledge. - Record evaluation and cost separately for both paths. Again, the answer can be hybrid. ## Example: AI agent doing business actions For an agent, model selection should include more than conversational quality. Test: - Intent recognition. - Tool selection. - Tool arguments. - Recovery from tool errors. - Ability to ask for missing information. - Respect for workflow boundaries. Then remember that authorization must still live in your application and APIs. A smarter model is not a permission system. ## A practical decision matrix ### Consider hosted AI when - You want to move quickly. - Workload is variable or still uncertain. - You need strong general-purpose model capability. - Your data policy allows the chosen hosted architecture. - You do not want to operate model infrastructure. ### Consider a local/self-hosted model when - The defined privacy boundary requires it. - Workload is stable enough to justify infrastructure ownership. - A suitable model meets your quality requirements. - You need deeper control over deployment. - Your team can operate the stack reliably. ### Consider hybrid AI when - Workloads have different sensitivity levels. - Simple and difficult tasks have very different economics. - You need a private path plus stronger external capability. - Routing creates enough savings, control or quality improvement to justify the complexity. These are engineering considerations, not universal rules. ## The model should be replaceable; the business workflow should be durable Models change quickly. Your customer process, permissions, business rules, data model and integrations should not need to be rebuilt every time a stronger model appears. Design the stable parts of the system around the business. Keep model-specific decisions as isolated and measurable as practical. That is how an AI product can improve over time without becoming a permanent migration project. ## How I would choose for a real project I would not begin by choosing OpenAI, Claude or a local model. I would begin with a small evaluation table: | Requirement | What we need to measure | | --- | --- | | Task quality | Success on representative real tasks | | Privacy | Data that may leave the defined boundary | | Arabic/English | Performance on actual bilingual inputs | | Latency | P50/P95 under realistic load | | Structured output | Valid schema and tool arguments | | Reliability | Failures, retries and fallback behavior | | Cost | Cost per successful business task | | Operations | Infrastructure and engineering ownership | Then test candidate architectures. The winner is not the model with the most impressive name. It is the architecture that satisfies the business requirements with acceptable quality, risk and total cost. ## Choosing between Local LLM and hosted AI for your company? Bring the workload, not a preferred model. Define the tasks, data sensitivity, expected traffic, languages, integrations and acceptable failure rate. Then evaluate local, hosted and hybrid options against the same real examples. **Discuss your AI architecture with Fady Mondy.** I design AI systems around the workload — from hosted models and provider integrations to local LLMs, private RAG, model routing and hybrid production architectures. --- **Related:** Private AI, AI Integration, AI Consulting, AI Agents, AI for Business, AI ROI and Custom AI Development. --- Source: https://fadymondy.com/en/blog/local-llm-vs-hosted-ai-business --- # Have a SaaS Idea? What to Validate Before You Pay for Development > Have a SaaS idea? Before paying for development, validate the problem, buyer, current workaround, willingness to change, acquisition path and smallest testable promise. An MVP should prove a risky assumption — not just shrink a feature list. #SaaS #MVP #SaaSDevelopment #ProductValidation #Startup #ProductDevelopment #BuildInPublic *2026-09-17T05:38:17Z* # Have a SaaS Idea? What to Validate Before You Pay for Development A founder has an idea, opens a document and starts writing features. Dashboard. Subscriptions. Teams. Notifications. AI assistant. Mobile app. Admin panel. Then the question becomes: > **How much will it cost to build this?** There is an earlier question that can save much more money: > **What must be true for this product to deserve being built?** Before paying for months of development, validate the assumptions that can kill the business even if the software works perfectly. Because technical execution is only one category of risk. ## A working product is not proof of a business Software can be fast, secure and beautifully designed while solving a problem nobody cares enough to pay for. A SaaS business needs more than functioning code. At minimum, there must be a credible relationship between: **Problem → Buyer → Value → Acquisition → Usage → Revenue → Retention** Development proves that software can exist. It does not automatically prove the rest. ## Start by writing the problem without mentioning your product Try completing this sentence: > **[Specific person/company] repeatedly struggles with [specific problem], which currently causes [measurable consequence].** For example: > Operations managers at service companies manually reconcile job status across WhatsApp and spreadsheets, making it difficult to know what is delayed and who owns the next action. That is testable. Compare it with: > Companies need an AI-powered operations platform. The second sentence already assumes the solution. You cannot validate a problem if you define it using your product. ## Validate who actually has the problem “Businesses” is not a customer segment. Neither is “startups.” Narrow the first buyer enough that you can find real people who share similar conditions. You may define them by: - Industry. - Company size. - Role. - Workflow. - Existing software. - Geography when it materially affects the problem. - Trigger event. A useful early segment is not necessarily your final market. It is the group where learning is easiest and the problem is clearest. ## Separate user, buyer and decision maker The person using the software may not be the person paying for it. An employee may use the product every day. A department manager may own the budget. IT or security may approve the integration. Finance may approve the contract. For B2B SaaS, map at least: **User → Champion → Buyer → Approver** Sometimes one person occupies all four roles. Sometimes they are completely different. This affects the product, sales process and pricing. ## Ask what they do today One of the strongest signals is not what somebody says they want. It is what they already do. Ask: - How do you handle this today? - Which tools are involved? - Who does the work? - How often does it happen? - What breaks? - What happens when it breaks? - Have you tried to fix it before? A spreadsheet that has survived for five years may be ugly, but it is a competitor. Doing nothing is also a competitor. Your product must beat the current behavior, not merely another SaaS logo. ## Look for evidence of pain, not compliments People are polite about ideas. “This sounds useful” is weak evidence. More meaningful signals include: - They already spend money on the problem. - Employees spend significant recurring time on it. - They built an internal workaround. - They combine several tools to solve it. - The problem creates delays, lost opportunities or operational risk. - Somebody is responsible for improving the metric affected by it. - They actively search for alternatives. You want evidence that the problem changes behavior. ## Do not ask: “Would you use this?” Hypothetical questions create hypothetical enthusiasm. Ask about past and current behavior instead. Weak: > Would you pay for a tool that automates this? Stronger: > When did this problem happen last? > What did you do? > How long did it take? > Who was involved? > What are you currently paying for the tools used in that process? > What prevented you from solving it already? Past behavior gives you something concrete to investigate. ## Validate urgency A painful problem can still be a bad first SaaS opportunity if nobody needs to solve it now. Ask what creates urgency. Possible triggers include: - Growth makes the manual process fail. - A new team or location is opening. - Existing software is being replaced. - Customer volume has increased. - Compliance or contractual requirements changed. - A key employee can no longer carry the process manually. - Management has set a specific operational target. A useful question is: > **Why would this company change now instead of six months from now?** Without an answer, sales may become much harder than product development. ## Validate willingness to change, not just willingness to pay Money is not the only switching cost. A new SaaS product may require customers to: - Import data. - Train employees. - Change workflows. - Connect systems. - Ask IT for approval. - Change customer behavior. - Stop using a familiar tool. A product can have positive ROI and still fail because the migration cost feels too high. Your validation should ask what must change for adoption to happen. ## Understand the existing alternatives Search for the products your customer could use instead. But also include non-software alternatives: - Excel. - WhatsApp. - Email. - An assistant. - An agency. - An internal developer. - A manual process. - A feature inside a larger platform. Then ask: > **Why is the current alternative not good enough for this specific segment?** If you cannot answer that clearly, building another tool may not create enough reason to switch. ## Your competitor may be a feature, not a company Suppose you want to build a standalone reporting SaaS. The customer may already receive “good enough” reporting inside their CRM. Your product is therefore competing with an existing feature bundled into software they already pay for. That changes acquisition and pricing dramatically. Competitive research should follow the workflow, not just category names. ## Validate the acquisition path before the product is ready Many technically strong products fail because founders discover distribution after development. Ask: > **How will the first 20 relevant customers hear about this?** Not the first million. The first 20. Possible paths include: - Existing network. - Direct outbound. - Search demand. - Communities. - Partnerships. - Existing audience. - Marketplace distribution. - Open-source adoption. - Content. - Paid acquisition. You do not need a perfectly scalable channel yet. But you need a believable way to reach the people you want to learn from. ## Test distribution manually If your planned acquisition channel is outbound, try contacting prospects before building the product. If it is search, investigate whether people actually search for the problem and what they expect to find. If it is a marketplace, understand listing requirements and existing alternatives. If it is an audience, publish around the problem and see who responds. Distribution is also an assumption that can be tested. ## Validate the promise before the interface A landing page can be useful before a complete product exists. But the important part is not the design. It is the promise. A strong early landing page should communicate: 1. Who it is for. 2. What painful outcome it addresses. 3. How the approach is different enough to matter. 4. What the visitor should do next. The call to action may be: - Join a waitlist. - Request early access. - Book a discovery call. - Start a pilot. - Submit a workflow for evaluation. The right CTA depends on how much commitment you need to test. ## A waitlist is not product-market fit Email addresses can be useful evidence of interest. They are not proof that people will adopt, pay or stay. The closer your test gets to real behavior, the stronger the evidence. A rough evidence ladder might look like: **Page view → Email signup → Conversation → Workflow/data shared → Pilot commitment → Payment → Repeated use → Renewal** Each step asks the customer to give something more valuable: attention, time, access, money or behavior change. ## Validate willingness to pay carefully Pricing research is difficult because asking directly can produce unreliable answers. Instead, understand the economics of the problem. What does the customer spend today? What employee time is involved? What revenue, delay, error or risk is affected? What alternative products cost money? Who owns the budget? Then test an actual offer when appropriate. A real pilot proposal teaches you more than asking someone to choose a hypothetical price from a survey. ## Do not start with a giant pricing page Early pricing is an experiment. You need enough structure to test whether the business model makes sense, not ten plans with complex feature gates. For B2B SaaS, you may initially need to understand whether value scales with: - Users. - Locations. - Transactions. - Usage. - Data volume. - Revenue managed. - Workflow volume. Choose a pricing unit customers can understand and that has some relationship to the value created. Then learn. ## Identify the riskiest assumption This is one of the most important exercises. List assumptions such as: - Customers have this problem frequently. - The buyer can approve budget. - They will connect their CRM. - AI can classify the data accurately enough. - They will trust automation for this action. - We can acquire customers through search. - They will pay enough to support the operating cost. Then ask: > **Which assumption, if false, kills the business fastest?** Test that one early. Do not spend three months proving a feature is technically possible while the biggest risk is whether anyone will switch. ## Your MVP should test an assumption MVP does not mean: > Build every feature badly. It means building the smallest credible product or process that tests the important uncertainty. If the risk is demand, the MVP may be a landing page and manual service. If the risk is workflow adoption, the MVP may be one end-to-end workflow. If the risk is AI quality, the MVP may be an evaluation pipeline before a customer-facing UI. If the risk is integration, the MVP may be one production connector. Scope follows the uncertainty. ## The MVP can contain manual work behind the scenes Suppose your future product will automatically analyze a company's data and recommend actions. For the first customers, part of that process can be manual if the customer experience still tests the core value. This is sometimes called a concierge approach. The goal is to learn whether the outcome matters before automating every internal step. Do not fake capabilities or mislead customers about what is automated. But do not build infrastructure merely to automate a process you have not validated either. ## What should version one actually include? A useful question is: > **What is the smallest complete journey that produces the promised outcome?** Not the smallest number of screens. A customer should be able to go from problem to outcome. For example: **Connect source → Import leads → Qualify → Review → Send to CRM** That may require authentication, one integration, a review screen and a background job. It may not require: - Ten integrations. - Native mobile apps. - Advanced analytics. - Team permissions for every enterprise scenario. - White labeling. - A public API. Those can wait until evidence requires them. ## Separate table stakes from differentiation Some capabilities are necessary for the product to function but do not prove the idea. Authentication is important. Password reset is important. Billing is important when charging customers. But spending most of the first build polishing commodity infrastructure can delay learning about the unique value. Use mature frameworks and services for commodity components where appropriate. Put custom engineering into the risky or differentiating workflow. ## Don't overbuild architecture — but don't build a dead end either “It's only an MVP” is not permission to ignore basic engineering. You still need reasonable decisions around: - Data ownership. - Security. - Backups. - Deployment. - Observability. - Migrations. - Core domain model. But you usually do not need architecture for millions of users before you have ten. Build for the next credible stage and keep boundaries clean enough to evolve. ## Multi-tenancy deserves an early decision For SaaS, tenant separation affects the data model, authorization and testing. You do not necessarily need the most sophisticated multi-tenant architecture on day one. But you should know what constitutes a tenant and how data is isolated before customer data starts accumulating. That is much cheaper than discovering the boundary later. ## Billing should follow the business model Do not integrate every billing scenario before knowing what customers buy. But if payment is one of the assumptions you need to validate, do not hide it until the end either. The product architecture should support the pricing experiment you are actually running. ## AI SaaS has additional validation questions If the product depends on AI, add another layer of risk. Ask: - Can the model perform the task on representative real data? - What is the failure rate? - What happens when it is uncertain? - Does a human need to review the result? - What is the inference cost per successful task? - Does the data require a private architecture? - Will users trust the AI with this decision or action? Build an evaluation set early. Do not validate an AI product with five impressive demos. ## Measure the outcome, not demo quality A demo can make people say “wow.” A product needs to make them come back. Define what success means for the first pilot. Examples: - Time to complete a workflow. - Number of manual handoffs removed. - Percentage of cases completed without intervention. - Qualified leads produced. - Errors caught. - Tasks completed per employee. Choose metrics connected to the problem you claimed to solve. ## Retention is where the truth becomes clearer Acquisition tells you somebody was interested enough to try. Retention tells you whether the product continues to matter. The appropriate retention period depends on the workflow. A daily operations tool and quarterly compliance tool should not have the same usage expectations. Ask: > **When should a successful customer naturally return?** Then measure behavior around that cycle. ## Talk to people who stopped using it Early founders naturally spend time with happy users. Churned or inactive users often contain more useful information. Ask: - What were you trying to accomplish? - Where did the workflow break? - What did you use instead? - Was the problem less important than expected? - Was switching too difficult? - Did another stakeholder block adoption? Do not turn the conversation into a sales call. You are investigating the failure mode. ## Beware of custom-development disguised as SaaS An early B2B product may need configuration for customers. That is normal. But if every new customer requires weeks of unique code, you may be operating a software consultancy with a shared codebase rather than scalable SaaS. That can still be a good business. Just understand the economics. Track which requirements are: - Configuration. - Integration. - Product feature. - Customer-specific development. The distinction becomes important as you scale. ## Validate support and onboarding cost A customer paying a subscription can still be unprofitable if onboarding and support consume excessive human time. Measure: - Time to onboard. - Number of implementation calls. - Data cleanup required. - Support requests. - Manual operations your team performs. These are part of product economics. ## A practical pre-development checklist Before committing to a substantial build, I would want reasonable evidence for these questions: ### Problem - Who has it? - How frequently? - What does it cost them? - What do they do today? ### Buyer - Who uses the product? - Who pays? - Who can block adoption? ### Urgency - Why change now? ### Competition - What are the software and non-software alternatives? ### Distribution - How will we reach the first relevant customers? ### Economics - What value can the product create? - What might customers pay? - What does delivery cost us? ### Product - What is the smallest end-to-end outcome? ### Technology - What technical assumption is genuinely risky? ### Evidence - What have real potential customers actually done that supports our assumptions? You do not need certainty. You need enough evidence to justify the next investment. ## A sensible sequence for many SaaS ideas A practical progression can look like: **Problem interviews → Manual research → Offer → Landing page → Conversations → Prototype → Pilot → MVP → Paid usage → Retention → Expansion** Not every product follows this exact order. The principle is to increase investment as evidence increases. ## When should you start coding? Coding should start when software is the cheapest credible way to answer the next important question. Sometimes that is very early because the technical feasibility itself is the biggest risk. Sometimes you can learn for weeks without writing production code because demand is the bigger uncertainty. The right milestone is not: > “We finished validation, now we build.” Validation continues after launch. The better question is: > **What do we need to learn next, and what is the cheapest reliable experiment that can teach us?** ## What I would avoid before the first real evidence Unless the use case requires it, I would be cautious about investing heavily in: - Multiple native applications. - Complex enterprise permissions. - Large integration catalogs. - Advanced analytics. - Multi-region infrastructure. - Sophisticated AI orchestration. - Large admin systems. - Extensive customization engines. Every feature should earn its way into the roadmap through a real requirement or tested hypothesis. ## The founder's job before development Before asking an engineer to turn the idea into code, turn the idea into a set of testable statements. For example: > We believe operations managers at X type of company lose Y kind of value because of Z workflow. > We believe they currently solve it using A and B. > We believe they can be reached through C. > We believe a product that delivers D outcome will justify changing their current process. Now each statement can be challenged. That is far more useful than a 70-feature specification. ## Have a SaaS idea and deciding what to build first? Bring the idea, target customer and current assumptions. We can map the riskiest assumptions, define the smallest useful experiment and decide whether the next step should be research, prototype, MVP or production development. **Discuss your SaaS or MVP with Fady Mondy.** I help founders move from idea to evidence to production — without spending the first budget on features that have not earned the right to exist. --- **Related:** MVP Development, SaaS Development, SaaS vs Custom Software, Product Engineering, Custom Software Development and AI ROI. --- Source: https://fadymondy.com/en/blog/validate-saas-idea-before-development --- # Technical Debt: When Is It a Business Problem — and When Is a Rewrite a Mistake? > “We need to rewrite the system” can mean anything from a real business constraint to an expensive engineering preference. Technical debt matters when it increases delivery cost, incidents, security risk, cloud spend or dependency on key people. Here’s how to decide what to fix, what to leave alone and when a rewrite is actually justified. #TechnicalDebt #SoftwareArchitecture #EngineeringLeadership #LegacySystems #CTO #SoftwareDevelopment #CodebaseAudit *2026-09-17T05:50:14Z* # Technical Debt: When Is It a Business Problem — and When Is a Rewrite a Mistake? Sooner or later, someone in an established software company says: > **“We need to rewrite the system.”** Sometimes they are right. Sometimes the codebase has become a genuine constraint on the business: releases are risky, incidents repeat, security changes are difficult, infrastructure costs are unreasonable, or one old subsystem prevents the company from shipping what customers need. But sometimes “technical debt” means something much less urgent: > “I would design this differently if I started today.” Those are not the same thing. A company should not spend months rebuilding software simply because newer technology exists or engineers dislike old code. The useful question is: > **What is this technical debt costing the business now, and what will it prevent us from doing next?** That turns technical debt from an engineering complaint into an investment decision. ## Technical debt is not simply old code Code can be old and still be valuable, stable and cheap to operate. Code can also be six months old and already expensive to change. Age is a weak diagnostic. Technical debt is better understood as a design, implementation, operational or organizational shortcut whose consequences make future work harder, riskier or more expensive. Examples include: - A module that every feature must modify. - No automated coverage around critical financial logic. - A deployment process only one engineer understands. - Duplicate business rules implemented differently across services. - A database structure that makes a required product change dangerous. - Dependencies that can no longer receive security updates. - Manual operational work that repeatedly causes incidents. - Architecture that cannot support an upcoming scale or compliance requirement. The business problem is not that the code looks ugly. The problem is the consequence. ## Translate debt into a business consequence When an engineering team asks for technical-debt work, ask them to complete this sentence: > **Because of this debt, we currently lose or risk ______.** A useful answer might be: - A normal release requires two days of regression work. - Billing incidents recur because three systems calculate the same rule differently. - We cannot safely upgrade a dependency with known security exposure. - Every enterprise customer integration requires modifying the same fragile module. - Only one engineer can deploy the platform. - Infrastructure cost grows faster than usage because of an architectural constraint. - A product initiative on the roadmap cannot be implemented safely with the current data model. Now leadership can compare remediation with other investments. “Bad architecture” is difficult to prioritize. “Every customer integration costs two extra engineering weeks because of this coupling” is much easier to reason about. ## Not all technical debt should be paid Debt is an economic metaphor for a reason. Some debt has low interest. Imagine an internal admin screen built quickly three years ago. The code is not elegant, but it changes once a year, causes no incidents and has no security concern. Rewriting it may produce almost no business value. Now imagine another imperfect module sits in the checkout path and changes every week. Its debt has much higher interest because every future change pays the penalty. So prioritize debt partly by **change frequency and business criticality**. Ugly code in a quiet corner can be less important than moderately messy code in the center of the product. ## The four costs I look for A useful technical-debt discussion usually connects to at least one of four cost categories. ### 1. Delivery cost Does the debt make valuable changes slower or more expensive? Look for: - Repeated workarounds. - Long regression cycles. - Unexpected dependencies. - Excessive review requirements. - Features touching many unrelated areas. - Engineers avoiding parts of the codebase. ### 2. Reliability and security risk Does the debt increase the probability or impact of failure? Examples: - Unsupported dependencies. - Missing observability. - Fragile deployments. - Repeated production incidents. - Weak authorization boundaries. - Critical logic without reliable tests. ### 3. Operating cost Does the architecture create unnecessary recurring expense? That can include cloud infrastructure, manual operations, support load, vendor cost or excessive engineering time. ### 4. Strategic constraint Does the debt prevent something the company needs to do? For example: - Enter an enterprise market. - Support a required compliance model. - Launch multi-tenancy. - Integrate a new channel. - Separate a product line. - Scale a workload. - Change pricing or billing architecture. Strategic constraints can justify work even before they create visible incidents. ## Technical debt can also be organizational Not every technical bottleneck lives in source code. Consider a production system where: - Nobody knows who owns a service. - Documentation is missing. - Only one person knows the deployment procedure. - Architecture decisions exist only in old chat messages. - No team owns dependency upgrades. A rewrite does not automatically fix any of this. You can create a beautiful new codebase and reproduce the same organizational debt around it. Technical leadership has to address ownership, operating practices and knowledge distribution as well as code. ## Why engineers naturally want rewrites A rewrite is attractive because it offers a clean mental model. The current system contains years of compromises, edge cases and historical decisions. A new system appears simpler because it has not encountered reality yet. That creates a dangerous comparison: **Old production system with all known complexity** versus **New design before all production complexity returns** The second will almost always look cleaner on a diagram. But many of the strange rules in a legacy system exist because the business discovered something the original designers did not know. Before deleting them, understand why they exist. ## A rewrite does not start from zero Even if you discard every line of old code, the business still has: - Existing users. - Existing data. - Integrations. - Permissions. - Billing rules. - Operational procedures. - Historical edge cases. - Reporting expectations. - Support workflows. - Contracts and commitments. The rewrite must rediscover or migrate all of them. That is why estimating a rewrite by comparing source-code size is misleading. You are migrating a running business system, not reproducing a repository. ## The hidden cost: two systems at once During a rewrite, the old product usually cannot stop changing. Customers still need fixes. Sales still closes deals. Security issues still appear. The company now has to decide: - Do we implement a new feature in the old system? - Wait for the new system? - Build it twice? - Freeze part of the business? This creates a period of dual-system cost. The longer the rewrite lasts, the larger that cost can become. ## When a rewrite is usually a weak argument Be cautious when the main justification is: - The framework is not fashionable anymore. - A new language would be faster in theory. - The team prefers another architecture style. - The code is not as clean as we would write it today. - Microservices would look more scalable. - A competitor uses a newer stack. None of these is automatically wrong. But they need a demonstrated constraint or opportunity behind them. Technology preference alone is a weak reason to put working business functionality at migration risk. ## When a rewrite becomes more credible A rewrite deserves serious consideration when incremental change cannot reasonably remove a material constraint. Examples might include: - A core platform boundary is fundamentally incompatible with the required product model. - The technology can no longer be safely maintained and migration paths are impractical. - The existing data or tenancy architecture makes a strategic requirement unsafe to implement incrementally. - Reliability failures originate from a design that cannot be isolated or progressively replaced at acceptable cost. - The organization must support a new operating model that the existing core cannot accommodate. Even then, “rewrite everything” is only one migration strategy. ## Refactor, replace or rewrite? These decisions are often presented as two choices: **Keep the legacy system** or **rewrite everything**. There are more options. ### Refactor in place Improve the existing code while continuing to ship. Useful when boundaries can be improved incrementally and behavior is mostly correct. ### Isolate Put a stable interface around a problematic subsystem so fewer parts of the product depend directly on it. Useful when the subsystem is ugly but still functional. ### Replace one capability Move one domain — such as search, billing, notifications or reporting — behind a new implementation. Useful when the debt is concentrated. ### Strangler migration Gradually route capabilities away from the old system into new components while the product continues operating. Useful when a large-bang migration would be too risky. ### Full rewrite Rebuild the complete system and migrate users/data/workflows. Sometimes necessary, but it carries the largest migration surface and should have a proportionate business case. ## Fix the boundary before the implementation A common mistake is rewriting a bad module without changing why it became bad. Suppose ten parts of the product directly manipulate billing tables. You rewrite billing beautifully, but allow the same ten parts to manipulate the new tables. The coupling returns. A more durable improvement might first create a clear billing boundary and move callers behind it. Architecture debt often lives in relationships between components, not just inside their code. ## Measure hotspots, not opinions Instead of asking developers to name the worst code, combine their experience with evidence. Look for areas with combinations of: - High change frequency. - High defect frequency. - High incident impact. - Long review or test cycles. - Many dependencies. - High cognitive load. - Significant business importance. A module engineers dislike but rarely touch may not be the highest-value target. A module everyone changes and nobody trusts probably deserves attention. ## Build a technical-debt register that a CEO can read A useful debt item can be represented like this: **Problem:** Checkout rules exist in three implementations. **Evidence:** Similar production defects occurred repeatedly and every pricing change requires coordinated edits. **Business impact:** Higher release risk and engineering effort for revenue-critical changes. **Proposed action:** Move pricing rules behind one owned interface, then migrate callers incrementally. **Expected result:** One source of truth for pricing behavior and smaller change surface. **Risk of waiting:** More duplicated behavior as new pricing features are added. Notice what is missing: > “Code quality: 4/10.” A score without consequences rarely helps an executive choose where to invest. ## Rank debt by exposure, not embarrassment You can use a simple qualitative model: **Impact × Frequency × Change Demand × Risk Exposure** Then consider remediation cost and reversibility. You do not need fake mathematical precision. The purpose is to distinguish: - High-impact debt in a frequently changing critical path. - Risky debt that needs containment soon. - Opportunistic debt to fix when nearby work happens. - Cosmetic debt that can remain. A mature engineering organization is comfortable deciding **not** to fix some debt. ## The Boy Scout rule has economic limits Improving code while touching it can be useful. But “leave everything cleaner than you found it” can become uncontrolled scope if every feature turns into a refactoring project. A better rule is: > Improve nearby debt when the improvement is bounded, lowers the risk of the current change, or clearly reduces repeated future cost. Large structural changes should be visible decisions, not hidden inside unrelated tickets. ## Technical debt and product deadlines A common conflict sounds like: **Business:** We need the feature this month. **Engineering:** We need three months to fix the architecture first. Both sides may be reacting to real constraints. The useful discussion is not “features versus quality.” Ask: - What is the minimum remediation required to ship this feature safely? - What debt will this feature make worse if we do nothing? - Can we isolate the new capability? - What risk are we accepting by postponing remediation? - When will that accepted debt be revisited? This creates explicit trade-offs instead of permanent conflict. ## Sometimes the fastest path is to stop adding debt You may not have budget for a major modernization project. You can still change the trajectory. For a problematic area: 1. Define ownership. 2. Stop introducing new direct dependencies. 3. Add tests around critical behavior. 4. Add observability where failures are hard to diagnose. 5. Create an interface around the area. 6. Migrate behavior gradually as product work touches it. The system may become materially easier to change without a rewrite program. ## Use incidents as architecture evidence Repeated incidents are useful signals. Do not only ask: > Who made the mistake? Ask: > Why could this class of mistake repeatedly reach production? Perhaps: - Critical behavior has no automated protection. - The deployment process is fragile. - Ownership is unclear. - A shared component has an excessive blast radius. - The system allows invalid state. Incident learning can reveal technical debt with direct business evidence. ## Security debt deserves a different threshold Not every debt item can wait for a visible incident. Unsupported software, weak access boundaries, exposed secrets, missing security updates or dangerous privilege models can create risk before the company experiences a failure. For security-sensitive debt, evaluate credible exposure and potential impact rather than waiting for historical frequency. ## Infrastructure cost can expose architecture debt Cloud cost is sometimes a pricing problem. Sometimes it is an architecture problem. For example, a workload may repeatedly process the same data, keep oversized resources running continuously, or scale an entire application because one component is resource-intensive. Before rewriting, identify the actual cost driver. A targeted architecture change may produce most of the benefit with much less migration risk. ## “We cannot hire people who know this stack” needs evidence too Talent availability can be a legitimate strategic concern. But validate it. Ask: - Are candidates truly unavailable, or is the hiring process weak? - Can engineers learn the stack? - Is the unusual technology isolated or spread across the platform? - Would migrating it reduce total operating risk enough to justify the cost? Changing technology creates its own hiring and learning curve. ## The rewrite test Before approving a full rewrite, I would want clear answers to these questions: 1. **Which measurable business constraint does the current system create?** 2. **Why can that constraint not be removed incrementally at acceptable cost and risk?** 3. **What behavior, data and integrations must be preserved?** 4. **How will old and new systems coexist during migration?** 5. **How will data migration be verified?** 6. **What is the rollback or containment strategy?** 7. **How will ongoing product development continue?** 8. **What milestone proves the new architecture is actually removing the constraint?** If the plan cannot answer these, the organization probably has a technology aspiration, not yet a migration strategy. ## A better modernization sequence For many systems, a safer sequence is: **Observe → Measure → Stabilize → Define boundaries → Isolate hotspots → Replace incrementally → Remove old paths** That sequence lets the company learn before committing the entire platform to one architectural bet. It also produces value during the migration rather than only at the end. ## How I approach a codebase audit A useful codebase audit should not end with a long list of everything an engineer could improve. It should answer: - What is creating business or operational risk now? - What is slowing important roadmap work? - Which areas are safe enough to leave alone? - Which problems need containment? - Which problems justify refactoring or replacement? - Which architectural decisions are difficult to reverse? - What sequence gives the company the highest reduction in risk or delivery cost? The output should be ordered by consequences, not by personal coding preferences. ## The goal is not a clean codebase No production codebase is permanently clean. Businesses change. Requirements change. Teams change. Technology changes. The goal is a system that the company can **change safely enough, quickly enough and economically enough** for where the business is going. Sometimes that requires serious modernization. Sometimes it requires a rewrite. And sometimes the most responsible technical decision is to leave an ugly but stable subsystem alone. ## Is technical debt slowing your roadmap — or is the team proposing a rewrite without a clear business case? I can review the architecture, delivery hotspots, reliability risks and modernization options, then separate debt that is costing the business from debt that can safely wait. **Discuss an AI & Codebase Audit or Engineering Architecture review with Fady Mondy.** The objective is not to rewrite more software. It is to spend engineering effort where it changes the economics or risk of the business. --- **Related:** AI & Codebase Audits, Engineering Architecture, Engineering Leadership, Fractional CTO, Custom Software Development, and Why Is Your Software Project Late When the Engineering Team Is Busy? --- Source: https://fadymondy.com/en/blog/technical-debt-business-problem-vs-rewrite --- # AI Business Automation in the GCC: Where Should a Company Start? > AI automation should not start with “Which model should we use?” Start with the workflow: where people repeatedly read messages, move data, classify requests, prepare answers, update systems or wait for approvals. A practical GCC-focused framework for choosing the first automation worth building. #AIAutomation #AIForBusiness #BusinessAutomation #GCC #SaudiArabia #UAE #DigitalTransformation *2026-09-17T05:52:29Z* # AI Business Automation in the GCC: Where Should a Company Start? A company decides it wants to use AI. The first conversation often jumps directly to technology: - Which model should we use? - Do we need an AI agent? - Should we connect ChatGPT? - Do we need a private LLM? - Can we automate WhatsApp? Those questions matter later. The first question should be much simpler: > **Which business workflow is repeatedly consuming time, money or customer attention — and contains work AI can actually improve?** For companies in Saudi Arabia, the UAE and the wider GCC, the answer may sit across WhatsApp, email, CRM, ERP, spreadsheets, support systems, ecommerce platforms, internal documents and approval chains. The opportunity is not to “add AI” to all of them. It is to find one workflow where automation can produce a measurable operational result without creating unacceptable risk. ## Start with work, not AI Imagine a customer request arrives through WhatsApp. A member of staff reads it, identifies the customer, asks for missing information, checks a system, copies data into a CRM, forwards the request to another department, waits for an answer, writes a response and updates the status. There may be several automation opportunities inside that journey. But if you start by buying an AI chatbot, you may automate only the first reply while leaving the expensive workflow untouched. Map the work first. ## What makes a workflow a strong automation candidate? I look for a combination of five characteristics. ### 1. Repetition Does the workflow happen frequently enough for improvement to matter? Automating a task performed twice a year rarely deserves the same attention as a process repeated hundreds or thousands of times. ### 2. Meaningful manual effort How much human time is spent reading, copying, searching, classifying, formatting, checking or coordinating? ### 3. Clear outcome Can you define what “done correctly” means? If nobody agrees on the desired result, automation will reproduce the ambiguity faster. ### 4. Accessible data and systems Can the automation safely reach the information and tools it needs through APIs, databases, documents or controlled browser actions? ### 5. Manageable risk What happens if the system is wrong? A draft reply and an irreversible financial action should not have the same autonomy level. ## A practical workflow map Before discussing architecture, write the workflow as it exists today. For example: **Lead arrives → Read message → Identify need → Ask qualification questions → Create CRM record → Assign salesperson → Schedule follow-up → Update status** For every step, mark it as one of four types: **Rule-based** — deterministic software can handle it. **Language/knowledge-based** — AI may help interpret or generate information. **System action** — an API, database or tool must perform something. **Human judgment** — a person should decide or approve. This immediately prevents the common mistake of trying to make one LLM perform the entire process. ## Use normal automation where rules are enough AI is not automatically better automation. If the rule is: > When invoice status becomes paid, send the receipt and update the accounting record. You probably do not need an LLM to decide whether to do it. Traditional workflow automation is usually cheaper, more predictable and easier to test for deterministic rules. AI earns its place when the workflow contains uncertainty such as: - Understanding free-form customer messages. - Classifying documents. - Extracting fields from inconsistent content. - Searching a knowledge base semantically. - Drafting contextual responses. - Summarizing long conversations. - Choosing between tools based on changing context. A production system often combines both. ## The best first project is rarely “build an AI agent” “AI agent” describes an architecture pattern, not a business outcome. A stronger first project sounds like: - Reduce manual lead qualification. - Shorten support response preparation. - Automate invoice data extraction before human approval. - Give staff faster access to internal policies. - Route customer requests to the correct operation automatically. - Prepare sales follow-ups using CRM context. Once the outcome is clear, you can decide whether the solution needs a workflow, RAG, an AI agent, a chatbot, an integration or a combination. ## Where GCC businesses can look for opportunities The right workflow depends on the company, but several operating patterns are worth inspecting. ### Customer conversations If a significant amount of customer communication happens through WhatsApp, website chat, social channels or email, inspect what employees repeatedly do after receiving a message. Do they answer the same questions? Do they manually identify the customer? Do they copy information into another system? Do they route requests manually? Do they repeatedly ask for the same missing fields? The opportunity may be larger than a chatbot. It may be a complete customer-service or sales workflow. ### Sales qualification A company may receive leads from advertisements, landing pages, events, referrals, Instagram, WhatsApp or marketplaces. If salespeople spend substantial time discovering whether a lead is relevant, an AI-assisted workflow can potentially classify context, gather missing information, enrich the record and prepare the next action. The CRM should remain the operational source of truth rather than creating a second hidden database inside the AI system. ### Internal knowledge Policies, product documents, proposals, contracts, manuals and operating procedures may be spread across several locations. Employees repeatedly asking other employees for information is a signal worth investigating. A permission-aware RAG system can make approved knowledge easier to retrieve, but only if access controls and source quality are handled properly. ### Documents and back-office work Invoices, purchase requests, forms, PDFs, reports and email attachments often create repetitive extraction and classification work. AI can be useful where document formats vary, while deterministic validation should still protect important fields and actions. ### Customer support Do not measure only the number of conversations a bot can answer. Inspect the complete resolution workflow: **Understand request → Identify customer → Retrieve account context → Find knowledge → Decide next step → Take allowed action → Escalate when needed → Record outcome** The expensive part may be in the middle, not the first response. ## Arabic and English are part of the system design A GCC-facing workflow may receive Arabic, English or mixed-language input. That is not only a translation concern. You need to evaluate the real model and workflow against the language customers and staff actually use. Test: - Arabic requests. - English requests. - Mixed Arabic/English messages. - Product and company terminology. - Names and identifiers. - Structured extraction. - Retrieval quality across multilingual documents. Do not assume good English performance automatically means good operational performance in Arabic. ## WhatsApp should be a channel, not the database WhatsApp can be a valuable customer channel. But business state should normally live in the systems designed to own it. For example: - CRM owns lead/customer state. - ERP owns operational or financial records. - Booking system owns availability and reservations. - Ticketing system owns support cases. The AI layer can interpret the conversation and orchestrate allowed actions, but the channel itself should not become the source of truth. This makes the workflow easier to audit and lets customers move between channels without losing operational state. ## Do not automate a broken process without examining it Suppose an approval requires seven people because the company accumulated rules over several years. Adding AI to route the same seven approvals faster may automate waste. Before automation, ask: - Why does this step exist? - Who needs the information produced by it? - Which exceptions actually occur? - Can two steps be combined? - Can a rule remove the need for human judgment? - Is the underlying data already available somewhere else? Sometimes the highest-value automation project begins by deleting steps. ## Build around a source of truth Many companies have information split between spreadsheets, WhatsApp, ERP, CRM and employee knowledge. An AI system cannot magically resolve contradictory data. For each important field, define the authoritative source. For example: **Customer status → CRM** **Invoice state → ERP/accounting system** **Product policy → approved knowledge repository** **Available appointment → booking system** Then integrations become much safer. ## Separate understanding from permission A model may correctly understand that a customer wants a refund. That does not mean it should be allowed to issue one. These are separate questions: 1. **What does the user want?** 2. **What is the system allowed to do?** Authorization should come from explicit business rules and identity context, not from the model's confidence. A useful architecture might allow the AI to prepare the action while requiring human approval above a threshold. ## Choose autonomy by risk Think of automation as levels rather than a binary choice. ### Assist AI drafts or recommends. A person executes. ### Act with confirmation AI prepares an action and a person approves it. ### Act within boundaries AI can execute specific low-risk actions under defined rules. ### Escalate AI recognizes uncertainty or risk and transfers the case to a person with context. You can increase autonomy after evidence shows the workflow is reliable. ## Human handoff is part of the architecture “Human in the loop” should not mean a generic button added at the end. Define: - What triggers escalation? - Who receives it? - What context do they receive? - Can they correct the AI output? - Is that correction recorded? - Does the customer know what happens next? A good handoff prevents the employee from rereading the entire conversation and starting from zero. ## Measure the baseline before building If you cannot describe the current workflow, it will be difficult to prove the automation helped. For a candidate process, measure what is practical: - Volume per week or month. - Human handling time. - Waiting time. - Rework rate. - Escalation rate. - Error categories. - Customer response or resolution time. - Operational cost where it can be estimated responsibly. You do not need perfect analytics. You need enough baseline to compare before and after. ## Measure outcomes, not AI activity Weak metrics include: - Number of prompts. - Number of generated messages. - Number of agent steps. - Tokens processed. Those may matter for operations and cost, but they do not prove business value. Better questions include: - Did handling time decrease? - Did qualified leads reach sales faster? - Did fewer requests require manual routing? - Did support resolution improve without increasing error risk? - Did the workflow reduce repetitive employee effort? - What does one successful automated outcome cost? The business buys outcomes, not tokens. ## Cost should include the complete system The model API is only one part of production cost. Depending on the project, include: - Model inference. - Embeddings and retrieval. - Infrastructure. - Integrations. - Monitoring. - Human review. - Failed runs and retries. - Logging and storage. - Maintenance. - Evaluation. A cheaper model that creates more failures or manual review can produce a more expensive workflow. Measure **cost per successful business outcome**, not model price alone. ## Start with one bounded workflow A first automation project should have a boundary you can explain. For example: > “For inbound website and WhatsApp leads, identify the request type, collect four required fields, create/update the CRM record, assign the correct sales queue and prepare a response. Escalate when required information is ambiguous.” That is much easier to evaluate than: > “Build an AI employee for sales.” Boundaries create testability. ## A practical scoring framework For each candidate workflow, assess: **Volume** — how often does it happen? **Manual effort** — how much repetitive work exists? **Business value** — what improves if it becomes faster or cheaper? **AI fit** — is there language, document or contextual uncertainty AI handles well? **Integration readiness** — can the required systems be reached safely? **Risk** — what happens when the system is wrong? **Measurability** — can you compare before and after? A strong first project usually has meaningful value, manageable risk and a clear measurement path. ## Example: inbound lead workflow Current state: 1. Lead arrives from a landing page or WhatsApp. 2. Employee reads the message. 3. Employee asks qualification questions. 4. Data is copied into CRM. 5. Lead is assigned. 6. Salesperson writes a follow-up. Possible architecture: - Deterministic integration captures the lead. - AI classifies free-form intent. - Workflow checks required fields. - AI asks for missing contextual information where appropriate. - CRM remains source of truth. - Rules assign the owner. - AI prepares a contextual follow-up. - High-value or ambiguous cases are escalated. The model is one component inside an operating workflow. ## Example: internal policy assistant A company wants employees to ask questions about policies. Do not simply upload every file to a chatbot. First define: - Approved sources. - Document owners. - Access permissions. - Freshness/update process. - Retrieval behavior. - Citation/source display. - Escalation when the answer is not supported. The value comes from trustworthy retrieval, not conversational style. ## Example: document processing Suppose staff manually read supplier documents and enter data into an ERP. A production workflow might: 1. Receive the document. 2. Classify document type. 3. Extract candidate fields with AI where needed. 4. Validate deterministic fields and formats. 5. Compare against existing records. 6. Send uncertain or high-risk cases for review. 7. Write approved data to the ERP. 8. Keep an audit trail. Again, AI handles uncertainty. Software handles rules and state. ## What I would not automate first Be cautious with a first project when: - The process changes every week. - Nobody owns the workflow. - The source data is unreliable. - There is no way to evaluate correctness. - Errors create high irreversible risk. - The required integrations do not exist and would dominate the project. - Volume is too low to justify the investment. - The real problem is organizational rather than operational. A successful “no” can save more money than a fashionable pilot. ## Do you need an AI agent? Only if the workflow benefits from dynamic decisions about which tools or steps to use. If the sequence is fixed, a normal workflow engine plus targeted AI calls may be simpler and more reliable. Use agentic behavior where flexibility earns its complexity. Do not make the whole architecture agentic because one step needs language understanding. ## Do you need RAG? Use RAG when the model needs external knowledge at runtime that is too large, private, changing or source-dependent to place reliably in the prompt. Do not use RAG when the information should come from a live database/API lookup. Customer account balance belongs in the authoritative system, not in a vector index pretending to be current. ## Do you need a private or local model? Privacy requirements should follow the data flow. Ask: - What data reaches the model? - Where is it processed? - What is logged? - Where are embeddings stored? - Who can access retrieval results? - What do provider contracts and configuration allow? Some workloads may justify private deployment. Others may be better served by hosted models with appropriate controls. Hybrid architecture is also possible. Choose placement after understanding the workload and risk boundary. ## A 30-day first-project shape Not every project fits a month, but a useful early sequence can look like this: ### Week 1: Discovery and baseline Map the workflow, systems, volume, risks and current metrics. ### Week 2: Thin integration and evaluation set Connect the minimum required sources and build representative test cases from the real workflow. ### Week 3: Controlled pilot Run with limited users or traffic, keep human review where needed and record failure categories. ### Week 4: Compare and decide Compare the pilot with baseline, estimate operating economics and decide whether to expand, change or stop. The objective is evidence, not a demo that always works in a prepared scenario. ## From pilot to production A production AI automation needs more than a good prompt. Depending on the workflow, plan for: - Authentication. - Authorization. - Tool permissions. - State management. - Retries and idempotency. - Audit logs. - Observability. - Evaluation datasets. - Model/provider fallbacks. - Cost controls. - Human escalation. - Data retention rules. The difference between a demo and a business system lives here. ## A sensible adoption sequence For many companies, a practical progression is: **Map workflow → Remove unnecessary steps → Automate deterministic rules → Add AI where uncertainty remains → Connect systems → Add controlled actions → Measure → Expand** That sequence is less exciting than “deploy autonomous agents everywhere.” It is also much easier to operate. ## Where should your company start? Choose one workflow where: - The pain already exists. - The volume is meaningful. - The business outcome is clear. - Required data is accessible. - Risk can be bounded. - Before/after performance can be measured. Then build the smallest system that can prove the improvement. If it works, expand from evidence. If it does not, you learned before turning the experiment into infrastructure. ## Looking for the first AI automation worth building? I help companies map real workflows, identify where AI actually earns its complexity, design the integrations and controls, and take the selected automation from architecture to production. **Discuss AI Automation with Fady Mondy.** The goal is not to put AI everywhere. It is to find the parts of the business where AI can create a measurable operational advantage. --- **Related:** AI Automation, AI for Business, WhatsApp AI, AI Agents, AI Integration, AI Consulting, and Digital Transformation vs AI Transformation. --- Source: https://fadymondy.com/en/blog/ai-business-automation-gcc-where-to-start --- # When Should Your Business NOT Use AI? 10 Cases Where Simpler Software Is Better > AI is not automatically the right answer to every business problem. If the workflow is deterministic, the data is weak, the action is too risky, or the economics do not work, simpler software may be faster, safer and cheaper. Here’s how to know when NOT to use AI. #AIForBusiness #AIAutomation #SoftwareArchitecture #BusinessAutomation #AIConsulting #DigitalTransformation *2026-09-17T06:09:24Z* # When Should Your Business NOT Use AI? 10 Cases Where Simpler Software Is Better A company sees a slow process and asks: > **Can we solve this with AI?** That is usually the wrong first question. The better question is: > **What is the simplest reliable system that can produce the outcome we need?** Sometimes the answer is an LLM, RAG system or AI agent. Sometimes it is an API integration, database query, workflow rule, search index, scheduled job or a better form. Choosing not to use AI is not being behind technologically. In many cases, it is the better engineering and business decision. AI is most useful where software must interpret uncertainty: language, documents, images, ambiguous requests, large bodies of knowledge or situations where the correct next step cannot be expressed economically as fixed rules. When the problem is already deterministic, adding a probabilistic model can create cost and failure modes without adding meaningful capability. ## 1. The business rule is already exact Suppose your policy says orders above $10,000 require finance approval. You do not need an LLM to decide whether 12,500 is greater than 10,000. The same applies to tax calculations, permission checks, required fields, subscription limits, inventory thresholds, explicit eligibility rules and known routing rules. A useful principle is: > **Use software for certainty. Use AI for uncertainty.** AI may read an unstructured email and extract an order number, but the approval threshold should remain deterministic. ## 2. A database query already answers the question If a customer asks for the status of an order and the answer lives in your order database, the model should not invent, remember or infer it. Query the source of truth. AI may interpret the customer's wording and decide which tool to call, but operational facts such as balances, inventory, booking availability, payment status and account state should come from the system that owns them. RAG is not a replacement for a database query either. If structured, current data exists behind an API, use the API. ## 3. The workflow is repetitive but not intelligent Many businesses say they want “AI automation” when they really need automation. **Form submitted → Create CRM record → Assign salesperson → Send notification → Create follow-up task** Nothing there necessarily requires AI. AI becomes relevant if one step contains uncertainty, such as reading a free-form enquiry and extracting requirements. Then the architecture can be: **Message → AI extraction → Validation → Deterministic workflow → CRM** Only the uncertain part uses AI. This is usually easier to test, cheaper to operate and simpler to debug. ## 4. You do not have a trustworthy source of truth If company policies are scattered across old PDFs, employee laptops, messages, duplicated documents and contradictory spreadsheets, the first problem is not RAG. It is information governance. Before building a knowledge assistant, determine which sources are authoritative, who owns them, which versions are current, who can access them and what happens when sources disagree. AI can retrieve bad knowledge efficiently. That does not make the answer correct. ## 5. The cost of a wrong answer is unacceptable and cannot be controlled If an AI output could directly cause a large financial transfer, deletion of production data, contractual commitment, confidential-data exposure or another high-impact action, ask what happens when the model is wrong. AI can still prepare, classify, summarize or recommend, while final actions use deterministic validation, explicit authorization or human approval. **AI recommendation → Policy validation → Human approval → Transaction API** is fundamentally different from: **AI output → Execute transaction** If you cannot design a safe failure path, reduce autonomy. ## 6. You cannot define what “good” means “The answers look pretty good” is not enough for a production system. Depending on the use case, define classification accuracy, extraction correctness, retrieval relevance, citation support, task completion, escalation rate, error severity, cost per successful task or time saved against a baseline. If nobody can explain a successful output, it becomes difficult to know whether changing the model, prompt, RAG pipeline or agent architecture improved anything. ## 7. The economics do not work The relevant calculation is not the price of one API call. It is the cost of one successfully completed business task end to end. Include model usage, retrieval, infrastructure, human review, retries, failures, maintenance, monitoring and hosting. Compare that with the current process and the value created. A technically impressive system can be a poor investment if the workflow is rare or low value. An expensive model call can also be excellent economics when it removes a much more expensive bottleneck. ## 8. You are adding AI because competitors added AI A competitor launching an AI assistant is a market signal, not automatically a product requirement. Ask which user problem becomes easier, what behavior should change, what metric should improve, why AI is materially better than the current solution and which new failure modes it introduces. If the only answer is “customers expect us to have AI,” you may be building a badge rather than a capability. ## 9. The real bottleneck is broken process or integration If employees copy customer information from WhatsApp into Excel and then into an ERP, an AI agent could imitate those actions. But a stronger architecture may simply be: **WhatsApp/API → Integration layer → ERP** Map the workflow as **Input → Decisions → Systems → Handoffs → Waiting → Output** and identify the real constraint. It may be integration, ownership, permissions, process design or ordinary automation. AI should not become a sophisticated patch over a process that should first be simplified. ## 10. The problem is too small to justify a new AI system Every AI feature creates ongoing work: evaluation, monitoring, version management, provider management, security review, cost tracking, fallback behavior and testing as models change. If a process takes an employee ten minutes once a month, a checklist or spreadsheet formula may be the better solution. Good technical leadership includes knowing which problems deserve to remain boring. ## A useful test: remove AI from the architecture Draw the best version of the workflow without AI first. **Customer request → Form → Rules → CRM → Employee** Then ask where it fails. If customers send complex natural-language messages that cannot fit a structured form, a real AI-shaped problem appears: **Customer message → AI interpretation → Validated structured data → Rules → CRM → Employee** The model earns its place because it solves a specific limitation. ## AI, automation and integration are not the same thing **Integration** moves information between systems. **Deterministic automation** executes known steps and rules. **AI assistance** interprets uncertain information or generates a recommendation. **AI agents** use context and tools to choose permitted actions inside a controlled environment. A production workflow can contain all four. The mistake is assuming the fourth should replace the first three. ## What should remain deterministic around AI? Even in a genuinely AI-powered system, important boundaries should usually remain ordinary software: authentication, authorization, spending limits, data-access rules, schema validation, rate limits, idempotency, transaction integrity, audit logging and approval requirements. The model can reason inside the box. The application defines the box. Prompts are instructions, not security boundaries. ## A practical decision tree Can explicit rules solve it reliably? Start with deterministic software. Is the answer available from structured data? Query the source of truth. Is the main problem moving data between systems? Investigate integration. Does the task require interpreting language, documents, images or ambiguity? AI may add real capability. Does it need current or private organizational knowledge? Consider RAG or direct tool access depending on the source. Does it need dynamic actions? Consider an agent only after defining tools, permissions, validation and failure handling. Can you measure quality and business value? If not, establish the baseline and evaluation first. Can the system fail safely? If not, reduce autonomy or redesign the workflow. ## Three practical examples ### Employee leave requests Leave balance, date rules and manager approval can be deterministic. AI may interpret free-form requests, but policy enforcement remains software. ### Internal policy questions Complex questions across hundreds of changing documents are a stronger candidate for permission-aware RAG, assuming authoritative sources and evaluation exist. ### Sales qualification AI can extract requirements from inconsistent messages, CRM rules can validate fields, a salesperson can review high-value opportunities, and an agent may later gather missing information through approved tools. That is layered architecture, not “AI does everything.” ## The best AI strategy may contain less AI A mature AI architecture is not the one with the most models, agents and vector databases. It is the one where every component has a clear job. A reliable business system may contain: **APIs + Database + Rules + Workflow Engine + Search + RAG + LLM + Human Approval** The LLM is one component. Your workflow should remain understandable even if the model provider changes next year. ## Questions I would ask before spending on AI 1. What business outcome are we improving? 2. What does the workflow look like today? 3. Where is the actual bottleneck? 4. Which parts are deterministic? 5. Which parts contain genuine uncertainty? 6. Where does authoritative data live? 7. What happens when the model is wrong? 8. What always requires authorization or approval? 9. How will quality be evaluated? 10. What is the cost per successful task? 11. What is the baseline today? 12. Would a simpler integration or software change solve most of the problem? If question 12 is yes, that is usually good news: you can solve the problem with less complexity. ## Start with the problem, not the model There are workflows where AI is transformative. There are also workflows where adding AI makes a simple system slower, more expensive and less predictable. The objective is not to maximize AI adoption. The objective is to improve the business. **Discuss your workflow with Fady Mondy.** I help companies separate what should be ordinary software, integration and automation from the parts where AI, RAG or agents can create real value — then design the smallest production architecture that solves the problem. --- **Related:** AI for Business, AI Automation, AI Integration, AI ROI, RAG vs Fine-Tuning vs AI Agents, Digital Transformation vs AI Transformation and Custom Software Development. --- Source: https://fadymondy.com/en/blog/when-business-should-not-use-ai --- # Buy vs Build AI: Should Your Business Use an Off-the-Shelf Tool or Build a Custom AI System? > Should you buy an off-the-shelf AI tool or build a custom AI system? Compare workflow differentiation, integration depth, proprietary data, control, security, speed, total cost and vendor lock-in before investing. The best answer is often hybrid. #BuyVsBuild #CustomAI #AIForBusiness #AIDevelopment #EnterpriseAI #AIArchitecture *2026-09-17T06:11:18Z* # Buy vs Build AI: Should Your Business Use an Off-the-Shelf Tool or Build a Custom AI System? A business decides it needs AI and quickly reaches a practical question: > **Should we buy an existing AI product, or build our own system?** The wrong way to answer is to compare a monthly subscription with a development quote. Those numbers describe different things. A better decision starts with the workflow you are trying to improve, how important that workflow is to the business, what must integrate with it, what data it needs and how much control you actually require. Sometimes buying is clearly better. Sometimes custom development is justified. And very often, the strongest architecture is hybrid: buy commodity capabilities and build the layer that makes your business different. ## Start with the workflow, not the AI product Suppose you want AI for customer support. “Customer support AI” can mean very different systems: - Answer public FAQs. - Search private company knowledge. - Identify the customer and retrieve account context. - Update a ticket. - Change a booking. - Qualify a sales opportunity. - Issue a controlled refund. - Work across WhatsApp, email and your application. A ready-made chatbot may handle the first case extremely well. The last few may require deep integration with your own systems, permissions and business rules. So before comparing vendors, draw the workflow: **Input → Understanding → Knowledge → Decision → Action → System of Record → Human Escalation** Then ask which parts are standard and which parts are specific to your company. ## Buy when the problem is a commodity If thousands of businesses solve essentially the same problem in essentially the same way, buying should usually be your starting point. Examples may include: - Meeting transcription. - Basic document summarization. - Generic writing assistance. - Standard help-center search. - Common CRM functionality. - Basic support-ticket classification. A mature product can give you onboarding, UI, infrastructure, monitoring, integrations and ongoing model improvements without your team owning all of them. Building a custom version of a solved commodity problem can consume engineering capacity without creating strategic advantage. ## Build when the workflow is part of your differentiation Custom AI becomes more interesting when the workflow itself is important to how your company competes or operates. For example, your system may need to combine: - Proprietary business logic. - Internal data unavailable to a generic SaaS product. - Multiple operational systems. - Custom permissions. - A unique decision process. - Specialized domain terminology. - Human approval at specific risk boundaries. - Your own customer experience. In that situation, forcing the business into a generic AI product may create more workarounds than value. The reason to build is not “we want our own AI.” It is: > **The workflow is valuable enough and specific enough that controlling the system creates business value.** ## Integration depth is often the real dividing line A generic AI tool can look excellent in a demo because the conversation itself works. Production value often begins after the conversation. Can the system safely: - Read the correct CRM record? - Check current ERP data? - Respect user permissions? - Create a ticket? - Update a booking? - Trigger a workflow? - Retrieve private documents? - Write an auditable result back to the system of record? If your requirement is mostly “answer questions from these documents,” an existing tool may be enough. If the AI must become part of your operating system, integration architecture becomes much more important. ## Do not confuse using an API with buying A custom AI system does not mean training a foundation model from scratch. You can build your own product and still use hosted models, embedding providers, OCR services, vector infrastructure or other managed components. For example: **Your application → Your permissions → Your workflow → Hosted LLM API → Your validation → Your business systems** That is still a custom AI system because you own the application behavior and architecture around the model. The model is a component, not the product. ## And do not confuse self-hosting with building everything The opposite is also true. A company may run a local or private model but still rely heavily on existing software around it. Buy vs build and hosted vs self-hosted are different decisions. One asks **who owns the product/workflow layer?** The other asks **where specific infrastructure or model processing runs?** Keep those decisions separate. ## Proprietary data can strengthen the case for custom architecture If AI value depends on company-specific knowledge or operational data, ask how the product accesses it. You may need: - Permission-aware retrieval. - Direct database/API access. - Data normalization. - Entity relationships. - Freshness guarantees. - Auditability. - Data retention controls. A vendor saying “connect your knowledge base” may be enough for one use case and completely insufficient for another. The important question is not whether the product supports RAG. It is whether its data architecture matches your required trust boundary. ## Security is about control boundaries, not the word “enterprise” When evaluating a purchased tool or custom system, trace the data flow. Ask: - What data leaves our environment? - Which provider processes it? - What is stored? - What is logged? - Who can retrieve which information? - How are permissions enforced? - Can the AI take actions? - Which actions require approval? - What audit trail exists? A custom system gives you more control, but also gives you more responsibility. A mature vendor may have stronger operational security than a poorly built internal solution. So “custom” is not automatically safer, and “SaaS” is not automatically less safe. Evaluate the actual architecture and controls. ## Speed strongly favors buying — at first If a suitable product already exists, you can often test the workflow much faster by buying it. That matters when the business is still validating whether the use case produces value. Before spending months on custom development, a commercial tool may help answer: - Will employees actually use this? - Does it reduce handling time? - Do customers accept the experience? - Is the workflow valuable enough to optimize further? Buying can be an experiment even if you later build. You do not need to make the permanent architecture decision on day one. ## But speed can reverse after the customization ceiling A product can be fast to start and slow to adapt. The pattern often looks like: **Day 1:** Easy setup. **Month 2:** Need a custom field. **Month 4:** Need an integration the vendor does not support. **Month 6:** Need different permission logic. **Month 9:** Business workflow is now shaped around vendor limitations. At that point, every new requirement becomes a negotiation with the product's boundaries. This is the customization ceiling. If you expect the workflow to become strategically important, investigate that ceiling early. ## Compare total cost of ownership, not subscription versus development Buying has more cost than the subscription price. Depending on the product, include: - Per-seat charges. - Usage charges. - Model/API consumption. - Integration tiers. - Premium support. - Implementation work. - Internal administration. - Workarounds. - Data migration. - Switching cost. Building also has more cost than the initial development project. Include: - Product and engineering time. - Infrastructure. - Model usage. - Monitoring. - Security. - Evaluation. - Maintenance. - Support. - Incident response. - Provider upgrades. - Ongoing integration work. There is no universal user-count threshold where custom suddenly becomes cheaper. The economics depend on the workflow. ## Measure cost per successful outcome For AI specifically, compare economics at the business-task level. A cheap SaaS subscription that solves only 40% of a workflow may still require substantial manual work. A more expensive custom system that safely automates a larger portion may have better economics. Likewise, a custom platform with high maintenance cost can be a poor decision when a ready-made tool already solves the workflow well. Ask: > **What does one successful business outcome cost end to end?** That keeps the comparison tied to value. ## Vendor lock-in is not only about model providers Teams often worry about being locked into OpenAI, Claude or another model. But lock-in can exist at several layers: - Data. - Workflow definitions. - Prompt/evaluation assets. - Integrations. - User interface. - Automation rules. - Proprietary vendor APIs. - Historical conversation state. A provider abstraction can make models replaceable while the business remains deeply dependent on the surrounding SaaS platform. Map the complete dependency. ## Custom software has lock-in too Owning source code does not automatically create independence. A custom system can become dependent on: - One engineer. - One agency. - Undocumented architecture. - Obscure infrastructure. - Proprietary internal assumptions. - Unsupported dependencies. If you build, ownership should include documentation, deployment knowledge, observability, tests, access control and the ability for another competent team to operate the system. Code ownership alone is not operational ownership. ## Data portability matters before you need it Before adopting an AI platform, ask what happens if you leave. Can you export: - Documents? - Structured data? - Conversation history? - User feedback? - Evaluation datasets? - Workflow configuration? - Generated metadata? You may never migrate. But knowing the exit path changes the risk of adoption. ## A hybrid approach is often stronger You rarely need to choose between “buy everything” and “build everything.” A practical architecture might be: **Purchased CRM + Hosted LLM + Custom orchestration + Your permission layer + Your data + Existing ticketing system** Or: **Commercial support platform + Custom RAG service + Internal APIs + Human approval workflow** The principle is simple: > **Buy the commodity. Build the differentiator. Integrate the rest.** This reduces unnecessary engineering while preserving control where it matters. ## Build the business layer, not another foundation model For most companies, the valuable custom work is not creating a new general-purpose LLM. It is building the system around available models: - Domain context. - Retrieval. - Memory where needed. - Business rules. - Tool access. - Permissions. - Evaluation. - Observability. - Human escalation. - Product experience. Those layers determine whether AI becomes useful inside the company. A model benchmark alone does not. ## A decision matrix ### Prefer buying when - The workflow is standard. - A mature product already solves most requirements. - Speed matters more than customization. - Integrations are already supported. - The process is not a competitive differentiator. - The economics remain reasonable as usage grows. - The vendor's security and data controls meet your needs. ### Consider building when - The workflow is unique or strategically important. - Deep proprietary integrations are required. - Generic tools create repeated workarounds. - You need control over permissions, orchestration or user experience. - Proprietary data is central to the value. - The system will become part of your product rather than an internal convenience. - The long-term economics justify ownership. ### Consider hybrid when - Standard products solve parts of the workflow well. - Your differentiation lives in orchestration or data. - You want provider flexibility without rebuilding commodity infrastructure. - You need to validate value before committing to deeper custom development. ## Example: customer support A company wants to automate support. If the need is basic FAQ answering, a commercial support AI product may be the sensible first choice. Now suppose the workflow requires: 1. Understand Arabic or English customer messages. 2. Identify the authenticated customer. 3. Retrieve account state. 4. Search permissioned product knowledge. 5. Determine an allowed next action. 6. Update an internal system. 7. Escalate specific cases with full context. The value now sits in orchestration, integration and permission boundaries. You might still buy the support interface and use a hosted model, while building the business-specific layer. That is a hybrid system. ## Example: internal knowledge assistant If employees need semantic search across a small set of non-sensitive documents, an existing product may be enough. If access depends on department, customer, project or document-level permissions, and answers must combine live system data with documents, custom architecture becomes more relevant. The question is not “do we need RAG?” It is “what trust and access model must retrieval enforce?” ## Example: AI inside your SaaS product If AI is a small convenience feature, buying an API or embedded capability may be ideal. If AI becomes a core part of the product experience, you may want control over: - Provider routing. - Evaluation. - Usage limits. - Cost controls. - Tenant isolation. - Prompt/version management. - Tool permissions. - Fallbacks. - Product-specific context. The closer AI gets to your product's differentiation, the stronger the case for owning more of the application layer. ## Do not build before validating the workflow Custom development should not be the first proof that the idea is valuable. Where possible, validate using: - Manual operations. - Existing SaaS. - A thin prototype. - Limited integrations. - A controlled pilot. Learn what users actually need before committing to a larger architecture. The first version should answer the riskiest business question, not demonstrate every technical possibility. ## Do not buy before testing the exit and limits A vendor demo shows the happy path. Before committing, test the difficult parts: - Your real documents. - Your Arabic/English inputs. - Your permissions. - Your integration edge cases. - Your volume. - Your escalation rules. - Your export path. The purpose of a pilot is not to confirm that the product works in general. It is to discover whether it works inside your operating model. ## Questions to answer before the decision 1. What exact workflow are we improving? 2. Is that workflow standard or differentiating? 3. Which systems must it integrate with? 4. Which data is proprietary, sensitive or live? 5. What permissions must be enforced? 6. What happens when AI is wrong? 7. How much customization do we expect over the next year? 8. What is the full three-year operating cost of each path? 9. How do we export our data and workflows if we leave? 10. Which components could we buy even if the business layer is custom? 11. Can we validate the outcome before building deeply? 12. What capability do we genuinely need to own? The last question is usually the most important. ## The decision is about ownership, not pride Buying is not less sophisticated than building. Building is not automatically more innovative than buying. The objective is to own the parts where ownership creates leverage and avoid owning commodity complexity that somebody else can operate better. For many businesses, the strongest answer is: > **Buy what is standard. Build what makes the workflow yours. Keep the boundaries replaceable.** ## Deciding whether your AI system should be bought, built or hybrid? I help companies map the workflow, integrations, data boundaries, security requirements and operating economics before committing to an AI architecture. **Discuss an AI architecture or custom AI project with Fady Mondy.** The goal is not to maximize custom code. It is to own the technology that creates business advantage and keep everything else as simple as possible. --- **Related:** Custom AI Development, AI Integration, Private AI, Local LLM vs Hosted AI, AI ROI, SaaS vs Custom Software and When Your Business Should NOT Use AI. --- Source: https://fadymondy.com/en/blog/buy-vs-build-ai-business --- # AI Automation vs Traditional Automation: When Does a Model Actually Earn Its Place? > Not every automation needs AI. Traditional automation wins when rules are explicit; AI earns its place when a workflow must interpret messy language, documents or ambiguous inputs. Here’s how to design the boundary without turning a reliable process into a probabilistic one. #AIAutomation #BusinessAutomation #AIForBusiness #SoftwareArchitecture #AIAgents *2026-09-17T06:35:37Z* # AI Automation vs Traditional Automation: When Does a Model Actually Earn Its Place? “Let’s automate it with AI” sounds modern, but it mixes two different engineering problems. Some work is difficult because there are many steps. Other work is difficult because one or more steps require interpretation. The first problem often needs **traditional automation**. The second may justify **AI automation**. That distinction matters because deterministic software gives you something valuable: predictable behavior. A model should not replace that predictability unless it adds a capability ordinary rules cannot provide economically. The useful question is not: > **Can AI do this?** It is: > **Where does a model create enough value to justify uncertainty, evaluation, cost and operational complexity?** ## Traditional automation is not “old automation” Traditional automation means the system follows explicit logic. For example: **Lead submitted → Validate fields → Create CRM record → Assign by territory → Notify owner → Schedule follow-up** If the inputs are structured and the rules are known, this architecture is excellent. You can test every branch, inspect failures and know why an action occurred. Common deterministic building blocks include APIs, queues, scheduled jobs, workflow engines, database rules, webhooks and ordinary application code. None becomes obsolete because LLMs exist. ## AI automation solves a different class of step Now change the input. Instead of a structured lead form, customers send messages such as: > We are a logistics company with teams in Riyadh and Dubai. We currently handle requests through WhatsApp and spreadsheets and want to connect this with our CRM before the next expansion phase. A fixed rule engine can process the message only after somebody converts it into structured information. A model can potentially extract: - Company type. - Locations. - Current systems. - Pain points. - Requested outcome. - Timing signals. The workflow can then become: **Unstructured message → AI extraction → Schema validation → Deterministic rules → CRM → Human review when required** The model has earned a specific place: converting ambiguity into structured data. It has not earned control over the entire workflow. ## The boundary is more important than the model Many AI projects spend too much time choosing a model and too little time defining its boundary. For every step, ask: 1. Is the input structured or unstructured? 2. Can the decision be expressed as reliable rules? 3. Does the step require interpretation or judgment? 4. What is the cost of a wrong output? 5. Can the output be validated before the next action? This often produces a mixed architecture rather than an “AI workflow.” That is a good outcome. ## Use rules when the rule already exists If your company policy says: - Orders above a threshold need approval. - A customer must have a verified account before an action. - A field must match a known schema. - A user cannot access another tenant's records. - A refund cannot exceed a defined limit. implement those constraints in software. Do not ask a model to rediscover a rule your business already knows. A prompt saying “never approve refunds above the limit” is not equivalent to application-level authorization. The model can recommend. The system enforces. ## Use AI where rules become an expensive imitation of understanding Traditional automation becomes awkward when engineers start writing hundreds of fragile conditions to approximate language understanding. Examples include: - Classifying free-form customer intent. - Extracting fields from varied documents. - Summarizing long conversations. - Matching a question to relevant knowledge. - Interpreting multilingual messages. - Turning natural-language requests into a proposed structured action. You could write rules for parts of these problems, but maintaining them may become more expensive and less capable than using a model with evaluation and validation. That is where AI starts to earn its place. ## AI should usually produce a typed output, not vague prose In business automation, a useful model output often looks less like a chatbot answer and more like data. For example: ```text intent: sales_enquiry company_type: logistics markets: [Saudi Arabia, UAE] current_tools: [WhatsApp, spreadsheets, CRM] requested_outcome: integrate lead workflow confidence: needs_review ``` The exact schema depends on the application, but the principle is important. The next part of the system should not have to guess what the model meant. Validate required fields, types, allowed values and permissions before continuing. ## Confidence is not authorization A model may be highly confident and wrong. So do not design critical actions around “confidence > 0.9, therefore execute.” Confidence can help routing, but authorization should come from business rules and identity. For higher-risk workflows, use patterns such as: **AI interpretation → Validation → Policy check → Human approval → Action** For lower-risk reversible workflows, the human step may be unnecessary. Autonomy should follow risk, not excitement about agents. ## Three levels of automation A useful way to design a workflow is to separate three levels. ### 1. Deterministic automation Known input, known rule, known action. Example: route a verified lead to a salesperson based on territory. ### 2. AI-assisted automation AI interprets or prepares something; software or a human controls the action. Example: extract requirements from an email, then create a draft CRM record for review. ### 3. Controlled agentic automation AI can choose among approved tools and actions based on context, while application boundaries enforce permissions, budgets and validation. Example: an agent checks CRM context, searches approved knowledge and prepares or executes an allowed follow-up action. Do not jump to level three when level one or two solves the problem. ## Example: invoice processing A company receives invoices in different layouts. Traditional automation can handle: - File arrival. - Storage. - Duplicate detection using known identifiers. - Required-field validation. - Approval routing. - ERP write-back. AI may help with: - Reading varied layouts. - Extracting vendor, items and totals. - Classifying ambiguous descriptions. Accounting policy and payment authorization remain deterministic. The resulting system is more reliable because AI handles interpretation while software handles control. ## Example: customer service Traditional automation can identify an authenticated customer, retrieve account state, enforce permissions, create a ticket and route escalation. AI can interpret the customer's message, retrieve relevant knowledge, summarize context and propose a response. If the customer asks to change something, the application can determine whether that action is allowed and whether approval is required. Again, the strongest architecture is layered. ## Example: sales qualification Traditional rules might say: - Reject malformed contact information. - Assign by region. - Create required CRM fields. - Notify the account owner. AI can read an unstructured enquiry and extract business need, urgency and missing information. An agent may later ask follow-up questions, but it should operate through defined tools and permissions. The model handles ambiguity. The business system handles truth and control. ## When AI automation makes the system worse Adding a model can be negative when: - The rule is already explicit. - Exact repeatability is required. - The task has little economic value. - A wrong result is expensive and cannot be contained. - There is no evaluation method. - The source data is unreliable. - A simple API integration solves the bottleneck. In those cases AI may create latency, cost and debugging difficulty without creating useful capability. ## Measure the model against the deterministic baseline Do not evaluate an AI workflow in isolation. Compare it with the best simpler alternative. Ask: - What percentage of tasks can rules handle correctly? - Which cases require human interpretation today? - How much time does that interpretation consume? - What errors matter most? - What is the cost per successful task? - How often does AI require human correction? - Does the AI path reduce total cycle time? If traditional automation already solves 95% of a workflow cheaply and reliably, the remaining 5% may be handled by humans rather than an elaborate agent architecture. The correct answer depends on the economics and risk. ## Keep a deterministic fallback where possible AI providers can fail. Models can change. Responses can violate schemas. Retrieval can return weak context. A production workflow needs a failure path. That might be: - Retry with controlled limits. - Route to human review. - Fall back to keyword search. - Store the task for later processing. - Continue with the deterministic portion only. “Model failed” should not automatically mean “business process stopped.” ## Model choice comes after task definition Teams often start by debating which LLM to use. First define: - Input. - Expected output. - Evaluation dataset. - Latency requirement. - Privacy boundary. - Failure tolerance. - Volume. - Cost target. Then test models against the actual task. A smaller model that reliably extracts six fields may be better for that step than a more capable model with higher cost and latency. Use the smallest adequate component, not the most impressive one. ## The architecture should survive a model replacement A healthy AI automation system treats the model as a replaceable dependency where practical. Your business rules, permissions, source-of-truth integrations, schemas and audit trail should not disappear because a provider changes. This makes it easier to evaluate hosted models, local models or future providers without redesigning the whole product. ## A practical workflow-design exercise Take one process and write every step in a table with four columns: **Step | Input | Decision | Action** Then label each decision: - **Rule** — explicit and deterministic. - **Lookup** — answer exists in a source of truth. - **Interpretation** — unstructured or ambiguous input. - **Approval** — requires authorized human/business decision. Now the architecture becomes clearer: - Rule → application code/workflow engine. - Lookup → API/database. - Interpretation → candidate for AI. - Approval → authorized human or deterministic policy. Only after this mapping should you decide where an LLM or agent belongs. ## When does a model earn its place? A model earns its place when all of these are reasonably true: - The step contains real ambiguity or unstructured information. - Traditional rules are inadequate or expensive to maintain. - The model output can be evaluated. - Failure can be detected, contained or escalated. - The business value exceeds the added operating cost. - The model is not being used as a security boundary or source of operational truth. That is a much stronger standard than “the model can do it in a demo.” ## Build the smallest intelligent layer The best AI automation architecture is often surprisingly boring around the model. **Input → AI where needed → Validation → Rules → APIs → Database → Audit → Human when needed** That is a feature, not a limitation. Reliable software should remain reliable. AI should be inserted exactly where interpretation creates value. **Need to decide which parts of your workflow should use AI and which should remain deterministic?** I help businesses map the process, identify the real uncertainty, design the control boundaries and build production AI automation without replacing reliable software unnecessarily. --- **Related:** AI Automation, When Your Business Should NOT Use AI, AI ROI, AI Agents vs Chatbots, AI Integration and Buy vs Build AI. --- Source: https://fadymondy.com/en/blog/ai-automation-vs-traditional-automation --- # Agent Memory in Practice: What Building CaBrain Taught Me About Long-Term Recall > AI agents become far more useful when they can remember across sessions — but storing every message in a vector database is not memory. Building CaBrain pushed me toward hybrid retrieval, salience, hot/cold memory, reconsolidation and an entity graph exposed over MCP. #AIAgents #AgentMemory #CaBrain #MCP #RAG #AIEngineering *2026-09-17T06:53:49Z* # Agent Memory in Practice: What Building CaBrain Taught Me About Long-Term Recall An AI agent can have excellent tools, a strong model and a carefully designed prompt — then start the next session as if none of yesterday happened. That limitation changes what an agent can realistically own. A useful long-running agent needs more than conversation history. It needs a way to retain what matters, retrieve it when relevant, connect related entities and update old knowledge when reality changes. That is the problem I have been working on with **CaBrain**, the memory layer I built for AI agents. CaBrain is not an attempt to make a model “remember everything.” The architecture goes in the opposite direction: retain selectively, retrieve through more than one signal, preserve relationships and let memory change over time. Building it changed how I think about agent memory. ## Conversation history is context, not long-term memory The simplest form of agent memory is to keep sending previous messages back to the model. That works for a while. Then the context grows, irrelevant details compete with useful facts, cost and latency increase, and eventually older information has to be removed or summarized. Conversation history answers: > What happened recently in this thread? Long-term memory needs to answer different questions: - What did we learn weeks ago that matters now? - Which fact is associated with this company, project or person? - Has an older fact been replaced by a newer one? - Which memories are important enough to retain? - How are two apparently separate facts connected? That requires a memory system outside the prompt. ## A vector database alone is not memory A common first implementation is: **Message → embedding → vector database → similarity search** This is useful, but I do not consider it a complete memory architecture. Semantic similarity is only one retrieval signal. An agent may need an exact identifier, a project name, a technical term or a relationship that is not the most semantically similar text to the current query. That pushed CaBrain toward **hybrid retrieval** rather than vector-only recall. ## Hybrid recall: semantic and lexical signals together CaBrain combines vector retrieval with lexical/BM25-style retrieval and ranking rather than assuming one search method will win every time. Semantic search is strong when the wording changes but the meaning remains similar. Lexical search is strong when exact words matter. For example, a memory query about “the database isolation approach for workspaces” may need to find a note that never uses exactly that sentence. Semantic retrieval helps. A query containing a specific repository, issue key, company name or technology may benefit from exact lexical matching. Combining the signals gives the memory layer more ways to find the right evidence. In CaBrain, the retrieval pipeline also supports reranking so initial candidates can be reordered before they reach the agent. The important lesson for me was simple: > **Memory retrieval should optimize for usefulness, not allegiance to one retrieval technique.** ## Retrieval quality matters more than memory volume It is tempting to treat memory as a storage problem: retain more and the agent becomes smarter. In practice, retaining everything can make recall worse. A useful memory system has two different responsibilities: 1. Decide what deserves to be retained. 2. Retrieve the right subset later. If every transient observation, duplicate statement and low-value message becomes permanent memory, the retrieval layer has to fight through noise forever. So memory architecture also needs **salience**. ## Salience: not every observation deserves the same future Some information is structurally important: - A durable user preference. - A technical architecture decision. - A company relationship. - A project constraint. - A decision and its reason. - A fact that will affect future actions. Other information may be useful only briefly. CaBrain's design treats retention as something that can be selective rather than assuming every input should become permanent knowledge. This is one reason I think “store the whole chat” is the wrong mental model for agent memory. The memory layer should act more like an organ that consolidates useful experience than an append-only transcript archive. ## Hot and cold memory solve different jobs Another useful distinction is between information that needs to remain immediately accessible and information that can live deeper in long-term storage. I think about this as **hot and cold memory**. Hot memory contains information likely to matter in the active operating horizon. Cold memory can retain older context without forcing it into every interaction. The exact lifecycle depends on the agent, but the architectural point is broader: memory does not need one retention tier. A sales-research agent, coding agent and personal assistant can have very different definitions of what should stay hot. Memory policy should follow the job the agent is doing. ## Reconsolidation: memory should be editable Real knowledge changes. A company changes leadership. A project moves infrastructure. A preference changes. A technical decision is reversed. An opportunity moves from discovered to contacted. If memory is append-only, the agent can retrieve multiple contradictory facts with no understanding of which one is current. That is why CaBrain includes the idea of **reconsolidation**: retained knowledge can be updated as new information arrives. The goal is not to rewrite history invisibly. The system should preserve enough structure to understand what changed while making the current state usable. This becomes especially important for agents operating over months rather than minutes. ## Temporal memory changes the question Once memory can evolve, the useful question is no longer only: > What do I know about Company X? It can become: > What changed about Company X, and in what order? That distinction matters in systems such as opportunity intelligence. A funding event, a new technical leader, a hiring pattern and a product launch may be weak signals individually. Ordered over time, they can explain why a company may need something now. Long-term agent memory becomes much more useful when it can support **state plus change**, not only similarity search over old text. ## Entities are more durable than chunks RAG systems often think in chunks because chunks are convenient retrieval units. Agents frequently need to think in entities: - Person. - Company. - Repository. - Technology. - Product. - Issue. - Event. A paragraph can mention several of these at once. If the memory layer stores only independent text fragments, relationships have to be rediscovered repeatedly by the model. CaBrain therefore includes an **entity graph** alongside recall. The graph lets the system represent and traverse relationships rather than relying only on semantic proximity. For example: **Company → uses → Technology** **Company → published → Job** **Person → leads → Company** **Repository → depends on → Package** Those edges can become useful context for an agent without asking the model to reconstruct the world from disconnected chunks every time. ## Vector search and graphs answer different questions I do not see graph memory as a replacement for vector retrieval. They solve different retrieval problems. Vector/lexical recall asks: > Which retained memories are relevant to this request? Graph traversal asks: > What is connected to this entity, and through which relationships? A capable agent may need both. This is a recurring pattern in CaBrain: avoid forcing one storage or retrieval abstraction to solve every problem. ## Memory should have explicit operations If memory is an agent capability, I want the agent to interact with it deliberately rather than treating it as invisible prompt magic. CaBrain exposes memory operations over **MCP**, including capabilities for recall, retention, retrieval, editing and forgetting, plus graph traversal operations. Conceptually, that gives an agent tools such as: - Recall relevant knowledge. - Retain a durable fact. - Inspect a known memory. - Correct or update retained information. - Forget information that should no longer be retained. - Traverse relationships around an entity. This makes memory part of the agent's tool architecture. The model can reason about when it needs memory instead of receiving an uncontrolled dump on every turn. ## MCP makes the memory layer reusable One reason I exposed CaBrain through MCP is that I did not want long-term memory tied to one agent implementation. A coding agent, research agent or another MCP-capable client can reach the same memory service through a common tool boundary. That separation matters architecturally: **Agent/Model → MCP → CaBrain → Retrieval + Memory + Entity Graph** The agent can change without rebuilding the memory layer. The model provider can change without moving the retained knowledge into a new proprietary format. That makes memory infrastructure a reusable service rather than a feature buried inside one chatbot. ## PostgreSQL is a useful center of gravity CaBrain's storage architecture uses PostgreSQL with vector and lexical-search capabilities rather than requiring every memory concern to live in a separate database product. That gives the system a strong transactional data layer while supporting vector retrieval and BM25-style search around it. Redis can support faster operational paths where appropriate, while embedding and reranking services can remain separate components. The lesson is not that every agent-memory system should use exactly this stack. It is that introducing AI does not automatically require replacing proven data infrastructure. Use specialized components where they earn their place. ## Memory needs namespaces and boundaries Long-term memory becomes dangerous if every agent can recall everything. Different agents, products, clients or users need boundaries around what they can retain and retrieve. A memory system should know which corpus or namespace a memory belongs to and enforce that boundary before the model sees the result. This is particularly important for multi-tenant systems and agents working across different business contexts. Prompt instructions are not an isolation mechanism. Memory access control belongs in the application and data layer. ## Remembering is only half the problem An agent can retrieve a relevant memory and still misuse it. The model needs to distinguish between: - Current operational truth. - Historical memory. - User preference. - Inference. - External evidence. If an order status lives in a live database, memory should not override the database. If a company changed its pricing yesterday, an old retained note should not become the source of truth. Memory is context. It is not automatically authority. That distinction prevents a long-term memory system from becoming a sophisticated source of stale facts. ## Memory should support provenance When an agent recalls something important, it is useful to know where it came from and when it was captured. For evidence-heavy agents, provenance becomes part of trust. A remembered statement can be much more useful when the system can associate it with source, capture time, entity and later updates. This is especially important in research, opportunity intelligence and systems that make decisions from changing external information. ## Do not inject every memory into every prompt One of the easiest ways to make long-term memory expensive is to retrieve too much and insert it all into the model context. Recall should be selective. The memory layer can retrieve candidates, rank them and return only what the current task needs. For some requests, graph neighbors may be more useful than text memories. For others, a small set of highly relevant retained facts is enough. The objective is not maximum recall volume. It is minimum sufficient context. ## Memory changes agent evaluation Once an agent has long-term memory, evaluating one isolated prompt is no longer enough. You also need to ask: - Did it retain something it should not have? - Did it fail to retain something important? - Did it recall the correct memory later? - Did stale memory override current truth? - Did a memory update replace or reconcile an older fact correctly? - Did retrieval cross a namespace boundary? - Did the entity graph create a useful or incorrect relationship? Memory creates a new class of failure modes. That means it needs its own evaluation strategy. ## A practical memory architecture A simplified architecture I find useful is: **Observation → Retention decision → Structured metadata/entity extraction → Memory storage** Then later: **Task → Recall query → Hybrid retrieval → Reranking → Graph context where useful → Selected memories → Agent reasoning** And when reality changes: **New evidence → Existing memory/entity → Reconsolidation/update → Current state + history** The details can vary, but separating these stages makes the system easier to reason about. ## What I would not do again I would not begin an agent-memory project by asking only which vector database to use. That question arrives too early. I would first define: 1. What deserves to be remembered? 2. For how long? 3. Who is allowed to recall it? 4. Which source is authoritative when memory conflicts with live data? 5. How will exact and semantic retrieval work together? 6. Do relationships between entities matter? 7. How will old knowledge be updated? 8. How will the agent deliberately retain, recall and forget? 9. How will memory quality be evaluated? 10. How portable should the memory layer be across agents and models? Only then would I choose the storage and retrieval components. ## The bigger lesson from CaBrain Building CaBrain pushed me away from thinking about memory as “RAG over chat history.” For long-running agents, memory is its own subsystem. It has a lifecycle. It has retrieval policy. It has access boundaries. It has relationships. It changes over time. And it should remain separate enough from the model that the agent can evolve without losing its accumulated knowledge. That is why I describe CaBrain as a **memory organ for AI agents** rather than simply another vector store. The interesting part is not remembering more. It is remembering the right things, connecting them correctly and recalling them at the moment they become useful. **Building an AI agent that needs durable memory across sessions, tools or workflows?** I design agent systems around controlled tool access, long-term memory, retrieval, entity relationships and production boundaries — including architectures that expose those capabilities over MCP. --- **Related:** AI Agents, RAG vs Fine-Tuning vs AI Agents, Private AI, AI Automation and CaBrain. --- Source: https://fadymondy.com/en/blog/agent-memory-in-practice-cabrain --- # Multi-Agent Architecture Without the Chaos: When One Agent Is Enough > More agents do not automatically create a better AI system. Start with one agent and clear tools; split only when roles, permissions, context or evaluation genuinely need separate boundaries. A practical architecture for agents, MCP, orchestration and observability. #AIAgents #MultiAgent #MCP #AIArchitecture #AgenticAI #AIEngineering *2026-09-17T06:56:17Z* # Multi-Agent Architecture Without the Chaos: When One Agent Is Enough Multi-agent systems are easy to make impressive in a diagram. A planner talks to a researcher. The researcher delegates to a browser agent. A critic reviews the output. A writer produces the response. A supervisor decides whether everybody should try again. The diagram looks intelligent. The production system may simply have five places to fail instead of one. Working with agentic systems and MCP tooling has pushed me toward a simpler rule: > **Start with one agent. Add another only when you can name the boundary it owns.** The objective is not to maximize the number of agents. It is to make a workflow reliable, understandable and operable. ## One agent with good tools is surprisingly capable A single agent can often: - Understand a request. - Retrieve context. - Search approved sources. - Call business APIs. - Read or write structured data. - Ask for missing information. - Produce a result. If those actions share the same permissions, context and success criteria, splitting them across multiple agents may add coordination without adding capability. A useful baseline is: **User/Task → Agent → Approved tools → Validation → Result** Build this first. If it works, you have avoided an unnecessary distributed system. ## Multi-agent is a distributed-systems problem The moment several agents collaborate, you inherit familiar engineering questions: - Who owns state? - Who can call which tool? - How is work delegated? - What happens when one worker fails? - How do you prevent duplicate actions? - How does an agent know another agent finished? - Which output is authoritative? - How do you trace the complete task? - When does the system stop? These are not solved by writing better role prompts. They require orchestration, contracts, state management, observability and failure handling. That is why I treat multi-agent architecture as a systems-design decision, not a prompting technique. ## When one agent is enough Keep one agent when the workflow has one clear objective, the same trust boundary, a manageable tool set and context that comfortably belongs together. For example, a research agent may be able to search, open pages, extract evidence, store findings and prepare a report without requiring separate “searcher,” “reader” and “writer” personalities. Those may be steps, not agents. A workflow engine can orchestrate steps without pretending every function is an autonomous colleague. ## A role is not automatically an agent This distinction removes a lot of unnecessary complexity. “Research,” “validation,” “summarization” and “publishing” can be roles in a process. They become separate agents only when independent reasoning boundaries provide value. Before creating a new agent, ask: > Could this be a tool, function, workflow step or deterministic service instead? If yes, start there. A validator that checks a JSON schema does not need an identity, memory and LLM. A database lookup is a tool. A scheduled trigger is infrastructure. A permission check is application logic. Do not turn ordinary software into agents. ## When a second agent earns its place There are several boundaries that can justify separation. ### Different permissions A research agent may have read-only web access while an execution agent can modify a CRM. Keeping those capabilities separate can reduce the blast radius of mistakes. ### Different context A coding agent may need repository context while a commercial agent needs customer and CRM context. Combining everything into one context can create noise and unnecessary exposure. ### Different models or cost profiles One role may need a small local model for extraction while another needs a stronger model for complex reasoning. Separation can make routing and cost control clearer. ### Different evaluation criteria A retrieval agent may be evaluated on evidence quality. An execution agent may be evaluated on whether an action was correct and authorized. Independent boundaries make those evaluations easier to reason about. ### Parallel work Some tasks genuinely benefit from independent work happening at the same time. If several research paths do not depend on one another, parallel workers can reduce total latency. But parallelism alone does not require different personalities. They may be instances of the same worker contract. ## Define agents by contracts, not personalities “Senior researcher,” “brilliant strategist” and “skeptical critic” are prompt descriptions. Production architecture needs stronger definitions. For each agent, define: **Input** — What structured information can it receive? **Output** — What schema must it return? **Tools** — Which capabilities can it call? **Permissions** — Which data/actions are allowed? **Budget** — How many steps, calls or resources may it consume? **Success condition** — What does completed mean? **Failure path** — Retry, fallback, escalation or stop? That turns an agent from a character into an operational component. ## MCP is useful because tools need boundaries One reason I work with **MCP** and built tooling around it is that agent capability should not be hardcoded into one giant prompt/application integration. MCP gives a standard boundary through which agents can discover and call tools. Architecturally, that can look like: **Agent → MCP client → MCP servers/plugins → business capabilities** The agent reasons about which approved capability to use while the actual integration remains outside the model. This separation becomes more valuable as the number of tools grows. ## Orchestra MCP and the plugin model In the ecosystem I have been building, **Orchestra MCP** represents this idea at the tool/orchestration layer: capabilities can be exposed as plugins instead of rebuilding integrations separately for every agent. The architectural value is reuse. A browser capability, content operation, research operation or another business integration can be made available through a controlled interface and used by different agent workflows. That does not mean every plugin needs its own agent. Quite the opposite: reusable tools can reduce the need to split agents simply to separate integrations. ## Keep orchestration outside free-form conversation A fragile multi-agent pattern is: **Agent A writes prose to Agent B → Agent B interprets it → Agent C interprets B → action** Every handoff introduces ambiguity. Where possible, use structured contracts: ```text objective inputs evidence[] constraints[] status next_action ``` The exact schema depends on the workflow. The principle is that agents should not have to reverse-engineer each other's intentions from paragraphs when the application can pass typed state. Natural language is excellent for uncertain human input. It is not always the best internal protocol. ## Separate orchestration state from model memory A task has operational state: - Pending. - Running. - Waiting for a tool. - Waiting for approval. - Failed. - Completed. That state belongs in the application/workflow layer. Long-term agent memory solves a different problem: retained knowledge across tasks and sessions. Do not use a vector store to decide whether a payment workflow already executed. Do not use chat history as your job queue. Operational state should be deterministic and transactional. ## Shared memory can create accidental coupling Giving every agent access to one giant memory corpus sounds convenient. It can also create cross-contamination. A safer design uses namespaces, tenant boundaries and role-based access to memory. An agent should recall only what its task and permissions allow. If agents need shared facts, expose those facts intentionally through a common memory or data service rather than relying on hidden prompt state. This is one reason I keep long-term memory, such as the capabilities I built in CaBrain, as a separate service rather than embedding it into one agent persona. ## The supervisor-agent trap When a multi-agent workflow becomes unreliable, a common reaction is to add a supervisor agent. Then the supervisor needs a critic. Then somebody must evaluate the critic. This can become recursion disguised as architecture. Before adding a supervisor model, ask whether the decision can be expressed deterministically. Examples: - If required evidence is missing → return to research. - If schema validation fails → retry once with error details. - If action requires approval → wait for human. - If maximum steps reached → stop and escalate. A workflow engine can enforce these rules more reliably than another LLM. Use model-based supervision only where the supervisory decision itself genuinely requires interpretation. ## Human approval is a first-class participant Some multi-agent diagrams omit the most important actor: a person. For consequential actions, the workflow may be: **Research agent → Evidence → Recommendation → Human approval → Execution tool** rather than: **Research agent → Supervisor agent → Execution agent** Human approval is not a failure of autonomy. It is an architecture boundary when business risk requires accountable authorization. ## Observability must cross agent boundaries When one agent calls one tool, debugging is relatively simple. When several agents delegate work, you need an end-to-end trace. For every task, I want to be able to reconstruct: - Which agent ran. - Which model/version it used. - Which input/state it received. - Which tools it called. - What evidence it used. - How many steps it consumed. - What it returned. - Why the workflow moved to the next stage. - Whether a human intervened. - The final outcome. Without a shared trace or correlation ID, multi-agent debugging becomes archaeology. ## Log decisions, not hidden reasoning Observability does not require storing private chain-of-thought. What the system needs is operationally useful information: selected action, tool arguments where safe, validation result, evidence references, error category, workflow transition and outcome. This is enough to understand system behavior without depending on hidden internal reasoning text. ## Evaluate components and the whole workflow A multi-agent system can have individually strong agents and still fail end to end. Evaluate at two levels. ### Component evaluation Can the research role find relevant evidence? Can the extraction role produce the required schema? Can the execution role use tools correctly? ### Workflow evaluation Did the complete task reach the correct outcome? Was it authorized? How many retries were required? Was evidence preserved through handoffs? Did the system stop when it should? The second level is what the business experiences. ## Cost grows through coordination Multi-agent systems can multiply model calls quickly. Suppose one task involves a planner, three workers, a reviewer and a final writer. Even before retries, one user request may create several inference calls and tool executions. That can be justified if the task value and quality improvement support it. But the architecture should make the multiplication visible. Track cost per successful workflow, not per individual agent call. If a second agent adds 30% more cost and no measurable improvement, it has not earned its place. ## Parallelism needs idempotency When multiple workers can act concurrently, duplicate execution becomes a real risk. If two agents discover the same company, create the same CRM record or trigger the same notification, the system needs deterministic protection. Use unique keys, idempotency tokens, transactional writes and explicit ownership of side effects. The model should not be responsible for remembering that another agent probably already did it. ## Tool permissions should follow least privilege Do not give every agent every tool. A researcher may need read access. A content agent may create a draft but not publish it. An execution agent may call one specific operational API. A human may be required to authorize a destructive or financial action. This reduces both security risk and decision complexity for the model. Fewer irrelevant tools can also improve tool selection. ## Failure handling should be designed before autonomy For every agent and handoff, define failure classes. Examples: **Tool unavailable** → retry within limit or use fallback. **Missing information** → request input. **Invalid structured output** → validation feedback and bounded retry. **Permission denied** → stop, do not route around security. **Low evidence quality** → escalate or return incomplete. **Budget exhausted** → stop. “Let the agent figure it out” is not a failure policy. ## A practical architecture For many business systems, I prefer something like: **Task → Deterministic orchestrator → Agent/worker → MCP tools → Validation → State store → Next deterministic transition** Long-term memory, if required, sits behind its own controlled interface. Human approval enters at explicit risk boundaries. Additional agents are introduced only where separation improves permissions, context, parallelism or evaluation. This architecture is less theatrical than agents endlessly chatting with each other. That is exactly why I prefer it. ## Example: opportunity research Consider a system researching companies for real business opportunities. A naive multi-agent design might create separate planner, web-search, company-analysis, buyer-discovery, scoring, critic and outreach agents. A simpler design can start with: **Discovery → Evidence collection → Structured extraction → Scoring → Human review** Some stages may use models. Others are deterministic services. If research becomes large enough to benefit from parallel workers, add them behind the same evidence contract. If buyer discovery needs different data permissions or tools, that may become a separate worker boundary. The architecture evolves from observed constraints rather than from an agent-org-chart template. ## Example: software engineering A coding workflow might initially use one capable coding agent with repository, test and documentation tools. A separate reviewer becomes useful if you intentionally want independent context or a different evaluation step. A deployment capability should not become another free-form agent simply because deployment is a separate job title in a human company. It may be a deterministic pipeline gated by tests and approval. Map software boundaries, not human organizational charts. ## Five questions before adding another agent 1. What capability can the current agent not provide safely or efficiently? 2. Does the new role require different permissions or context? 3. Can the requirement be a tool or deterministic workflow step instead? 4. How will the two components exchange typed state? 5. How will we measure whether the extra agent improves the end-to-end outcome? If those questions do not have strong answers, keep one agent. ## What I would optimize for A production agent architecture should make it easy to answer: **Who can do what?** **What state are we in?** **Which evidence caused this transition?** **What happens if this component fails?** **How much did the successful task cost?** **Can I replace this model or agent without rebuilding the whole workflow?** Those questions matter more than how sophisticated the agent hierarchy looks. ## Multi-agent should be an earned complexity Multi-agent systems can be powerful. They can separate trust boundaries, parallelize expensive research, isolate context and let specialized workers evolve independently. But every agent also adds coordination, state, cost, evaluation and failure modes. Start with the smallest architecture that can complete the task. Use deterministic orchestration where the rules are known. Expose capabilities through clear tool boundaries such as MCP. Add agents only when a real systems boundary appears. > **One capable agent with well-designed tools is often better than a committee of agents with unclear ownership.** **Designing an AI-agent workflow and deciding whether it needs one agent or several?** I build agentic systems around explicit roles, MCP tools, permissions, memory, observability and controlled production workflows — with complexity added only where it creates measurable value. --- **Related:** AI Agents, Agent Memory with CaBrain, AI Automation vs Traditional Automation, RAG vs Fine-Tuning vs AI Agents and MCP-based agent architecture. --- Source: https://fadymondy.com/en/blog/multi-agent-architecture-without-chaos --- # RAG Chatbot vs Scripted Bot: What Do Your Customers Actually Get? > A scripted bot follows paths. A RAG chatbot retrieves your knowledge and generates an answer from relevant context. The customer experience can be dramatically different — but only if retrieval, grounding, permissions, testing and human escalation are designed properly. #RAG #AIChatbot #CustomerServiceAI #AIEngineering #AIForBusiness *2026-09-17T06:58:25Z* # RAG Chatbot vs Scripted Bot: What Do Your Customers Actually Get? Businesses often use the word “chatbot” for systems that behave very differently. One bot follows a decision tree: **Choose order status → enter order number → receive predefined response.** Another accepts a question in the customer's own words, searches company knowledge, selects relevant evidence and generates an answer. Both appear as a chat box. To the customer, they are not the same product. The useful comparison is not which technology sounds more advanced. It is: > **What can the customer reliably accomplish with each architecture?** ## What a scripted bot actually does A scripted chatbot works through predefined intents, rules, buttons or conversation paths. A simplified flow might be: **Message → intent/rule → predefined branch → predefined response/action** This architecture can be excellent when the problem is predictable. Examples include: - Choosing a department. - Checking a known status through an API. - Collecting required fields. - Booking from fixed options. - Answering a small set of stable FAQs. - Routing a request to a human. The important advantage is determinism. If the customer chooses option A, the system can reliably execute path A. That is not primitive. It is useful engineering. ## Where scripted bots become frustrating The problem appears when the customer's language does not match the tree. A customer may write: > I upgraded yesterday but the dashboard still shows my old plan, and I was charged already. Do I need to wait or should I do something? A scripted bot may try to classify this into “billing,” “subscription,” “account” or “technical issue.” If its paths are narrow, the customer starts adapting to the bot rather than the bot understanding the customer. That creates the familiar experience: **Customer asks a real question → bot offers unrelated options → customer repeats question → bot repeats menu → customer asks for a human.** The failure is not that the bot lacks a larger language model. The architecture lacks a way to understand and ground answers in the company's broader knowledge. ## What RAG changes **Retrieval-Augmented Generation (RAG)** separates knowledge retrieval from language generation. A simplified RAG chatbot works like this: **Question → retrieve relevant company knowledge → select/rank context → model generates answer from that context** Instead of encoding every possible question as a branch, the system can search documentation, policies, product information, internal knowledge or other approved sources. The model then uses the retrieved material to construct a response in natural language. For the customer, the difference is flexibility. They can ask the question the way they naturally think about it. ## RAG does not mean “give the model all our documents” A weak implementation uploads documents, creates embeddings and assumes the problem is solved. The difficult part is retrieval quality. When a customer asks a question, the system needs to find the small amount of knowledge that actually answers it. That can involve: - Semantic/vector search. - Lexical or keyword search. - Metadata filters. - Permission filters. - Reranking. - Freshness rules. - Source selection. The retrieval design I use in systems such as CaBrain reinforced an important principle for me: semantic similarity alone is not enough for every query. Exact names, identifiers and terminology can matter just as much as conceptual similarity. That is why hybrid retrieval can be valuable. ## Grounding is the product, not the acronym Customers do not care that your chatbot uses RAG. They care whether the answer is correct, relevant and based on information they can trust. A RAG chatbot should therefore be designed around **grounding**. The model should receive the relevant approved context and be instructed to answer within that evidence rather than freely inventing company policy. For some use cases, the interface should also expose sources or references so the user can inspect where an answer came from. The goal is not to make hallucination mathematically impossible. The goal is to constrain the system, detect weak evidence and avoid presenting unsupported guesses as business truth. ## Retrieval failure is different from generation failure This distinction matters when debugging. Suppose the chatbot gives the wrong refund policy. There are at least two very different possibilities: **Retrieval failure:** the correct policy never reached the model. **Generation failure:** the correct policy was retrieved, but the model misinterpreted or ignored it. If you only inspect the final answer, both look like “AI gave a wrong response.” If you log retrieval candidates and selected context, you can diagnose the real layer. That changes how the system should be improved. ## Scripted bots have one major advantage: controlled scope A scripted bot knows what it can do because engineers explicitly built the paths. A RAG chatbot feels more open-ended, so the product needs explicit boundaries. It should know when: - Relevant evidence was found. - Evidence is weak or contradictory. - The request is outside the supported domain. - The user needs account-specific live data. - An action requires authentication or permission. - A human should take over. Without those boundaries, natural conversation can create false confidence. ## “I don't know” is a feature A useful business chatbot should be able to decline to invent an answer. If retrieval does not provide enough evidence, a strong response may be: **I don't have enough information in the available knowledge to answer that reliably. I can connect you to support.** That is better than a fluent but unsupported policy answer. The fallback can also collect context for the human so the customer does not have to repeat everything. ## Human escalation should preserve the conversation A bad handoff says: > Please contact support. Then the customer starts again from zero. A better architecture transfers structured context: - Customer question. - Detected topic. - Relevant account identifiers where authorized. - Retrieved sources. - Answers already attempted. - Reason for escalation. The human receives a prepared case rather than a blank ticket. This is where AI can improve support even when it does not answer the question itself. ## RAG cannot replace live business systems Documentation can tell a customer how refunds work. It cannot reliably tell them whether **their refund was processed today** unless the chatbot can access the relevant live system. This creates an important boundary: **Knowledge question → RAG** **Live account state → authenticated API/database** **Business action → authorized tool/workflow** Do not embed yesterday's account state into a vector database and call it customer support. Use the source of truth. ## When a scripted bot is the better product Use a scripted or deterministic flow when: - The number of paths is small. - Exact behavior is required. - The user is completing a structured transaction. - Regulatory or policy constraints require tightly controlled wording/actions. - The answer comes from a live system rather than documents. - Natural-language flexibility creates little additional value. A RAG chatbot is not automatically an upgrade. Sometimes buttons are better UX. If the customer needs to select one of four appointment types, showing four choices may be faster and clearer than asking a model to interpret a paragraph. ## When RAG becomes useful RAG becomes more valuable when: - Customers ask the same concept in many different ways. - The knowledge base is too large for manual conversation branches. - Information changes and should be updated from managed sources. - Answers need explanation rather than one fixed sentence. - Users need to search across policies, guides or product documentation conversationally. - The organization wants evidence-backed answers rather than model-only knowledge. The value comes from connecting language understanding with controlled knowledge retrieval. ## The strongest chatbot is often hybrid Many production chatbots should combine several approaches. For example: **Natural-language question → classify request** Then: **FAQ/policy → RAG** **Order status → authenticated API** **Change subscription → deterministic workflow + authorization** **Unsupported/uncertain → human escalation** The customer sees one conversation. Behind it, the architecture routes each task to the component that can answer it most reliably. This is more useful than forcing every message through either a decision tree or an LLM. ## Retrieval permissions matter A company knowledge base may contain public documentation, internal procedures, partner material and restricted customer information. The chatbot should not retrieve everything simply because it is technically searchable. Permission filtering should happen before sensitive context reaches the model. In multi-tenant systems, tenant isolation belongs in the data/retrieval layer, not in a prompt saying “only answer from this customer's documents.” RAG expands what a chatbot can know, so access control becomes more important, not less. ## Freshness matters too A perfectly retrieved old policy can still produce the wrong answer. Knowledge ingestion needs a lifecycle. When source material changes, the searchable representation should be updated or invalidated appropriately. Useful metadata can include source, version, publication/update time and validity status. For fast-changing information, direct API lookup may be better than indexing it as long-term knowledge. ## Test retrieval before testing prose Teams often evaluate chatbots by reading a few final responses and deciding whether they “sound good.” That is too subjective. For a RAG system, build a set of real questions and expected evidence. Then test separately: 1. Did retrieval find the correct source? 2. Was the correct passage ranked highly enough? 3. Did permission filtering work? 4. Did the model answer from the evidence? 5. Did it avoid unsupported claims? 6. Did it escalate when evidence was insufficient? This makes failures actionable. ## Test the questions customers actually ask Documentation headings are not enough. If a policy page is titled “Subscription Modification Policy,” customers may ask: - Can I downgrade now? - Will I lose my data if I change plan? - Why did I get charged after switching? - Can I cancel before renewal? Your evaluation set should reflect real language, spelling variation, incomplete questions and multilingual phrasing where relevant. The chatbot is built for customer questions, not for document titles. ## Measure resolution, not conversation A chatbot can generate long, friendly conversations while failing to solve anything. Useful metrics depend on the workflow, but may include: - Correct-answer rate on an evaluation set. - Retrieval success. - Unsupported-answer rate. - Escalation rate. - Successful self-service completion. - Human correction rate. - Time to resolution. - Customer re-contact for the same issue. Do not optimize only for containment if containment means preventing customers from reaching humans while the bot fails. ## A practical architecture For many support systems, a useful architecture is: **Customer → Intent/risk routing → Knowledge retrieval or live tool → Validation → Answer/action → Human escalation when needed** The chatbot interface is only the surface. The real product is the combination of retrieval, source-of-truth integrations, permissions, evaluation and escalation. ## What customers actually get With a scripted bot, customers get a predictable interface to paths you designed in advance. With a well-built RAG chatbot, they get a conversational interface to approved organizational knowledge. With a hybrid chatbot, they can also access live systems and controlled workflows through the same conversation. Those are different products. The right choice depends on the job. > **Use scripts for known paths. Use retrieval for knowledge. Use APIs for live truth. Use humans where judgment or accountability matters.** That boundary is more important than whether the product page says “AI chatbot.” **Planning a customer-service chatbot and deciding between scripted flows, RAG and deeper AI automation?** I design and build chatbots around the actual customer journey — including retrieval, grounding, live integrations, permissions, evaluation and human handoff — rather than adding an LLM to a chat window and calling it complete. --- **Related:** AI Chatbots, AI Agents vs Chatbots, RAG vs Fine-Tuning vs AI Agents, WhatsApp AI Automation, Private AI and Agent Memory with CaBrain. --- Source: https://fadymondy.com/en/blog/rag-chatbot-vs-scripted-chatbot --- # Building a Private RAG Stack on PostgreSQL: pgvector, BM25 and TEI in Practice > Private RAG does not require a pile of databases. In CaBrain I use PostgreSQL as the center of gravity, combine semantic retrieval with BM25-style lexical search, rerank candidates, and keep embedding/reranking behind TEI services. Here is the architecture and the trade-offs behind it. #RAG #PostgreSQL #pgvector #PrivateAI #AIEngineering #TEI *2026-09-17T07:00:46Z* # Building a Private RAG Stack on PostgreSQL: pgvector, BM25 and TEI in Practice A private RAG architecture can become complicated very quickly. It is easy to end up with one database for application data, another vector database, a separate search engine, an embedding API, a reranking API, a cache and several synchronization jobs holding the whole thing together. Sometimes that complexity is justified. Sometimes it is architecture created before the workload asked for it. While building **CaBrain**, my long-term memory and retrieval layer for AI agents, I chose a different center of gravity: **PostgreSQL**. The stack combines relational data, vector retrieval, BM25-style lexical retrieval, reranking and dedicated embedding/reranking services. The goal is not to prove PostgreSQL can replace every specialized search product. It is to keep the system understandable while still giving retrieval more than one signal. ## The architecture at a glance Conceptually, the retrieval path looks like this: **Documents/memories → normalization/chunking → embeddings → PostgreSQL** At query time: **Query → vector retrieval + lexical/BM25 retrieval → fusion/ranking → reranking → selected context → model/agent** Around that sit metadata, permissions, namespaces, entity relationships and memory lifecycle logic. Embedding and reranking can run behind **TEI (Text Embeddings Inference)** services, keeping those model-serving concerns separate from the application database. This separation is important: PostgreSQL owns durable data and retrieval indexes; inference services do inference. ## Why PostgreSQL as the center? CaBrain already needs structured information, not only text chunks. A memory or knowledge item can have: - Source and provenance. - Namespace or corpus. - Entity relationships. - Timestamps. - Salience/lifecycle metadata. - Permissions. - Structured attributes. - Vector representation. - Lexical-search representation. That makes a relational database a natural home for the durable record. Using PostgreSQL also means transactions, constraints, joins, backups and operational tooling remain available instead of rebuilding those concerns around a vector-only store. The point is not “one database is always better.” The point is to avoid adding another stateful system until its benefit is clear. ## pgvector adds semantic retrieval without moving the data away Semantic retrieval is useful when the user's wording differs from the stored text. Embeddings turn a query and stored content into vectors that can be compared for similarity. With pgvector-compatible storage/indexing inside PostgreSQL, the vector representation can live beside the record it describes. That makes several operations easier to reason about: **Record → metadata → permissions → vector** remain part of the same durable data model. You do not need a synchronization pipeline whose only job is keeping a separate vector database consistent with your primary database. That reduction in moving parts is valuable to me. ## But vector search is not enough Semantic similarity is powerful, but exact language still matters. Consider queries containing: - A repository name. - A package name. - An issue key. - A product code. - A person's name. - A precise technical term. The semantically nearest passage is not necessarily the passage containing the exact identifier the agent needs. This is why the CaBrain retrieval design combines semantic retrieval with **BM25-style lexical search**. The two signals solve different failure modes. ## What BM25 contributes Lexical retrieval rewards documents containing terms related to the query based on term occurrence and rarity rather than embedding proximity alone. For exact terminology, it can be extremely useful. Imagine a memory corpus containing several notes about databases, but only one mentions `VectorChord` or a particular issue key. Semantic search may retrieve broadly related database material. Lexical retrieval can strongly surface the exact term. Neither method needs to be declared the winner. Retrieve candidates from both and combine them. ## Hybrid retrieval is about candidate diversity A simplified hybrid pipeline can be: 1. Generate the query embedding. 2. Retrieve semantic candidates. 3. Retrieve lexical candidates. 4. Combine the candidate sets. 5. Apply a fusion/ranking strategy. 6. Rerank the strongest candidates. 7. Return only the context the downstream model needs. The important idea is that the first retrieval stage should maximize the chance that the correct evidence enters the candidate pool. The reranker can then spend more computation deciding which candidates are actually best for the query. ## Why rerank after retrieval? Initial retrieval methods are optimized for finding candidates efficiently. A reranker can evaluate the query-document relationship more carefully over a much smaller set. That gives the architecture two stages: **Fast retrieval → more expensive relevance judgment** instead of applying the expensive model to the entire corpus. For RAG, this matters because context space is limited and irrelevant chunks have a cost: they consume tokens and can distract the generation model. Better retrieval is also context engineering. ## TEI keeps embedding infrastructure behind a service boundary In CaBrain's architecture, embedding and reranking can be served through **TEI** rather than being buried inside the application process. Conceptually: **Application → TEI embedding service → vectors** and: **Candidate pairs → TEI reranking service → relevance ordering** This gives the application a stable interface to inference infrastructure. The embedding model can evolve without changing the domain model of the application. The same principle applies to reranking. This is especially useful in private AI environments where the organization wants those inference operations to run inside infrastructure it controls. ## Private RAG is more than a local model Running an LLM locally does not automatically make the complete system private. Trace the entire data path. A private RAG request may touch: - Application API. - Authentication layer. - Database. - Embedding model. - Reranker. - LLM. - Logs/traces. - Object storage. - Backups. If sensitive text is sent to an external embedding endpoint while the final LLM runs locally, the architecture is not fully private in the way many businesses expect. Privacy is an end-to-end data-flow property. ## Ingestion should preserve provenance RAG quality starts before retrieval. When content enters the system, keep enough information to answer: - Where did this come from? - When was it captured? - Which document/version produced this chunk? - Which tenant or namespace owns it? - Is it still valid? - Who is allowed to retrieve it? Without provenance, a fluent generated answer may be impossible to audit. This becomes particularly important when the knowledge base changes over time. ## Chunking is a domain decision There is no universal chunk size that makes every RAG system work. A policy document, source-code repository, customer ticket and long-term agent memory have different structure. Chunk boundaries should preserve useful meaning. Sometimes headings and sections are natural boundaries. Sometimes structured records should not be converted into arbitrary text chunks at all. Before tuning vector indexes, make sure the retrieval unit itself represents something useful. ## Metadata filtering should happen early Suppose the corpus contains several tenants or permission levels. Do not retrieve globally and ask the LLM to ignore results it should not see. Filter the search space at the data/retrieval layer using authorized metadata. Examples include: - Tenant/workspace. - Corpus/namespace. - Document type. - Visibility level. - Language. - Validity state. This improves both security and retrieval precision. ## PostgreSQL makes structured filters natural This is one area where keeping retrieval close to relational data is attractive. The query is rarely just: > Find the nearest vector. It is often closer to: > Find relevant memories in this corpus, belonging to this tenant, visible to this actor, still active, then rank them for this query. Relational filters and retrieval signals naturally meet in that problem. ## Fusion matters When vector and lexical retrieval each return ranked lists, the system needs a way to combine them. One approach is rank-based fusion such as **Reciprocal Rank Fusion (RRF)** rather than trying to compare raw scores produced by fundamentally different retrieval methods. The exact strategy can vary. The useful principle is to avoid pretending a cosine-similarity score and a lexical relevance score have directly comparable meaning. Fuse rankings deliberately, then evaluate the result on your own queries. ## Retrieval needs an evaluation set A retrieval architecture cannot be judged from a few impressive demos. Create a set of real questions with expected evidence. Then measure things such as: - Did the correct document enter the candidate set? - Was the correct passage high enough in the final ranking? - Did hybrid retrieval beat vector-only for exact-term queries? - Did reranking improve or damage the ordering? - Did metadata filters remove required evidence accidentally? - Did stale documents outrank current ones? The answers should drive architecture changes. ## Retrieval evaluation and answer evaluation are separate This distinction is worth repeating. If the correct context never reaches the generation model, prompt tuning cannot repair retrieval. If the correct context is present but the final answer is wrong, the retrieval system may be doing its job. Log the layers independently: **Query → retrieved candidates → fused ranking → reranked context → generated answer** That trace makes debugging far more precise. ## PostgreSQL does not remove scaling questions Keeping the stack centered on PostgreSQL simplifies architecture, but it does not eliminate capacity planning. As the corpus grows, you still need to think about: - Index strategy. - Query latency. - Concurrent workload. - Vector dimensionality. - Ingestion throughput. - Vacuum/maintenance behavior. - Storage growth. - Connection management. - Replication/backups. At some workload, a specialized system may become the correct choice. The decision should come from measured constraints rather than the assumption that “AI requires a vector database product.” ## Separate online and ingestion workloads when needed Embedding large document batches can create a very different workload from serving user queries. Use queues and workers so ingestion does not block interactive requests. A practical path is: **Source → ingestion queue → parse/chunk → embedding service → transactional write/index** while queries follow: **Request → retrieve → rerank → generate** This makes backpressure and retries easier to manage. ## Embedding model changes need a migration strategy Vectors are derived data. If you change embedding models, old and new vectors may not be compatible in the same similarity space. Treat the embedding model/version as part of the indexed representation. A migration may require generating a new vector set and switching traffic after it is ready rather than overwriting everything blindly. The durable source content should remain available so derived indexes can be rebuilt. ## The same applies to chunking If you change chunking logic, the resulting retrieval units change. That is another reason to keep source documents and provenance separate from derived chunks and embeddings. RAG infrastructure should be rebuildable. Your vector index should not become the only surviving copy of knowledge. ## Caching can help, but freshness wins Some embeddings and retrieval operations are reusable. Unchanged document embeddings should not be regenerated for every query. Frequently repeated queries may have reusable intermediate results depending on the use case. But caching retrieved answers without understanding source freshness can create stale business responses. Cache derived computation carefully; preserve authority in the underlying data. ## RAG and long-term memory overlap, but are not identical CaBrain uses retrieval as part of agent memory, which adds lifecycle questions beyond ordinary document RAG. A document knowledge base often asks: > Which source passages answer this question? Long-term memory also asks: > What should be retained, updated, consolidated or forgotten over time? The retrieval infrastructure can be shared, while the memory lifecycle sits above it. This separation lets the same underlying retrieval capabilities support more than one AI feature. ## An entity graph complements text retrieval Some questions are relational rather than textual. If an agent needs to know which company uses which technology, which repository belongs to which organization or which event changed an entity, graph relationships can be more direct than repeatedly rediscovering those links from chunks. In CaBrain, the entity graph complements hybrid recall rather than replacing it. Again, different retrieval abstractions solve different questions. ## Keep generation replaceable A RAG architecture should not make its knowledge layer dependent on one generation provider. The durable system should own documents, permissions, retrieval and provenance. The final model is a consumer of selected context. That lets you route between hosted and local models, change providers or use different models for different tasks without rebuilding the knowledge base. For private AI, this flexibility is especially useful because privacy, quality and cost requirements can differ by workflow. ## What I like about this architecture The strongest property is not a benchmark number. It is **separation of concerns without unnecessary fragmentation**. PostgreSQL remains the durable center. Vector and lexical retrieval provide complementary candidate signals. Reranking improves the final context selection. TEI keeps embedding/reranking inference behind explicit service boundaries. The agent or LLM receives only selected context. And additional capabilities — memory lifecycle or entity relationships — can sit above the same foundation. ## What this architecture does not claim It does not claim PostgreSQL will beat every specialized vector/search database at every scale. It does not claim hybrid retrieval automatically improves every corpus. It does not claim reranking is always worth its latency. Those are workload-dependent questions. The architecture gives you components you can measure independently and replace when evidence says you should. That is more important to me than choosing infrastructure by trend. ## A practical decision checklist Before building a private RAG stack, ask: 1. What data must remain private? 2. Where will embeddings be generated? 3. Where will reranking run? 4. Where will the final LLM run? 5. What is the authoritative source of each document? 6. How are tenant and permission boundaries enforced? 7. Do exact terms matter enough to need lexical retrieval? 8. How will vector and lexical rankings be fused? 9. Is reranking improving retrieval on a real evaluation set? 10. Can embeddings/chunks be rebuilt after model or chunking changes? 11. How will stale content be removed or invalidated? 12. At what measured constraint would a specialized retrieval service become justified? Those questions determine the architecture more reliably than asking which vector database is most popular. ## Private RAG should be boring where possible AI systems already contain uncertainty at the model boundary. I prefer the surrounding infrastructure to be as explicit as possible. Durable records in a proven database. Clear permission filters. Rebuildable derived indexes. Observable retrieval stages. Bounded inference services. Measurable evaluation. That gives the probabilistic part of the system a stable foundation. For CaBrain, PostgreSQL plus vector and lexical retrieval, with TEI-backed inference services and reranking, provides that foundation while leaving room to evolve individual components later. The goal is not the smallest technology list for its own sake. It is an architecture where every additional component has a reason to exist. **Building a private RAG system and deciding how much infrastructure you actually need?** I design private AI and retrieval architectures around data boundaries, hybrid search, evaluation, model portability and production operations — from PostgreSQL-centered systems to specialized components when the workload genuinely requires them. --- **Related:** Private AI, Agent Memory with CaBrain, RAG vs Fine-Tuning vs AI Agents, Local LLM vs Hosted AI and RAG Chatbot vs Scripted Bot. --- Source: https://fadymondy.com/en/blog/private-rag-postgres-pgvector-bm25-tei --- # Adding AI to a Laravel or Go Product Without Runaway Costs > Adding AI to an existing Laravel or Go product is not mainly an SDK problem. The production challenge is controlling provider coupling, context size, retries, concurrency, evaluation and cost per successful outcome. Here is an architecture that keeps the AI layer replaceable and measurable. #Laravel #Golang #AIIntegration #AIEngineering #OpenAI #LLM *2026-09-17T07:13:25Z* # Adding AI to a Laravel or Go Product Without Runaway Costs Adding an LLM to an existing product can look deceptively easy. Install an SDK. Add an API key. Send a prompt. Return the response. That is enough for a demo. Production creates a different set of questions: - What happens when requests multiply? - How much context are we sending every time? - Which model should handle which task? - What happens when the provider times out? - Can we change providers without rewriting business logic? - How do we know a cheaper model is still good enough? - Which user or tenant consumed the cost? - How do we prevent one workflow from creating an unbounded retry loop? Whether the application is Laravel, Go or another backend stack, the architecture around the model usually matters more than the SDK call itself. > **Treat AI as an external capability with a budget and a contract — not as magic embedded throughout your application.** ## Do not call the model from everywhere The fastest implementation often looks like this: ```text Controller → OpenAI SDK → response ``` Then another feature does the same thing. Then a queue job. Then a command. Soon provider-specific prompts, model names, timeout behavior and parsing logic are scattered through the codebase. This creates two problems at once: cost is hard to observe, and provider changes become expensive. Instead, create an application-level AI boundary. Conceptually: ```text Product feature ↓ AI use-case/service ↓ Provider interface/router ↓ OpenAI / Claude / Gemini / Local model ``` Business code should ask for a capability, not know every detail about the provider. ## Define use cases, not one giant AI service A generic method such as `askAI($prompt)` becomes difficult to govern. Different tasks have different requirements. For example: - Classification. - Structured extraction. - Summarization. - Translation. - Customer reply drafting. - RAG answering. - Agent planning. - Code analysis. Define these as explicit use cases with their own input/output contracts. A classifier may require a tiny structured response and tolerate a small model. A complex reasoning workflow may need a stronger model. If every task goes through the same model and the same maximum context, you pay the highest architecture cost for the simplest work. ## Provider abstraction is useful — but do not abstract away reality A provider interface can make switching easier: ```text generate(request) embed(input) rerank(query, documents) ``` But OpenAI, Anthropic, Gemini and local models are not identical databases behind interchangeable drivers. They differ in tool calling, structured output behavior, context limits, latency, pricing, multimodal support and model-specific capabilities. So the abstraction should cover what your application actually needs while allowing provider-specific capabilities when they are intentionally required. The goal is not pretending every model is identical. The goal is preventing provider details from leaking into unrelated business code. ## Route by workload, not by brand A common cost mistake is choosing one powerful model as the default for everything. Instead, define model tiers by task requirements. For example: **Tier A — deterministic software** No model at all when rules solve the task. **Tier B — small/cheap model** Classification, extraction, normalization or simple transformations where evaluation shows it is sufficient. **Tier C — stronger model** Tasks requiring deeper reasoning, complex instruction following or difficult generation. **Tier D — local/private model** Workloads where privacy, volume or infrastructure economics justify local inference. The exact providers can change. The workload categories are more durable. ## The cheapest AI call is the one you do not make Before optimizing token prices, remove unnecessary inference. Ask whether the result can come from: - A database query. - A cached deterministic result. - A rule. - A template. - Existing structured data. - A previously computed embedding. - A normal search/index operation. If software already knows the answer, do not ask an LLM to rediscover it. This is especially important in high-volume Laravel or Go APIs where a seemingly small AI call can sit inside a frequently executed path. ## Keep AI off the synchronous request path when possible Some AI features genuinely need interactive streaming. Many do not. Document processing, enrichment, embeddings, classification, batch summarization and background analysis are often better as asynchronous jobs. In Laravel, that naturally maps to queues and workers. In Go, it may be worker pools, queues or background services depending on the system. The pattern is the same: ```text Request → validate/store job → queue → AI worker → persist result → notify/update ``` This protects the user-facing request from model latency and gives you better control over concurrency, retries and backpressure. ## Concurrency is a cost control Imagine a backlog of 50,000 records waiting for enrichment. If every worker can fire model calls without a shared limit, scaling workers may accidentally scale the bill faster than throughput improves. Set explicit concurrency and rate limits per provider, model, tenant or workload. This is operational control, not only API-limit compliance. A queue should answer: - How many jobs may call this model simultaneously? - What is the maximum throughput we are willing to pay for? - What happens when the provider is degraded? - Which workload has priority? Without those controls, autoscaling can become auto-spending. ## Retries need a budget Normal HTTP retry logic can be dangerous around paid inference. A timeout does not always mean the provider did no work. And an agent workflow may already contain multiple model/tool calls before the failure. Define bounded retry policies. For example: - Retry transient transport errors a limited number of times. - Do not blindly retry invalid prompts or schema failures forever. - Use exponential backoff where appropriate. - Track attempts on the job. - Stop when the workflow budget is exhausted. A retry is another cost event. Treat it that way. ## Put a budget around the complete workflow Token limits alone are not enough for agentic workflows. An agent can make multiple model calls, retrieval calls and tool calls. Define budgets such as: - Maximum model calls. - Maximum tool steps. - Maximum input/output tokens. - Maximum wall-clock duration. - Maximum retries. - Maximum estimated spend where practical. The workflow should have a deterministic stop condition. “Continue until the model thinks it is done” is not cost governance. ## Context is one of the largest hidden multipliers Developers often focus on output tokens because they are visible. But repeated input context can dominate a workflow. A chat feature may resend long conversation history on every turn. A RAG feature may retrieve too many chunks. An agent may carry tool outputs forward indefinitely. Control context deliberately: - Retrieve only relevant knowledge. - Summarize older conversation state when appropriate. - Keep operational state structured instead of repeating it in prose. - Do not include data the model does not need. - Trim verbose tool outputs. Context engineering is cost engineering. ## Store operational state outside the prompt Suppose a Laravel application knows the user ID, plan, permissions, workflow status and selected product. Do not serialize the entire application state into natural language every time if the model only needs two fields. Keep authoritative state in your database. Pass the minimum context required for the model's decision. Then validate any requested action against application state again before execution. The model is a consumer of state, not the source of truth. ## Structured output reduces downstream chaos If the application needs data, ask for data. A classification feature should return something like: ```json { "category": "billing", "confidence": 0.91 } ``` rather than a paragraph explaining the classification. Use provider-supported structured output where appropriate and validate the result in your application. In Laravel, that may become a DTO/value object validated before business logic continues. In Go, decode into a typed struct and reject invalid output. Strong types around probabilistic output create a useful boundary. ## Never trust a tool call just because the model requested it For agentic features, the model may decide that a tool should run. The application still owns authorization. Before executing: - Authenticate the actor. - Check tenant/workspace. - Validate arguments. - Check permissions. - Enforce business rules. - Require human approval for consequential actions where needed. The LLM proposes intent. Your application decides whether the action is legal. This is as important in a Laravel monolith as it is in a Go microservice. ## Cache the right things Caching can reduce cost, but not every generated answer should be cached. Good candidates include: - Embeddings for unchanged content. - Deterministic preprocessing results. - Stable classification/enrichment where inputs are identical and freshness rules allow it. - Provider/model metadata. Be careful with personalized, permission-sensitive or fast-changing responses. A cheap stale answer can be more expensive to the business than a fresh model call. Cache based on semantic validity, not just technical convenience. ## Deduplicate before inference Batch systems frequently contain duplicate or near-duplicate work. If the same document is imported twice, do not automatically pay to embed and summarize it twice. Content hashes, idempotency keys and unique job identities can stop repeated work before it reaches the model. This matters particularly for crawlers, ingestion pipelines and webhook-driven systems. ## Observability needs cost attribution A provider invoice tells you the total bill. It does not tell you whether the bill produced value. Log enough metadata to attribute usage to the application workflow. Useful fields can include: - Use-case name. - Provider/model. - Tenant/workspace. - User or system actor where appropriate. - Input/output token counts when available. - Latency. - Retry count. - Success/failure. - Estimated/provider-reported cost. - Evaluation/outcome status. Then you can ask useful questions: > Which feature consumes the most AI spend? > Which tenant generates the most inference? > Which workflow retries too often? > Did the cheaper model reduce cost without reducing success? Without attribution, optimization becomes guesswork. ## Cost per request is not enough A cheap call that fails and triggers a human correction may be more expensive than a stronger call that succeeds. Track **cost per successful outcome** where possible. For extraction, success might mean valid structured data matching evaluation criteria. For support, it might mean a correctly resolved request. For an agent workflow, it might mean completion without manual repair. The useful denominator is business success, not API calls. ## Evaluation is what makes model routing safe You cannot confidently replace an expensive model with a cheaper one because a few manual tests looked okay. Create evaluation cases for each important use case. For example, an extraction evaluation might contain representative inputs and expected structured outputs. Then compare candidate models on: - Accuracy/quality. - Schema validity. - Latency. - Cost. - Failure modes. This turns model selection from preference into an engineering decision. ## Run shadow evaluations before switching critical traffic When practical, take real or representative inputs and run a candidate model without using its output in production decisions. Compare it with the current path. This gives you evidence before changing the user-facing behavior. Be careful with privacy and duplicated provider cost during shadow runs; use a bounded evaluation sample rather than mirroring everything blindly. ## Provider switching should be tested, not advertised It is easy to say an application is “provider agnostic.” The real test is whether another provider can satisfy the same use-case contract. Run the same evaluation suite against multiple provider adapters. If a feature depends on one provider-specific tool-calling behavior, acknowledge that dependency explicitly rather than hiding it behind an interface. Portability is a property you verify. ## Fallbacks can control reliability — and increase cost A common pattern is: ```text small model → if confidence/validation fails → stronger model ``` This can be effective. But remember that a fallback means some requests pay for both calls. Measure the fallback rate. If 80% of requests escalate, the “cheap first” architecture may cost more and add latency. The routing policy should be evaluated as a complete system. ## Local models change the cost shape A local LLM does not make inference free. It changes cost from primarily per-request API pricing toward infrastructure, utilization, operations and capacity planning. Local inference can make sense for privacy, predictable volume or control. Hosted models can make sense when demand is bursty or the managed capability is valuable. A provider layer lets the application choose based on workload rather than rewrite the feature around deployment ideology. ## Laravel architecture example A Laravel application can keep AI integration relatively clean with layers such as: ```text Controller / Command / Job ↓ Use-case service ↓ AI contract/router ↓ Provider adapter ↓ External or local model ``` Use queues for asynchronous workloads, Laravel's normal authorization for actions, cache where semantically safe, and application logging/telemetry for attribution. The AI layer should fit into the framework rather than bypass it. If the model proposes an action, route that action back through normal domain services and policies. Do not let AI become a second application architecture inside Laravel. ## Go architecture example A Go service can follow the same principles with interfaces and typed structures: ```text HTTP / worker ↓ Use case ↓ AI interface/router ↓ Provider implementation ``` Keep contexts/timeouts explicit. Bound worker concurrency. Decode structured outputs into typed structs. Propagate correlation IDs through model/tool calls. Use normal application authorization before side effects. Go's explicitness is useful here: AI uncertainty can sit behind a strongly typed boundary. ## Do not create a microservice only because it contains AI If your Laravel monolith owns the workflow and one feature needs an LLM, it may not need a separate “AI microservice.” A service boundary becomes useful when there is a real operational reason: different scaling, GPU/local inference, language/runtime requirements, independent ownership or reuse across several products. Architecture should follow constraints. The presence of an AI SDK is not a constraint by itself. ## Keep prompts and model configuration versioned Prompts are production behavior. Store them in a form that can be versioned and associated with evaluation results. When a prompt or model changes, you should be able to answer: - What changed? - Which version produced this output? - Did the evaluation improve? - Can we roll back? Do not treat prompts as random strings edited directly in controllers. ## Protect tenant economics For SaaS products, one customer can consume dramatically more AI resources than another. You may need quotas, credits, fair-use limits, feature tiers or internal budgets depending on the product model. At minimum, measure usage per tenant before discovering after launch that one account makes the feature economically unsustainable. Product pricing and AI architecture are connected. ## A practical production flow For a typical AI feature, I like the architecture to answer these questions in order: 1. **Can normal software solve it?** If yes, stop there. 2. **Which explicit AI use case is this?** 3. **What input does the model actually need?** 4. **Which model tier satisfies the quality requirement?** 5. **What is the request/workflow budget?** 6. **Can it run asynchronously?** 7. **How is output validated?** 8. **What happens on failure?** 9. **Which side effects require application authorization?** 10. **How will success and cost be measured together?** If those questions have clear answers, the provider API becomes the easy part. ## The architecture should survive the next model release Models and pricing change quickly. Your product should not need a redesign every time the market produces a new model. Keep durable business logic in Laravel or Go. Keep authoritative data in your own systems. Put AI behind explicit use-case contracts. Route workloads intentionally. Measure quality and cost. And let providers compete inside the architecture rather than define it. > **A production AI integration is successful when the model can change without the business workflow falling apart.** That is the difference between adding an AI API and engineering an AI capability into a product. **Adding AI to an existing Laravel or Go product and want the integration to stay maintainable as usage grows?** I design AI integrations around provider boundaries, queues, cost controls, evaluation, permissions and production observability — so the feature can evolve without turning the rest of the product into model-specific code. --- **Related:** AI Integration, AI Automation Operating Cost, Local LLM vs Hosted AI, Buy vs Build AI and When Your Business Should Not Use AI. --- Source: https://fadymondy.com/en/blog/add-ai-laravel-go-without-runaway-costs --- # Multi-Tenant SaaS Databases: Shared Database or One Database per Workspace? > Multi-tenancy is not just adding a tenant_id column. Shared tables, schema-per-tenant and database-per-workspace each change isolation, migrations, backups, analytics, connection pressure and operating cost. Here is how I evaluate the trade-offs before the architecture becomes expensive to change. #SaaS #MultiTenancy #DatabaseArchitecture #PostgreSQL #SoftwareArchitecture #Laravel #Golang *2026-09-17T09:38:09Z* # Multi-Tenant SaaS Databases: Shared Database or One Database per Workspace? One of the earliest architecture decisions in a SaaS product can become one of the hardest to change later: **Where does each customer's data live?** The apparently simple answer is usually a shared database with a `tenant_id` or `workspace_id` column. That can be exactly the right design. But it is not the only design. At the other end, every workspace can have its own database. Between them, there are models such as schema-per-tenant and hybrid approaches where most customers share infrastructure while selected tenants receive stronger isolation. There is no universally correct choice. The useful question is: > **Which tenancy boundary matches the product's isolation requirements, operating model and expected scale?** The database topology is only one part of multi-tenancy. Authentication, authorization, queues, cache keys, object storage, search indexes, logs, background jobs and integrations must respect the same boundary. ## The three common database models A useful starting point is to separate three patterns. ### 1. Shared database, shared tables All workspaces use the same database and tables. Rows contain a tenant identifier. ```text bookings ------------------------- id workspace_id customer_id status ... ``` This is operationally simple and often efficient. One migration updates one schema. Cross-tenant analytics are straightforward. Connection management is predictable. Infrastructure overhead per customer is low. But isolation depends heavily on application correctness. A missing tenant condition in the wrong query can become a data-isolation incident. ### 2. Shared database, separate schemas Customers share a database server but each has a separate schema or equivalent logical namespace. This creates a stronger structural boundary than shared tables while avoiding a completely separate database server for every tenant. It also introduces more operational work: schema migrations, provisioning and tooling must understand many schemas rather than one. ### 3. Database per workspace Each workspace receives its own database. ```text Workspace A → Database A Workspace B → Database B Workspace C → Database C ``` The isolation boundary is easier to reason about because customer business data does not share the same database namespace. But the operational problem changes dramatically. You are no longer operating “a database.” You are operating a fleet of databases. That distinction matters. ## Why teams consider database-per-workspace The strongest argument is usually **isolation**, not performance. If customer A and customer B live in different databases, many classes of accidental cross-tenant query become structurally harder. That can also make some operational tasks cleaner. A tenant-specific backup, restore, export or deletion can be easier to reason about when that tenant has a clear storage boundary. Large customers may also have different retention, regional or operational requirements. But stronger isolation is not free. You pay for it in provisioning, migrations, connection management, observability and fleet operations. ## Isolation is not automatically security A separate database does not mean the SaaS is secure by default. The application can still connect to the wrong database. A queue job can still carry the wrong workspace context. A cache key can still omit the tenant identifier. An object-storage path can still expose another tenant's file. An administrator tool can still bypass normal boundaries. So database isolation should be treated as **one layer of defense**, not the entire multi-tenant security model. A robust system makes workspace context explicit throughout the request and job lifecycle. ## Shared tables are not automatically unsafe either The opposite assumption is also wrong. A well-designed shared-table system can enforce tenant scoping through application architecture, database policies where appropriate, automated tests and carefully designed access patterns. For many SaaS products, this is the simplest architecture that satisfies the requirement. Do not choose database-per-workspace merely because it sounds more “enterprise.” Choose it because the isolation and operational properties solve a real requirement. ## The hidden cost: provisioning With a single shared database, onboarding a new workspace may be mostly application data. With database-per-workspace, onboarding can become infrastructure orchestration. A provisioning flow may need to: 1. Create or allocate the database. 2. Apply the current schema. 3. Create credentials or access policy. 4. Register the connection with the application. 5. Seed required system data. 6. Verify health. 7. Record the workspace as ready only after provisioning succeeds. That process needs to be idempotent. If step four fails, retrying should not accidentally create a second database or leave an unknown half-provisioned tenant. Provisioning becomes part of your product architecture. ## Migrations become a distributed operation This is one of the biggest differences. In a shared database, a migration runs once. With hundreds or thousands of workspace databases, the same logical migration may run hundreds or thousands of times. Now ask: - Can the migration be safely retried? - What happens if 97% succeed and the rest fail? - Can old and new application versions tolerate mixed schema versions temporarily? - How do you know which tenants are behind? - How quickly can you pause a bad rollout? A migration command is no longer enough. You need migration orchestration and migration state. ## Never assume every tenant is on the same schema version At fleet scale, partial failure is normal. A database may be temporarily unavailable. A connection can time out. A migration may hit unexpected tenant-specific data. Track schema state per workspace. Then deployment tooling can answer: ```text Current application schema target: 142 Workspace A: 142 ✓ Workspace B: 142 ✓ Workspace C: 141 ! Workspace D: migration failed ``` That visibility is far more useful than assuming a deployment script completed because the process exited successfully. ## Backups are where isolation can become valuable Database-per-workspace can make tenant-level backup and restore conceptually clean. If one customer needs recovery, you may be able to restore their database without restoring every other customer's business data. But the system still needs answers for: - Backup frequency. - Retention. - Encryption. - Restore testing. - Point-in-time recovery. - Where backups are stored. - How credentials are protected. - How a restored database is reattached safely. A backup that has never been restored in a test is only a theory. ## Deleting a workspace becomes clearer — and more dangerous A strong physical boundary can simplify deletion: identify the tenant's database and remove it according to retention policy. It can also make a mistake catastrophic. A wrong database identifier in a destructive operation is unacceptable. Destructive lifecycle operations should require strong identity checks, audit logs, delayed deletion where appropriate and a clear recovery policy. Isolation makes the unit of deletion obvious. It does not remove the need for safeguards. ## Connection management can become the real bottleneck This is easy to underestimate. A traditional application may maintain a pool of connections to a small number of databases. Database-per-workspace can create a much larger connection topology. Opening and holding a dedicated pool for every tenant can consume resources long before query throughput becomes the problem. The architecture may need dynamic connection resolution, bounded pools, connection proxies or other strategies depending on the database platform and workload. This is particularly important for systems with many tenants but relatively low activity per tenant. Do not size only for queries per second. Size for **active connection behavior** too. ## Tenant context must survive queues A web request can identify the workspace from a domain, session, token or route. A background job does not automatically have that request context. If a job processes a report, sends a notification or synchronizes an integration, it must carry an explicit workspace identity and resolve the correct database before executing tenant work. Conceptually: ```text Job payload workspace_id task data ↓ Workspace resolver ↓ Correct database connection ↓ Domain operation ``` Never depend on whatever tenant connection happened to be active in the worker previously. Long-running workers make that mistake especially dangerous. ## Cache is part of multi-tenancy Suppose two workspaces both have a record with ID `42`. A cache key like: ```text property:42 ``` is not tenant-safe. The key needs the boundary: ```text workspace:abc:property:42 ``` The same principle applies to locks, rate limits, sessions, computed reports and temporary data. Database isolation does not protect a shared Redis namespace automatically. ## Files and object storage need the same boundary If customer files live in S3-compatible storage or another object store, define tenant-aware paths and authorization. For example: ```text workspaces/{workspace_id}/documents/{document_id} ``` Do not assume an unguessable URL is an authorization mechanism. The database model and file model should tell the same tenancy story. ## Search indexes can reintroduce the isolation problem A product may use separate databases but one shared search index. Now the search layer becomes another place where tenant filtering must be correct. The same applies to vector databases and RAG systems. If AI retrieval searches across customer knowledge, workspace isolation must be enforced **before or during retrieval**, not merely mentioned in the prompt. “Only answer using this customer's data” is not a security boundary. ## Analytics are easier with shared data This is an important trade-off. A shared database naturally supports queries across tenants for internal product analytics. Database-per-workspace fragments that data. If the business needs platform-wide metrics, you may need a separate analytics pipeline that intentionally collects approved events or aggregates from tenant databases into an analytics store. Do not solve this by giving every dashboard a loop that connects to every production tenant database in real time. Operational databases and analytical workloads have different needs. ## Reporting needs an explicit strategy A report for one workspace is straightforward: query that workspace's database. A platform-wide report is not. Decide early which reports are: - Tenant-local. - Operational platform metrics. - Financial aggregates. - Product analytics. Then create the appropriate data path for each. Database-per-workspace is much easier to operate when cross-tenant analytics are designed intentionally rather than discovered later. ## Observability must include the workspace Logs such as: ```text SQL timeout ``` are not enough. Operational telemetry should identify the relevant workspace safely, along with database/cluster, application version, schema version, job/request correlation and error context. This allows you to answer whether a problem affects one tenant, a group of tenants or the whole platform. Be careful not to leak sensitive tenant data into logs while adding this context. ## Cost does not scale only with storage The economic difference between tenancy models includes more than disk space. Database-per-workspace may add costs for: - Minimum database/server allocations. - Connections/proxies. - Backups. - Monitoring. - Provisioning systems. - Migration orchestration. - Operational support. - Cross-tenant analytics pipelines. A shared database may be cheaper operationally, especially early in a product's life. The right comparison is total operating complexity and cost, not only database price per GB. ## Database-per-workspace does not require server-per-workspace These ideas are often confused. A logical database per customer does not necessarily mean a dedicated physical database server for each customer. Multiple tenant databases may share a managed database cluster or server depending on the platform and isolation requirements. The important architecture question is the **logical isolation boundary** and how resources are allocated underneath it. That distinction can significantly change the economics. ## A hybrid model is often worth considering The choice does not always need to be permanent and universal. A SaaS might use shared infrastructure for standard customers while giving specific enterprise or regulated customers a dedicated database or cluster. Another design might group tenants into shards, with many workspaces per database but fewer than one global database. Hybrid architectures introduce routing complexity, but they can let infrastructure match customer requirements rather than forcing every tenant into the most expensive isolation level. ## Think about tenant movement before you need it If a customer starts in a shared environment and later needs dedicated isolation, can you move them? If a cluster becomes full, can workspaces migrate elsewhere? Useful architecture separates the tenant identity from the physical connection location. Instead of assuming: ```text workspace_id → hard-coded database name ``` maintain a resolvable mapping: ```text workspace_id → placement → connection/configuration ``` That creates room for rebalancing and enterprise upgrades later. ## Data residency can influence the topology Some products eventually need to place customer data in a specific region. A tenant placement layer can support this more naturally than a single global database, but residency requirements extend beyond the primary database. Backups, files, search, logs, analytics and third-party integrations may also contain customer data. Do not call a system region-isolated because only PostgreSQL moved. ## Laravel: central database plus tenant connections In a Laravel application, a common conceptual design is to keep platform-level data centrally: ```text Central DB - workspaces - users / memberships - subscriptions - tenant placement - platform configuration ``` Then tenant business data lives behind a workspace-resolved connection. Middleware can establish workspace context for HTTP requests, while queue middleware or job bootstrapping does the same for background work. The important rule is that domain code should not manually invent connection names everywhere. Centralize tenant resolution so it can be tested and audited. ## Go: make tenant dependencies explicit In Go, tenant resolution can be modeled explicitly through application dependencies. A handler or worker resolves the workspace, obtains the appropriate data-store handle, then passes a tenant-scoped repository/service into the use case. This helps avoid global mutable connection state. The exact implementation depends on the database driver and topology, but the principle is durable: > **Tenant identity should be an explicit dependency of tenant work.** ## Testing needs adversarial tenant cases Happy-path tests are not enough. For every important tenant-scoped operation, test questions such as: - Can workspace A request workspace B's record ID? - Can a queued job resolve the wrong tenant? - Can a cached value cross tenant boundaries? - Can search return another tenant's document? - Can an administrator endpoint accidentally skip scoping? - What happens when tenant provisioning is incomplete? Multi-tenant bugs are often ordinary software bugs with unusually serious consequences. Test the boundary deliberately. ## When shared tables are usually the better choice A shared database is often attractive when: - The product is early and requirements are still changing. - Tenant data volumes are modest. - Cross-tenant analytics are important. - There is no strong requirement for physical/logical database isolation. - The team wants the simplest operational model. - Application-level tenant scoping can be enforced reliably. Simple is valuable. Do not pay distributed-operations complexity before the product needs it. ## When database-per-workspace becomes more attractive It deserves serious consideration when: - Stronger tenant isolation is a core requirement. - Tenant-level backup/restore/export is important. - Customers may require different placement or operational policies. - Individual tenants can become large enough to need independent management. - The engineering team is prepared to automate database fleet operations. The final point matters most. If provisioning, migration, monitoring and recovery are manual, database-per-workspace can become an operational trap. ## A decision framework Before choosing, write down the answers to these questions: 1. What isolation does the product actually require? 2. How many tenants do we expect, and how many are concurrently active? 3. How large can one tenant become? 4. Do we need tenant-level backup or restore? 5. Do customers need region or infrastructure choices? 6. How much cross-tenant analytics does the business require? 7. Can our deployment system migrate many databases safely? 8. How will workers resolve tenant context? 9. How will we monitor schema version and health per tenant? 10. What is the total operational cost of the topology? 11. Can tenants move between placements later? 12. Which other systems — cache, files, search, AI retrieval — must enforce the same boundary? Those answers are more useful than copying the tenancy architecture of another SaaS. ## The real architecture is the lifecycle Creating the database is the easy part. The real design includes: ```text Provision → Migrate → Connect → Observe → Back up → Restore → Upgrade → Move → Suspend → Delete ``` If you choose database-per-workspace, design that lifecycle before tenant count makes manual operations impossible. If you choose shared tables, design and test tenant scoping before the codebase makes unscoped access normal. > **Multi-tenancy is not a database feature. It is an application-wide isolation model.** The database topology should reinforce that model, not carry it alone. **Designing a SaaS product and deciding between shared multi-tenancy, database-per-workspace or a hybrid architecture?** I help teams design SaaS architecture from tenancy and data boundaries through APIs, queues, deployment, observability and production scaling — so the isolation model fits the business instead of becoming an expensive rewrite later. --- **Related:** SaaS Development, SaaS vs Custom Software, Engineering Architecture and Building a Private RAG Stack on PostgreSQL. --- Source: https://fadymondy.com/en/blog/multi-tenant-saas-database-per-workspace --- # Digital Transformation vs AI Transformation: What Actually Changes for a Business? > Digital transformation puts your business into systems. AI transformation changes what those systems can understand, decide and automate. The important question is not “Do we have AI?” but whether your data, workflows and integrations are ready for it. #DigitalTransformation #AITransformation #AIForBusiness #BusinessAutomation #AIAutomation #EnterpriseAI *2026-09-17T05:36:21Z* # Digital Transformation vs AI Transformation: What Actually Changes for a Business? A company can have a CRM, ERP, cloud infrastructure, mobile applications, dashboards and digital customer channels — and still have employees copying information between systems, reading every request manually and making the same repetitive decisions every day. That company is digital. It is not necessarily intelligent or automated. This is the practical difference between **digital transformation** and what people increasingly describe as **AI transformation**. Digital transformation creates the systems, data and connectivity that make modern operations possible. AI transformation can add systems that interpret unstructured information, assist decisions and automate parts of workflows that traditional software could not handle economically. One does not replace the other. In many businesses, the second depends on the first. ## The simplest distinction Think about the progression this way: **Paper → Digital system → Integrated workflow → Automation → AI-assisted workflow → Controlled autonomous action** Each stage solves a different problem. ### Digital transformation asks - Where should this process live? - How do we stop relying on paper and disconnected files? - Where should the data be stored? - How do customers and employees interact with the process digitally? - Which systems need to connect? ### AI transformation asks - Which information still requires a person to read and interpret it? - Which decisions can AI assist safely? - Which repetitive knowledge work can be automated? - Where can models use company knowledge? - Which actions can an AI system prepare or execute under controlled permissions? Digital transformation primarily builds the **digital operating foundation**. AI transformation adds **machine interpretation and decision capability** where it creates value. ## Example: customer service Imagine a company originally handles customer requests by phone and paper. ### Stage 1: digital It introduces a ticketing system. Now every request has an ID, status, customer record and history. That is a meaningful transformation. The process became measurable and searchable. ### Stage 2: integrated The ticketing system connects to CRM, orders and customer identity. Employees no longer need to search several disconnected systems for basic information. ### Stage 3: automated Rules route tickets by category, priority or customer type. Known workflow steps happen automatically. ### Stage 4: AI-assisted AI reads the customer's natural-language message, identifies intent, summarizes context, retrieves relevant knowledge and drafts a response. ### Stage 5: controlled action For permitted workflows, an AI agent may prepare or perform an action through a business API — for example checking an order or preparing a booking change — while deterministic rules, permissions and approval remain enforced by the application. The AI layer became useful because the digital systems underneath already contained identity, data and APIs. ## AI cannot repair a broken operating model by itself A common mistake is adding an LLM on top of operational chaos. Suppose customer information exists in: - Excel files. - WhatsApp conversations. - Individual employee inboxes. - An outdated CRM. - A separate accounting platform. - Documents nobody owns. An AI assistant does not magically create a reliable source of truth. It may actually make the inconsistency harder to see because it can produce a fluent answer from incomplete information. Before adding intelligence, decide where authoritative data lives. > **AI is strongest when it operates on top of clear systems, not when it is asked to hide the absence of them.** ## The real foundation: data, workflow and integration For many companies, AI readiness is less about buying a model and more about three foundations. ### 1. Data What information does the workflow need? Where does it live? Who owns it? Is it current? Who is allowed to access it? ### 2. Workflow What actually happens from beginning to end? Where are the decisions? Where do employees copy, interpret, approve or correct information? ### 3. Integration Can systems exchange the required data safely? Are there APIs? Can actions be executed programmatically? Can you identify the user and enforce permissions? Without these foundations, AI projects often become demonstrations instead of production systems. ## Not every digital process needs AI Suppose the rule is: > Orders above a defined limit require manager approval. That is deterministic business logic. You do not need an LLM to decide it. Suppose the task is: > Read a free-form customer email and determine whether it is a complaint, refund request or technical issue. Now AI may be useful because the input is unstructured and interpretation is required. A useful architecture keeps the two worlds separate: **AI for uncertainty. Software for certainty.** ## Where AI adds something traditional automation struggles with Traditional workflow automation is excellent when inputs and rules are predictable. AI becomes interesting when the workflow contains language, images, ambiguous requests or knowledge-heavy decisions. Examples include: - Reading customer messages. - Extracting information from documents. - Classifying requests. - Summarizing long records. - Searching internal knowledge semantically. - Generating a first draft. - Matching information across inconsistent text. - Choosing an appropriate tool based on intent. The goal is not to replace every workflow with AI. The goal is to remove the parts where humans are acting as expensive adapters between information and software. ## Digital transformation can happen without AI A company may get significant value simply by: - Replacing spreadsheets with a proper operational system. - Connecting CRM and accounting. - Giving customers a self-service portal. - Creating reliable reporting. - Standardizing approvals. - Automating notifications. - Building APIs between systems. Calling every software improvement “AI transformation” makes the architecture worse, not better. Sometimes the highest-value next step is ordinary digital transformation. ## AI transformation can also start small The opposite mistake is believing AI transformation requires replacing the company's entire technology stack. It does not. A company can start with one workflow. For example: **Incoming support request → AI classification → existing ticketing system → employee** or: **Internal question → permission-aware RAG → company documents → answer with sources** or: **Sales enquiry → AI extracts requirements → CRM record → salesperson review** The existing systems remain. AI improves one expensive or slow part of the process. That is often a better starting point than a company-wide “AI platform.” ## Four levels of maturity A useful way to examine a business is through four levels rather than fashionable labels. ### Level 1: Digitized Information exists digitally, but work is fragmented. Employees may still move information manually between systems. ### Level 2: Integrated Core systems exchange data and there is a clearer source of truth. Workflows can move across systems without constant copying. ### Level 3: Automated Known rules and repetitive steps execute automatically. Humans focus on exceptions and judgment. ### Level 4: AI-assisted or agentic AI handles selected unstructured interpretation, retrieval, recommendation or tool selection. Some actions may be executed under explicit permissions, validation and approval. A company does not need every workflow at Level 4. The appropriate maturity depends on the process. ## How to know where your company is today Take one important workflow and answer these questions: 1. Does the workflow still depend on Excel, messages or manual copying? 2. Is there a clear source of truth? 3. Are the systems connected? 4. Which steps follow fixed rules? 5. Which steps require reading or interpreting unstructured information? 6. Which decisions require human judgment? 7. Which actions could software execute safely? 8. What happens when the system is uncertain? 9. Can the result be measured? The answers reveal whether your next investment should be digitization, integration, automation or AI. ## Example: sales operations Consider leads arriving from a website, WhatsApp and campaigns. A fragmented company may copy each lead manually into a spreadsheet. ### Digital transformation Move leads into a CRM with consistent fields and ownership. ### Integration Connect website forms, messaging channels and CRM. ### Automation Assign leads based on geography, product or account rules. ### AI Interpret free-form enquiries, extract requirements, summarize conversations or suggest qualification based on defined criteria. ### Agentic workflow The system may gather missing information, prepare follow-up and update approved CRM fields through controlled tools. Notice that AI is one layer in the process, not the whole transformation. ## Example: internal company knowledge A business stores policies and procedures across folders and documents. Digitizing those documents is useful, but employees may still spend time searching manually. The next step might be: 1. Organize authoritative sources. 2. Preserve document permissions. 3. Index the content. 4. Use RAG to retrieve relevant evidence. 5. Generate an answer from authorized sources. 6. Record feedback and improve retrieval. This is an AI use case built on top of information governance. If the documents themselves are contradictory or nobody owns updates, the AI system inherits that problem. ## Example: finance operations Suppose invoices arrive as PDFs and email attachments. A sensible architecture might be: **Document arrives → AI/OCR extraction where appropriate → deterministic validation → accounting system → approval workflow → audit log** AI can interpret the document. Software should validate known rules. The accounting system remains the source of truth. A human can approve exceptions. This mixed architecture is often more robust than asking one model to do everything. ## AI transformation is not the same as replacing employees The useful unit of analysis is usually the **task or workflow**, not the job title. A role may contain: - Repetitive data entry. - Customer communication. - Judgment. - Negotiation. - Exception handling. - Relationship management. - Approvals. Different parts need different technology. Instead of asking “Can AI replace this role?”, map which tasks can be automated, assisted, validated or left entirely to people. That produces a much more actionable transformation plan. ## AI transformation is not a chatbot project A chatbot may be the visible interface, but the real business value often sits behind it. A useful AI system may need: - Company knowledge through RAG. - Customer data through APIs. - Authentication. - Permissions. - Workflow state. - Business tools. - Human handoff. - Auditability. - Evaluation. A beautiful conversation interface connected to nothing is still just an interface. ## AI transformation is not a model procurement project either Choosing OpenAI, Claude, Gemini or a local model is not the transformation strategy. Model selection should follow the workload. Ask first: - What task are we improving? - What data does it need? - What quality is acceptable? - What privacy boundary applies? - What latency is required? - What is the cost per successful task? Then evaluate models and architecture. The business workflow should be more durable than the model provider. ## Where Private AI fits Some organizations cannot send particular information outside a defined infrastructure boundary. That does not mean every AI workload must become a self-hosted model project. Classify the data first. Possible architectures include: - Hosted AI for approved non-sensitive workloads. - Private RAG with hosted generation. - Local inference for sensitive workloads. - Fully private stacks where requirements justify them. - Hybrid routing based on data sensitivity and task complexity. Privacy is an architectural requirement, not a marketing label. ## What should you measure? Do not measure transformation by the number of AI tools purchased. Measure the workflow. Depending on the use case, useful metrics may include: - Processing time. - Cost per completed task. - Error or rework rate. - Response time. - Resolution rate. - Human escalation rate. - Conversion or recovered opportunities where attributable. - Adoption by employees or customers. - Operating cost. Establish a baseline before changing the process. Without a baseline, it is difficult to distinguish a successful transformation from an impressive demo. ## A practical roadmap from digital to AI-enabled ### Step 1: choose one valuable workflow Do not start with “transform the company with AI.” Choose a workflow with measurable pain. ### Step 2: map the current state Document inputs, systems, people, decisions, waiting time, errors and outputs. ### Step 3: fix the source of truth Decide where important operational data belongs. ### Step 4: integrate the systems Connect the workflow before adding intelligence where possible. ### Step 5: automate deterministic steps Do not pay an LLM to execute rules you already know. ### Step 6: identify the uncertain step Where does somebody have to read, interpret, summarize, classify or search? That is a candidate for AI. ### Step 7: add AI with boundaries Define context, permissions, tools, validation and fallback behavior. ### Step 8: keep humans where risk requires them Approval and escalation should be deliberate parts of the architecture. ### Step 9: measure against the baseline Did the workflow become faster, cheaper, more reliable or commercially better? ### Step 10: expand only after evidence Reuse the architecture patterns that worked in the first workflow. ## A useful investment order For many businesses, the sensible order is: **Source of truth → Integration → Deterministic automation → AI assistance → Controlled agentic action** This is not a universal rule. A company may already have excellent infrastructure and be ready to begin at a later stage. But the sequence is useful because it prevents AI from becoming a decorative layer on top of broken operations. ## So, digital transformation or AI transformation? The question is usually not either/or. Ask what the business is missing. If information is fragmented and workflows are manual, strengthen the digital foundation. If systems are connected but people still spend large amounts of time interpreting unstructured information, AI may unlock the next layer. If AI can understand the request but cannot complete the task, controlled tools and workflow integration may be the next step. The architecture should follow the bottleneck. ## Planning the next stage of your company's transformation? Bring one real workflow. Map where information lives, where people intervene, which rules are deterministic and which steps require interpretation. From there, it becomes much easier to decide whether the next investment should be software, integration, automation, RAG, an AI agent or something simpler. **Discuss your digital and AI architecture with Fady Mondy.** I help businesses move from fragmented workflows to integrated software, automation and production AI systems — choosing the technology after understanding the operating problem. --- **Related:** AI for Business, AI Automation, Custom Software Development, AI Integration, AI Agents, Private AI, AI ROI and RAG vs Fine-Tuning vs AI Agents. --- Source: https://fadymondy.com/en/blog/from-digital-to-smart-automation-transformation --- # Why You Should Pay for Open Source > Free to use doesn't mean free of cost. Why developers who earn from open source should sponsor it, what Laravel's story shows, and how to help. *2026-09-17T03:23:44Z* Almost every developer uses open-source projects daily, whether it's writing code in VS Code, speeding up development with TailwindCSS, or building robust web applications with Laravel, the most popular PHP framework. And let's not forget FilamentPHP for building admin panels. In this post I want to make a simple case: if open source makes your work possible, you should help pay for it. I'll use Laravel as an example, explain why "free" is not the same as "free of cost", and finish with practical ways to contribute. ## Open source is built by people These projects aren't built by ghosts. They're created by people, some of the best in their fields. They aren't just doing their jobs; they're making the work of everyone else easier, faster and more efficient. ## Case study: a world without Laravel Let's consider a scenario where the Laravel framework didn't exist. Before Laravel, building a stable, secure, SOLID-compliant MVC structure with PHP 5.7 was a daunting task. Taylor Otwell recognised this challenge and, without asking for payment, worked hard to create Laravel, revolutionising PHP development. *PHP went from 5.6 straight to 7.0; "PHP 5.7" here means the late PHP 5 era.* Imagine if Taylor hadn't received community support. Laravel, and perhaps even PHP itself, might have faded away. Thankfully, he did get support, grew a team, and even launched tools like Herd for free. Today, Laravel has received substantial funding ($57M), allowing it to thrive while remaining open and free to use. ## Is open source really free? Most open-source projects are released under the MIT license, which means they're free to use, modify or clone. But "free to use" doesn't mean "free of cost". Open-source developers invest their time and expertise to create and maintain these projects. If you're using open-source software and earning from it, you should sponsor or contribute to those projects and support the people behind them. ## How you can contribute ### Sponsor the projects you depend on Visit GitHub, check out the repositories you use daily, and support their creators. Even $1 can make a difference to a developer, because it shows them their work is valued. ### Spread the word If you can't contribute financially, help by sharing their work: - Write about the tools you rely on in blog posts. - Share them on social media. - Record videos showing how you use them. Exposure can drive others to contribute, ensuring the continued growth of open-source projects. ## Final thoughts The tools we use every day exist because someone chose to share their work. Let's support the community, so we can keep benefiting from more innovative open-source tools. --- Source: https://fadymondy.com/en/blog/why-you-should-pay-for-open-source --- # Join the TomatoPHP Community: Public Profiles Are Live > TomatoPHP Public Profiles are live: join the community, build demos of our packages, and see what's coming next, from blog posts to GitHub tracking. *2026-09-17T03:23:44Z* Hello, developers! We are thrilled to announce the launch of the TomatoPHP Public Profile. In this short post you'll learn what Public Profiles give you today, what we plan to add next, and where to find the code. ## Why Public Profiles As we continue to grow, our goal is to make the TomatoPHP community more engaging and feature-rich, offering tools and opportunities that help developers thrive. But we aren't doing this alone. Our progress is powered by the collective efforts of our incredible team, contributors and sponsors. To foster even more collaboration and engagement, we've introduced a new feature: Public Profiles. ## What you can do today With Public Profiles, you can join our community and create demos of our packages. That gives you a place to try TomatoPHP packages for real before you bring them into your own projects. ## What's coming next This is just the beginning. As we continue to develop, we plan to roll out more features, including: - Create and share blog posts within the community. - Submit your open-source projects to be featured under the TomatoPHP umbrella. - Generate a personalised QR code for easy sharing of your public profile. - Post sticky notes and share them with friends via a public URL. - Engage with community activity, including posts, comments and likes. - Manage your invoices and other essential tools directly from your profile. - Track and manage your GitHub open-source projects and issues seamlessly. We believe these features will make our community more connected, collaborative and productive. We can't wait to see how you'll use them to contribute to the TomatoPHP ecosystem. ## It's all open source All of these features are open source, and you can check the code in our [repo](https://www.github.com/tomatophp/tomatophp.com). ## Join us Thank you for being part of this journey. Together, we're building something special. [Join us](https://tomatophp.com/user/register). --- Source: https://fadymondy.com/en/blog/join-tomatophp-community --- # TomatoPHP Filament Plugins: The Full List > Over 35 open-source TomatoPHP plugins for FilamentPHP, from users and translations to CMS, POS and tenancy, plus how to run each one as a module. *2026-09-17T04:43:06Z* Hello, Laravel and PHP enthusiasts! We are stepping up our contributions to the Laravel and PHP community. Our team is building a series of packages and plugins for FilamentPHP that bring the features of the TomatoPHP framework directly into your Filament applications. In this post you will find two things: how to run any of these plugins as a module inside your app, and the full list of plugins, each with a screenshot, a one-line description and a link to its repository. ## Use a plugin as a module Every plugin in this list can work as a module inside your app, using our `filament-plugins` package. ### 1. Publish the modules config Before using this feature, make sure you have published the `modules.php` config file: ```bash php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider" --tag="config" ``` ### 2. Enable scanning In the config file, set `'enabled' => true,` under `scan`: ```php [ 'enabled' => true, 'paths' => [ base_path('vendor/*/*'), ], ], ] ``` ### 3. Publish the plugin Run this command: ```bash php artisan filament-plugins:publish ``` Then type the name of the plugin you want to publish. If you don't know the plugin name, list all plugins with: ```bash php artisan module:list ``` ## The plugins Here is the list of plugins you can use. ### Filament Users ![Filament Users plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-users/master/arts/fadymondy-tomato-users.jpg) A user table resource with a lot of package integrations. - [Filament Users V2](https://www.github.com/tomatophp/filament-users) - [Filament Users V1](https://www.github.com/3x1io/filament-user) ### Filament Translations ![Filament Translations plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-translations/master/arts/fadymondy-tomato-translations.jpg) Manage your translations with the database and cache. It scans your language tags like `trans()` and `__()`, extracts the strings inside them, and lets you translate them from a UI. - [Filament Translations V2](https://www.github.com/tomatophp/filament-translations) - [Filament Translations V1](https://www.github.com/3x1io/filament-translations) ### Filament Plugins ![Filament Plugins plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-plugins/master/arts/fadymondy-tomato-plugins.jpg) Manage your modules as a plugin system, with a plugin generator. - [Filament Plugins](https://www.github.com/tomatophp/filament-plugins) ### Filament Media Manager ![Filament Media Manager plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-media-manager/master/arts/fadymondy-tomato-media-manager.jpg) Manage your media files using Spatie Media Library, with an easy-to-use GUI for FilamentPHP. - [Filament Media Manager](https://www.github.com/tomatophp/filament-media-manager) ### Filament Developer Gate ![Filament Developer Gate plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-developer-gate/master/arts/fadymondy-tomato-developer-gate.jpg) Secure selected routes with a middleware that asks for a static password, for developers only. - [Filament Developer Gate](https://www.github.com/tomatophp/filament-developer-gate) ### Filament Accounts ![Filament Accounts plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-accounts/master/arts/fadymondy-tomato-accounts.jpg) A full accounts manager with API, notifications and contacts to manage your contacts and accounts. - [Filament Accounts](https://www.github.com/tomatophp/filament-accounts) ### Filament Wallet ![Filament Wallet plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-wallet/master/arts/fadymondy-tomato-wallet.jpg) An account balance and wallets manager for FilamentPHP and Filament Account Builder. - [Filament Wallet](https://www.github.com/tomatophp/filament-wallet) ### Filament Alerts ![Filament Alerts plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-alerts/master/arts/fadymondy-tomato-alerts.jpg) Send notifications to users using notification templates and multiple notification channels. - [Filament Alerts](https://www.github.com/tomatophp/filament-alerts) ### Filament FCM ![Filament FCM plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-fcm/master/arts/fadymondy-tomato-fcm.jpg) Firebase Cloud Messaging integration for the native FilamentPHP notification package. - [Filament FCM](https://www.github.com/tomatophp/filament-fcm) ### Filament Helpers ![Filament Helpers plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-helpers/master/arts/fadymondy-tomato-helpers.jpg) A helper class generator to manage the forms and tables inside your Filament app. - [Filament Helpers](https://www.github.com/tomatophp/filament-helpers) ### Filament Icons ![Filament Icons plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-icons/master/arts/fadymondy-tomato-icons.jpg) An icon picker, table column and icons provider for FilamentPHP. - [Filament Icons](https://www.github.com/tomatophp/filament-icons) ### Filament CMS ![Filament CMS plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-cms/master/arts/fadymondy-tomato-cms.jpg) A full CMS with an easy-to-use page builder and theme manager for FilamentPHP. - [Filament CMS](https://www.github.com/tomatophp/filament-cms) ### Filament Types ![Filament Types plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-types/master/arts/fadymondy-tomato-types.jpg) Manage any type in your app from the database, with easy resources for FilamentPHP. - [Filament Types](https://www.github.com/tomatophp/filament-types) ### Filament Menus ![Filament Menus plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-menus/master/arts/fadymondy-tomato-menus.jpg) A database menu builder you can use as navigation in a Filament panel or as a Livewire component. - [Filament Menus](https://www.github.com/tomatophp/filament-menus) ### Filament Browser ![Filament Browser plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-browser/master/arts/fadymondy-tomato-browser.jpg) A file, folder and media browser with a code editor. - [Filament Browser](https://www.github.com/tomatophp/filament-browser) ### Filament Artisan ![Filament Artisan plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-artisan/master/arts/fadymondy-tomato-artisan.jpg) A simple yet powerful library for running artisan commands. It is a fork of artisan-gui, customised for the Filament UI. - [Filament Artisan](https://www.github.com/tomatophp/filament-artisan) ### Filament Settings Hub ![Filament Settings Hub plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/fadymondy-tomato-settings-hub.jpg) Manage your app settings with a GUI and helpers. - [Filament Settings Hub](https://www.github.com/tomatophp/filament-settings-hub) ### Filament Locations ![Filament Locations plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/fadymondy-tomato-locations.jpg) Database seeds for locations in FilamentPHP. - [Filament Locations](https://www.github.com/tomatophp/filament-locations) ### Filament Splade ![Filament Splade plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-splade/master/arts/fadymondy-tomato-splade.jpg) Integration of Splade Vue components for Filament. - [Filament Splade](https://www.github.com/tomatophp/filament-splade) ### Filament API ![Filament API plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-api/master/arts/fadymondy-tomato-api.jpg) Generate APIs from your Filament resources with a single line of code. - [Filament API](https://www.github.com/tomatophp/filament-api) ### Filament E-commerce ![Filament E-commerce plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/fadymondy-tomato-ecommerce.jpg) Build your own e-commerce store with FilamentPHP, powered by the Tomato CMS Builder. - [Filament E-commerce](https://www.github.com/tomatophp/filament-ecommerce) ### Filament Twilio ![Filament Twilio plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-twilio/master/arts/fadymondy-tomato-twilio.jpg) Send WhatsApp messages using Twilio and the native Filament Notification facade class. - [Filament Twilio](https://www.github.com/tomatophp/filament-twilio) ### Filament Discord ![Filament Discord plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-discord/master/arts/fadymondy-tomato-discord.jpg) Send notifications to a Discord channel webhook using the native FilamentPHP Notification facade class. - [Filament Discord](https://www.github.com/tomatophp/filament-discord) ### Filament Translation Component ![Filament Translation Component plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-translation-component/master/arts/fadymondy-tomato-translation-component.jpg) A key/value translation component to use with the Spatie Translatable FilamentPHP plugin. - [Filament Translation Component](https://www.github.com/tomatophp/filament-translation-component) ### Filament Sticky Notes ![Filament Sticky Notes plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-notes/master/arts/fadymondy-tomato-notes.jpg) Add sticky notes to your FilamentPHP dashboard, with tons of options and styles. - [Filament Sticky Notes](https://www.github.com/tomatophp/filament-notes) ### Filament Invoices Manager ![Filament Invoices Manager plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-invoices/master/arts/fadymondy-tomato-invoices.jpg) Generate and manage your invoices and payments with multiple currencies and multiple types in FilamentPHP. - [Filament Invoices Manager](https://www.github.com/tomatophp/filament-invoices) ### Filament PWA ![Filament PWA plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-pwa/master/arts/fadymondy-tomato-pwa.jpg) Add PWA support to your FilamentPHP app, with settings managed from the panel. - [Filament PWA](https://www.github.com/tomatophp/filament-pwa) ### Filament Simple Theme ![Filament Simple Theme plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-simple-theme/master/arts/fadymondy-tomato-simple-theme.jpg) A simple theme for FilamentPHP with a custom user menu in the sidebar. - [Filament Simple Theme](https://www.github.com/tomatophp/filament-simple-theme) ### Filament Subscriptions ![Filament Subscriptions plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-subscriptions/master/arts/megoxv-tomato-subscriptions.jpg) Manage subscriptions and feature access with customisable plans in FilamentPHP. Thanks to [Laravel Subscriptions](https://github.com/laravelcm/laravel-subscriptions), which you can review before using this package. - [Filament Subscriptions](https://www.github.com/tomatophp/filament-subscriptions) ### Filament POS ![Filament POS plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-pos/master/arts/fadymondy-tomato-pos.jpg) A POS system for FilamentPHP with a lot of features and an integration with the E-commerce Builder. - [Filament POS](https://www.github.com/tomatophp/filament-pos) ### Filament Tenancy ![Filament Tenancy plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-tenancy/master/arts/fadymondy-tomato-tenancy.jpg) Multi-database tenancy integration for FilamentPHP. - [Filament Tenancy](https://www.github.com/tomatophp/filament-tenancy) ### Filament Withdrawals ![Filament Withdrawals plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-withdrawals/master/arts/megoxv-tomato-withdrawals.jpg) Manage your withdrawals in Filament. - [Filament Withdrawals](https://www.github.com/tomatophp/filament-withdrawals) ### Filament Payment Manager ![Filament Payment Manager plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-payments/master/arts/fadymondy-tomato-payments.jpg) Manage payments inside your FilamentPHP app, with integrations for multiple payment gateways. - [Filament Payment Manager](https://www.github.com/tomatophp/filament-payments) ### Filament User Logger ![Filament User Logger plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-logger/master/arts/fadymondy-tomato-logger.jpg) Log all user activity to a file or log driver and preview it in your FilamentPHP panel. - [Filament User Logger](https://www.github.com/tomatophp/filament-logger) ### Filament SEO Manager ![Filament SEO Manager plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-seo/master/arts/fadymondy-tomato-seo.jpg) Manage and generate SEO tags, and integrate your website with Google SEO services. - [Filament SEO Manager](https://www.github.com/tomatophp/filament-seo) ### Filament Documents Editor ![Filament Documents Editor plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-docs/master/arts/fadymondy-tomato-docs.jpg) Manage your documents and contracts in one place, with a template builder. - [Filament Documents Editor](https://www.github.com/tomatophp/filament-docs) ### Filament Social Media Manager ![Filament Social Media Manager plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/fadymondy-tomato-social.jpg) Bring social media platform actions and auth into your FilamentPHP panel. - [Filament Social Media Manager](https://www.github.com/tomatophp/filament-social) ### Filament Blog Template ![Filament Blog Template plugin screenshot in a Filament panel](https://raw.githubusercontent.com/tomatophp/filament-blog/master/arts/fadymondy-tomato-blog.jpg) A frontend for the CMS Builder to build blogs and personal websites. - [Filament Blog Template](https://www.github.com/tomatophp/filament-blog) ## Support, docs and credits ### Support You can join our Discord server to get support: [TomatoPHP](https://discord.gg/Xqmt35Uh) ### Docs You can check the docs for all packages on [docs.tomatophp.com](https://docs.tomatophp.com). ### Credits - Fady Mondy - Abdelmjid ### Changelog and license See the [CHANGELOG](https://github.com/tomatophp/awesome/blob/main/CHANGELOG.md) for what has changed recently. All packages are released under the MIT License; see the [License File](https://github.com/tomatophp/awesome/blob/main/LICENSE.md). ## Wrapping up That is the full TomatoPHP toolbox for FilamentPHP so far, and we are still adding to it. Pick the plugins you need, publish them as modules, and take your Filament apps to the next level with TomatoPHP. --- Source: https://fadymondy.com/en/blog/tomatophp-filament-plugins --- # CircleXO: An Open-Source Social Network in TomatoPHP > CircleXO was an open-source social network for businesses, built on TomatoPHP. See its features and how to install and run it locally in minutes. *2026-09-17T05:36:22Z* *Note: this post describes the 2024 open-source social network. The CircleXO name is now used for a business OS at [circlexo.com](https://circlexo.com).* It's Circles: an open-source social network built for businesses, with tons of apps. In this post I'll explain what CircleXO is, why you might want it, what it can do, and how to get it running on your own machine. ## What is CircleXO? CircleXO is an open-source social media platform built for businesses. ## Why use CircleXO? If you want to share your work, games and media with the world on a fully customisable, open-source platform, CircleXO is a must. ## How does CircleXO work? The platform is built in TomatoPHP, a full-stack Laravel framework designed to make development faster and easier. That means everything you see in CircleXO is regular Laravel code you can read, change and extend. ## Features - **Listing:** generate listings of your interests, skills and links easily. - **QR generator:** get a QR code you can use to send someone your profile or connect with them instantly, for quick networking. - **Social network:** be part of a vibrant community where you can interact, discuss matters and share updates. - **Open source:** it's built on an open-source platform, ensuring transparency and continuous improvement through community involvement. - **Messages:** use private messaging to communicate with people. - **Sponsoring:** get your projects, events or initiatives sponsored. ## Install it locally ### 1. Clone the repository ```bash git clone git@github.com:tomatophp/circlexo.git cd circlexo cp .env.example .env ``` ### 2. Configure the database Create a new database named `circlexo` and update your `.env` file: ```dotenv DB_DATABASE=circlexo DB_USERNAME=root DB_PASSWORD=12345678 ``` ### 3. Install dependencies and migrate ```bash composer install php artisan key:generate php artisan config:cache php artisan migrate ``` ### 4. Build the assets ```bash yarn yarn build ``` ## Create a new account You can create a new account using this [link](https://circlexo.com/auth/register). *This registration link belonged to the original social network; circlexo.com now hosts the business OS.* ## Join the open-source project CircleXO is built in the open, and contributions are welcome. You can join us on GitHub at [tomatophp/circlexo](https://github.com/tomatophp/circlexo). --- Source: https://fadymondy.com/en/blog/circlexo-open-source-social-network-built-in-tomatophp --- # TomatoPHP SaaS Demo > The TomatoPHP SaaS Demo is live: create your own SaaS app for free and explore every TomatoPHP feature and package before installing anything. *2026-09-17T05:36:22Z* It's finally here: welcome to the TomatoPHP SaaS Demo! If you have been following TomatoPHP, you know it as our open-source collection of Laravel packages for building admin panels and complete applications, from roles and CRM to wallets, CMS and e-commerce. Until now, trying those packages meant setting up a Laravel project and installing them one by one. The SaaS Demo changes that. ## What the demo gives you Now you have the opportunity to create your very own SaaS application for free. Instead of reading about each package, you can explore all the features and packages TomatoPHP has to offer in a running app of your own. That makes the demo the quickest way to: - See what the TomatoPHP packages actually do before you install anything - Explore the features across our package repository in one place - Decide which packages fit the project you have in mind ## How to start Start building your demo now at [tomatophp.com](https://tomatophp.com/). ## Found a bug? Tell us The demo covers a lot of packages, so if you run into any errors while exploring our package repository, please don't hesitate to report them. Every report helps us make the packages better for everyone who builds with them. ## Thank you Thank you for your continued support. Let's embark on this exciting journey together! --- Source: https://fadymondy.com/en/blog/tomatophp-saas-demo --- # Build an E-Commerce System in Seconds With TomatoPHP > Step by step, turn a fresh Laravel app into a full store with TomatoPHP: admin, roles, CRM, wallets, CMS, themes and a ready storefront. *2026-09-17T03:23:45Z* Hi, community. TomatoPHP is a cutting-edge, open-source set of Laravel packages built to streamline development in the VILT stack. The ecosystem uses Splade to generate modern, high-performance single-page applications (SPAs) from nothing but Blade files, and it makes the development experience both efficient and enjoyable. We keep growing the ecosystem by adding features to our plugins, and we have now built a complete e-commerce system out of them. In this article I will walk you through the whole implementation, step by step, so you can drop a robust e-commerce system into your own Laravel application. By the end you will have: - An admin dashboard with role management - A CRM for your customers, with its own authentication guard - Customer wallets and payments - A CMS and a theme system for the storefront - Products, orders, offers and branches, with a ready-made e-commerce theme on top _Note: this guide was written in early 2024 for the Laravel 10 era of TomatoPHP. Newer Laravel versions changed some of the files mentioned below (for example `RouteServiceProvider.php` and the `Authenticate` middleware), so adapt those steps if you are on a newer release._ ## Install Tomato Admin Everything starts from the tomato-admin plugin, installed on a fresh Laravel app. 1. Create a new Laravel app: ```bash composer create-project laravel/laravel tomato ``` > If you don't have an environment for Laravel yet, you can use this [doc](https://docs.tomatophp.com/get-started/environment-setup) to build one on your Ubuntu Linux. 2. `cd` into your project folder, set your database credentials in `.env`, and make sure the app is running and the database is connected. The easiest way to check is to run the migrations: ```bash php artisan migrate ``` 3. Install tomato-admin: ```bash composer require tomatophp/tomato-admin ``` 4. When Composer is done, run the auto-installer: ```bash php artisan tomato-admin:install ``` 5. If you are on macOS the installer can install the Yarn packages for you automatically. If not, just build your assets like this: ```bash yarn && yarn build ``` _Note: the original command read `yarn & yarn build`; a single `&` sends `yarn` to the background, so `&&` is used here and throughout this guide._ Now tomato-admin is installed on your Laravel project. ### Publish the Media Library migrations Our packages use media, so we need to publish the Spatie Media Library migrations: ```bash php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations" ``` If that command does not work, run the interactive version instead: ![The interactive vendor:publish prompt listing the publishable providers and tags](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5h8jkfafatf1nqtuh8ib.png) ```bash php artisan vendor:publish ``` Then type `media` in the search and select the migrations entry. After that, migrate: ```bash php artisan migrate ``` Check your browser now and you will see a homepage like this: ![The Laravel homepage after installing Tomato Admin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wrm0574dwbhwx43nvxgk.png) Finally, change the `HOME` const in `RouteServiceProvider.php` to `/admin`, so users are redirected to the admin panel after they authenticate. ## Install Tomato Roles No e-commerce system is complete without solid role management, so the next package is tomato-roles. 1. Require the package: ```bash composer require tomatophp/tomato-roles ``` 2. When Composer is done, run the installer: ```bash php artisan tomato-roles:install ``` 3. Open `app\Models\User.php` and add this trait to it: ```php use \Spatie\Permission\Traits\HasRoles; ``` Your dashboard is now ready. Log in at `/admin/login` with `admin@admin.com` and `password` as the password. ![The TomatoPHP admin dashboard after logging in](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3qg11z9vp04z3vc75pgg.png) > If you try to open any page and get redirected to `Two-factor Confirmation`, and you don't need it for now, you can turn it off by removing `implements MustVerifyEmail` from your `User.php` model. ## Install Tomato CRM An e-commerce system has to manage customer interactions, customer authentication and other key actions. tomato-crm handles all of that. 1. Require and install the package: ```bash composer require tomatophp/tomato-crm ``` ```bash php artisan tomato-crm:install ``` 2. Publish the `Accounts.php` model into your app so you can customize it: ```bash php artisan vendor:publish --tag="tomato-crm-model" ``` 3. Publish the tomato-crm config: ```bash php artisan vendor:publish --tag="tomato-crm-config" ``` 4. In the `tomato-crm.php` config, point the model to your app's copy: ```php "model" => \App\Models\Account::class, ``` ### Add an accounts guard Customers log in separately from admins, so we need a new guard. Add it to `config/auth.php` like this: ```php [ 'guard' => 'web', 'passwords' => 'users', ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'accounts' => [ 'driver' => 'session', 'provider' => 'accounts', ] ], /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | If you have multiple user tables or models you may configure multiple | sources which represent each model / table. These sources may then | be assigned to any extra authentication guards you have defined. | | Supported: "database", "eloquent" | */ 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], 'accounts' => [ 'driver' => 'eloquent', 'model' => App\Models\Account::class, ], ], /* |-------------------------------------------------------------------------- | Resetting Passwords |-------------------------------------------------------------------------- | | You may specify multiple password reset configurations if you have more | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | | The expiry time is the number of minutes that each reset token will be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | | The throttle setting is the number of seconds a user must wait before | generating more password reset tokens. This prevents the user from | quickly generating a very large amount of password reset tokens. | */ 'passwords' => [ 'users' => [ 'provider' => 'users', 'table' => 'password_reset_tokens', 'expire' => 60, 'throttle' => 60, ], ], /* |-------------------------------------------------------------------------- | Password Confirmation Timeout |-------------------------------------------------------------------------- | | Here you may define the amount of seconds before a password confirmation | times out and the user is prompted to re-enter their password via the | confirmation screen. By default, the timeout lasts for three hours. | */ 'password_timeout' => 10800, ]; ``` Then clear the config cache and rebuild your assets: ```bash php artisan config:clear ``` ```bash yarn && yarn build ``` Your CRM is ready. You can check it on your dashboard. ## Install Tomato Wallet To handle transactions between customers and vendors you need a solid payment handler. tomato-wallet manages customer wallets and handles payments too, and it ships with many integrated payment gateways. 1. Require and install it: ```bash composer require tomatophp/tomato-wallet ``` ```bash php artisan tomato-wallet:install ``` 2. Make your `Account.php` model implement the `Wallet` interface and use the `HasWallet` trait, so customer wallets work. Your Account model should look like this: ```php 'boolean', 'is_active' => 'boolean' ]; protected $dates = [ 'deleted_at', 'created_at', 'updated_at', 'otp_activated_at', 'last_login', ]; protected $appends = [ 'birthday', 'gender', 'more' ]; public function getMoreAttribute() { $metas = $this->accountsMetas()->get()->pluck('value', 'key')->toArray(); return $metas; } public function getBirthdayAttribute() { return $this->meta('birthday') ?: null; } public function getGenderAttribute() { return $this->meta('gender') ?: null; } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function accountsMetas() { return $this->hasMany('TomatoPHP\TomatoCrm\Models\AccountsMeta'); } /** * @param string $key * @param string|null $value * @return Model|string */ public function meta(string $key, string|null $value=null): Model|string|null { if($value){ return $this->accountsMetas()->updateOrCreate(['key' => $key], ['value' => $value]); } else { return $this->accountsMetas()->where('key', $key)->first()?->value; } } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function activities() { return $this->hasMany('TomatoPHP\TomatoCrm\Models\Activity'); } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function comments() { return $this->hasMany('TomatoPHP\TomatoCrm\Models\Comment'); } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function locations() { return $this->hasMany('TomatoPHP\TomatoCrm\Models\Location'); } public function groups(){ return $this->belongsToMany(Group::class, 'account_groups', 'account_id', 'group_id'); } } ``` Your wallet is now working. You can start any transaction and check the customer's balance. ## Install Tomato CMS Every working store needs a well-optimized front end. To improve SEO and add content such as posts and pages, we use tomato-cms: ```bash composer require tomatophp/tomato-cms ``` ```bash php artisan tomato-cms:install ``` ## Install Tomato Themes The storefront itself is built as a theme with tomato-themes. It makes multi-theme projects simple and uses a Hierarchical Model-View-Controller (HMVC) architecture. 1. Require and install the package, then rebuild your assets: ```bash composer require tomatophp/tomato-themes ``` ```bash php artisan tomato-themes:install ``` ```bash yarn && yarn build ``` 2. Make sure there is a `Themes` folder in your project root, and add the `Themes` namespace to the autoload section of your `composer.json`: ```json "autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "Themes\\": "Themes/" } }, ``` 3. Reload Composer's autoloader: ```bash composer dump-autoload ``` 4. Add the theme views to the `content` array in your `tailwind.config.js`, so Tailwind picks up their classes: ```js content: [ ... "./Themes/**/*.blade.php", "./Themes/**/**/*.blade.php", ], ``` Your theme system is ready: you can upload a theme or create a new one. ## Install Tomato E-Commerce With the foundations in place (CRM, role management and the supporting packages), it's time to bring them together with the e-commerce system itself. 1. Require and install it: ```bash composer require tomatophp/tomato-ecommerce ``` ```bash php artisan tomato-ecommerce:install ``` This package installs tomato-products, tomato-orders, tomato-offers and tomato-branches for you. 2. To make everything work, install tomato-branches: ```bash php artisan tomato-branches:install ``` 3. Create at least one `Shipping Vendor` from `/admin/shipping-vendors`. 4. Go to `/admin/settings/seo`, upload your logos and change the site name and SEO data. ## Install the e-commerce theme Now let's make the store and the CMS look good. Our theme has a simple, stylish design that is an ideal starting point for customization. 1. Go into your `Themes` folder: ```bash cd Themes ``` 2. Clone our theme: ```bash git clone git@github.com:tomatophp/Ecommerce.git ``` 3. Open `/themes` in your dashboard. The new theme is listed there, and you just activate it. > Please note that your main `routes/web.php` must not define a `/` route, because it can override the theme routes. 4. Rebuild your assets to fix the styles: ```bash yarn && yarn build ``` Check your home page now and you will get something like this: ![The storefront home page rendered by the TomatoPHP e-commerce theme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57tiy1f52bciut39u14q.png) You can pick any section from the dropdown at the top and add it to your page. ### Build the menus Build your menus from `/admin/menus` using these endpoints: - Home `/` - About `/about` - Shop `/shop` - Blog `/blog` - Contact `/contact` - Terms & Conditions `/terms` - Privacy `/privacy` You can create two menus, `main` and `footer`. The main menu shows up in your header automatically, and the footer menu in your footer. ### Redirect guests to the customer login Change the `Authenticate` middleware so unauthenticated visitors are redirected to the accounts login route: ```php expectsJson() ? null : route('accounts.login'); } } ``` ### Add the e-commerce traits to Account Finally, add these traits to your `Account.php` model: ```php use \TomatoPHP\TomatoEcommerce\Services\Traits\InteractsWithEcommerce; use \TomatoPHP\TomatoNotifications\Traits\InteractWithNotifications; use \TomatoPHP\TomatoOrders\Services\Traits\InteractsWithOrders; ``` ## Wrapping up With the full e-commerce system installed, you can start managing your catalog: add products, define categories to shape your offering, and create orders. The system is ready to handle transactions and run your online business. Thanks for using Tomato Plugins and the TomatoPHP framework. - Join the support server on [Discord](https://discord.gg/VZc8nBJ3ZU) - Read the [docs](https://docs.tomatophp.com) - If you like any repo, please give it a star on [TomatoPHP GitHub](https://github.com/tomatophp) - Sponsor us on [GitHub Sponsors](https://github.com/sponsors/fadymondy) --- Source: https://fadymondy.com/en/blog/build-e-commerce-system-in-seconds-with-tomatophp --- # Install Ubuntu Desktop on Any Ubuntu Server > Turn a cloud server into a remote dev machine: install the Ubuntu desktop, boot into the GUI, and connect from any RDP client through XRDP. *2026-09-17T03:23:45Z* Some developers want to use a cloud server as a personal computer, for fast development and remote use. It's a very good idea, but a cloud server ships without a desktop. How do you install an Ubuntu desktop on it? It's easy with a few commands. In this guide you will install the Ubuntu desktop on an Ubuntu server, make the server boot into the graphical interface, and then set up XRDP so you can control it from any RDP client. _Note: written in October 2023; package names and defaults may differ on newer Ubuntu releases._ ## Install the Ubuntu desktop 1. Start by installing tasksel: ```bash sudo apt install -y tasksel ``` 2. Now you are ready to install `ubuntu-desktop`: ```bash sudo apt install -y ubuntu-desktop ``` 3. Cloud servers don't have a display by default, so the system boots to a text-only target. Set the graphical target so the GUI comes up: ```bash sudo systemctl set-default graphical.target ``` And wow, it's working now. ## Install XRDP for remote control Having a desktop on the server is only useful if you can reach it. If you want remote control over RDP, follow these steps. The commands below change system files and the firewall, so run them as root or prefix them with `sudo`. 1. Install xrdp: ```bash sudo apt install xrdp -y ``` 2. Add the `xrdp` user to the `ssl-cert` group so xrdp can use SSL: ```bash usermod -a -G ssl-cert xrdp ``` 3. Add these lines to the xrdp session script so the desktop session starts cleanly: ```bash echo 'unset DBUS_SESSION_ADDRESS' >> /etc/xrdp/startwm.sh echo 'unset XDG_RUNTIME_DIR' >> /etc/xrdp/startwm.sh ``` _Note: the original post wrote `Unset` with a capital U; the shell command is lowercase `unset`, which is what is used here._ 4. xrdp is ready to connect. There is just one step left: allow port 3389, the RDP port, through the firewall: ```bash ufw allow from 192.168.1.0/24 to any port 3389 ufw reload ``` This rule only accepts connections from the `192.168.1.0/24` network. Replace it with the address range you will actually connect from. ## Connect Now you can connect to your remote server with any RDP client and use it like a personal computer. --- Source: https://fadymondy.com/en/blog/install-ubuntu-desktop-on-any-ubuntu-server --- # Install Laravel Valet+ on Ubuntu > Set up the local Laravel environment we use: Nginx, PHP 8.2, MySQL, Composer and Valet+ on Ubuntu, plus phpMyAdmin on a secure .test domain. *2026-09-17T03:23:45Z* To get our projects running, we recommend using the same environment we use ourselves: Ubuntu Linux with Laravel Valet+. This guide takes you from a fresh machine to a working local setup with Nginx, PHP 8.2, MySQL, Composer, Valet+ and phpMyAdmin served on a secure `.test` domain. _Note: this guide was written in October 2023 for PHP 8.2 and the `genesisweb/valet-linux-plus` package. Newer Ubuntu and PHP releases may need different package versions._ ## Pick your Linux: BackBox (recommended) I like to use [BackBox](https://www.backbox.org/download/) Linux because it comes with a lot of tools and supports our environment. 1. Download the ISO image from the BackBox link. 2. Write it to a USB stick using [Rufus](https://rufus.ie/en/). 3. Boot your computer from the USB stick and install it. ## Install the dependency packages Open your terminal and start by adding the Nginx and PHP repositories and updating the system: ```bash sudo add-apt-repository -y ppa:nginx/stable sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update ``` ```bash sudo apt-get upgrade ``` When it finishes, reboot your computer, then install the packages Valet+ depends on: ```bash sudo apt-get install network-manager libnss3-tools jq xsel ``` ## Install PHP and its extensions Install PHP-FPM first: ```bash sudo apt install php8.2-fpm ``` Then the CLI and the extensions a Laravel app needs: ```bash sudo apt install php8.2-cli php8.2-common php8.2-curl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-xml php8.2-zip php8.2-mysql php8.2-gd ``` ## Install MySQL Server 1. Install the server: ```bash sudo apt-get -y install mysql-server ``` 2. Run the secure installation script: ```bash sudo mysql_secure_installation ``` When it asks for the password validation level, choose `0`, then use any password, something like `12345678`. 3. When the installation is finished, open the MySQL console: ```bash sudo mysql ``` 4. In the MySQL console, set the root password so apps can log in with it, then reload the privileges and exit: ```sql mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '12345678'; ``` ```sql mysql> FLUSH PRIVILEGES; ``` ```sql mysql> exit; ``` ## Install Composer ```bash sudo apt install curl ``` ```bash curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer ``` ## Install Valet+ 1. Install the Valet+ package globally with Composer: ```bash composer global require genesisweb/valet-linux-plus ``` 2. Now you need to add Composer's global `bin` directory to your `PATH` so the `valet` command is found: ```bash PATH="$PATH:$HOME/.composer/vendor/bin" ``` Or, depending on where Composer keeps its global packages, use this one: ```bash PATH="$PATH:$HOME/.config/composer/vendor/bin" ``` 3. Now it's easy to install Valet: ```bash valet install ``` It will ask you for a password. Enter `12345678`, the MySQL password you set earlier. ## Install phpMyAdmin With Valet installed, let's set up phpMyAdmin and serve it on a `.test` domain. 1. Create a folder for your sites in your home directory `~`: ```bash cd ~ mkdir Sites cd Sites ``` 2. From inside `Sites`, park the directory so it becomes the home of your projects: ```bash valet park ``` Every project in this directory is now served automatically on a `.test` domain. 3. Download phpMyAdmin from [phpmyadmin.net](https://www.phpmyadmin.net/), unzip it inside the `Sites` directory and rename the folder to `PHPMyAdmin`. 4. Go inside the folder, copy the sample config and open it: ```bash cp config.sample.inc.php config.inc.php nano config.inc.php ``` _Note: the original post copied the file to `config.sample.php`, which phpMyAdmin does not read. phpMyAdmin loads `config.inc.php`, so that name is used here._ 5. Change the `blowfish_secret` line to: ```php $cfg['blowfish_secret'] = 'YK07LhNSe50vrj,HwBfb.l3gpbv;u8b7'; ``` 6. Press `CTRL + X`, answer `Y` to save, then use Valet to link phpMyAdmin, secure it with SSL, and open it: ```bash valet link valet secure valet open ``` phpMyAdmin is now running. Log in with `root` as the user and the MySQL password you created. ## Wrapping up You now have the environment we use for our projects: Nginx and PHP 8.2 managed by Valet+, MySQL with a root password your apps can use, Composer, and phpMyAdmin on a secure `.test` domain. Put any new project in `~/Sites` and Valet serves it straight away. --- Source: https://fadymondy.com/en/blog/install-laravel-valet-ubuntu --- # Pro Terminal for Pro Developers with Oh My Zsh > Upgrade your terminal with Zsh, Oh My Zsh, syntax highlighting, auto-suggestions and the Powerlevel10k theme, step by step on Ubuntu. *2026-09-17T03:23:45Z* As we like to make everything easier for our community, in this article I explain how to turn your default shell into a pro terminal. You will install Zsh and Oh My Zsh, add two plugins that highlight your commands and auto-complete them from your history, install the fonts that make the icons render, and finish with the Powerlevel10k theme. The commands below use `apt-get`, so they target Ubuntu and other Debian-based systems. ## 1. Install Zsh and Oh My Zsh We start by installing Zsh and Oh My Zsh to add their features to our terminal. The first line installs the tools the installer needs, the second installs Zsh itself, and the third runs the official Oh My Zsh install script: ```bash sudo apt-get -y install git curl wget sudo apt-get -y install zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ``` Zsh and Oh My Zsh are now installed. Next we add some plugins to make the terminal easier to use. ## 2. Install the plugins We add two plugins, `zsh-syntax-highlighting` and `zsh-autosuggestions`: - **zsh-syntax-highlighting** highlights the commands you type in the terminal as you type them. - **zsh-autosuggestions** remembers the commands you have written and auto-completes them for you. Clone both into the Oh My Zsh custom plugins folder: ```bash git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting echo "source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ``` ### Enable them in the config Cloning is not enough; you need to enable the plugins in the Oh My Zsh config. Open it: ```bash sudo nano ~/.zshrc ``` Search for the `plugins` line and change it to: ```bash plugins=( git zsh-syntax-highlighting zsh-autosuggestions ) ``` ## 3. Install the Powerline fonts For Oh My Zsh themes to show icons, you need a font that contains them. Install the Powerline fonts: ```bash sudo apt-get install fonts-powerline ``` You can also download the recommended fonts manually from the [Powerlevel10k font installation guide](https://github.com/romkatv/powerlevel10k#manual-font-installation). ## 4. Install the Powerlevel10k theme Now it is time to make your terminal look pro. 1. Clone the Powerlevel10k theme into the Oh My Zsh custom themes folder: ```bash git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k ``` 2. Open the Oh My Zsh config again: ```bash sudo nano ~/.zshrc ``` 3. Search for the `ZSH_THEME` line and change it to: ```bash ZSH_THEME="powerlevel10k/powerlevel10k" ``` 4. Close your terminal and open it again to restart Zsh, then start the configuration wizard: ```bash p10k configure ``` The wizard asks a few questions about how you want the prompt to look. Once you finish configuring it, you will see your new theme. ## Wrapping up That is the whole setup: Zsh with Oh My Zsh as the base, syntax highlighting and auto-suggestions to make typing commands faster, Powerline fonts for the icons, and Powerlevel10k for the look. If you want to change the style later, just run `p10k configure` again. --- Source: https://fadymondy.com/en/blog/pro-terminal-for-pro-developer-ohmyzsh --- # Generate a Flutter App from Your Tomato App > Turn your TomatoPHP CRUDs into a working Flutter app: install tomato-flutter, run one Artisan command, and wire it to your Laravel API. *2026-09-17T05:36:22Z* As we keep going to make everything easy, today we are releasing a very good package: it builds a Flutter app with just one command, generating a full CRUD from your schema and the files TomatoPHP already generated for you. In this post I cover the requirements, the installation, and every generator command, from a whole app down to a single CRUD, plus how to point the app at your API. ![A Flutter app generated from a TomatoPHP project running on a phone](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ys7vcysizytnwvt2w3a6.png) ## Requirements Before you start, make sure three things are in place. 1. **Flutter is installed and working.** Check it with: ```bash flutter doctor ``` 2. **A device is available.** You must have at least one emulator or device connected to your system. 3. **Two TomatoPHP packages run in your Laravel app:** [Tomato Admin](https://dev.to/3x1io/tomatophp-admin-crud-generator-257k) and [Tomato CRM](https://docs.tomatophp.com/plugins/tomato-crm). After installing Tomato CRM, make sure you add an `accounts` guard to your `auth.php` config, like this: ```php 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'accounts' => [ 'driver' => 'session', 'provider' => 'accounts', ], ], ... 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], 'accounts' => [ 'driver' => 'eloquent', 'model' => \TomatoPHP\TomatoCrm\Models\Account::class, ], ], ``` The `accounts` guard and provider tell Laravel to authenticate users of the mobile app against the Tomato CRM `Account` model, separately from your admin `users`. ## Installation Require the package: ```bash composer require tomatophp/tomato-flutter ``` Now you are ready to generate a new app. ## Generator commands ### Generate an app To generate a new app, run: ```bash php artisan tomato-flutter:generate ``` ### Generate a module To generate a new module, run: ```bash php artisan tomato-flutter:module ``` ### Generate a controller To generate a new controller, run: ```bash php artisan tomato-flutter:controller ``` ### Generate a service To generate a new service, run: ```bash php artisan tomato-flutter:service ``` ### Generate a CRUD To generate a new CRUD from any table among your TomatoPHP-generated CRUDs, run: ```bash php artisan tomato-flutter:crud ``` Please note that the generated files match only APIs generated by TomatoPHP, and you need to add the API routes to `api.php`: ```php Route::middleware(['auth:sanctum'])->name('api.')->group(function () { Route::get('customers', [\Modules\Customers\Http\Controllers\CustomerController::class, 'index'])->name('customers.index'); Route::post('customers', [\Modules\Customers\Http\Controllers\CustomerController::class, 'store'])->name('customers.store'); Route::get('customers/{model}', [\Modules\Customers\Http\Controllers\CustomerController::class, 'show'])->name('customers.show'); Route::post('customers/{model}', [\Modules\Customers\Http\Controllers\CustomerController::class, 'update'])->name('customers.update'); Route::delete('customers/{model}', [\Modules\Customers\Http\Controllers\CustomerController::class, 'destroy'])->name('customers.destroy'); }); ``` These routes expose the index, store, show, update and destroy actions of the generated controller behind Sanctum authentication, which is exactly what the generated Flutter screens call. ## Change the endpoint To make the app hit your own URL, change the endpoint in this file: ```text flutter/YOUR_APP/lib/config/Config.dart ``` If you are testing the app on the Android emulator, point the endpoint to `http://10.0.2.2:8000/api`, then run: ```bash php artisan serv ``` in your Laravel app. ## Wrapping up With Tomato Admin and Tomato CRM in place, one package and a handful of Artisan commands turn the CRUDs you already generated in Laravel into a working Flutter app, with its modules, controllers, services and screens wired to your TomatoPHP API. --- Source: https://fadymondy.com/en/blog/generate-a-flutter-app-from-your-tomato-app --- # Deploy a Laravel App Using GitHub Actions > Take a Laravel app live: set up CloudPanel on a VPS, secure it with Cloudflare, and let GitHub Actions test and deploy every push. *2026-09-17T03:23:45Z* Building a CI/CD pipeline for your app is one of the nicest things you can do once development is finished, or when you want a staging server to check your project on. In this guide I walk you through the whole path I use to take a Laravel app live: preparing a fresh VPS with CloudPanel, putting it behind Cloudflare, cloning the repository, and finally wiring up GitHub Actions so every push to `master` is tested and deployed automatically. Follow the steps in order and you will end up with an app that deploys itself. ## 1. Install CloudPanel ![CloudPanel dashboard on a fresh server](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%281%29.png) To start working on a new server you normally need to install a lot of packages, or use a Docker container. The easy way to start deploying a Laravel PHP app is to get a VPS from any provider, such as AWS EC2 or Hetzner Cloud. Once you have your VPS, **it must run Ubuntu 22.04**, and then you can follow along. _Note: this guide was written in 2023 for Ubuntu 22.04; check CloudPanel's docs for the currently supported releases._ ### What is CloudPanel? **CloudPanel** is a free and modern server control panel to configure and manage a server with an obsessive focus on simplicity. It runs **PHP**, **Node.js**, **static websites**, **reverse proxies** and **Python applications** in no time on a high-performance technology stack. It has quick-launch support for: - [Amazon Web Services](https://www.cloudpanel.io/docs/v2/getting-started/amazon-web-services/installation/ami/) - [Digital Ocean](https://www.cloudpanel.io/docs/v2/getting-started/digital-ocean/installation/marketplace/) - [Hetzner Cloud](https://www.cloudpanel.io/docs/v2/getting-started/hetzner-cloud/installation/installer/) - [Google Compute Engine](https://www.cloudpanel.io/docs/v2/getting-started/google-compute-engine/installation/installer/) - [Microsoft Azure](https://www.cloudpanel.io/docs/v2/getting-started/microsoft-azure/installation/installer/) - [Oracle Cloud](https://www.cloudpanel.io/docs/v2/getting-started/oracle-cloud/installation/installer/) - [Vultr](https://www.cloudpanel.io/docs/v2/getting-started/vultr/installation/marketplace/) - [Other](https://www.cloudpanel.io/docs/v2/getting-started/other/) ![CloudPanel supported cloud providers](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%282%29.png) ### Benefits - **Free** - **Easy to use** - **Community driven** - **Blazing fast page loads, up to 250x faster** - **Secure (free SSL/TLS certificates)** - **Cloudflare integration** - **High performance** - **Ready to go within 1 minute** - **Supports all major clouds** - **Support for x86 and ARM** ### Install it on the server 1. Log in to your server from your terminal over SSH. If you log in with a **password**, the command is: ```bash ssh root@yourIpAddress ``` If you log in with a **private key**, the command is: ```bash ssh -i path_to_your_private_key root@yourIpAddress ``` 2. You are now at the server root and the server is empty. Before installing the panel, update the system and add the packages the installer needs: ```bash apt update && apt -y upgrade && apt -y install curl wget sudo ``` 3. Now install CloudPanel. The installer script is downloaded, checked against its SHA-256 checksum, and only then executed: ```bash curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \ echo "3c30168958264ced81ca9b58dbc55b4d28585d9066b9da085f2b130ae91c50f6 install.sh" | \ sha256sum -c && sudo bash install.sh ``` ### Access CloudPanel **Security first:** access CloudPanel as fast as possible after installing it and create the admin user. There is a small time window in which bots can create that user before you do. If possible, open port **8443** only for your own IP in the **firewall**. You can now open CloudPanel in your browser at `https://yourIpAddress:8443`. Ignore the self-signed certificate warning: click **Advanced**, then **Proceed** to continue to CloudPanel. ![Browser warning for CloudPanel's self-signed certificate](https://www.cloudpanel.io/docs/v2/img/getting-started/ignore-self-signed-certificate.png) ## 2. Link Cloudflare ![Cloudflare dashboard](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%2818%29.png) I believe security and caching make any app better, so we secure the server by putting it behind Cloudflare's DNS reverse proxy and using its caching power. ### Create a Cloudflare account Creating a Cloudflare account is as easy as on any other website: go to the [sign-up page](https://dash.cloudflare.com/sign-up) and create a new account. ### Add your domain to Cloudflare ![Add a site button in the Cloudflare dashboard](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%2819%29.png) 1. On the Cloudflare dashboard, open the **Websites** tab and click the **Add a site** button on the right. 2. Enter your domain. Cloudflare gives you its nameservers. 3. Go to your domain provider and replace the nameservers with the Cloudflare ones. This can take up to 24 hours with some providers. I use Google Domains and it takes just 10 minutes. After that, your domain is active on Cloudflare. _Note: Google Domains has since been discontinued; the nameserver change works the same way with any registrar._ ### Connect a domain to CloudPanel 1. Open your domain in Cloudflare once it is active and go to the **DNS** tab. 2. Add a new `A` record pointing `cp.` to your server IP. **Make sure the proxy status is DNS only.** 3. In CloudPanel, open **Admin Area**, then **Settings**, and change the CloudPanel custom domain to `cp.YOUR_DOMAIN`. CloudPanel generates an SSL certificate automatically and links the domain, so from now on you can reach the panel on your own domain. ### Connect the project domain ![Add Site screen in CloudPanel](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%2820%29.png) 1. In CloudPanel, open the **Websites** tab, click **Add Site**, choose **Create a PHP Site**, fill in the details and click **Create**. CloudPanel adds an nginx template and PHP-FPM for your domain. 2. In Cloudflare, add a new DNS `A` record for the project domain pointing to your server. 3. Still in Cloudflare, open the **SSL/TLS** tab and create a new **Origin Server** certificate. It gives you a certificate valid for 15 years, for free. Copy it. 4. Back in CloudPanel, select your new site, open its **SSL/TLS** tab, click **Actions**, then **Import Certificate**, and paste the Cloudflare certificate. ![Importing the Cloudflare origin certificate in CloudPanel](https://github.com/tomatophp/docs/raw/master/.gitbook/assets/image%20%2821%29.png) Your domain is now linked and secured with SSL. Open it in the browser and make sure it works. ## 3. Clone the repository ### Give the server access to GitHub 1. Log in over SSH with the site user that CloudPanel created for the project: ```bash ssh youproject@yourIpAddress ``` Or, with a private key: ```bash ssh -i path_to_your_private_key root@yourIpAddress ``` 2. As that user, generate an SSH key to link the server with your GitHub project: ```bash ssh-keygen -t ed25519 -C "your_email@example.com" ``` You can just press Enter at every prompt. When it finishes it prints the path of the public key, ending in `.pub`. 3. Print the public key and copy its content: ```bash cat ~/.ssh/id_ed25519.pub ``` Here `~/.ssh/id_ed25519.pub` is the default path for an ed25519 key; use the path `ssh-keygen` printed if yours differs. 4. In your GitHub repo, open **Settings**, then **Deploy keys**, click **Add deploy key**, give it a name, paste the key and save it. ### Clone the project Your server now has access to the repo. Go to the project path, which looks like this: ```bash cd /home/yourproject/htdocs/yourproject.com ``` and clone the repo into the current directory (note the trailing `.`): ```bash git clone git@github.com:tomatophp/tomato.git . ``` ### Set up the .env file Copy the example environment file: ```bash cp .env.example .env ``` Create a new database from the **Databases** tab in CloudPanel, then add its details to `.env`: ```bash DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=tomato-kit DB_USERNAME=root DB_PASSWORD=your_password ``` Then change the main URL: ```bash APP_URL=https://yourproject.com APP_HOST=yourproject.com ``` ### Install Composer packages and clean the project Install the Composer packages: ```bash composer install ``` Then run your project commands. The important ones are: ```bash php artisan key:generate php artisan config:cache php artisan storage:link php artisan optimize:clear ``` ### Install NVM, npm and Yarn The app is now ready for its frontend assets, and for that you need npm. 1. Install [nvm](https://github.com/nvm-sh/nvm): ```bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash ``` 2. Reload the current shell environment: ```bash source ~/.bashrc ``` 3. Install the **Node.js** version you need, for example **18**: ```bash nvm install 18 ``` 4. Activate it: ```bash nvm use 18 ``` 5. Check the Node.js version: ```bash node -v ``` 6. Install Yarn globally: ```bash npm -g i yarn ``` 7. Build the assets: ```bash yarn && yarn build ``` _Note: nvm v0.39.2 and Node.js 18 were current in 2023; newer releases work the same way._ Your project is ready, and you can view it in the browser. ## 4. Create the GitHub Actions workflow The next step of the CI/CD is a workflow YAML file in the repo. In your project, create a `.github` folder, a `workflows` folder inside it, and a `ci.yaml` file inside that: ```bash mkdir .github cd .github mkdir workflows cd workflows touch ci.yaml ``` Add this workflow to `ci.yaml`: ```yaml name: Testing Laravel with MySQL on: pull_request: branches: - master push: branches: - master jobs: laravel: name: Laravel (PHP ${{ matrix.php-versions }}) runs-on: ubuntu-latest env: DB_DATABASE: laravel DB_USERNAME: root DB_PASSWORD: password BROADCAST_DRIVER: log CACHE_DRIVER: redis QUEUE_CONNECTION: redis SESSION_DRIVER: redis services: mysql: image: mysql:8.0 env: MYSQL_ALLOW_EMPTY_PASSWORD: false MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: laravel ports: - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 redis: image: redis ports: - 6379/tcp options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: fail-fast: false matrix: php-versions: ['8.2'] steps: - name: Checkout uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: sqlite, pdo_sqlite, pcntl, zip, intl, exif, mbstring, dom, fileinfo, mysql coverage: xdebug - name: Get composer cache directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer dependencies uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} # Use composer.json for key, if composer.lock is not committed. # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - name: Install Composer dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Prepare Laravel Application run: | php -r "file_exists('.env') || copy('.env.example', '.env');" php artisan key:generate - name: Clear Config run: php artisan config:clear - name: Run Migration run: php artisan migrate -v env: DB_PORT: ${{ job.services.mysql.ports['3306'] }} REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Test with phpunit run: vendor/bin/phpunit --coverage-text env: DB_PORT: ${{ job.services.mysql.ports['3306'] }} REDIS_PORT: ${{ job.services.redis.ports['6379'] }} - name: Install Yarn dependencies run: yarn - name: Compile assets run: yarn build - name: Deploy to server uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} port: ${{ secrets.SSH_PORT }} password: ${{ secrets.SSH_PASSWORD }} script: cd ${{ secrets.SSH_PATH }} && ./.scripts/deploy.sh ``` ### What the workflow does The workflow fires on every push or pull request to the `master` branch. It spins up MySQL and Redis services, installs PHP and the Composer dependencies, runs the migrations and the PHPUnit tests, and builds the assets. Only when all of that passes does the last step SSH into your server and run the deploy script. ### Add the server secrets The SSH step reads the server details from GitHub secrets. In your GitHub repo, open **Settings**, then **Secrets and variables**, then **Actions**, and add a new secret for each key. For example, `SSH_HOST` holds your server IP. You need all of these: ```bash SSH_HOST: 8.8.8.8 SSH_USERNAME: yourproject SSH_PORT: 22 SSH_PASSWORD: yourpassword SSH_PATH: /home/yourproject/htdocs/yourdomain.com ``` Then make sure `.env.example` matches the database the workflow creates, because the workflow copies it to `.env`: ```bash DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=password ``` _Note: `actions/cache@v3` was current when this was written; GitHub has since released newer major versions._ ## 5. Write the deploy script The deploy script is what runs on the server every time you push, so it should contain every command you want executed on each deployment. Create a `.scripts` folder with a `deploy.sh` file inside it, and give the file permission 755 so it can run: ```bash mkdir .scripts cd .scripts touch deploy.sh chmod 755 deploy.sh ``` Add this script to the file and customise it as you like: ```bash #!/bin/bash set -e echo "Deployment started ..." # Enter maintenance mode or return true # if already is in maintenance mode (php artisan down) || true # Pull the latest version of the app git reset --hard git pull origin master # Install composer dependencies composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader # Clear the old cache php artisan clear-compiled # Recreate cache php artisan optimize # Compile npm assets yarn yarn build # Run database migrations php artisan migrate --force # Exit maintenance mode php artisan up echo "Deployment finished!" ``` The script puts the app into maintenance mode, pulls the latest code, installs production dependencies, rebuilds the caches and assets, runs the migrations, and brings the app back up. Because of `set -e`, it stops at the first command that fails. ## Wrapping up Push all of these changes to your GitHub repo. Open the **Actions** tab and you will see the workflow run; once it finishes, the updates are live on your server. From now on, every push to `master` is tested first and deployed only if the tests pass, with CloudPanel managing the server and Cloudflare protecting and caching it. --- Source: https://fadymondy.com/en/blog/deploy-laravel-app-using-github-actions --- # Laravel TomatoPHP Admin & CRUD Generator > Meet TomatoPHP Admin: a Splade and Filament powered SPA dashboard for Laravel that generates a full CRUD from your migration in one command. *2026-09-17T03:23:45Z* Have you tried to build an SPA? As a full-stack developer, I think it is straightforward when you use a frontend technology on top of your backend. Now it is easy to do with Splade, a new package that supports building SPA apps with just Blade, and I think it will change a lot for the Laravel community. Because of this new tech, we on the TomatoPHP team built something unique with the FilamentPHP UI and Splade: a new dashboard and CRUD generator that makes your development faster and cleaner. In this post you will see what it offers, how to install it, and how to generate your first CRUD from a migration. _Note: this was written in early 2023 for the Splade-based `tomato-admin`; check the current TomatoPHP docs for the latest versions._ ## Demo You can check out the live demo [here](https://demo.tomatophp.com). ## Features - SPA app with Blade - CRUD generator for web and API - Supports HMVC architecture - Authentication and user manager - Responsive UI using the Filament template - RTL and dark mode support - Ready-to-use Breeze toolkit with RTL and dark mode support - Ready-to-use Arabic and English translations - Easy-to-use menu with a provider ## Install Watch the installation walkthrough on YouTube: [TomatoPHP admin installation video](https://youtu.be/MdJPtoFn2xc). 1. On a fresh Laravel project, require the admin panel: ```bash composer require tomatophp/tomato-admin ``` 2. Publish the assets and get the dashboard ready with the install command: ```bash php artisan tomato-admin:install ``` 3. Build your assets: ```bash yarn && yarn build ``` Your admin panel is now ready to use. ## Start your first CRUD The generator works from your database schema, so you build a CRUD after you make a migration for your table. Let's say you need a customers table. ### 1. Create the migration ```bash php artisan make:migration create_customers_table ``` ### 2. Define the table schema ```php id(); $table->string('name')->index(); $table->longText('bio')->nullable(); $table->string('email')->unique()->index(); $table->string('phone'); $table->text('address')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('customers'); } } ``` ### 3. Run the migration ```bash php artisan migrate ``` ### 4. Generate the CRUD Here is the Tomato step. Run: ```bash php artisan tomato:generate ``` It asks for the name of the table you created the migration for. If you like to use Laravel Modules, just answer `y` to the next question. ### 5. Register the menu Register the generated menu in your `config/tomato-admin` config. You will find the menu class in `App\Menus`. Then cache your config: ```bash php artisan config:cache ``` Boom, your CRUD is ready. ## What is next? Are we building just an empty admin panel? No, we built a lot of plugins on top of it. ![Tomato Roles plugin screen](https://github.com/tomatophp/tomato/blob/master/art/roles.png?raw=true) - Tomato Roles - Tomato Settings - Tomato Notifications - Tomato Forms - Tomato API - Tomato Artisan - Tomato Browser - Tomato Components - Tomato Logs - Tomato Dusk - Tomato Backup - Tomato Translations - Tomato Subscription These plugins make your app very easy to build, and we have a great support community behind them. You can find the full documentation of the package in the [TomatoPHP docs](https://docs.tomatophp.com). --- Source: https://fadymondy.com/en/blog/tomatophp-admin-crud-generator --- # What Is the Internet and How Does It Work? > The internet explained: how it differs from the web, a short history, how a request travels through DNS, packets and routers, and how to stay safe online. *2026-10-29T16:42:47Z* # What Is the Internet and How Does It Work? (It's Cables on the Sea Floor) *Originally published in Arabic on parmgy.com on June 26, 2019. Updated October 2026.* The internet is a worldwide network of networks: billions of devices connected by cables, radio links and satellites that agree to talk using common rules called protocols, mainly TCP/IP. About 6 billion people, roughly three-quarters of humanity, were online in 2025, according to the ITU. ## In 60 seconds (the video) 1. **Not a cloud: cables.** Submarine fiber-optic cables carry the overwhelming majority of intercontinental data. TeleGeography's 2026 map shows roughly 700 cable systems (in service and planned) and about 1,900 landing stations. 2. **1969, ARPANET.** The first message was sent on 29 October 1969 from UCLA to the Stanford Research Institute and crashed after two letters of "login", so it was literally "lo". The first network had four nodes: UCLA, SRI, UC Santa Barbara and the University of Utah. 3. **1 January 1983, one language.** ARPANET switched from its old protocol to TCP/IP, designed by Vint Cerf and Bob Kahn. It was ARPANET that switched, not every network on Earth, but the rest joined in the following years. 4. **The web is not the internet.** Tim Berners-Lee proposed the web at CERN in 1989, and it opened to the public in 1991. 5. **Today.** About 6 billion people are online (ITU, 2025), almost all of them reaching the rest of the world through cables on the sea floor. ## Internet vs. the web They are not the same thing. The **internet** is the infrastructure. The **World Wide Web** is one service that runs on top of it, alongside email, video calls, online games and app APIs. The web is made of pages linked together and served over HTTP. ## A short history - **1969:** ARPANET, funded by the US Department of Defense, connects its first computers at American universities and research sites. - **1971-72:** Ray Tomlinson sends the first network email. - **1983:** ARPANET switches to the TCP/IP protocol suite on January 1. Many historians treat this as the birth of the internet. - **1989-91:** Tim Berners-Lee at CERN proposes the web and builds the first browser, server and web pages. - **1990s:** commercial internet providers and graphical browsers bring the web to ordinary people. - **2007 onwards:** smartphones put the internet in your pocket. The old blog post gave the 2019 user count as about 4.3 billion. By 2025 the ITU estimate had grown to roughly 6 billion, with about 2.2 billion people still offline. ## How a request travels What happens when you open a website? 1. **DNS lookup:** you type `example.com`. Your device asks the Domain Name System, the internet's phone book, which returns an IP address, such as `203.0.113.7`. 2. **Connection:** your device opens a connection to that address, usually using TCP and TLS (the "S" in HTTPS) so the traffic is encrypted. 3. **Packets:** your request is cut into small **packets**. Each carries the destination address and a sequence number. 4. **Routing:** routers along the way read each packet's address and pass it one hop closer. Different packets may take different paths. 5. **Reassembly:** the server receives the packets, puts them back in order and sends the page back the same way. 6. **Rendering:** your browser draws the page. All of this usually takes a fraction of a second. If a packet is lost, TCP simply asks for it again. ## Who owns the internet? Nobody owns all of it. Internet service providers, telecom companies, cloud providers and governments each run parts. Standards bodies such as the IETF write the protocols, and ICANN coordinates domain names and IP address allocation. Most intercontinental traffic travels through undersea fiber-optic cables rather than satellites. ## Staying safe online - Use a password manager and unique passwords, with two-factor authentication. - Check that sites use HTTPS, and be careful with links in unexpected messages. - Keep your devices updated. - Be mindful of the personal data you share, and talk with children about safe use. Heavy use can also affect sleep, focus and wellbeing, so it is worth setting your own limits. ## FAQ **Who invented the internet?** Many people. Vint Cerf and Bob Kahn designed TCP/IP, and Tim Berners-Lee created the web. **What is the difference between an IP address and a domain name?** An IP address is the numeric address of a device. A domain name is a human-friendly name that DNS maps to it. **Is Wi-Fi the internet?** No. Wi-Fi is a way to connect your device to a local network. That network then connects to the internet through a provider. **How many people use the internet?** About 6 billion in 2025, according to the ITU, or roughly 74% of the world's population. ## Sources - Computer History Museum: the first ARPANET message, 29 October 1969. - Flag day (computing): ARPANET's NCP to TCP/IP transition, 1 January 1983. - CERN: the birth of the Web. - ITU, *Facts and Figures 2025*, press release of 17 November 2025. - TeleGeography, 2026 Submarine Cable Map. ## Next steps - [What is 5G?](https://fadymondy.com/en/blog/what-is-5g) - [History of computers](https://fadymondy.com/en/blog/history-of-computers) - [What is open source?](https://fadymondy.com/en/blog/what-is-open-source) --- Source: https://fadymondy.com/en/blog/what-is-the-internet --- # The World's Fastest Supercomputers: TOP500 in 2026 > The fastest supercomputers in the world on the June 2026 TOP500 list: LineShine, El Capitan, Frontier, Aurora and JUPITER, plus how ranking works and what they do. *2026-10-29T16:42:47Z* # The World's Fastest Supercomputers: TOP500 in 2026 *Originally published in Arabic on parmgy.com on June 18, 2019. Updated October 2026.* A supercomputer is a machine built from thousands of processors working in parallel to solve problems that would take an ordinary computer years: weather forecasting, drug discovery, nuclear simulation and AI training. The ranking everyone follows is the TOP500 list, published twice a year. ## In 60 seconds (the video) 1. **Which computer is the fastest right now?** The answer changed in June 2026. 2. **A new number one.** On the 67th TOP500 list (ISC Hamburg, 23 June 2026), **LineShine** at the National Supercomputing Centre in Shenzhen is first. It is the first Chinese number one since Sunway TaihuLight in **2017**. 3. **2.198 exaflops.** That is 2,198.4 petaflops on HPL, more than two quintillion operations every second, from 13,789,440 cores and no GPUs. 4. **The rest of the top five.** El Capitan (USA), Frontier (USA), Aurora (USA) and JUPITER Booster (Germany, Europe's first exascale system). 5. **What they do.** Weather, medicine, fusion energy, and AI training. The race for first place is now a race between countries, and the list refreshes every six months. ## How the ranking works TOP500 ranks systems by **Rmax**, the speed achieved on the High-Performance Linpack (HPL) benchmark, which solves a large dense system of linear equations. Speed is measured in **FLOPS** (floating-point operations per second). One **exaflop (EF)** is a billion billion (10^18) operations per second. HPL is a useful common yardstick, but it is not the whole story: real scientific and AI workloads stress memory, networking and software differently, and many powerful systems never submit a result. On the AI-oriented HPL-MxP test LineShine placed fourth, and experts quoted by Reuters note that being first on HPL does not make it the fastest for AI. ## The top 5 in June 2026 The 67th TOP500 list was announced on June 23, 2026 at ISC in Hamburg. | Rank | System | Location | Rmax | |---|---|---|---| | 1 | LineShine | National Supercomputing Centre, Shenzhen, China | 2.198 EF | | 2 | El Capitan | Lawrence Livermore National Laboratory, USA | 1.809 EF | | 3 | Frontier | Oak Ridge National Laboratory, USA | 1.353 EF | | 4 | Aurora | Argonne National Laboratory, USA | 1.012 EF | | 5 | JUPITER Booster | Forschungszentrum Julich, Germany | 1.000 EF | Highlights from the list: - **LineShine** is a new entry and the first Chinese number one since 2017. It uses custom 304-core CPUs and no GPU accelerators, and is reported to be the first CPU-only system above 2 EF, drawing about 42 MW. Because the details come from the list announcement and press coverage, treat the finer specifications with some caution. - **El Capitan** is an HPE Cray EX system with AMD EPYC processors and Instinct MI300A accelerators, used mainly for national security simulation. - **JUPITER Booster** is Europe's flagship exascale system, built by Eviden with Nvidia Grace Hopper chips. - Five systems on the list now reach one exaflop or more, and HPE built six of the top ten. ## What the 2019 list looked like When this article first appeared in 2019, the top of the list was a different world. The leaders were IBM's **Summit** and **Sierra** in the US, China's **Sunway TaihuLight** and **Tianhe-2A**, and Switzerland's **Piz Daint**. Summit led at roughly 148 petaflops. Today's number one is more than ten times faster, and the entry ticket to the top five has moved from petaflops to exaflops. ## What supercomputers are used for - **Weather and climate:** higher-resolution forecasts and climate models. - **Medicine and biology:** protein folding, drug screening and genomics. - **Physics and engineering:** fusion research, aircraft and engine design, materials science. - **Artificial intelligence:** training large models, now a major driver of GPU-heavy designs. - **Security:** simulating nuclear stockpiles without testing. ## Why the energy bill matters A system like LineShine draws tens of megawatts, comparable to a small town. Power and cooling are now as important as raw speed, which is why the Green500 list ranks the same machines by efficiency. ## FAQ **What is the fastest supercomputer in the world?** On the June 2026 TOP500 list it is LineShine in Shenzhen, China, at 2.198 exaflops. **What does exascale mean?** A system that performs at least one exaflop, or 10^18 floating-point operations per second. **Is a supercomputer just a very fast PC?** No. It links thousands of nodes with a very fast network and software designed to split one problem across all of them. **When is the next TOP500 list?** The list is published twice a year, in June at ISC and in November at the SC conference. ## Sources - TOP500, June 2026 list and highlights (top500.org). - DatacenterDynamics, *LineShine all-CPU Chinese supercomputer named world's most powerful*. ## Next steps - [History of computers](https://fadymondy.com/en/blog/history-of-computers) - [What is an algorithm?](https://fadymondy.com/en/blog/what-is-an-algorithm) - [What is DNA computing?](https://fadymondy.com/en/blog/what-is-dna-computing) --- Source: https://fadymondy.com/en/blog/top-supercomputers --- # What Is a Front-End Developer? Role, Skills and Tools in 2026 > A front-end developer builds what users see and touch in the browser. Here is the role, the skills, and the tools you need in 2026. *2026-10-29T16:42:47Z* # What Is a Front-End Developer? Front-End vs Back-End in 2026 *Originally published in Arabic on parmgy.com on June 10, 2019. Updated October 2026.* A front-end developer builds everything users see and touch in a browser or app: layout, text, buttons, forms and animations. They turn designs into working, fast, accessible interfaces using HTML, CSS and JavaScript. ## Front-end vs back-end in 60 seconds: a website is a restaurant 1. **A website is a restaurant.** There is a dining room and there is a kitchen. Which one are you? 2. **The front-end is the dining room.** Everything you see and touch: buttons, colors and layout, built with HTML, CSS and JavaScript. 3. **The back-end is the kitchen.** The server, the database and the logic behind the curtain, written in languages like Python, Java or Go (and PHP, C#, Node.js and others). See [what is a back-end developer](https://fadymondy.com/en/blog/what-is-a-back-end-developer). 4. **The API is the waiter.** It carries the order between them: the front-end asks, the back-end prepares and replies, usually with JSON. 5. **Full-stack means both.** If you love both sides, start with the one that pulls you in and the rest will come step by step. ## What the front end does Open any website. The structure of the page, the colors and fonts, the menu that opens on a click, the form that tells you your password is too short: that is the front end. It runs in the user's browser and talks to the back end through APIs to load and save data. ## What a front-end developer does day to day - Turns designs (often from Figma) into code. - Makes pages **responsive**, so they work on phones, tablets and desktops. - Handles interaction: menus, forms, validation, animation and state. - Calls APIs and shows the results. - Makes pages load fast and feel smooth. - Makes sites **accessible** to people using keyboards, screen readers or zoom. - Tests across browsers and fixes bugs. - Works closely with designers and back-end developers. ## The core skills | Area | What to learn | |---|---| | HTML | Semantic structure: headings, lists, forms, landmarks | | CSS | Flexbox, Grid, responsive design, variables | | JavaScript | The language itself: functions, async code, DOM, modules | | TypeScript | Adds types to JavaScript; now standard in most teams | | A framework | React (often with Next.js), Vue (with Nuxt), Angular or Svelte | | Tools | Git, npm, a bundler such as Vite, browser DevTools | | Accessibility | Keyboard use, color contrast, ARIA, alt text | | Performance | Image optimization, lazy loading, Core Web Vitals | | Testing | Unit and end-to-end tests | The original post mentioned HTML5, CSS3 and JavaScript with a framework such as Vue.js. That core is the same today. What has changed is the amount of tooling around it, and the importance of TypeScript, performance and accessibility. ## Don't skip the basics Frameworks change every few years, but HTML, CSS and JavaScript remain the same. Learn them well before you jump into React or Vue. Many problems that look like framework issues are actually CSS or JavaScript issues. ## Front-end vs back-end The front end is what you see; the back end is the server, database and APIs behind it. Many developers learn both and become full-stack. Read the other side of the story here: [What is a back-end developer?](https://fadymondy.com/en/blog/what-is-a-back-end-developer) ## How to start 1. Build a static page in HTML and CSS. 2. Make it responsive. 3. Add interactivity with plain JavaScript. 4. Learn TypeScript and one framework. 5. Build 2 or 3 projects that call a real API, and publish them. ## FAQ ### What does a front-end developer do? They build the user-facing part of websites and apps, turning designs into responsive, accessible and fast interfaces. ### Is HTML a programming language? No. HTML is a markup language that describes the structure of a page. CSS styles it and JavaScript adds behavior. ### Should I learn React first? Learn HTML, CSS and JavaScript first. React will then be much easier to understand. ### Do front-end developers need design skills? You don't need to be a designer, but understanding spacing, typography and color helps you build interfaces that look right. ## Sources - MDN Web Docs, *Learn web development* (client-side vs server-side). ## Next steps - [What is a back-end developer?](https://fadymondy.com/en/blog/what-is-a-back-end-developer) - [What is the internet?](https://fadymondy.com/en/blog/what-is-the-internet) - [Top programming languages](https://fadymondy.com/en/blog/top-programming-languages) --- Source: https://fadymondy.com/en/blog/what-is-a-front-end-developer --- # What Is Null in Programming? > Null means no value. It is not zero or an empty string. Learn null vs undefined, SQL NULL, Hoare's billion-dollar mistake, and null safety. *2026-10-29T19:08:12Z* # What Is Null in Programming? The Billion-Dollar Mistake *Originally published in Arabic on parmgy.com on June 4, 2019. Updated October 2026.* Null is a special value that means "no value" or "points to nothing". It is not zero and it is not an empty string: it says that the variable intentionally holds nothing at all. ## In 60 seconds (the video) 1. **One programmer, one mistake.** By his own estimate, the null reference may have cost a billion dollars. 2. **1965.** British computer scientist Tony Hoare added it to ALGOL W, simply because it was easy to implement. 3. **2009.** At QCon London he called it his billion-dollar mistake: countless errors, vulnerabilities and crashes followed. 4. **null is not 0 and not "".** Zero is a number, an empty string is text, null means there is no value at all. 5. **The fix.** Kotlin, Dart and Rust make you handle it before the program runs. ## Null, zero, and empty are three different things | Value | Meaning | Example | |---|---|---| | `0` | A real number | Items in cart: 0 | | `""` | A real text, with no characters | A name field the user left blank | | `null` | Nothing is there | A middle name we never collected | The difference matters. An empty cart (0 items) is a known fact. A `null` age means "we don't know". If you treat them the same, an unknown age may be silently counted as 0 in an average. ## Where null shows up - **Placeholders.** A variable can reserve a spot until a real value is assigned later in the program. - **Missing results.** A search that finds nothing returns `null` (or `None`, `nil`, depending on the language). - **Databases.** A column can be `NULL` when the data is missing or not applicable. ```javascript let user = null; // intentionally empty let x; // JavaScript gives this undefined, not null console.log(user === null); // true ``` In JavaScript, `null` is something you assign on purpose, while `undefined` is what the language gives a variable you declared but never set. Other languages use different words: Python has `None`, Ruby and Lua have `nil`, and Perl has `undef`. ## The "billion-dollar mistake" Tony Hoare (1934–2026) introduced the null reference in 1965 while designing ALGOL W. In a 2009 talk at QCon London, *Null References: The Billion Dollar Mistake*, he said he could not resist the temptation to add it, "simply because it was so easy to implement", and that it had led to innumerable errors, vulnerabilities and system crashes which had probably caused a billion dollars of pain and damage in the last forty years. Note the wording: it is his own rough estimate, not an audited figure. Sir Tony Hoare died on 5 March 2026, aged 92. The classic symptom is the program crashing when it tries to use something that is actually `null`, such as a `NullPointerException` in Java. ## SQL has its own rules In SQL, `NULL` means unknown, and comparing anything to unknown gives unknown, not true: ```sql SELECT * FROM users WHERE age = NULL; -- returns nothing, always SELECT * FROM users WHERE age IS NULL; -- the correct check ``` ## Safer ways to handle null Modern tools make "can this be null?" part of the type system: - **Kotlin** separates `String` from `String?`. The compiler forces you to handle the nullable one. - **TypeScript** with `strictNullChecks` (included in `strict`) reports uses of a possibly-null value. It is opt-in, so it does not force you by default. - **Dart** has sound null safety (mandatory since Dart 3), with the same `?` idea. - **Java** added `Optional` in Java 8 to represent a value that may be absent. - **Rust** has no null at all. It uses `Option`. Whatever your language, the habit is the same: check before you use, and prefer designs where "no value" is explicit. ## FAQ ### Is null the same as zero? No. Zero is a number. Null means there is no value. ### What is the difference between null and undefined in JavaScript? `null` is assigned deliberately to mean "empty". `undefined` is the default for a variable that was declared but never given a value. ### Why does `WHERE column = NULL` return nothing in SQL? Because NULL means unknown, and a comparison with unknown is never true. Use `IS NULL` or `IS NOT NULL`. ### How do I avoid null errors? Check for null before using a value, give variables sensible defaults, and use languages and tools with null safety, such as Kotlin, TypeScript strict mode, or Dart. ## Sources - Tony Hoare, *Null References: The Billion Dollar Mistake*, QCon London 2009 (abstract and recording on InfoQ). - Computer History Museum, *In Memoriam: Sir Antony Hoare (1934–2026)*, and Merton College, Oxford, on his death on 5 March 2026. - Kotlin docs: Null safety. Dart docs: Null safety. Rust std docs: `Option`. ## Next steps - [What Is a Variable in Programming?](https://fadymondy.com/en/blog/what-is-a-variable) - [Hash vs. Array: What's the Difference?](https://fadymondy.com/en/blog/hash-vs-array) - [What Is Object-Oriented Programming?](https://fadymondy.com/en/blog/object-oriented-programming-oop) --- Source: https://fadymondy.com/en/blog/what-is-null --- # What Is an Algorithm? A Simple Explanation with Examples > An algorithm is a finite list of clear steps. Learn the idea through an airport example, see Python code, and meet al-Khwarizmi, whose name gave us the word. *2026-10-29T13:06:07Z* # What Is an Algorithm? A Simple Explanation with Examples *Originally published in Arabic on parmgy.com on May 6, 2019. Updated October 2026.* An algorithm is a finite, ordered list of clear steps that solves a problem or completes a task. A recipe is an algorithm, driving directions are an algorithm, and every computer program is built from algorithms. ## In the short video 1. **The hook:** the most famous word in programming is Arabic. 2. **A computer doesn't think by itself:** it needs every step, in order. 3. **Tea is an algorithm:** heat the water, add the tea, pour, stir. Four ordered steps that end in a result. 4. **The definition:** ordered, logical steps that solve a problem. 5. **The name:** from al-Khwarizmi (9th century), through the Latin «Algoritmi», to «algorithm»; his book *al-Jabr* gave us «algebra». ## Why the word "algorithm"? The word comes from the name of the 9th-century scholar **Muhammad ibn Musa al-Khwarizmi** (c. 780 to c. 850), whose name was Latinized as "Algoritmi". He came from **Khwarazm**, a region in Central Asia that is today part of Uzbekistan and Turkmenistan, and he worked in Baghdad at the **House of Wisdom** during the 9th century. His book on Hindu-Arabic numerals reached Europe in Latin translation in the 12th century and spread the decimal system there. The word "algebra" also comes from the title of another of his books, *al-Jabr*. Al-Khwarizmi did not invent "algorithms" as we use the word today. He described clear, step-by-step methods for calculation, and his name became the label for that kind of method. ## An everyday example: getting home from the airport Imagine a friend landing at the airport who needs to reach your home. There are several valid algorithms for the same problem: **Taxi algorithm** 1. Stop a taxi. 2. Get in. 3. Give the driver the address. **Bus algorithm** 1. Leave the arrivals hall. 2. Take bus 70. 3. Change to bus 14 on the main road. 4. Get off at Flowers Street. 5. Walk left and count two houses. Both reach the goal, but they differ in cost, time and number of steps. That is the heart of computer science: many algorithms can solve one problem, and we choose the one that fits. ## What makes a good algorithm? - **Clear:** every step is unambiguous. - **Finite:** it ends after a limited number of steps. - **Has input and output:** it takes something in and produces a result. - **Correct:** it gives the right answer for every valid input. - **Efficient:** it doesn't waste time or memory. ## An algorithm in code Here is a simple algorithm that finds the largest number in a list: ```python numbers = [4, 17, 9, 23, 8] largest = numbers[0] # 1. assume the first is the largest for n in numbers[1:]: # 2. look at each remaining number if n > largest: # 3. if it is bigger, largest = n # remember it instead print(largest) # 4. prints 23 ``` The same steps could be written in any language. The algorithm is the idea; the code is just one way to express it. ## Flowcharts and pseudocode Before writing code, many developers sketch the steps as a **flowchart** (boxes and arrows: start, process, decision, end) or as **pseudocode** (plain-language steps that look like code). Both help you check the logic before you commit to syntax. ## Algorithms in 2026 Search results, social media feeds, route planning and recommendations all run on algorithms. Machine learning models are also algorithms, though they learn their rules from data instead of following rules written by hand. To go deeper, look at searching, sorting and Big O notation, which measures how an algorithm's cost grows with its input. ## FAQ **What is the difference between an algorithm and a program?** An algorithm is the idea (the steps). A program is that idea written in a programming language so a computer can run it. **Who invented the algorithm?** No single person. The word honors al-Khwarizmi, but step-by-step methods are much older, such as Euclid's algorithm for the greatest common divisor. **Is AI an algorithm?** AI systems are built from algorithms, but a trained model's behavior comes from patterns learned from data, which is different from a short hand-written recipe. **Do I need math to learn algorithms?** Basic logic and arithmetic are enough to start. More advanced topics use more math. ## Sources - Encyclopaedia Britannica, «al-Khwarizmi»: https://www.britannica.com/biography/al-Khwarizmi - Wikipedia, «Algorithm — Etymology»: https://en.wikipedia.org/wiki/Algorithm - Image credits (video): 1983 Soviet stamp (public domain) and the al-Khwarizmi statue in Urgench (Adam Harangozó, CC BY-SA 4.0), Wikimedia Commons. --- Source: https://fadymondy.com/en/blog/what-is-an-algorithm