{% extends "base.html" %} {% block title %}{{ routine.title if routine else name }}{% endblock %} {% block content %}

{{ routine.title if routine else name }}{% if routine %} {{ routine.state }}{% endif %}

All routines · How routines work · routines.toml, name {{ name }}

{% if problems %}
{{ 'This routine has problems' if not routine else 'routines.toml has problems' }}, so it does not run. Paste these to your agent, or fix the file and reload:
{% endif %} {% if try_error %}

{{ try_error }}

{% endif %} {% if routine %}

{{ description }}

{% if ai_problem %}

The AI step will not run. {{ ai_problem }}.

{% endif %}
{% if routine.paused %}Paused: new routines start this way. Check the preview below, then turn it on; it runs every morning after the daily sync.{% else %}On: it runs every morning after the daily sync.{% endif %} {{ last_run[:1] | upper }}{{ last_run[1:] }}.
{% if routine.prompt %}
Instructions for the AI
{{ routine.prompt }}
{% endif %} {% if brief %}

What it would show on Home now

A preview: nothing is written. When it runs, Home shows this for the rest of the day.

{% include "routine_brief.html" %} {% else %} {% set fresh = picks | selectattr('status', 'equalto', '') | list %}

Who it would pick now ({{ fresh | length }})

The preview runs no AI and writes nothing.{% if waiting %} {{ waiting | length }} draft{{ 's' if waiting | length != 1 }} from this routine {{ 'are' if waiting | length != 1 else 'is' }} waiting on Home.{% endif %}

{% for p in picks %} {% else %} {% endfor %}
whowhychannelthis run
{{ p.who }} {{ p.reason }} {{ p.channel }} {{ p.status or 'gets a draft' }}
Nobody matches right now.
{% if fresh and not ai_problem %}
Shows one draft for {{ fresh[0].who }}. Nothing is saved. Takes up to a minute and uses your AI CLI.
{% endif %} {% if tried %}

Draft for {{ tried_pick.who }} {{ tried.channel }} not saved

{% if tried.skip %}

The AI would skip this one: {{ tried.skip }}

{% else %} {% if tried.subject %}

Subject: {{ tried.subject }}

{% endif %}

Not right? Change the prompt in routines.toml (or ask your agent to) and try again.

{% endif %}
{% endif %} {% endif %} {% endif %} {% endblock %}