Skip to main content
Back to Proof of Impact
04 / Case Study _01In Use

Three Codebases,
One Agent Team

Built for Fraq · Fractional Home Ownership · Live in Colombia

Fraq's ownership rules are dense: one wrong change corrupts balances without raising an error.

AI agents build and review all three codebases. I built the system that keeps them right, and nothing is committed before I approve it.

Nights a year per home, split across its co-owners
365
Co-owners on the platform
30+
Path-scoped rules across three repos
29
Commits before I approve
0

As of November 2026

Walkthrough

How a Change Ships

Scroll to step through
Ticket → Production
How my agents ship a change: ticket, Task Master, a Dev Manager agent per repo, reviewer agents, gates, my approval, deploy
00/ 07
The Pipeline
7
stations from ticket to production

Three Codebases,
One
Agent Team

Every Fraq codebase carries its own agent infrastructure: rules, reviewers, gates and hooks. Agents carry a change from ticket to production. I make one call.

  • CodebasesAPI, web dashboard and mobile app, each with its own agent setup
  • AgentsA dispatcher, a lead agent per repo and reviewers scoped to each repo
  • GuardrailsHard gates the agents can't talk their way past
Claude CodeSubagentsHooksCI/CDGitHub
Alignment

How the Codebases Stay Aligned

Three codebases share one contract: the API's GraphQL schema. When it changes, the other two change with it. Each repo has a lead session, and Task Master is the layer between them.

ONE CONTRACT · THREE LEAD SESSIONS · ONE APPROVALSCHEMALAYERTASK MASTERbetween the reposREPO 1APIowns the schemaREPO 2DASHBOARDits own rulesREPO 3MOBILE APPits own rulesHUMANMY APPROVALone, for the set122334
  1. The Contract Changes

    The API's lead changes the GraphQL schema. The generated types are the contract the other two codebases build against.

  2. Work Messages Go Out

    Task Master scopes what the change means for each consumer and sends its lead a work message: what changed, and what is expected back.

  3. Each Lead Loads Its Own Rules

    A lead works only in its own codebase, under that repo's own CLAUDE.md, rules and gates. It builds against the generated types and never reads the API's code.

  4. Results Return, One Approval

    Each lead answers with one result: what it changed, and the proof. I approve the set once.

Where It Runs

Task Master began as a dispatcher that wrote a task doc per repo. Today it is a layer of lead sessions that message each other, running in my own agent harness with Fraq's three codebases wired in.

The harness itselfAgent OrchestratorAgent Legion

Setup

The Agent Setup, Repo by Repo

The same parts go into every repo. What fills them is tuned to that codebase's stack and its risks.

API

Agents
A lead, a coder and deployment ops. Reviewers for conventions, data integrity and orchestration.
Skills
The shared set (docs, diagrams, design), plus email templates.
Path-Scoped Rules
7: tokens, ownership, reservations, revenue split, restrictions, emails, database.
Gates
Type check and lint when the agent stops. It can't finish until both are clean.
Blocked Commands
Force-push, hard reset, database push and reset, edits to environment files.
Commands
Hand a schema change to the dashboard or the mobile app. Update docs from staged changes.
Live QA
Scenario runs: agents act as owners, a property manager and an operator on a QA property.

Dashboard

Agents
A lead, a coder and deployment ops. Reviewers for code, components and API integration.
Skills
The shared set, plus browser automation.
Path-Scoped Rules
16: one per role and surface, plus GraphQL, data hooks and TypeScript.
Gates
Type check and lint when the agent stops. It can't finish until both are clean.
Blocked Commands
Force-push, hard reset, edits to environment files.
Commands
Spot-check the project to prime a session.
Live QA
Agents drive a real browser through each role's dashboard.

Mobile App

Agents
A lead and a coder. Reviewers for code, Compose UI, architecture, GraphQL and localization.
Skills
The shared set. Device automation comes from a plugin.
Path-Scoped Rules
6: booking rules, screens, presenters, repositories, GraphQL, version sync.
Gates
Compile with warnings as errors, plus static analysis, before any commit.
Blocked Commands
Any commit that fails the gate.
Commands
Cut a release. Record what a session learned.
Live QA
Agents boot an emulator, tap through the app and read the screens.

One Rule File, as an Agent Sees It

From the API, trimmed. It loads only when an agent touches a file that matches its paths, and every rule cites the function that enforces it.

.claude/rules/tokens.md
---paths:  - "src/**/token*"---# Token Economy Business Rules ## Core Invariants 1. 365 tokens per property per year. The sum of allocations equals the sum of ownership percentages. (tokenService.ts:create3YearWallets())2. Balance = sum(transactions) from zero. Stored wallet values are a cache; the transaction sum is the source of truth. (tokenCalculations.ts:calculateLifestyleBalance())…5. Transactions are immutable. Insert only, no update or delete.

Live QA Is a Scenario Run

An orchestrator reads a scenario, snapshots a QA property and spawns one agent per actor: owners, a property manager, an operator. Each acts through the API as that user. At the end, the orchestrator checks balances and bookings against what the rules say they should be.

The Hard Parts

What the Agents Must Not Break

Fraq's rules are exact arithmetic over shared ownership. Each one fails quietly when it is wrong, so each one is written down where an agent will meet it.

01

Token Wallet Proration

The Rule
Each home has 365 tokens a year, one per night, allocated by ownership share. An owner who joins mid-year gets only the nights that remain, counted in the property's time zone.
How It Breaks
Give a mid-year owner a full year and the home has more nights on paper than on the calendar. Nothing errors.
What Stops the Agent
The token rule file loads on any token file, with the formula and a worked example. A data-integrity reviewer rechecks the math.
02

The 100% Ownership Rule

The Rule
Stakes in a home always sum to 100%, within 0.01%. Unsold inventory sits with a system owner, so a sale is carved out of that stake, never added on top.
How It Breaks
A stake added on top mints nights that don't exist, and every owner's allocation is off.
What Stops the Agent
The ownership rule file names the function that validates the total. Ownership tests check that wallets and roles exist after every change.
03

Revenue Split Frozen at Booking

The Rule
When a paying guest books, each owner's contribution is frozen into the booking. Every payment and refund uses that snapshot, whatever owners contribute later.
How It Breaks
Recompute the split from today's balances and income already earned moves between owners.
What Stops the Agent
The rule file marks the snapshot as never changing. Deductions and refunds go through row-locked database functions, and an orchestration reviewer checks the order of every step.
04

Time-Zone-Correct Periods

The Rule
Every date runs in the property's time zone: year boundaries, nights remaining, daily expiry.
How It Breaks
A UTC date shifts a year boundary by five hours, and a stay over New Year's draws from the wrong year's wallet.
What Stops the Agent
One date utility owns every boundary. The rules point agents to it by name, and the reviewer flags any date built by hand.

What Broke and Was Fixed

What Broke
A wallet read zero while it held a balance. The API summed raw transaction rows, and the database capped how many rows a query returned.
The Fix
One aggregation in Postgres now returns a row per wallet, so the result grows with the number of wallets, never with the length of the history. The deploy order is written into the migration.

The same data feeds a reporting server for the finance team. It cannot write: every outbound request is parsed, and only queries pass. More MCP Work

Results

What Runs Today

42%

At least 42% of commits across the three repos are co-authored by Claude: 149 of 352, as of 2026-11-22.

v2

Version 2 of the platform is in production: the API, the web dashboard and the owner app on iOS and Android.

3

Three people query live production data through the read-only reporting server, each under their own sign-in.

7

Live in Colombia. Built for seven currencies.

For Your Team

Plug In Your Codebase

None of this is specific to Fraq. It is five things I add to a repo and three I tune to it.

What I Set Up

  1. A MapA CLAUDE.md at the root and in each layer: what lives where, and what never to do.
  2. Path-Scoped RulesYour business rules, each loading only for the files it governs and citing the function that enforces it.
  3. Gates as HooksType check, lint and tests wired in as code the agent has no way around.
  4. A Lead and Its ReviewersOne agent that plans and coordinates, a coder, and read-only reviewers.
  5. One Command RunnerEvery task behind one recipe, so agents and people run the same commands.

What I Tune

  1. The ReviewersChosen for where your codebase breaks: money, state, UI, localization.
  2. The GatesWhatever your stack already trusts. Here it is tsc and ESLint on TypeScript, detekt on Kotlin.
  3. The Ticket SourceClickUp here. Jira, Linear or GitHub Issues work the same way.
Contact

Need something like this built?

Currently accepting 1-2 new engagements

Let's talk on LinkedIn
ReferenceTechnical StackShow
Layer
Technology
Agents
Claude Code: subagents, path-scoped rules, hooks, skills, commands
Cross-Repo Layer
Task Master; lead sessions and work messages over herdr
Tickets
ClickUp
Task Runner
just
Reporting
Read-only MCP server (TypeScript, OAuth 2.1) and a Claude plugin
Mobile Language
Kotlin 2.0.20
Mobile Framework
Compose Multiplatform 1.6.11 (KMP)
Mobile Platforms
Android + iOS (shared codebase)
Mobile Backend
Supabase 3.0.1 (auth, database, storage)
Mobile Navigation
Voyager
Mobile DI
Koin
Mobile Networking
Ktor
Mobile State
Molecule (Presenter pattern)
Web Framework
Next.js 14 (App Router)
Web Language
TypeScript
Web API
GraphQL (graphql-request client)
Web State
React Query (@tanstack/react-query)
Web UI
shadcn/ui + Tailwind CSS
Web Animation
Framer Motion
Web Forms
React Hook Form + Zod
Backend Runtime
Node.js + TypeScript (ES modules)
Backend API
GraphQL (Apollo Server v4)
Database
Supabase (PostgreSQL)
Auth
JWT validation via Supabase Auth
Testing
Vitest (integration), Postman