Repository navigation
Release v1.2.0
🚀 New Features
New Skill: email-triage
An autonomous multi-agent email triage skill powered by a dedicated Python wrapper suite around the Google Workspace CLI (gog gmail).
- Multi-Agent Thread Delegation:
- The orchestrator scans the inbox and delegates each email thread to an isolated
Thread Triage Agentsubagent, preventing context bloat and eliminating cross-thread contamination. - Subagents categorize threads into
SPAM,REGULAR, orNEEDS_ATTENTION, perform the corresponding action, and return a standardized structured report (Summary,Performed Action,Proposed Next Action).
- The orchestrator scans the inbox and delegates each email thread to an isolated
- Dynamic Account Discovery & Multi-Account Triage:
- Automatically queries Google accounts via
gog auth status,gog auth alias list, andgog auth list(no hardcoded accounts or aliases). - Automatically prioritizes the configured default account first, then iterates across all connected Gmail accounts.
- Supports account aliases (
work_account,personal_account).
- Automatically queries Google accounts via
- Human-in-the-Loop Safe Communication:
- No Auto-Send: Inbound messages requiring a reply generate Gmail Drafts (
draft_reply.py) for user review before sending. - Safe Deletion: Low-value/spam emails are moved to Gmail Trash (
--trash) retaining a 30-day recovery safety net. Permanent deletion requires explicit--force. - Dry-Run Mode: Full
--dry-runsimulation support across all mutating scripts (apply_triage.py,draft_reply.py,manage_labels.py).
- No Auto-Send: Inbound messages requiring a reply generate Gmail Drafts (
- Curated Python Helper Script Suite (
email-triage/scripts/):common.py: Subprocess runner with JSON parsing, dynamic account resolver, and HTML-to-markdown text cleansing (strips CSS, tracking pixels, scripts, and legal disclaimers).scan_inbox.py: Queries unread inbox threads across all accounts with normalized headers and snippets.read_email.py: Parses multipart/base64 bodies, extracts headers and attachments, and outputs clean readable plain text.apply_triage.py: Executes batch thread mutations (--mark-read,--archive,--trash,--add-label,--remove-label).draft_reply.py: Creates draft replies linked to original messages with auto-populated subjects and threading headers.manage_labels.py: Idempotently sets up default triage labels (Triage/Action-Needed,Triage/Waiting,Triage/FYI).
- Classification & Action Playbooks (
email-triage/references/):classification_rules.md: Heuristics, positive/negative signals, and examples for phishing, spam, automated alerts, and action items.actions_policy.md: Standard operating procedures, draft writing guidelines, and report schemas.
🔄 Enhancements
agent-loop (v1.2.0)
- Strict Pure Orchestration: Enforced coordinator disciplines ensuring the orchestrator thread does zero codebase inspection, searching, or direct editing, leaving all exploration and implementation strictly to subagents.
- Enforced Workspace Skill Delegation: Coordinators must explicitly pass skill paths (
SKILL.md) to subagents rather than inlining or summarizing prompt instructions.
📚 Documentation & Catalog
- Root
README.md: Addedemail-triageas skill #4, updated total skills count to 12, and documented features and security invariants. - Skill Documentation: Authored
email-triage/SKILL.md(orchestration protocol, subagent prompt templates, CLI tables) andemail-triage/README.md(quick start and developer CLI usage). - Strict Path Discipline: Standardized all documentation and references to use strictly relative paths (
./scripts/...,references/...). - Generic Account Naming: Normalized all CLI examples and test fixtures to generic naming (
work_account,personal_account).
🧪 CI & Automated Testing
- GitHub Actions CI Workflow (
.github/workflows/ci.yml):- Added automated test discovery step for
email-triage/tests. - Added
email-triage/to the Python SAST Bandit security scan.
- Added automated test discovery step for
- Test Suite:
- Added 66 comprehensive unit tests across
email-triage/tests/test_common.pyandemail-triage/tests/test_scripts.py(100% pass rate in <0.1s). - Isolated account discovery unit tests with mocks for headless CI environments where local
gogbinaries are not pre-installed.
- Added 66 comprehensive unit tests across