Statistics
token use and cost
{{ tkm.quota(burn.quota) }}
{% set sp2 = burn.split %}
{% if sp2 and (sp2.total or sp2.sessions.tokens) %}
Runner {{ sp2.runner|money or "$0" }}
+ your sessions {{ sp2.sessions.usd|money or "$0" }} est.{% if sp2.sessions.unpriced %}*{% endif %}
= {{ sp2.total|money or "$0" }} {{ span }}
{{ sp2.sessions.sessions }} session{{ "s" if sp2.sessions.sessions != 1 }}, {{ sp2.sessions.tokens|tok }} tokens
{% if sp2.chart and side|length <= 1 %}{{ tkm.chart(sp2.chart, "Spend per day") }}{% endif %}
{% endif %}
{% if burn.activity %}
{{ tkm.chart(burn.activity, "Work tokens per hour, last 24 hours" if burn.days == 1 else "Work tokens per day") }}
Work tokens: what the models were given new and what they wrote, from every source.
{% endif %}
{% set ew = burn.elsewhere %}
{% if ew %}
Not in a project: {{ ew.usd|money or "$0" }} est., {{ ew.sessions }} session{{ "s" if ew.sessions != 1 }}, {{ ew.tokens|tok }} tokens {{ span }}
Sessions started in a folder that is no registered project's, and that no editor or terminal wpk opened claimed.
| Folder | Sessions | Tokens | Est. cost |
{% for f in ew.folders %}{{ f.show }} | {{ f.sessions }} | {{ f.tokens|tok }} | {{ f.usd|money }} |
{% endfor %}
{% if ew.more %}and {{ ew.more }} more folder{{ "s" if ew.more != 1 }}
{% endif %}
{% endif %}
{% if burn.total %}
{{ tkm.summary(burn.total, burn.total.steps) }}
{% if burn.total.chart %}{{ tkm.chart(burn.total.chart, "Context read per day") }}{% endif %}
{% if burn.spend and burn.spend.chart and side|length <= 1 and not sp2 %}{{ tkm.chart(burn.spend.chart, "Spend per day", legend=False) }}
Spend per day
{% endif %}
{% set top = 10 %}
{% macro prow(r) -%}
| {{ r.name }}{% if r.closed %} closed{% endif %} | {% if side|length > 1 %}{{ r.board }} | {% endif %}
{% if burn.days > 1 %}{{ tkm.chart(r.spark, "context per day", legend=False) }} | {% endif %}
{{ r.steps }} | {{ r.cost_usd|money }}{% if r.cost_bases and r.cost_bases|length > 1 %}*{% endif %} |
{% if sp2 %}{{ r.sess_usd|money if r.sess_usd else "" }}{% if r.sess_unpriced %}*{% endif %} | {{ r.total_usd|money if r.total_usd else "" }} | {% endif %}{{ r.quota_week|pct }} |
{{ r.context_tokens|tok }} | {{ r.cache_hit|pct }} |
{{ r.output_tokens|tok }} | {{ r.thinking_share|pct }} |
{{ r.failed_share|pct }} |
{%- endmacro %}
{% macro phead() -%}
| Project | {% if side|length > 1 %}Board | {% endif %}{% if burn.days > 1 %}Per day | {% endif %}Steps | Cost | {% if sp2 %}Sessions | Total | {% endif %}Week quota | Context | Cache hit | Output | Thinking | On failures |
|---|
{%- endmacro %}
{{ phead() }}
{% for r in burn.rows[:top] %}{{ prow(r) }}{% endfor %}
{% if burn.rows|length > top %}
{{ burn.rows|length - top }} more project{{ "s" if burn.rows|length - top != 1 }}
{{ phead() }}
{% for r in burn.rows[top:] %}{{ prow(r) }}{% endfor %}
{% endif %}
{% else %}
No steps with token counts {{ span }}.
{% endif %}
{% if burn.boards and side|length > 1 %}
By board
{% set sp = burn.spend %}
{% if sp %}
{% for b in sp.bars %}
{{ b.name }}
{{ b.cost|money }} · {{ '%.0f'|format(b.share * 100) }}%
{% endfor %}
{{ sp.total|money }} spent {{ span }}{% if sp2 %}, runner and your sessions (est.){% endif %}{% if sp.idle %}; nothing on {{ sp.idle|join(", ") }}{% endif %}.
{% if sp.chart %}{{ tkm.chart(sp.chart, "Spend per day") }}{% endif %}
{% endif %}
| Board | {% if burn.days > 1 %}Per day | {% endif %}Steps | Cost | Context | Output |
{% for b in side %}{% set r = burn.boards.get(b.name) %}{% if r %}
| {{ b.name }} |
{% if burn.days > 1 %}{{ tkm.chart(r.spark, "context per day", legend=False) }} | {% endif %}
{{ r.steps }} | {{ r.cost_usd|money }}{% if r.cost_bases and r.cost_bases|length > 1 %}*{% endif %} |
{{ r.context_tokens|tok }} | {{ r.output_tokens|tok }} |
{% endif %}{% endfor %}
{% endif %}