{{ f.context_tokens|tok }} context read ({{ f.cache_hit|pct }} from the cache){{ f.output_tokens|tok }} output ({{ f.thinking_share|pct }} thinking){{ f.cost_usd|money or "-" }}
{% if f.quota_week is not none %}{{ f.quota_week|pct }} of the weekly quota{% endif %}
{{ f.failed_share|pct }} on failed attempts
{% if f.cache_breaks %}{{ f.cache_breaks }} cache break{{ "s" if f.cache_breaks > 1 }}{% endif %}
{{ steps }} step{{ "s" if steps != 1 }}
{%- endmacro %}
{#- The subscription quota as of the newest step (tokens.quota). -#}
{% macro quota(q) -%}
{%- if q %}
{% for w in q %}{{ w.label }} quota {{ w.used|pct }} used {% if w.reset %}(reset {{ w.resets }}; no step has run since){% else %}(resets {{ w.resets }}, in {{ w.left }}){% endif %}
{% endfor %}as of the step that ended {{ q[0].at[:16]|replace("T", " ") }} UTC
{%- endif %}
{%- endmacro %}
{% macro chart(c, title, legend=True) -%}
{%- if c %}
{%- if legend %}
{{ title }}: {% for cls, name in c.legend %}{{ name }}{% endfor %}
{% endif %}
{%- endif %}
{%- endmacro %}
{#- Runner and the sessions people drove, side by side (tokens.spend_split,
docs/session-cost-plan.md S4). -#}
{% macro spend(sp) -%}
{%- set w, a = sp.window, sp.all %}
Spend: runner and your sessions
Last {{ sp.days }} days
All time
Runner
{{ w.runner|money or "$0" }}
{{ a.runner|money or "$0" }}
Your sessions est.
{{ w.sessions.usd|money or "$0" }}{% if w.sessions.unpriced %}*{% endif %}
{{ a.sessions.usd|money or "$0" }}{% if a.sessions.unpriced %}*{% endif %}
Total
{{ w.total|money or "$0" }}
{{ a.total|money or "$0" }}
{% if w.chart %}{{ chart(w.chart, "Spend per day") }}{% endif %}
Your sessions: Claude Code and Codex in the editors and terminals the board ties to a task ({{ a.sessions.sessions }} session{{ "s" if a.sessions.sessions != 1 }}, {{ a.sessions.tokens|tok }} tokens). The runner's cost is what the harness reported; sessions are priced from their tokens.
{% if link and r.wpid %}{{ r.label }}{% else %}{{ r.label }}{% endif %}
{{ r.steps }}
{{ r.cost_usd|money }}
{% if sess is not none %}{% set su = sess.get(r.wpid, 0) %}
{{ su|money if su else "" }}
{{ ((r.cost_usd or 0) + su)|money }}
{% endif %}
{{ r.quota_week|pct }}
{{ r.context_tokens|tok }}
{{ r.cache_hit|pct }}
{{ r.cache_write|tok }}
{{ r.output_tokens|tok }}
{{ r.thinking_share|pct }}
{{ r.failed_share|pct }}
{% endfor %}
{%- endmacro %}
{#- Where the context went (view 5, toolcost.py). Carried = size × the calls that read it. -#}
{% macro _share(r) -%}
{{ r.share|pct }}
{%- endmacro %}
{% macro tools(t, one=False) -%}
{%- if t %}
Each call reads the whole context so far, so a tool result costs its size times the calls after it ("carried"). Carried adds up to the context read{% if not one %} over {{ t.steps }} step{{ "s" if t.steps != 1 }} with transcripts{% endif %}.