{% extends "base.html" %} {% set page = 'overview' %} {% block title %}{{ 'Waiting for you' if tab == 'waiting' else '' }}{% endblock %} {% block body_attrs %} data-pulse-url="{{ url_for('overview_pulse') }}" data-pulse="{{ pulse }}"{% endblock %} {% macro project_head(project) %}{{ project.name or project.repo.key }}{% if project.worktree %}worktree {{ project.worktree }}{% endif %}{% if project.branch %}{{ project.branch }}{% endif %}{{ project.place }}{{ project.views|length }} loop{{ 's' if project.views|length != 1 }}{% if project.waiting %}{{ project.waiting }} wait{{ 's' if project.waiting == 1 }} for you{% endif %}{% endmacro %} {% macro loop_row(view) %} {{ view.title }}{{ view.loop_id }} {% if view.state %} {% set s = view.state %} {{ s.status }}{% if s.question and s.status != 'waiting' %}asks{% endif %}{% set signs = no_progress(s) %}{% if signs %}no progress{% endif %} {{ s.manifest.brief.goal|truncate(150) }} {{ s.rounds|length }}{% if s.manifest.round_cap %} / {{ s.manifest.round_cap }}{% endif %}{% set trail = trail_of(s) %}{% if trail %}{% for cell in trail %}{% endfor %}{% endif %} {{ s.open_findings|length or '' }} {{ s.minutes|minutes }} {{ s.cost_usd|usd }} {{ s.last_event|ago }}{% if view.problems %} · {{ view.problems|length }} unreadable line{{ 's' if view.problems|length != 1 }}{% endif %} {% else %} unreadable {{ view.error }} {% endif %} Open {% endmacro %} {% macro head_row(visible) %} LoopStatusWhat it is forRoundsOpen findingsTimeCostLast sign of lifeOpen {% endmacro %} {% macro cols() %}{% endmacro %} {% block main %}

{{ 'Waiting for you' if tab == 'waiting' else 'Loops' }}

{% if note %}

{{ note }}

{% endif %} {% if error %}{% endif %} {% if unreadable %} {% endif %} {% if views %} {% set running = views|selectattr('state')|selectattr('state.status', 'equalto', 'running')|list %} {% set troubled = views|selectattr('state')|selectattr('state.status', 'in', ['stalled', 'failed'])|list %} {% set here = url_for('overview') %} {% if tab == 'waiting' %} {% if not waiting %}

Nothing waits for you. A loop that needs you shows here with its question.

{% endif %}
{% for project in waiting_projects %}
{{ project_head(project) }}
{{ cols() }}{{ head_row(false) }}{% for view in project.views %}{{ loop_row(view) }}{% endfor %}
{% for view in project.views %}
{% set q = view.state.question %}
Project
{{ view.repo.key }}
Loop
{{ view.title }}
Asked
{% if q.round %}round {{ q.round }} · {% endif %}{{ q.asked|ago }}{% if q.blocks %} · it stands still until you answer{% endif %}
{% if project.views|length > 1 %}
For
{{ view.title }}
{% endif %}
So far
{{ view.state.rounds|length }} round{{ 's' if view.state.rounds|length != 1 }}, {{ view.state.open_findings|length }} open finding{{ 's' if view.state.open_findings|length != 1 }}{% if view.state.cost_usd %}, {{ view.state.cost_usd|usd }}{% endif %}

{% if view.state.question.needs_person %}A step needs you. {% endif %}{{ view.state.question.text }}

{% if view.state.question.options %}
{% for option in view.state.question.options %}{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% else %} {% set f = filters %} {% macro chip_href(status='', finished=f.finished) %}{{ here }}?{% if f.q %}q={{ f.q|urlencode }}&{% endif %}{% if status %}status={{ status }}&{% endif %}{% if finished %}finished=1{% endif %}{% endmacro %} {% set active = f.together|join(',') if f.together else (f.statuses|first if f.statuses else '') %}
{% if f.q or f.statuses or f.finished or f.group %}clear{% endif %}
{% if not projects %}

No loop matches{% if hidden %}; {{ hidden }} finished loop{{ 's' if hidden != 1 }} folded away{% endif %}.

{% else %}
{% for project in projects %}
{{ project_head(project) }} {{ cols() }} {{ head_row(loop.first) }} {% for view in project.views %}{{ loop_row(view) }} {% endfor %}
Project {{ project.repo.key }} · {{ project.place }} · {{ project.views|length }} loop{{ 's' if project.views|length != 1 }}
{% endfor %}
{% endif %} {% endif %} {% else %}

{% if not config.source %}No loop to show yet, and no list of repositories to watch: the board found no loopcaptain.local.yaml in the folder it was started in and no ~/.config/loopcaptain/config.yaml.{% else %}The board reads {{ config.source|place }}{% if not config.roots and not config.repos %}, which lists no folder yet{% else %}, and none of the {{ config.roots|length + config.repos|length }} folder{{ 's' if config.roots|length + config.repos|length != 1 }} it lists has a .loops/ folder with a loop yet{% endif %}.{% endif %} Copy one of these into your coding agent:

Build a loop

{{ prompts['build-a-loop'] }}

Watch the loops on this machine

{{ prompts['watch-my-loops'] }}

Or see it first with an invented loop that costs nothing: loopcaptain demo, then reload. To watch your own repositories, list them under roots: or repos: in ~/.config/loopcaptain/config.yaml, or run loopcaptain watch <folder>. How a loop connects.

{% endif %} {% endblock %}