Skip to content

Add Summary Digest feature and Memo triage action#31

Merged
omarshahine merged 1 commit intomainfrom
feature/summary-digest
Feb 17, 2026
Merged

Add Summary Digest feature and Memo triage action#31
omarshahine merged 1 commit intomainfrom
feature/summary-digest

Conversation

@omarshahine
Copy link
Owner

Summary

  • Summarize action: AI-summarizes flagged emails, attaches memo to email, generates a newspaper-style reading digest HTML with per-item Archive/Delete actions
  • Memo action: Standalone triage action to attach user-written private annotations to emails via Fastmail's new create_memo API, then archive
  • Reading category: New classification category with learning support — domains with 3+ summarize decisions auto-populate reading_senders list for pre-classification

Changes

New files (3)

  • assets/reading-digest.html — Dark-themed digest UI with summary cards, bulk actions, decision export
  • agents/reading-digest-generator.md — Sonnet agent that reads state, injects data into template, opens browser
  • data/reading-digest-state.example.yaml — Schema for summarized items + processing history

Modified files (10)

  • assets/batch-triage.html — Indigo (summarize) + sky-blue (memo) themes, actions in all 9 dropdowns, stats/progress counting
  • agents/batch-processor.md — Summarize handler (flag + body + AI summary + memo + digest), Memo handler (attach text + archive), digest processing mode
  • agents/batch-html-generator.md — Reading category classification with reading_senders lookup
  • agents/decision-learner.md — Section G: detect summarize patterns, auto-add to reading_senders
  • commands/batch.md--digest argument for processing reading digest decisions
  • data/settings.example.yamlcreate_memo tool mapping (Fastmail/Gmail/Outlook)
  • data/decision-history.example.yaml — New action types: summarize, memo, summarize_archive, summarize_delete + reading_senders list
  • data/.gitignore — reading-digest-state.yaml
  • .claude-plugin/plugin.json — v1.13.1, memo keyword
  • marketplace.json — v1.14.1, memo keyword

Test plan

  • Run /chief-of-staff:batch — verify Summarize and Memo actions appear in all dropdowns with correct colors
  • Select Summarize for 2-3 emails, submit, run /chief-of-staff:batch --process — verify emails flagged, memos attached, digest HTML opens
  • Select Memo for an email with notes text, submit, process — verify memo attached and email archived
  • Review digest, pick Archive/Delete, submit, run /chief-of-staff:batch --digest — verify emails processed and state cleared
  • After 3+ summarize decisions for same domain, verify next --generate pre-classifies into reading category

🤖 Generated with Claude Code

Introduces a new "Summarize" workflow for batch triage: AI-summarizes
flagged emails into a newspaper-style reading digest with per-item
Archive/Delete actions. Also adds "Memo" as a standalone action to
attach private annotations to emails via Fastmail's new memo API.

Phase 1 (core): summarize action in triage HTML, processor handler,
reading-digest-state schema, --digest batch command
Phase 2 (digest UI): reading-digest.html template, generator agent
Phase 3 (learning): reading category classification, pattern detection
Memo: standalone action with sky-blue theme, provider-agnostic mappings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omarshahine omarshahine merged commit 457dcbe into main Feb 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant