A private, single-user Gmail desktop client for macOS — rules, snooze,
watch-for-reply, and AI triage, layered on top of Gmail with zero remote
content.
Setup guide »
Architecture & Security
·
Report Bug
·
Request Feature
Table of Contents
Augment is a personal Gmail augmentation client. Gmail stays the source of truth; Augment layers the power features other clients paywall — a rules engine, snooze, watch-for-reply, AI triage, quick actions, and native macOS notifications — directly on top.
It talks to the Gmail REST API from the TypeScript layer with an in-memory access token, stores the refresh token in the OS keychain, renders mail with remote content blocked by default, and uses a small Rust backend only for the background scheduler, native notifications, secure storage, and OAuth glue.
The OAuth scopes are gmail.modify and gmail.send: read, label, archive,
move to Trash, save drafts, and send mail from the composer or user-created
Quick Actions. Augment never permanently deletes mail or marks spam.
- macOS (Apple Silicon or Intel) with Xcode Command Line Tools
- Node.js ≥ 20 and npm
- Rust (stable) via rustup
- A Google account and a free Google Cloud project
- Set up your Google OAuth client — see docs/SETUP.md.
- Clone the repo
git clone https://github.com/isaaclins/augment.git cd augment - Install dependencies
npm install
- Add your OAuth credentials to
.envcp .env.example .env # edit .env, paste in GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET - Run the app
npm run tauri dev
After Sign in with Google (a browser tab opens — approve, then return):
| Feature | What it does |
|---|---|
| Inbox + reader | Lists inbox threads, opens a conversation, renders the body sanitized. |
| Rules engine | From/To/Subject/Body conditions → add label / archive / mark read / star. Auto-applies on refresh. |
| Snooze | Archives a thread + tags Augment/Snoozed; at the chosen time it resurfaces in the inbox and fires a macOS notification. |
| Watch for reply | If no inbound reply arrives by the deadline, a macOS notification fires. |
| AI triage | Local Ollama model labels each thread; invented labels surface as approvals in the Assistant panel. |
| Assistant | Right-side chat panel — Ask / Request / Agent modes, acting on selection. |
| Quick Actions | User-defined macros (shortcut → ordered steps: tag, move, mark, snooze, compose, send, …). |
| Private rendering | Email renders as plaintext or sanitized HTML in a sandboxed iframe. Remote images are blocked until allowed per-email or per-sender. |
| Background mode | Closing the main window hides it instead of quitting, so snooze/watch checks keep running while Augment remains open in the menu bar. |
npm run tauri build
# → src-tauri/target/release/bundle/macos/Augment.app
# → src-tauri/target/release/bundle/dmg/Augment_0.1.0_aarch64.dmgnpm run test # frontend (Vitest)
npm run typecheck # tsc --noEmit
cd src-tauri && cargo test # Rust- Inbox, reader, sanitizer, rules, snooze, watch-for-reply
- AI triage with open taxonomy + invent → approve
- Sort / filter view state
- Assistant panel (Ask / Request / Agent)
- Quick Actions + composer
- Background scheduler mode while the app remains running
- Launch-at-login helper / always-on daemon for checks after a full quit
- Chunked agent loop with progress + Stop (lift the 40-row context cap)
- Cross-platform builds (currently macOS only)
See the open issues for the full list.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star!
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'feat: add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more
information.
Isaac Lins — contact@isaaclins.com
Project Link: https://github.com/isaaclins/augment
- Tauri — the desktop runtime
- DOMPurify — sanitization
- Ollama — local LLM for triage and the assistant
- Best-README-Template