{% extends "base.html" %} {% block title %}agents · aether 控制台{% endblock %} {% block content %}

Agents

两类 agent:改写 prompt agent(公众号 / 小红书,prompt 可编辑) + 抓源 agent(每个 source 一个,v0.1 只读)。

{# ----- Stats overview ----- #}
总 agent
{{ agents["rewrite"]|length + agents["fetch"]|length }}
改写 {{ agents["rewrite"]|length }} · 抓源 {{ agents["fetch"]|length }}
正在跑
{{ stats.running }}
running + pending
成功 / 24h
{{ stats.success_24h }}
{% if stats.last_success_at %} 最近 {{ stats.last_success_at.strftime('%m-%d %H:%M') }} {% else %}暂无{% endif %}
失败 / 24h
{{ stats.failed_24h }}
{% if stats.last_failure_at %} 最近 {{ stats.last_failure_at.strftime('%m-%d %H:%M') }} {% else %}暂无{% endif %}
累计 task_run
{{ stats.total }}
含已清掉的

改写 prompt agent

点击进入编辑 prompt。整体 workflow 不能修改(topology 锁住),只能调整 prompt 内容。

{% for a in agents["rewrite"] %}
改写
{{ a.label }}
prompt v{{ a.prompt_version or '?' }} · {{ a.prompt_source }}
{% endfor %}

抓源 agent

每行一个 source。点运行触发一次 fetch,把文章抓到 articles 表。

{% if agents["fetch"] %} {% for a in agents["fetch"] %} {% endfor %}
domaintier状态文章数上次抓取
{{ a.label }}
{{ a.target_id }}
{{ a.domain }} {{ a.tier }} {% if a.enabled %} enabled {% else %} disabled {% endif %} {% if a.last_fetch_status and a.last_fetch_status != 'ok' %}
⚠ {{ a.last_fetch_status[:30] }}{% if a.last_fetch_status|length > 30 %}…{% endif %}
{% endif %}
{{ a.article_count }} {{ a.last_fetched_at or '—' }}
看文章
{% else %}

还没加源。添加源 →

{% endif %}

最近 task runs

{# Status filter chips #}
全部 ({{ stats.total }}) 运行中 ({{ stats.running }}) 成功 ({{ stats.success_24h }}) 失败 ({{ stats.failed_24h }})
{% if recent_runs %} {% for r in recent_runs %} {% endfor %}
时间agent状态durationerror
{{ r.started_at.strftime('%m-%d %H:%M:%S') if r.started_at else '—' }} {{ r.agent_id }} {{ r.status }} {% if r.started_at and r.finished_at %} {{ ((r.finished_at - r.started_at).total_seconds() | round(1)) }}s {% elif r.status in ('running', 'pending') %} ⟳ running {% else %}—{% endif %} {{ (r.error or '')[:60] }}{% if r.error and r.error|length > 60 %}…{% endif %} view →
{% else %}

{% if status_filter %} 没有 status={{ status_filter }} 的 task run。 {% else %} 还没有 task run。点上面任一"运行"按钮试试。 {% endif %}

{% endif %}
{% endblock %}