Architecture
Planes
┌─────────────────┐ poll/classify ┌──────────────────┐
│ Gmail (owned) │◄──────────────────────►│ Himalaya CLI │
└────────┬────────┘ └────────┬─────────┘
│ │
│ envelopes │ read / draft
▼ ▼
┌─────────────────┐ Agent.prompt ┌──────────────────┐
│ aei check/watch│───────────────────────►│ Cursor SDK │
└─────────────────┘ │ (local cwd) │
└──────────────────┘
-
Mail plane — Himalaya (+ ortie/token broker).
aeiand agents shell out; no parallel OAuth stack in-process. -
Agent plane —
@cursor/sdklocal runtime in a mapped repo checkout. -
Safety — prompts and config insist on draft-only write-back.
Classification
Rules in JSON5 config match from / subject substrings. First match wins. Actions:
-
draft-reply— correspondence / PR notifications -
investigate-ci— failing checks mail -
ignore— explicit drop