PortfolioGAP-06

Agent Architecture and Protocol Strategy Artifacts

Token Economics Simulator

SIMULATEDVerified Jul 2, 2026· data as of Jul 2, 2026

Architecture debates often start with preferences. This artifact starts with unit economics. It sizes a single call, scales it across volume, and shows how caching and batching change the annual run rate.

Same instrument · three industries pick a use case to reconfigure the run

Prefer to read? The two minute case study · problem → approach → metric → outcome

Problem

Before committing to an architecture, leaders need to know whether the workflow can operate within acceptable cost boundaries. A design that works for a pilot may become uneconomic once volume, prompt size, or frontier model share increases.

Approach

The simulator converts call structure into estimated annual cost. It shows the effect of model choice, prompt size, volume, caching, batching, and savings levers.

Why this way

This connects architecture design to run cost, budget exposure, margin, pricing, and financial approval.

The metric

Cost per call and monthly run rate; the monthly delta of switching models.

The trade-off

The cheapest model is not always adequate; caching adds engineering for a real saving.

Outcome

A defensible build versus buy number before anyone draws an architecture box.

Model

Prompt

76 input tokens

Rough estimate (~4 chars/token). Paste a real prompt to size it.

400
5,000
60%
Tokens / call
476

76 in · 400 out

Cost / call
$0.0016

Claude Haiku 4.5

Monthly run rate
$244

150,000 calls/mo

Annual run rate
$2,930

At current pricing

Where the money goes

Input$50
Output$2,880
Saved by caching + batching$59

This workload priced across models · monthly, cheapest first

Switching to Google · economy saves $225/mo on this workload, weigh against answer quality for your job.

Savings ladder · monthly, cumulative leverage

List price$249
+ prompt cache$244 · −2%
+ batch$244 · −2%

Caching + batching cut 2%, $59 / year

Before leverage this workload runs $2,989/year; after, $2,930. The static context you send on every call is the lever, cache it and the input line collapses.

If you act on this · the call → expected lift → how you'd measure it

The call

Use unit economics to constrain architecture decisions before scaling.

Expected lift · illustrative

Prevents designs that are technically viable but financially fragile.

How you'd measure it

Cost per task, annual run rate, cache hit rate, batching savings, cost per successful outcome.

Steering committee takeaway: Size the call before arguing the architecture. Unit economics often settles the design debate earlier than a diagram does.

How this is built

Stack: Next.js (static) + shared design system; pure client side arithmetic.

Pricing lives in a dated config (`@labs/kit`, as of 2026-07-02), never in copy, with a per-model cache-read price. Tokens are estimated at ~4 chars/token.

Cost/call = input tokens × input price + output tokens × output price. Caching reprices the cacheable share of input at the cache read rate; batching applies a 50% discount to the eligible share.

Limitations: this artifact uses modeled pricing and assumptions. Production forecasting would require current vendor pricing, actual traffic patterns, utilization data, and finance approved costing rules.