DEV Community

Cover image for The $2,400 Auto Repair Estimate Nobody Can Read. I Built the Decoder That Doesn't Guess Prices.
Debashish Ghosal
Debashish Ghosal

Posted on AI-assisted

The $2,400 Auto Repair Estimate Nobody Can Read. I Built the Decoder That Doesn't Guess Prices.

The $2,400 Auto Repair Estimate Nobody Can Read. I Built the Decoder That Doesn't Guess Prices.

github.com/kitshelf/mechaniclens · v0.1.0 release · PyPI · the spine you paste

The estimate is $2,400, the shop expects a yes before you leave the counter, and the only line on the paper you can actually read is the total. I built something for the other lines.

MechanicLens v0.1.0 is a Markdown kit you paste into any AI chat. Paste the spine, paste the estimate, and you get every line in your own language with a fixed label attached: standard, check, or question this. It quotes each line back and hands you the questions to ask at the counter. It won't guess what the job should cost. It won't push you to approve anything. It's on PyPI now, MIT licensed, and the two hosted models that ran my full test gauntlet cost under three cents each.

Picture the moment. You're in a lobby at 8 AM holding a sheet of paper that quotes front brake pads, front rotors, a fluid flush, and 2.4 hours of labor. The paper says "shop supplies" at 6% of labor, and you don't know what that buys. The diagnostic fee says it folds into the repair if you approve, and you don't know what that means for the total. The shop bills labor at book time, not actual time, and nobody explained the difference. The parts column omits the tier entirely. You sign, because the alternative is walking out without your car. Most people find out what they paid for after they paid for it.

The same paper shows up on a contractor's bid for your house. A "per square" line. An allowance for permits that nobody listed, and a disposal fee that appears on the invoice but never on the quote. Different trade, same position for the person holding the paper.

Before the details of what the kit does, here's what building it taught me, because the testing is where the real work happened.

What building this taught me

This is the part I would point any builder at, so it gets the most words.

I wrote the 15 fixtures and their answer keys before any model ran. Most are pattern fixtures that exercise the 32-pattern library. A few are near-misses: clean documents built with nothing wrong, there to catch over-flagging. One is an injection document, and the remaining pair tests behavior: the redaction gate and out-of-scope refusals. The fixtures · the manifest · the pattern-to-fixture map.

Then I ran them. These are the scores from the two models still in scope, recorded run by run and verifiable with the checked-in validator:

Model Labels correct Perfect fixtures Cost for 15
Claude Haiku 5.5 73/92 (79%) 5 $0.029
GPT-6 Luna 74/92 (80%) 6 $0.016

Every raw response, exact input, and cost figure sits under tests/results, and both per-model validation records are public, Haiku's record and Luna's record.

Those numbers come after the fixes. Before them, the same gauntlet produced three failures I read as model defects.

My kit was telling the models to break my own charter. The charter says the user decides everything, and that the kit hands over questions and stops. My spine's fifth pass said, in those words, "give the user an approve / decline / second-opinion rubric." Every model did exactly that. Fifteen of fifteen local runs ended with "Approve only if…" and the repo records all 15 pre-fix runs. The charter forbade the behavior and the instruction I wrote required it. I called that a model problem for three runs. (L37, the kit-level finding.)

Vendors failed identically. A local model, hosted GLM Flash, hosted Claude Haiku, each a different size from a different provider. Each issued verdicts, lost the scope mismatch between prose and labels, and invented the same two objections ("OEM not stated, "taxable base not named") on lines the key marked Standard. When two independent things fail the same way, the failure is in what they share. They shared my spine. (L35, L36, L38, with the scope-mismatch fixture as the shared evidence.)

The prose-to-label bridge was structural, not a reading problem. On the scope-mismatch fixture, every model wrote the right sentence in the Scope check section and then labeled the mismatched lines for a different reason. Haiku wrote "Every quoted line is front brake work" and then marked the labor Check for "book time not stated." That run, verbatim. It had the finding. The template never said the labels must inherit the scope judgment, so the model treated the two sections as unrelated tasks. One instruction, now pass 3 of the spine, fixed it on both models. (L36.)

A redaction gate that says "ask" isn't a gate. My first version said the kit prompts the user to redact. Models decoded the unredacted paste anyway, including a document with a name, a street address, a mobile number, a VIN, and a plate. The fixture that catches it. I rewrote it as a stop: refuse, state which identifier types appeared, ask for a redacted re-paste, decode nothing until it arrives. The gate as it now reads. Both models now refuse cleanly, recorded. The distance between "ask" and "stop" turned out to be the whole privacy boundary. (L30, L41, L43.)

A reasoning model spent its entire token budget thinking and didn't produce an answer. One local model returned nothing at all: 2,400 reasoning tokens, zero answer tokens, finish_reason: length. My runner crashed on the missing key. The model was fine. My budget was too small for reasoning plus answer. I raised it to 32,000, read the field defensively (the fix, in the runner), and the same model then scored 6/6 on fixture 01. (L34.)

My own validator lied to me three times. It parsed three different table formats as zero labels, and each time it reported a total failure on a run that had produced labels. I published a Luna score of 39/92 before I found the parser bug. The real number was 74/92. The corrected count, from Luna's validation record. A parser that finds zero labels on a run with a non-empty summary line is reporting its own bug, and the validator now flags that case by name. (L42, L45.)

Local models aren't a usable path yet, and I said so in the repo. The local instruct model took about 21 seconds per fixture and labeled weakly. The reasoning variant couldn't finish an answer inside a usable budget. I dropped both from the released path and wrote the finding into the local-model guidance rather than quietly leaving it out. Local is the privacy path. It isn't the practical path today, and a demo that claims otherwise collapses the first time a real person tries it. (L25 through L33, the 4 B baseline with all 15 pre-fix runs.)

What this is, and what it isn't

It's a decoder for the paper in your hand. The estimate uses a language nobody taught you, and the kit translates it. Every line mapped, labeled, and quoted back, plus the questions to ask at the counter. It runs in any chat and doesn't store anything.

It isn't a price guide, a diagnosis, a shop review, or a negotiation coach. It won't tell you what the job should cost, because the paper omits the facts a price needs. Your region's labor rate isn't on the paper. The parts tier isn't on the paper. The book time isn't on the paper. Guessing them would put a made-up number in your mouth at the counter. It also won't grade the shop's character or suggest the repair you need. The charter lists the refusals with the reasoning for each, and it overrides every other file in the repo.

The market, in one paragraph

Before building I mapped six products that do estimate analysis. FairRide AI, Quardo, QuoteChecker.ai, X-Raye Auto, Estimate Guardian, QuoteCheck. All real work, and all six tackle the same question: what should this cost? A question the paper itself can't support. A fairness score, a fair range, a savings estimate, a negotiation script. To produce any of those you need a labor rate for the region, plus a parts tier and book time for the vehicle. Those facts never appear on the estimate, so the price answer is always a guess wearing a number. MechanicLens answers the question the paper can: what does each line claim, and which lines should you raise first. The PRD has the full map.

What I built

The whole kit compiles into one Markdown file you paste, then you paste your estimate and a sentence about what the car is doing.

Inside v0.1.0:

  • 32 patterns across six families: fees, labor, parts, scope, documentation, and machine-directed text. Each one cites a source, a "verified as of" date, a good-answer guide, and a not-a-pattern-when line that states when not to fire it. The rubric.
  • 15 fixtures with answer keys, written before the runs. The fixtures and the manifest.
  • A runner and a validator, both checked in, so you can re-run the gauntlet and check my numbers yourself. The runner, the validator, how to run it.
  • Worked examples: an estimate with a planted pattern, and a clean estimate that must come back clean. The catch and the not-catch.
  • A corpus of 54 US and Canada datasets, 1,272,956 records, with a manifest and a checker that recomputes the totals rather than trusting a typed number. The corpus.

The corpus is why the kit reads US and Canada documents only. I vendored 70 datasets initially and cut 16 of them. India's repair market runs on a different fee and tax vocabulary. Australia's labor conventions differ enough that the same line reads differently. A pattern library grounded in the wrong region labels the wrong things. The manifest lists each of the 16 removals, and the scope is plain: this kit reads North American documents.

The charter is the file to read if you read only one. It lists what the kit is and what it refuses, and it governs everything else in the repo. WHAT-THIS-IS.md. The ninety-second walkthrough is the user guide.

How it works

Two pastes. The spine, then the estimate.

The passes run in order. Map the anatomy. Check the quoted work against the symptom. Label every line. Write three to six questions. Close with the documentation habit. Compare estimate to invoice when you have both. Write the report.

The label set is small and fixed:

Label What it means
Standard The line is normal and the wording is clear. Not a price judgment, and not an approval.
Check The rubric's patterns fire, like a flat fee with no contents stated, maintenance presented as part of the job, or a duplicate charge of the same type.
Question this Raise this one first, whether it's a scope mismatch, an unauthorized addition, a duplicate, or a fee the estimate doesn't explain.

Here's a worked decode from fixture 01, fictional shop, fictional customer. The complaint is a rattle from the rear over bumps. The estimate quotes front brake pads, front rotors, a fluid flush, and the labor to install them:

Line Label Why
Front brake pads, ceramic Question this Quoted front-brake work doesn't match a rear-rattle complaint
Front brake rotors, pair Question this Same mismatch
Brake fluid flush Check Maintenance presented as part of the job, not tied to the complaint
Labor, 1.5 hr @ 145.00/hr Question this Labor for the mismatched work
Shop supplies, 12.50 Check Flat fee, contents not stated
Sales tax 7.25% Standard Stated rate, math correct

Then three questions, each with a guide to what a good answer sounds like. "What did your inspection find that ties the front brakes to a rattle from the rear?" opens the script. The report ends with the documentation habit and stops there. It won't ask you to approve, decline, or seek a second opinion.

Redaction runs before any of that. If the paste includes a name, an address, a mobile number, a VIN, a plate, or account digits, the kit stops. It states which types it saw, asks for a redacted re-paste, and never repeats a value back to you.

The before and after, from the user guide:

Before (the kit refuses) After (the kit decodes)
Customer, Marisol Delgado-Ruiz (stripped)
Address: 4412 Kestrel Lane, Austin, TX (stripped)
Mobile number 555-0134 (stripped)
VIN: 1SYNTHETICVIN0001 (stripped)
Plate: FIXTURE-1 (stripped)
Wren & Sons Auto Wren & Sons Auto (kept)
1 Rear brake pads 96.00 1 Rear brake pads 96.00 (kept)
2 Labor, 1.2 hr @ 140.00/hr 168.00 2 Labor, 1.2 hr @ 140.00/hr 168.00 (kept)

Remove your name, street address, mobile number, email, account or card digits, VIN, and plate. Keep the shop name, every line item with its amount, the hours and rate, the fees, and the total.

The conclusion

The kit was the problem, not the models. Models from three vendors failed the same three ways against the original kit. After five spine edits, the same models passed the canonical fixtures. The harness was never the problem. The architecture is right. The calibration is close. v0.1.0 is out as a beta.

The formal record behind that sentence, published with the release:

  • The field-test report: BLUF, per-fixture breakdown for both models, cost table, charter consistency check, accepted limitations, v0.2.0 deferrals.
  • The lessons, L25 through L45: 21 numbered findings, each grounded in a saved run or a file. L35 through L37 are the three kit-level failures. L38 is the cross-model conclusion. L39 is me calling it a model problem for three runs while the evidence said kit problem. L40 is the fix working. L41 through L43 are the two more kit gaps the full gauntlet surfaced. L44 is the honest state of the on-disk runs. L45 is six session process failures, mine, recorded the same way I record the model's.
  • The per-model validation records, from Haiku's 15 runs and Luna's 15 runs to the 4 B pre-fix baseline and the dropped z-ai record. Each one is deterministic output from a checked-in validator.

What's missing, on purpose

I'll be specific, because a roadmap that promises everything is a roadmap nobody believes.

Not in v0.1.0: invoices as their own document type. The after-repair branch compares an estimate to an invoice and it works, but a standalone invoice decode needs its own patterns and fixtures. Home-repair estimates wait the same way. The mechanic is the same and the trade vocabulary is different: per square, allowances for permits, disposal. The roadmap holds them until a real home bid shows up to ground the patterns. Maintenance-schedule decoding, the 30k/60k/90k menu read against what the owner's manual actually requires, is missing. Work orders and authorization forms are missing. Warranty and campaign flags are missing. A parts-tier table, OEM versus aftermarket versus rebuilt versus salvage, is missing.

Rough edges in what did release: label accuracy sits at 79 to 80 percent, and the misses cluster on the hardest patterns: fee stacking, opacity, and the "required versus recommended" framing. Both models still over-apply the parts-tier pattern on the after-repair branch. Luna's summary line sometimes disagrees with its own label table. None of those are structural, and the record lists all of them.

What comes next is in the roadmap. The invoice becomes its own type, then come the maintenance schedule, work order, warranty flag, and parts table. Each one lands when its own fixtures pass, not when the calendar says so.

One limit I can't test away. The kit is tested on synthetic fixtures, not on a real estimate in a real lobby. That half of the release bar is a human check.

Links

What's the line on an estimate you still don't understand? The shop supplies percentage, the diagnostic fee that folds into the repair, the labor hours that don't match what the shop told you. Paste it in the comments with the numbers and the shop name stripped, and I'll run it through the spine and show you how it reads, quotes included.

Top comments (2)

Collapse
 
userxnom profile image
Abdullah Naseer •

The part that stayed with me was the distance between "ask" and "stop" in the redaction gate — a prompt that tells the user to redact still lets the model read the unredacted paste, so the fix had to be a hard refusal. That's a useful lesson well beyond estimates.

One thing I'm curious about: label accuracy sits at 79-80% and the misses cluster on the hardest patterns like fee stacking. What happens on a real estimate when a line matches no pattern at all — does it fall back to Check, or does the kit say it doesn't know? And since the fixtures are all synthetic so far, what's the first real-world test you have in mind — your own next shop visit?

Collapse
 
debashish_ghosal profile image
Debashish Ghosal •

Spot on about the redaction gate, once un redacted text hits the model, you've already crossed the privacy line, so a hard stop before decoding is the only real boundary. On unmatched lines, we push for an explicit unknown/clarification rather than quietly guessing or forcing a Check, especially when fee-stacking ambiguity is high.

And for real-world testing beyond synthetic fixtures, the next step is running it against actual shop/contractor quotes (starting with my own next repair/service quote) to see where real phrasing breaks the 32 patterns.