AI Engineering

Context window budget

Build a prompt from system, tools, history, retrieved chunks and the question; watch the window fill, cached prefixes, cost per call and what each trimming strategy drops.

Real vs simulated: Token counts are real (o200k_base). Prices are the editable tiers from the estimator.

Loading the tokenizer…