An LLM reads your code exactly once, under strict rules. Every number after that is computed by deterministic, unit-tested TypeScript. Here is the whole machine, end to end.
Five stages. One of them uses an LLM; the other four are plain code that gives the same output for the same input, every time.
Inventory
A deterministic walk of the repo
Plain TypeScript walks the tree and catalogs what is architecturally real: routes and API handlers, background jobs, queues, database schema and clients, external SDKs. No LLM is involved, so the same repo always yields the same inventory.
23 routes
3 data stores
6 external services
1 background job
Found in vercel/ai-chatbot
Select
A 260 KB evidence budget
From the inventory, the pipeline picks the files that define the architecture (entry points, data access, job definitions), capped at 260 KB in total and 200 lines per file. The choice is deterministic, and deliberately small enough to be read closely rather than skimmed.
260 KB in total
200 lines per file
Extract
Code to a typed model, under oath
The only LLM step
Claude reads the selection and fills a strict schema, the AppModel: routes, data stores, queues, external calls and their traffic shape. Every claim must cite evidence, the file and lines it came from.
The output is validated twice: against the schema, then for referential integrity. A failed validation earns exactly one retry, fed the validator’s errors; truncated output fails at once instead of being patched up. If the model can’t be validated, the run fails and the credit is refunded. Skeram never guesses a page into existence.
{
"kind": "chat",
"model": "moonshotai/kimi-k2.5",
"modelSource": "hardcoded",
"frequency": "sometimes",
"evidence": [
{
"file": "app/(chat)/actions.ts",
"lines": "28-34",
"note": "Title generateText, only for new chats"
},
{
"file": "app/(chat)/api/chat/route.ts",
"lines": "125-133",
"note": "Triggered when chat doesn't exist"
}
]
}
A second model call on the same route, cited to two files
Compute
Deterministic engines
Pure TypeScript sweeps the model from 100 to 100,000 users: a curated AWS pricing table, sizing formulas for the things that actually break (connection pools, NAT throughput, queue depth, instance classes) and a failure-pattern rule catalog. All of it is unit-tested. Click any number on any page and it shows you its formula.
The LLM never writes a number.
Chatbot Next.js app, 10,000 users
route mix needs 0.19 task-equivalents at peak (per-class capacity: light 120/s, db 60/s, llm 6/s)
÷ 0.7 headroom, min 2 for HA → 2 tasks
2 × (0.5 vCPU × $0.04048 + 1 GB × $0.004445) × 730 h = $36.04
LLM tokens, route chat-post
608,333 requests/mo × 1 call × 2.15 avg loop steps (2 typical; 5% of runs reach the cap of 5, assumption) = 1,307,917 chat calls/mo
8,000 in (large context, assumption) + 600 out (no cap seen) tokens per call
model chosen per request →cheap↔frontier band
× $0.1/$0.5 per 1M in/out (claude-haiku-5.5) = $1,439 … × $2/$10 per 1M in/out (claude-sonnet-5.5) = $28,774
Token prices from an OpenRouter snapshot dated 27 Oct 2026
Publish
A persistent, auditable URL
The result is a living page: the interactive diagram, the scale slider, findings with file-and-line evidence. The same AppModel always gives the same numbers, and that is a claim you can check: the model is a download on every teardown, and each figure shows its formula.
The extraction is the part that can vary. On the one repo in our variance study, fresh scans of the same commit found the same findings, but the model bill drifted by about 13–15% between runs. Re-scanning unchanged code reuses the saved result rather than extracting again.
The engines are deterministic; the extraction and the world aren’t. What keeps Skeram honest is a human feedback loop with teeth.
6/6The current bench: six repos, six passes.
Every teardown is graded first
Before a teardown goes public, a human with seven years of AWS experience writes an expectations file: what a correct analysis of that codebase must find. The pipeline’s output is scored against it, and the publishing bar is at most two material discrepancies.
Misses become code
When the pipeline gets something wrong, the fix lands in the deterministic layers (inventory rules, selection heuristics, schema constraints) and the miss becomes a permanent regression check. The prompt is the least interesting part of this system.
Wrong findings get fixed, visibly
If a maintainer or a reader shows a finding is wrong, it gets corrected fast and credited. A tool that sells trust doesn’t get to bury its mistakes: a visible correction beats a quiet one.
The eval loop didn’t end at launch
Samples of real analyses go through the same human review as the public bench, so the pipeline keeps learning from repos in the wild, beyond the six it was graded on.
Corrections log
Every hand edit to a published teardown, set against the pipeline’s raw output. Teardowns not listed here are published as the pipeline produced them.
inline job inline-title-update with no lossImpact (extracted before the field existed)
Corrected
lossImpact: "low", so the inline-jobs finding tops out at warn instead of critical
A 2026-10-27 re-run labeled this same job (route.ts:339-345) low on its own; that run was not published because it split the document tools into three call sites and overstated the LLM bill ~13%.
What Skeram refuses to do
Credibility is mostly a list of things you won’t let the system do.
Let the LLM near the math
LLMs are unreliable at arithmetic across pricing SKUs, and worse at sizing. Every dollar figure, every saturation point, every threshold comes from the engine: code you could unit-test, because we do.
Guess at unfamiliar stacks
The pipeline reads JavaScript and TypeScript (Next.js first-class; Express, Fastify, Hono, Remix, SvelteKit, Nuxt) and Python (FastAPI, Django, Flask, Streamlit, Gradio, workers and bots). Anything else is politely declined rather than improvised. A confident wrong answer is the one thing we can’t afford to ship.
Pretend the model is your bill
The output is a modeled estimate with stated assumptions. It does not replay your AWS invoice. Every assumption is visible and arguable: audit it, disagree with it, and if you’re right, we’ll correct it.
Audit us before you spend a dollar
Every public teardown is the full pipeline’s real output. Drag the slider, click the numbers, check the formulas against the evidence. If the methodology holds up, point it at your own repo: five analyses for $10.