AI tool, Python
A command-line tool that sorts client emails into categories with Claude, rates their urgency and drafts a reply. It never sends on its own.

- Tests
- 19 pytest + 14 node
- Categories
- Closed 6-value enum
- Posture
- Draft-not-send
The problem
Strata firms get a high volume of inbound emails across shared inboxes, and the office manager spends the first 90 minutes of every morning reading and sorting them, in a workflow where send-without-review is not on the table.
What I built
A single-file Python CLI that turns an inbound client enquiry into a triaged, actionable record: Claude picks from a closed six-category enum, self-rates confidence, scores urgency (legal/safety/financial deadlines surface first), drafts a polite Australian-English reply under a no-invented-facts rule, and recommends a routing action. Every output a draft a human reviews before sending. Output is a typed dataclass with PII-aware flags; three layers of error handling map API failures to distinct exit codes. A browser-based live demo shares its system prompt with the CLI, and a CI drift-guard fails the build if the two fall out of lock-step.
Strict JSON-output prompting with a closed category enum, self-rated confidence, urgency scoring so tribunal-bound complaints surface first, and a polite AU-English draft reply: a structured queue staff can scan, edit, and send.


