Workflow
← Workflow

How to Build an AI Plan Checker with Claude Code

A local web app that reads a 23-sheet drawing set in about three minutes and returns a pass or fail submittal gate, plus every setback conflict, missing sheet, and coordination error the city would have kicked the package back for.

Member
Rolled and flat architectural drawing sheets beside a laptop showing a red NOT READY status and a list of plan review issues.

Every developer knows the loop. You submit plans to the city, wait a couple of weeks, and get them back over administrative errors: a callout pointing at a sheet nobody included, two dimensions that disagree, a discipline missing from the package. The set goes to the architect, then the engineer, then back into the queue. By the time the city actually reviews it again, six weeks are gone and you have been carrying the project the entire time.

So we built a line of defense that sits in front of the submittal. It is a local web application where you drag and drop a set of construction drawings and get back a categorized list of issues before the city ever sees them. We built it in Claude Code on the desktop app using Opus 4.8 with the 1 million token context window and effort set to high, then tested it on a schematic set for a 44-unit multifamily building at 8518 West Cashio Street in Los Angeles.

Have the model build the prompt first

We dictated the brief with Wispr Flow instead of typing it, described the kickback problem in plain language, and added one instruction: ask me questions before you write the prompt.

It asked five, and each one was a decision that would otherwise have been guessed:

  1. Which jurisdiction and which building code edition? Answer: City of Los Angeles, California Building Code, multifamily residential, reviewing architectural, structural, MEP, and civil.
  2. How aggressive should the checker be when it is unsure? Answer: high confidence findings only, at least to start.
  3. Do you have past correction letters from this city to learn the reviewer’s patterns from? Answer: none yet.
  4. What should the output look like? Answer: an issue table keyed to sheet numbers, markup coordinates per page, a categorized summary report, and a pass or fail submittal checklist.
  5. Which categories of issues matter most? Answer: all of them, administrative, coordination, constructability, and code compliance.

That first question is the load-bearing one. Jurisdiction plus code edition determines which code the tool cites, and a checker citing the wrong edition is worse than no checker. Every question you leave unanswered becomes an assumption baked into the tool, and assumptions are where hallucinations come from.

What Claude Code built

The architecture came back as a four-stage pipeline, and it is worth copying:

  1. Split. Each uploaded PDF is exploded into single-page PDFs, one per sheet.
  2. Per-sheet pass, run concurrently. Every sheet is classified by discipline, and the facts it asserts (dimensions, unit counts, level datums, callouts) are extracted.
  3. Submittal gate. The full set is evaluated against an LADBS R-2 intake checklist to answer one question: is this package even complete enough to submit.
  4. Cross-sheet coordination. The extracted facts from every sheet are reasoned over together, which is what catches dimensions that disagree between sheets and callouts pointing at sheets that are not in the set.

One rule was written into every prompt in the pipeline: never invent a code section. That single constraint is what separates a tool you trust from one that cries wolf on every page.

Where it broke, and the fix

Two course corrections, both one-liners.

The first pass misread the brief and started building something other than a web application. We said so directly, and it rebuilt.

Then it found an older plan review app already sitting in the codebase and started extending that instead. We told it to ignore the existing app entirely and build from scratch. It did.

There was also an API key moment worth repeating. The app needs an Anthropic API key, and when we offered to paste it into the chat, Claude declined and said to put it straight into the environment file instead, which is gitignored and never leaves the machine, because anything typed into a chat is stored in the conversation transcript and logs. That is the correct handling, and it is the default we would recommend for any key you give a locally built tool.

The test run

We dropped in a 23-sheet schematic design set, not a full set of construction documents, and it worked through the sheets one at a time. Total run time was roughly three minutes.

The submittal gate came back NOT READY, in red, with the reason: the package is missing entire disciplines required for an R-2 multifamily building permit. No structural sheets, no MEP sheets, and multiple plan callouts pointing to sheets that are not in the submittal.

Under that sat the issue list, sorted into critical, major, and minor, with a confirm or dismiss control on each finding. There were no criticals. The majors included:

  • The rear yard setback reads 15 feet on the plot plan and 10 feet on the site plan and every other sheet that shows it.
  • The zoning and building area diagrams omit units that are drawn on the architectural floor plans, producing a unit count that does not reconcile against the stated 44 units. It named units 101, 305, and 505.
  • Level 4 unit numbering contains duplicated tags.
  • A callout references sheet A400, which is not in the uploaded set.
  • Floor level elevation datums disagree between the long section and short section sheets at the third and fifth floors.
  • The accessible path of travel from Cashio Street to the primary entrance is not clearly delineated on the site plan.
  • The roof deck used as common open space appears to require perimeter guards, and no guard height detail is indicated. It flagged the 42 inch minimum and asked for the detail to be referenced on the plan.

Each finding came with the fix, not just the flag. The setback item said to reconcile the plot plan against the site plan. The unit count item said to reconcile the area diagrams with the floor plans so 101, 305, and 505 are consistently shown and counted.

What makes it reusable

The app is the reusable artifact, and the value compounds through what gets locked into it. The jurisdiction, the code edition, the occupancy type, the intake checklist, and the output schema are set once, and every set from then on runs through the same gate and comes back in the same reviewable format. The obvious next input is your own correction letters. Feed the tool the comments the city has actually sent you, and it starts checking for the things your reviewers actually catch.

It runs locally, so nothing leaves the machine and nobody else can reach it. Pointing it at a domain is what makes it a team tool.

Caveats

This was a first pass, and it looks like one. The interface is rough. The set we tested is schematic, not a full CD set, so the real test is still ahead. High confidence mode means it is deliberately missing things, which is the correct tradeoff at the start and a setting worth revisiting once you trust the output. It does not yet cite specific building code or zoning code sections, which is the single biggest upgrade available. Every finding still needs a human to confirm or dismiss it, which is why the confirm and dismiss controls exist. This is quality control in front of your architect and engineer, not a replacement for either of them, and certainly not a substitute for the city’s review.

Additional information

The exact prompt, the pipeline structure, and the full demo video are in the AI for CRE Collective.

Keep reading, free

Enter your email to keep reading.

Get this story and every article on the site. Join 10,000+ professionals reading PLOT Daily. Free.