gptme-daily-briefing

v0.1.0 Generic daily-briefing bundle schema and collectors for gptme agents packages/gptme-daily-briefing View on GitHub

gptme-daily-briefing

Generic daily-briefing bundle schema and collectors for gptme agents.

This is the upstream extraction of Bob's collect-daily-briefing.py morning pipeline — see the design doc and the tracking issue.

What it provides

Agent-specific bits (KPI shape, bandit state, agent persona) stay in each agent's local wrapper.

Use

from pathlib import Path
from gptme_daily_briefing.collectors import (
    collect_blockers,
    collect_active_tasks,
    collect_recent_highlights,
)

workspace = Path("/home/agent/agent")
bundle = {
    "bullets": {
        "blockers": collect_blockers("OWNER/REPO", "request-for-erik"),
        "active_tasks": collect_active_tasks(workspace),
        "recent_highlights": collect_recent_highlights(workspace),
    },
}

The agent's own wrapper composes the bundle and writes it to state/daily-briefing/YYYY-MM-DD.json (or wherever).

Bob's reference wrapper

scripts/monitoring/collect-daily-briefing.py in Bob's workspace is the reference consumer. It composes the generic collectors here with Bob-local additions (Thompson sampling bandit tops, weekly-goals.py KPI snapshot, pr-review-guide.py rich PR list).