Skip to main content
MailSentinel Logo - Owl shield representing intelligent email security and vigilant protection

MailSentinel

AI-powered Gmail classification system with local LLM processing. Built through human-AI collaboration in just 4 hours.

Privacy-FirstLocal ProcessingEnterprise Security

Built Through Human-AI Collaboration

A remarkable 4-hour development sprint showcasing the power of human creativity combined with AI implementation capabilities.

4 Hours Total

Aug 16-17, 2025

From concept to production-ready system with comprehensive testing and documentation.

100% Success

25+ emails processed

Flawless classification across 5 different profiles with zero errors in production testing.

2000+ Lines

Production Go code

Complete implementation with OAuth, LLM integration, audit systems, and comprehensive tests.

Enterprise-Grade Email Intelligence

Advanced email classification with privacy-first architecture and production-ready security.

Local LLM Processing

All inference via local Ollama - zero cloud calls, complete privacy protection.

Profile-Driven Classification

Modular YAML profiles with inheritance, dependencies, and few-shot learning.

Cryptographic Audit Trails

Immutable decision logs with SHA-256 integrity verification and encrypted storage.

Circuit Breaker Patterns

Resilient handling of external dependencies with automatic failover and recovery.

Dry-Run Safety

Safe testing mode with comprehensive validation before applying any email changes.

Policy Resolution

Advanced conflict resolution with priority rules and confidence weighting.

Production Performance

Built for enterprise scale with rigorous performance targets.

≤1.5s
Single Email Processing
p95 latency target
100 emails
Batch Processing
in ≤30 seconds
≤512MB
Memory Usage
1000 email batch
99.9%
Uptime Target
scheduled operations

Ready to Get Started?

Deploy MailSentinel in minutes with our comprehensive setup guide and example profiles.

# Quick installation
git clone https://github.com/copyleftdev/mailsentinel.git
cd mailsentinel && go mod tidy

# Setup Ollama and pull model
ollama serve && ollama pull qwen2.5:7b

# Run in safe dry-run mode
./bin/mailsentinel -dry-run -query "is:unread" -max-emails 10