A browser extension that shows what each prompt costs in Lovable, Bolt.new, v0, Replit and Emergent, and warns you when you are stuck in a fix loop.
Tare (npx tarelab) reads the local logs of coding agents. Browser app builders keep their credits in the
browser, so Tare can't see them. This extension reads the credits each builder shows on its own page.
- Credits per prompt. When you send a prompt, it notes the balance the page shows, then watches for the builder's own per-message cost (Lovable's "Credits used", Replit's checkpoint cost) or for the balance to drop. One small record is stored per prompt.
- Fix-loop alerts. Three or more prompts in a row in one project that mention an error, say "fix" or "still not working", or repeat the same error message, with less than 45 minutes between them. A small badge appears on the page, for example Fix loop: 6 prompts, ~13 credits on the same error, with two tips: describe the error once with the exact message, or roll back.
- Popup. Credits today, this week, by project, and the share of this week's credits spent in fix loops. Export as JSON, or clear everything.
Works in Chrome, Edge, Brave and other Chromium browsers (Manifest V3).
- Everything is stored in
chrome.storage.localon your device. Nothing is sent anywhere. - The only permission is
storage. There are no host permissions beyond the content scripts on the five builders' sites, no background worker, and the extension pages' policy blocks all network requests (connect-src 'none'). - For each prompt it keeps: site, project id from the URL, time, credits used, and two hashes (SHA-256, truncated): one of the prompt text and one of the error message it mentions, if any. Plus a yes/no for "reads like a fix request". Never the prompt, never your code. The hashes only let it tell when you repeat the same error.
- It reads what is visible on the page. It does not call the builders' APIs or read network traffic.
- Download or clone this folder.
- Open
chrome://extensions(Edge:edge://extensions, Brave:brave://extensions). - Turn on Developer mode, click Load unpacked, pick this folder.
- Pin the Tare icon, open your builder, and send a prompt.
Builders don't publish their UI, and they change it often. The wording below comes from each builder's public docs (November 2026). The regexes live in src/sites.js; the fixtures in test/fixtures are synthetic pages written from that wording, not copies of the real pages.
| Site | Unit | Per-prompt cost | Balance |
|---|---|---|---|
| Lovable | credits | "Credits used" / "Chat credits used" in a reply's More options menu | "N credits left" in the workspace menu |
| Bolt.new | tokens | balance difference | "N tokens left", "Token balance: N" (K/M suffixes) |
| v0 | credits ($) | balance difference | "$N credits remaining" |
| Replit | credits ($) | checkpoint cost shown when hovering the usage icon | "$N of $M credits remaining" |
| Emergent | credits | balance difference ("Estimated cost" is ignored) | "Credits: N" in the top-right corner |
If a builder shows no cost and its balance doesn't change on screen, the prompt is still counted (for loop detection) with an unknown cost, and the popup says how many prompts had no count.
Not yet verified against the signed-in apps. Nobody signed in to a builder while building this. The first job for whoever has accounts: open each builder with the extension loaded, send a prompt, and check that the popup shows the right cost. Where it doesn't, copy the relevant bit of page text into a fixture, fix the regex, and add a test.
npm test # loop detection, stats and per-site parsers (Node 20+, no dependencies)
npm run check # loads the extension in a throwaway headless Chrome profile and checks it runs
npm run icons # regenerates icons/*.pngnpm run check loads the extension over the DevTools protocol (Extensions.loadUnpacked; branded Chrome
ignores --load-extension since version 137), opens the popup with seeded records, opens lovable.dev's public
homepage to confirm the content script runs, and checks the fix-loop badge appears. It never signs in. Pass a
different browser binary as the first argument; set TARE_SHOTS=<dir> to save screenshots.
Files:
src/signals.js: turns prompt text into hashes and a fix-request flagsrc/sites.js: per-site readerssrc/loops.js: fix-loop detection and badge textsrc/stats.js: popup totalssrc/content.js: runs on the builder's pagesrc/popup.*: the popup
Nothing has been published. To put it on the stores:
- Check it on the real sites first (see above). Fix any site whose cost doesn't show up.
- Make the zip:
zip -r tare-app-builders-0.1.0.zip manifest.json src icons LICENSE -x '.*' - Chrome Web Store: sign in at https://chrome.google.com/webstore/devconsole with the Priberry Google
account, pay the one-time $5 developer fee, verify the publisher email, then New item and upload the
zip.
- Listing: name "Tare for app builders", category Developer Tools, a 128×128 icon (
icons/128.png), at least one 1280×800 screenshot (popup plus the badge on a builder page), and a short description. - Privacy tab: single purpose "Shows credits spent per prompt in AI app builders and flags fix loops".
Permission justification for
storage: "Stores per-prompt credit counts on the device". Host access: "Reads the credit counter the builder shows on its own page". Data usage: tick nothing collected; the extension does not collect or transmit user data. Link the privacy policy (add a page at priberry.com/privacy/tare-browser that repeats the Privacy section above). - Submit for review. Reviews take from a day to a few weeks; content scripts on named sites usually pass faster than broad host access.
- Listing: name "Tare for app builders", category Developer Tools, a 128×128 icon (
- Microsoft Edge Add-ons: https://partner.microsoft.com/dashboard/microsoftedge, free account, upload the same zip, reuse the listing text.
- Brave, Opera, Vivaldi, Arc install from the Chrome Web Store, so step 3 covers them.
- After the listing is live, add the store link to the Tare README and priberry.com, and to the "Be everywhere plan" table (Lovable, Bolt, v0, Replit, Emergent: "reads credits").
For each new version: bump version in manifest.json and package.json, run npm test and
npm run check, rebuild the zip, upload it as a new package.
Apache-2.0