Dang Vuong Binh

An AI-native engineering team: agents with roles, rules and review gates

I treat AI agents like new hires: each gets a role, written rules, narrow permissions and a reviewer, and a human merges. The model runs in the company's repositories and on my own platform, where it produced nine workspaces in fourteen days.

Period
Sep 2025 – present
Duration
13 months, ongoing
Role
Engineering Manager – Backend Lead
Organisation
Housenow JSC, and my own platform
Team
12 engineers, plus QA testers and data analysts

Results

Results of the AI-native engineering operating model case study
FigureMeasure
900+commits and 75+ merged pull requests on my own platform in its first 14 days7–20 Oct 2026: nine workspaces, about 142,000 lines of TypeScript, about 400 test files.
1 weekto build a B2B portal for an automaker's dealer network (263 files)Data model, staff portal, CRM and inventory, Jul–Aug 2026, after the team's agent setup.
Every PRgets an AI review with its ticket's contextSince Sep 2025: first on CarNow, then on HouseNow.

Context and constraints

Twelve engineers were shipping two marketplaces and many integrations. Review load, onboarding time and production risk grew faster than headcount.

Coding agents were already in use, one engineer at a time, each in their own way. I wanted the team to use them like any other engineering system: predictable, reviewable, and safe around production.

  • Agents must never touch production or secrets without an explicit, named instruction.
  • Output has to stay reviewable by people: small changes, linked tickets, passing checks.
  • Different models for different jobs, and no single-vendor lock-in.

My role and decision rights

I designed the operating model and wrote most of it: 17 of the 19 commits on the HouseNow agent instructions and 18 of 23 on its skills, the AI review workflows, the onboarding, the QA agent kit and the data-analyst onboarding.

Teammates built the internal AI gateway, the broker-facing assistant and the agent that reviews incoming listings inside this model; I hardened the listing reviewer's outcomes and limits.

Decision rights: I own the team's engineering process, its agent instructions and the review gates.

Architecture

How a change moves from request to mergeA request with a goal, scope and acceptance criteria goes to a lead agent, which plans the work and assigns roles. Worker, QA and infrastructure agents each work in an isolated worktree. Type checks, tests and builds run in CI, an advisory AI reviewer comments on the pull request, and a person reviews and merges. Releases reach production only through an explicitly named skill. Guardrails apply throughout: read-only by default, minimal-change mode, secrets never printed.Requestgoal, scope, acceptance criteriaLead agentplans the work, assigns rolesWorkerworktreeQAworktreeInfraworktreeCheckstype-check, tests, buildAI revieweradvisory; runs trusted codePerson reviews and mergesaccountable for every changeReleaseproduction only by named skillGuardrailsRead-onlyby defaultMinimal-changemode firstSecrets neverprintedProduction onlywhen its skillis namedDestructivedata changesneed separateapproval
Fig. 3 How a change moves from request to merge. Green marks one change's path; guardrails apply at every step.

Decisions

Route work through roles and skills, not one giant prompt

Generic agents re-learn the repository on every task and make the same mistake twice.

Options considered
OptionAssessment
Let each engineer prompt agents their own wayFast to start, and impossible to review.
One long instruction file for everythingGrows until nobody, human or model, reads it.
A short router that sends each task to a role and loads only the skills it needs (chosen)Procedures become versioned code.

AGENTS.md routes every task to a role (worker, PM, QA, data analyst); skills hold the repeatable procedures: release, tickets, production hotfix, QA, data analysis and multi-agent delivery.

Gained

  • Agents behave the same way for every engineer.
  • Procedures are reviewed and versioned like code.

Paid

  • Instructions need maintenance like any code; a stale skill misleads every agent that loads it.

Guardrails before autonomy

An agent that can deploy can also break production.

Options considered
OptionAssessment
Full autonomy, with logsFast until the first bad deploy.
No production access at allSafe, and hotfixes wait for a person to do every step.
Read-only by default; production steps unlock only when their skill is named (chosen)Speed with an explicit trigger.

The production hotfix workflow runs only when its skill is named and walks a fixed path: ticket, staging commit, release pull request, type-check gate, production verification. Destructive data changes need separate approval, and minimal-change mode is mandatory before any implementation.

Gained

  • Fast fixes without surprise deploys.
  • Every production change leaves the same trail.

Paid

  • More ceremony for small changes, and engineers must learn the trigger phrases.

AI review is advisory; people stay accountable

AI reviewers catch real bugs, and they also produce noise.

Options considered
OptionAssessment
Block merges on AI reviewNoise becomes a gate.
No AI reviewReviewers miss what a second reader would catch.
Advisory review in CI with the ticket's context and team-set priorities (chosen)Earlier feedback, human approval.

An AI reviewer comments on every pull request with the linked ticket injected and priorities set by the team: type safety, security, data correctness, performance, then developer experience. A person approves every merge. On my own platform the reviewer runs trusted main-branch code on a self-hosted runner and treats pull-request text as untrusted input.

Gained

  • Feedback arrives before a person opens the diff.
  • The reviewer runs code from main, never from the pull request it reviews.

Paid

  • Advisory comments can be ignored; the value depends on people reading them.

Outcomes

  • Day-one onboarding (Nov 2025): a new engineer installs the agent tooling and gets read-only access to the staging database through MCP before writing code.
  • Agents run bounded production work: incoming listings are reviewed under fail-closed rules with hashed evidence, versioned attempts and a daily concurrency cap.
  • Management runs on evidence: an LLM summarises each engineer's day for workload balance (advisory; activity is not productivity), and performance reviews use evidence packs instead of impressions.
  • My own platform is built the same way: an offline-first notes app with an MCP endpoint so agents can search and edit my notes; a messaging hub that archives my conversations for agents and sends only with my explicit approval; a board-game engine with AI rivals in a Web Worker; and my Cloudflare estate as code, with read-only preflight checks, plan gates, checksummed state backups and no destroy command. The private apps sit behind Cloudflare Access.

What I would do differently

Measure the baseline first. I can show what the agents produced, but not a clean before-and-after for review turnaround or escaped defects, because those numbers weren't captured before the rollout.

Stack

  • Codex
  • Claude Code
  • OpenCode
  • MCP
  • Qodo PR-Agent
  • Gemini
  • GLM
  • GitHub Actions
  • Linear
  • Cloudflare Workers, D1, R2, Access
  • Alchemy