qalatra/docs/The triage-me loop

The triage-me loop

The one prompt that justifies the whole product.

Say "triage me" to your agent. Here's what happens next.

What the agent does

  1. Reads your open tasks via mcp:list_tasks
  2. Reads your overdue tasks via mcp:list_overdue
  3. Reads yesterday's daily note via mcp:read_daily_note
  4. Checks today's calendar via mcp:calendar_today
  5. Returns a prioritized focus list — usually three items — plus a set of background dispatches, tasks small enough to run in parallel while you work the focus list.

What you see

qalatra ❯ triage me
→ reading 14 open tasks · yesterday's note · calendar

◆ FOCUS FOR TODAY
  1. Review PR #482 — blocks 3 teammates · est 45min · p1
  2. Draft Q3 OKRs — due Friday · p1
  3. Reply to Marcus re: investor update — 2 days old · p2

◆ DISPATCHED IN BACKGROUND
  → agent:doc-cleanup — archiving 31 stale tasks
  → agent:weekly-review — drafting Sunday retro

⚠ Christy's birthday is Friday — have you picked the restaurant?

✓ Done. ~3h of focused work, 2h freed.

Why it works

The agent isn't guessing. It has read the real database, the real notes, the real calendar. It cross-references — tasks that unblock teammates float up, old tasks get a nudge, reminders surface reminders. The output is repeatable because the inputs are structured.

Customizing

The triage-me behaviour is implemented by an agent at ~/.qalatra/agents/morning-briefing/. Open agent.config and edit the prompt, add tools, or swap the focus-list rules. See Writing your own agent.

Running it automatically

Add to agent.config:

schedule: "0 8 * * 1-5"   # 8am, Mon–Fri
output: append_to_today    # appends to today's daily note

You'll wake up to a briefing already waiting in today's note.