{% extends "base.html" %} {% import "_tokens.html" as tkm %} {% import "_log.html" as lg %} {% block title %}step {{ s.label }} · {{ s.short }}{% endblock %} {% block crumbs %}/ {{ e.name }} / {{ s.short }} / step {{ s.label }}{% endblock %} {% block head %} {% endblock %} {% block main %}

Step {{ s.label }} {{ s.info.outcome }}{% if s.info.worker and s.info.worker != "agent" %} {{ s.info.worker }}{% endif %}

{% if s.info.why %}

{{ s.info.why }}

{% endif %} {% if s.resume %}
Continue this conversation yourself the step was a Claude session; pick it up in a terminal (in VS Code, say), on a copy, so the step's record stays as it was

Carry on from where the step left off:

{{ s.resume.fork }}

Ask it why it did what it did, without changing anything (plan mode):

{{ s.resume.why }}
{% endif %}
{% if tk %}

Tokens

context read
{{ tk.context|tok }} over {{ tk.calls or "?" }} calls: cache read {{ tk.cache_read|tok }} ({{ tk.hit|pct }}), cache write {{ tk.cache_write|tok }}{% if tk.write_5m %} ({{ tk.write_5m|tok }} at 5 min){% endif %}, uncached {{ tk.new|tok }}
output
{{ tk.output|tok }}{% if tk.thinking is not none %}, {{ tk.thinking|tok }} of it thinking{% endif %}
context per call
first {{ tk.first|tok }}, peak {{ tk.peak|tok }}{% if tk.cache_breaks %}, {{ tk.cache_breaks }} cache break{{ "s" if tk.cache_breaks > 1 }}{% endif %}
{% if tk.quota %}
quota
{% for q in tk.quota %}{{ q.label }} {{ q.first|pct }} → {{ q.last|pct }}{{ ", " if not loop.last }}{% endfor %} (whole percents, any use of the account counts)
{% endif %} {% if tk.api_s %}
API time
{{ tk.api_s|secs }}{% if s.meta.duration_s %} of {{ s.meta.duration_s|secs }}{% endif %}
{% endif %}
{{ tkm.chart(tk.chart, "Context of each call") }}
{% endif %}

Meta

{% if s.meta %}
{% for k, v in s.meta.items() %}
{{ k }}
{% if k == "tokens" and v is mapping %}{% for tk, tv in v.items() %}{{ tk }} {{ tv }}{{ ", " if not loop.last }}{% endfor %}{% elif k == "cost_usd" %}{{ v|money }}{% elif k == "duration_s" %}{{ v|secs }}{% else %}{{ v }}{% endif %}
{% endfor %}
{% else %}

No meta.json yet{% if s.info.outcome == "running" %}: the model is still running{% endif %}.

{% endif %} {% if s.notes %}

Notes from the owner

{% endif %} {% if s.fork %}

Open in Claude Code

{{ s.fork }}

Forks the session, so the recorded history stays as it was.

{% endif %}
{% if s.summary %}

Summary

{{ s.summary }}
{% endif %} {% if s.result %}

Memento it wrote

{{ s.result }}
{% endif %}
{% if dfm %} {% import "_dfm.html" as dfmm with context %}{{ dfmm.style() }}

DFM runs

{{ dfmm.table(dfm, packet=False) }} {% endif %} {% if tk and tk.tools %}

Where the context went

{{ tkm.tools(tk.tools, one=True) }} {% endif %}

State changes

{% if s.diff is none %}

No state.diff (only committed steps have one).

{% elif not s.diff %}

No changes to state/.

{% else %}
{% for kind, ln in s.diff %}
{{ ln }}
{% endfor %}
{% endif %} {% set base = "/p/%s/%s/%s" % (e.name|urlencode, s.wpid, s.dir) %} {% set running = s.info.outcome == "running" %}

Transcript

{{ lg.bar(base, view, [("blocks", "Blocks"), ("log", "Log")], base, "log") }} live view
{% if view == "log" %}{{ lg.console(s.log, running, follow=running) }} {% else %}
{% if not s.blocks %}

Empty so far.

{% endif %} {% for b in s.blocks %} {% if b.kind == "tool_use" %}
tool {{ b.name }}
{{ b.text }}
{% elif b.kind == "tool_result" %}
{{ "error" if b.error else "result" }} {{ b.text.splitlines()[0][:100] if b.text else "(empty)" }}
{{ b.text }}
{% elif b.kind == "thinking" %}
thinking
{{ b.text }}
{% elif b.kind == "init" or b.kind == "result" %}
{{ "session" if b.kind == "init" else "end" }} {{ b.text }}
{% else %}
model
{{ b.text }}
{% endif %} {% endfor %}
{% endif %}
Prompt as sent
{{ s.prompt or "(missing)" }}
{% if s.stderr %}
stderr
{{ s.stderr }}
{% endif %} {% endblock %}