Skip to content
Maxwell CollinsContact

A records platform for property owners, rebuilt with an AI assistant

A free platform where property owners keep everything about their buildings, alongside portals for inspectors and service companies.

What it achieved

Rebuilt every feature of a ten-year-old owner platform, adding an AI assistant that schedules maintenance from owners' records.

The short version

Maxwell rebuilt every feature of a ten-year-old owner platform and added an AI assistant that answers from each owner's own records and schedules the maintenance, so property owners keep everything about their buildings in one free platform. He read the old code only to learn what each feature did, then built every feature new. Version 2 is the owner's platform: properties, assets with warranties and condition, recurring maintenance, tasks, inspections, documents, contacts, a calendar and reports. Its assistant shows its answers as it writes them and can look up a property or asset and create maintenance jobs and tasks. Version 3 brings the owner, inspection, field-service, property-management and super-admin portals onto one platform, with one sign-in, one database and one AI layer. There the assistant proposes actions in every portal and carries them out once the user confirms.

The problem

The legacy application had served owners for a decade, and each product in the family had its own database and login. Owners had their records but no help making sense of them.

In use

  1. An owner adds a property, its units, and every asset in it, such as the HVAC, water heater or roof, with warranties, condition and photos.
  2. They set maintenance to repeat on schedule. Tasks, inspections, contractor proposals, work orders, documents, contacts and the calendar all sit beside it.
  3. The owner asks the assistant, for example "is the water heater still under warranty?" or "remind me to change the furnace filter every three months". It answers from their own records and creates the job.
  4. In version 3, an inspector or service company works in its own portal on the same property record. The assistant drafts work orders, quotes, invoices and inspection findings from photos, and acts only after the user confirms.

What it achieved

  • Nothing owners relied on was lost: every feature of a 153,000-line legacy PHP application was rebuilt from scratch on a 75-model domain schema, with the legacy code used only as the feature specification.
  • Owners have an assistant that works from their own records. In version 2 it answers questions from each owner's own records and turns a request such as "remind me to change the furnace filter every three months" into a scheduled job.
  • Inspectors, service companies and property managers work on the owner's same record: version 3 brings five portals and a central dashboard onto one platform with one sign-in, with 354 legacy data models mapped and 256 features tracked so none goes missing.

The full record

On this page
In one sentence

Maxwell built the owner portal rebuilds, which reverse-engineered a 153,000-line legacy PHP property-management application into modern systems with a 75-model domain schema: version 2, a property owner's platform of 39 screens over 44 data tables in 26,282 lines of code with 310 test cases, added a streaming, tool-calling Claude assistant grounded in each owner's current property data, and version 3 is an AI-orchestrated rebuild across owner, inspection, field-service and super-admin portals that maps 354 legacy data models and tracks 256 features. He builds by directing AI agents, and he built this system that way.

legacy lines rebuilt
153,000
domain models
75
screens in v2
39
tests in v2
310

What it does

The owner portal is a free platform where property owners keep everything about their buildings in one place: the property itself, every asset in it, every maintenance job, document, contact, task and project, and every inspection and service report. The original was a ten-year-old PHP application. Maxwell treated the legacy code as the feature specification only, reading it to learn what every feature did, then rebuilt each one from scratch with modern design and AI where it helps.

Version 2: the owner's platform

Properties and assets

  • Properties with units, valuations over time, photos and the people attached to each.
  • Assets such as HVAC systems, water heaters, roofs and appliances, grouped by category, with custom fields an owner can define, condition, warranty expiry, valuations and photos.

Keeping the building running

  • Maintenance items with recurrence schedules, completions and the assets each job covers.
  • Tasks with assignments and comments, and projects that group related work.
  • Inspections and findings from inspectors, proposals from contractors and work orders with line items, all viewable from the property.

Records and people

  • Documents stored and organized by property.
  • Contacts in groups, with multiple phone numbers.
  • Calendar with calendar-service integrations.
  • Notifications with per-user preferences.
  • Reports across properties.

Accounts

  • Organizations and teams with roles, sign-in, subscription plans, subscriptions and payments, billing and notification settings, and an activity log of every change.

The AI assistant

Every owner has a Claude assistant in a chat sidebar on every dashboard page. Before each conversation it is given the owner's own properties, assets with their condition and warranty dates, upcoming maintenance and open tasks, so it answers from the owner's records: when the furnace was last serviced, whether the water heater is still under warranty, what to budget for a fifteen-year-old roof. It streams its answers and can act through four tools, looking up a property, looking up an asset, creating a maintenance item and creating a task, so "remind me to change the furnace filter every three months" becomes a scheduled job. Conversations and messages are stored per owner.

Version 2 spans 39 screens, 44 data tables, 26,282 lines of application code in 256 files and 310 test cases in 3,346 lines of tests.

Version 3: one platform, every portal

Version 3 rebuilds not one product but the whole family as one application over one database, one sign-in and one AI layer:

  • Owner portal: properties, assets, documents, maintenance and inspections.
  • Inspection portal: templates, field work, reports and invoicing for inspection companies.
  • Field-service portal: the full path from lead to quote to work order to invoice to payment.
  • Property-management portal: leasing, tenants, rent and accounting.
  • Super-admin portal: users, billing, configuration and analytics for the platform itself.
  • A central dashboard: one sign-in for every user, with cross-product metrics, a single notification feed, people and permission management, cross-product search and full AI conversations.

An AI layer that takes actions. The assistant does not stop at answering. It proposes actions across every portal (creating a work order, scheduling a technician, drafting a quote, sending an invoice, drafting inspection findings from photos using vision) and carries them out only after the user confirms, through the same procedures the interface uses, with every action logged. The AI has exactly the permissions of the user it serves.

The stack. Next.js 16 with a route group per portal, Better Auth with multiple organizations and roles, PostgreSQL through Drizzle with UUIDv7 identifiers and time-zone-aware timestamps, tRPC for every database access, a self-hosted real-time server, file storage with presigned links, Resend email, Claude tool use and vision, and Stripe with Connect for rent splits and marketplace fees. Packages for the API, auth and database are kept free of web-framework imports so native mobile apps can share them, every table carries a soft-delete timestamp for offline sync, and auth works over both cookies and bearer tokens.

The legacy map. Four legacy codebases are read for every feature: the owner product (47 models), the inspection product (65), the field-service product (186) and the admin product (56), 354 models in all. A reference set documents every legacy feature so no agent needs to read the PHP directly, a feature inventory tracks 256 features, and the roadmap lays out 6 phases and 60 sub-phases. This line of work grew into the six-product property software suite, which has its own page.

What it achieved

  • 153,000 lines of legacy PHP reverse-engineered into a 75-model domain schema.
  • Version 2: 39 screens, 44 tables, 26,282 lines of code and 310 test cases, with an AI assistant that works from each owner's own records and can schedule work.
  • Version 3: an AI-orchestrated rebuild of owner, inspection, field-service, property-management and super-admin portals on one platform, with 354 legacy models mapped and 256 features tracked.

The problem it solves

The legacy application had served property owners for a decade, and each product in the family kept its own database and login. Owners had their records but no help making sense of them. The rebuilds keep every feature the business depends on, replace the engineering underneath, and add an assistant that knows each owner's buildings and can act on them.

How he built it

Maxwell set one protocol for every feature: read the legacy code to learn what it does, decide how to make it better, write the tests first, build until they pass, then open the feature in a real browser through Playwright and click through it before committing. One feature at a time, and a failing test is fixed in the code, never deleted. pnpm gate runs before every commit: ESLint with security rules and limits of 300 lines per file and 80 lines per function, dependency-cruiser rules that stop the interface from touching the database and forbid circular imports and raw SQL, strict type checks, Vitest and Playwright. For version 3 he added a specification pipeline, specify, plan, tasks and implement, in which every legacy feature must be given a home in the new system before work begins, and a constitution of non-negotiable technical principles that every agent reads at the start of a session. He directed AI agents through all of it.