brainofbrains
v0.1.0
Published
Scan your AI stack for token waste, efficiency leaks, and cost-reduction opportunities. Delivers a preview BIV score + actionable report. From BrainOfBrains.ai.
Maintainers
Readme
brainofbrains
Free local self-check for an AI-heavy project. It looks for waste, weak efficiency, frontier-heavy spend, and missing visibility. No account, no signup, nothing leaves your machine.
Fastest path
npx brainofbrains scan .That is the whole first run. The command scans the current folder and prints a plain-English report.
What it looks for:
- AI SDK packages in
package.json - Cost event logs like
.ai-cost-data/events.jsonl - Compression, efficiency, and local-vs-frontier routing signals
Example
$ npx brainofbrains scan
BrainOfBrains scan /Users/you/my-ai-project
4/19/2026, 5:42:10 PM
Local scan only. Nothing was uploaded.
WHAT BRAINOFBRAINS SAW
✓ @anthropic-ai/sdk ^0.30.0
✓ openai ^4.70.0
✓ event log: .ai-cost-data/events.jsonl (42.1KB)
LAST 24 HOURS
events: 1,204 (frontier 1,122 · local 82)
frontier spend: $12.40
input tokens: 480,330
avoidable tokens: 216,148
compression: 0.550
efficiency avg: 62.3/100
local share: 6.8%
BRAIN HEALTH PREVIEW (preview BIV score)
62.4 / 100 (confidence: medium)
WHAT WE FOUND
● HIGH Compression leak: 45% of tokens avoidable
216,148 of 480,330 input tokens in the last 24h could have been trimmed.
● HIGH $12.40/24h frontier spend, only 7% local
Routing 40% of eligible calls to a local model would save ~$4.96/24h (~$1,810/year).
WHAT TO DO NEXT
This stack is leaking money or signal. The good news: the fixes are usually straightforward.
→ Start with the findings above — there are 2 clear areas to tighten.
→ If you want the always-on version to keep watching this for you, visit https://brainofbrains.ai.
→ If you would rather talk first, email [email protected].--json mode
For agents, CI, or anything that wants structured output:
npx brainofbrains scan --jsonReturns the same scan result as JSON.
Why this is free
The scan is the qualification. If your stack looks healthy, you probably do not need the always-on product yet. If it looks leaky, the free report shows why.
Privacy
The scan runs entirely on your machine. Nothing is sent anywhere unless you opt
in to anonymous telemetry via BRAINOFBRAINS_TELEMETRY=1. Even then, it sends a
tiny summary only, not your files or event bodies.
Full product
See brainofbrains.ai for the always-on version: automatic checks, drift alerts, specialist brains, and the full install path.
License
MIT
