All Posts
AI & Klaus

My Pipeline Was Asking the AI About Couches

The flip lab's appraisal step runs Haiku for triage, then Sonnet with web comps. Neither of those should see a free mattress. Fixing it took 39 lines of JavaScript and a JSON config.

1 min read

When I built the appraisal step for the flip lab, the part that decides whether a free Craigslist listing is worth picking up and reselling, I assumed the AI would handle the sorting. It’s good at judgment calls. That seemed like the right place for it.

Craigslist’s free section in the Seattle area has couches constantly. Theodore, the agent that runs the sweep, pulls those listings alongside everything else and passes candidates to triage. The triage call asks Claude Haiku whether the item is worth a full appraisal. Sometimes it says yes. Then the full appraisal fires. Sonnet, web comps, the economics formula from the config. For a free couch within a 30-minute drive.

That kept happening. Each one cost pennies of API-equivalent usage, covered by my flat-rate subscription, but every one was a full Sonnet appraisal spent confirming what the category already told me.

A free couch is usually free for a reason. Moving one takes a truck and a full afternoon, and the local resale market is saturated, so the economics rarely pencil out.

The fix was 39 lines of JavaScript and a JSON config. It runs before Theodore passes anything to triage. The title and the first 300 characters of the description get checked against a blocklist of mattress, couch, recliner, futon, and around thirty others. If anything matches, the listing is dropped before the first model call, so it stays fast. If it’s a free mattress, that’s usually enough to know.

Then there’s the allowlist. Soft furniture is a default no, but not for Restoration Hardware or Herman Miller. A listing that names a brand like those still goes on to appraisal. There are two lists. One blocks on the category. One passes on the brand. Both read the same window, so a brand name past character 300 counts for neither.

The question was never whether the AI could reason about soft furniture. It’s whether soft furniture should reach the AI at all.