Project · Since October 2026 · In progress

Better CCOA

An unofficial, better front end for Capital City Online Auctions, built for my phone.

  • Web
  • AI agents
  • Data
  • Automation
  1. The problem

    Capital City Online Auctions lists thousands of lots in long marketing titles, and nothing told me what one would likely sell for.

  2. How I used agentic coding

    Claude Code read the auction's public pages into a clean catalog, wrote the rules and AI steps, and fixed what live runs broke.

  3. The outcome

    Every live lot, searchable and refreshed about hourly: plain titles, a wish list that emails me, a likely final bid from past sales.

Demo lots, made up for this page.

The auction's listing

TORVANE 20V MAX BRUSHLESS CORDLESS 1/2 IN HAMMER DRILL DRIVER COMBO KIT WITH 2 BATTERIES, CHARGER AND BAG *** LIGHT SCRATCHES ON CASE *** 30 PC ACCESSORY SET - NEW!

  • A short title. A small AI model writes it.
  • Not new. The scratch note counts, whatever the title says.
  • Likely ~$44. Five sales of this same item put it there.

On my phone

How the likely bid is found

Sold before

$44

Likely final bid

This same item has sold five times before. It is the strongest guess, and the only kind a tile shows.

Similar sold

$36

Likely final bid

No sale of this exact item, but four similar ones have sold. A looser guess, so the sheet says to check they compare.

Category only

$22

Likely final bid

Too few like it have sold. This is what the category usually ends at as a share of retail, and the sheet calls it a rough guess.

Better CCOA is unofficial and not affiliated with Capital City Online Auctions. Every bid happens on the auction's own site.

3,621
lots in the first live runs
11
problems found live, each fixed

As of October 2026

Deep dive

Three charts, with sources

How it guesses the final bid

It trusts the same item's sales first, then similar items, then the category's usual share of retail.

  1. Same item sold beforeSame normalized title, or a shared model code and brandWarns: Guess from its sales; a tile needs 2 or more
  2. Similar items sold3+ sales at title similarity 0.55+, same category and brand, retail within 75% to 133%Warns: On the lot sheet only, labelled similar
  3. The category's share of retail, by bandSame condition and retail band, from 30+ salesWarns: On the lot sheet only, as a rough guess
  4. The whole category's share of retailSame condition, from 30+ salesWarns: On the lot sheet only, as a rough guess
  • Too little to go on: no guess
As a table
StepWhat happensWay out
1. Same item sold beforeSame normalized title, or a shared model code and brandGuess from its sales; a tile needs 2 or more
2. Similar items sold3+ sales at title similarity 0.55+, same category and brand, retail within 75% to 133%On the lot sheet only, labelled similar
3. The category's share of retail, by bandSame condition and retail band, from 30+ salesOn the lot sheet only, as a rough guess
4. The whole category's share of retailSame condition, from 30+ salesOn the lot sheet only, as a rough guess
EndsToo little to go on: no guess
  • Every tier matches condition, New with New, and counts only single items that sold. Final bids are hammer prices, before the buyer's premium and tax.

  • The category's share uses four retail bands, under $50, $50 to $150, $150 to $500, and $500 and up, each needing 30 or more sales.

  • Its ground rules say a wrong “sold for” is worse than none, so a tile shows a guess only from 2 or more sales of the same item.

As of October 27, 2026. Chart: betterccoa ccoa/guide.py at 8a66562, COMPS_SQL and estimate. Facts: betterccoa ccoa/guide.py, lines 9 and 10; db/migrations/0004_sold.sql, line 7; betterccoa ccoa/guide.py, lines 105 and 106; betterccoa CLAUDE.md, Ground rules; public/js/ui/tile.js, lines 13 and 14.

Three checks before a store price shows

Store prices are exact or absent: one failed check, and the item is recorded as not found, never guessed.

  1. A small model searches the webAt most 3 searches, with trackers, resale sites and forums blocked
  2. A price was foundMarked found, with a price from $1 to $50,000Stops: Not found
  3. A link we can stand behindhttps, and one the search returned, character for characterStops: Not found
  4. At a store, the same itemNo tracker, resale site or forum; the lot's brand, or a model code of 4+ charactersStops: Not found
  • Shown beside the auction's own retail claim
As a table
StepWhat happensWay out
1. A small model searches the webAt most 3 searches, with trackers, resale sites and forums blocked
2. A price was foundMarked found, with a price from $1 to $50,000Not found
3. A link we can stand behindhttps, and one the search returned, character for characterNot found
4. At a store, the same itemNo tracker, resale site or forum; the lot's brand, or a model code of 4+ charactersNot found
EndsShown beside the auction's own retail claim
  • The third check came after the first live run matched a brandless item to another maker's model and linked a price tracker.

  • A found price is kept 30 days; a miss is searched again after 7, since the same search can land differently.

  • When a store charges under 80% of the auction's claimed retail, the lot sheet says the auction's number looks high.

As of October 27, 2026. Chart: betterccoa ccoa/ai.py at 8a66562, search_price. Facts: betterccoa 8a66562, October 27, 2026; betterccoa ccoa/ai.py, lines 341 and 342; betterccoa public/js/estimate.js, line 40.

What the first live runs found

Going live surfaced 11 problems, from the auction's own data to the AI. Each one was fixed in code.

As a table
LayerWhat brokeThe fixCommit
DataA few auctions are listed twice, and the sales history run failed on the copySkip the second copy9afacd6
DatabaseThe first live connection to the database failed its certificate checkBundle the database host's root certificate, with every check kept on7ecf153
DatabaseA library released the day before broke every database connectionPin every package it runs on to releases at least two weeks oldf928262
DatabaseRequests at the same moment swapped each other's database statementsHold one database connection per client6dfb40a
HostingThe first deploy had no storage connected, and its health check crashedAnswer that no storage is connected, instead of crashinge3512b6
HostingThe host wouldn't let the automation create that storageKeep the catalog in the database instead67911ef
PagesBrowse, Saved, Wish list and every lot page answered not foundRewrite those addresses the way the host expects82d5655
Sign-inEvery visitor was sent to a sign-in page that hadn't been builtBuild the sign-in page, working without scripts2a67bab
Sign-inA new person typing their email got nothing: sign-up was invite onlyOpen sign-up with an emailed code and a first name9bd72a2
AIPrices from the database came in a form the AI check couldn't sendSend plain numbers; a bad batch now leaves only its own lots unchecked80857da
AIThe store price matched a lookalike and linked a price trackerSame brand or model, at a store, or not found8a66562
  • Seven of the eleven came from the world around the code, not its own logic: the auction's data, the database connection and the host.

  • The missing sign-in page slipped past the live checks: they posted the form straight to the server and never opened the page.

  • Some fixes changed the plan itself: the catalog went into the database instead of the host's storage, and sign-up opened to anyone with an emailed code.

As of October 27, 2026. Chart: Better CCOA's commit messages, October 26 and 27, 2026: each failure one reports from a deploy, the host, a run on the real site or a real visitor, with its fix, by layer. Facts: betterccoa 9afacd6, 7ecf153, f928262, 6dfb40a, e3512b6, 67911ef and 82d5655; betterccoa 2a67bab, October 26, 2026; betterccoa 67911ef and 9bd72a2.

Sources

Built with Python, JavaScript, Postgres, Serverless functions, Scheduled jobs. betterccoa ccoa/ai.py, the title prompt; db/migrations/0004_sold.sql, lines 1 to 7; betterccoa commits 5c7c526 to 8a66562, October 26 and 27, 2026; betterccoa README.md, lines 3 to 6 and 69 to 74; ccoa/alerts.py; betterccoa 5c7c526, October 26, 2026: two live budgeted runs; betterccoa 9afacd6, 7ecf153, f928262, 6dfb40a, e3512b6, 67911ef, 82d5655, 2a67bab, 9bd72a2, 80857da and 8a66562; betterccoa ccoa/guide.py at 8a66562, COMPS_SQL and estimate; betterccoa ccoa/guide.py, lines 9 and 10; db/migrations/0004_sold.sql, line 7; betterccoa ccoa/guide.py, lines 105 and 106; betterccoa CLAUDE.md, Ground rules; public/js/ui/tile.js, lines 13 and 14; betterccoa ccoa/ai.py at 8a66562, search_price; betterccoa 8a66562, October 27, 2026; betterccoa ccoa/ai.py, lines 341 and 342; betterccoa public/js/estimate.js, line 40; Better CCOA's commit messages, October 26 and 27, 2026: each failure one reports from a deploy, the host, a run on the real site or a real visitor, with its fix, by layer; betterccoa 9afacd6, 7ecf153, f928262, 6dfb40a, e3512b6, 67911ef and 82d5655; betterccoa 2a67bab, October 26, 2026; betterccoa 67911ef and 9bd72a2.

Where it fits

  • From Reviresco: Better CCOA keeps its catalog in my stock tracker's cloud project, and its sign-in page carries Reviresco Studio's name, type and colors.