{% extends "base.html" %} {% import "_settings.html" as sm with context %} {% block title %}Compose · {{ e.name }}{% endblock %} {% block crumbs %}/ {{ e.name }} / compose{% endblock %} {% block head %} {% if shell_ok and c.owned %}{% endif %} {% endblock %} {% block main %} {% set q = e.name|urlencode %}

{{ e.name }} · {{ "hand to runner" if c.mode == "setup" else "hand off (batch " ~ (c.batch + 1) ~ ")" }} {% if c.running %}RUNNING{% endif %} {{ c.state }}

{% if not c.owned %}
The runner has this task ({{ c.state }}{% if c.running %}, step {{ c.running.step }} running{% endif %}), so it cannot be changed here. {% if c.state in ("RUNNABLE", "SLEEPING") and not c.running %}
{% else %}Live view; send it a note there.{% endif %}
{% if c.queued is not none %}
{% endif %} {% endif %} {% if c.mode == "next" %}

Where batch {{ c.batch }} stopped

{% if c.meta.reason %}

{{ c.meta.reason }}

{% endif %}
{{ c.summary or "No summary." }}

Step {{ c.meta.step }}. Packet · steps and outline

{% endif %}

{{ "Instruction" if c.mode == "setup" else "Instruction for batch " ~ (c.batch + 1) }}

Start from: {% for t in c.templates %}{{ t }}{{ " · " if not loop.last }}{% endfor %} {% if c.mode == "next" and c.last_instruction %} · the last instruction{% endif %}
{% if c.from_template %}

From the {{ c.from_template }} template; not saved yet.

{% endif %}

{% if c.mode == "setup" %}Saved to prompt.md; the first step's memento starts from it.{% else %}Saved as a draft (.setup/next/){% if c.draft %}, last {{ c.draft.saved }}{% endif %}. The packet does not change until you hand it off.{% endif %} {{ c.instruction|length }} characters.

{% if c.mode == "next" %}
{% if c.carry %} — it rereads about {{ c.carry.tokens|tok if c.carry.tokens else "?" }} tokens of context at the cache-write price (the cache has usually expired), in exchange for the model's memory of the work.{% endif %} {% endif %} {% if c.owned %}
{% endif %} {% if rl and rl.over %}

{{ rl.n }} finished {{ "project waits" if rl.n == 1 else "projects wait" }} for your review{% if rl.oldest %} (oldest {{ rl.oldest }}){% endif %}, at or over your limit of {{ rl.limit }}. Handing off more makes more to review: review first?

{% endif %} {% if c.owned %}
{% if split_ok %}{% endif %} {% if c.missing %}{% endif %} {% if not runner %}No runner here: run wpk tick after, or start the board with --run.{% endif %}
{% endif %}
{% if shell_ok and c.owned %}

Shell in {{ c.shell_dir }}

No shell is running. One starts when you open it or press Type it.

A shell on this machine as you. It keeps running if you leave the page (30 min); while it is open, the runner waits unless you hand off.

{% elif c.owned %}

For a shell: wpk shell {{ e.name }}{% if c.mode == "next" %} (the packet is {{ c.shell_dir }}){% endif %}.

{% endif %}
Inputs: {{ c.inputs|length }} file{{ "s" if c.inputs|length != 1 }} in {{ c.state_where }} {% if c.inputs %} {% for f in c.inputs %} {% endfor %}
state/{{ f.rel }}{{ f.size|bytes }} {{ "shown in the prompt" if f.shown else "listed by size" }} {% if c.owned %}
{% endif %}
{% endif %} {% if c.owned %}
{% endif %}
Settings: limits, model, allowed tools {% if settings %}{{ sm.panel(e, settings, "compose") }}{% endif %}
{% if shell_ok and c.owned %} {% endif %} {% endblock %}