// blog · Guides
How to Let Users Build Features in Your SaaS With an AI Coding Agent
Game studios learned years ago that their players would build features if the tools allowed it. Counter-Strike began as a fan mod for Half-Life, and Defense of the Ancients began as a custom map for Warcraft III. Valve bought Counter-Strike and hired its two makers, and it later hired IceFrog, the developer behind Dota, so both player-made ideas ended up as products of their own.
A user of a notes app types “add a word counter” and, a short while later, opens a private link where the counter already works. In between, an AI asked a few short questions, the user confirmed a spec in plain words, and an AI coding agent built the change on a branch. The owner of the app reviews that pull request, merges it, and the counter switches on for that one user first.
To let users build features in your SaaS with an AI coding agent, five steps have to connect. The user describes the feature inside the app, an AI interview turns the request into a spec the user confirms, a coding agent builds that spec as an ordinary pull request, the requester tests the result on mock data, and a human merges it behind a feature flag. totalmod is an open-source kit that runs this loop in Next.js App Router apps, and every detail below comes from its repo and docs.
A search for this question in November 2026 returns three kinds of tools, and they put the user’s feature in very different places. The table compares them on who starts a feature, where it ends up, and who checks it before it touches real data.
| Approach | Examples | Who starts it | Where the feature lives | Check before real data |
|---|---|---|---|---|
| Embedded customization layer | Vendo (open source, Apache-2.0), Gigacatalyst (YC) | The end user | A separate sandboxed app on the product’s API, outside the host’s source code | Runtime guards, such as Vendo asking the user before tool calls and Gigacatalyst running each app in a sandbox under the host’s auth |
| Internal issue-to-PR agent | GitHub Copilot cloud agent, Expo’s Issue to PR workflow | A team member, through an issue, a label or a chat tool | A pull request in the app’s repo | The team reviews the pull request |
| User request to pull request loop | totalmod (AGPL-3.0 or a commercial license) | The end user, through an AI interview | A pull request in the app’s repo, behind a per-user flag | The requester tests on mock data, then the owner merges |
Compiled on 24 November 2026 from each project’s own pages.
Each approach fits a different job. Customization layers suit per-customer views, dashboards and automations that should stay outside the core product. Issue-to-PR agents suit teams that already triage work in GitHub, Linear or Slack. The user request loop suits small teams whose customers ask for real product features, where the best of those features may later ship to everyone.
That last group is where I worked for the past two years. At APE AI, where I was co-founder and CTO, every feature went through the same chain of interviews, specs, prioritization, builds, QA and release, and that chain became our real bottleneck. totalmod packages the techniques I used there to ship faster, and I wrote about why I built it in the launch post. A star on the totalmod repo is the simplest way to tell me this problem matters to your team.
The quickest way to see the loop is the hosted demo at demo.totalmod.dev. It is a small notes app in which the AI and build steps are simulated, so every request ends in the same word-count feature, and the notes sit in a shared demo database. The same app lives in the repo as examples/demo-notes, and a built example runs on mock data at preview.totalmod.dev.
A real setup takes three commands plus configuration. According to the quickstart, the app needs the App Router, React 19, Node 24 or later, a GitHub repo, Vercel preview deployments and an Anthropic API key.
# adds the route, widget, config, flags, mock seed data and two GitHub workflows
npx totalmod init
npm install @totalmod/server @totalmod/widget @totalmod/flags
# run after the secrets, the webhook and the Vercel env vars are set
npx totalmod doctor
Between those commands, the quickstart has the owner return the signed-in user from getRequester, store requests in the app’s own database, render the TotalmodWidget once in the root layout, and seed an in-memory mock database for previews. The file totalmod.config.yaml holds the policy, which covers who can ask, spend budgets, allowed paths and the change-size cap. Once it runs, a user’s request becomes a totalmod:build issue, a draft pull request on a totalmod/req-<id> branch, a private preview link that lasts 24 hours and up to three fix rounds. After the merge, the labels totalmod:rollout-25, totalmod:ga and totalmod:off decide who gets the feature.
The question most developers ask next is whether it is safe to let users trigger a coding agent. totalmod answers it in code, as its safety model describes. The user’s raw words stay in the app’s database, and the agent sees only the spec the user confirmed. Deterministic checks before and after the model decline any spec that touches auth, billing, migrations, secrets or CI. The agent has no network or push access, and CI commits only after checking the changed paths. Preview deployments get no production credentials and no route to the database, and nothing reaches production data until a person merges.
Three more questions come up often. totalmod supports Next.js App Router apps today, so a team on another framework would need an adapter first. The build step runs an AI coding agent inside a GitHub Action and needs an Anthropic API key, while the interview can run on a local model through Ollama or LM Studio for testing. The end user also never touches the code, since every change arrives as a draft pull request that the owner reviews like any other.
The loop, the safety model and the demo app are on GitHub at sumanprime/totalmod under AGPL-3.0, with a commercial license for teams that need one. Founders who want their users to shape the product the way players shaped Counter-Strike can star the repo, and each star tells me where the next weeks of work should go.