Focus Mode tells Cody to hold all non-critical notifications while you work. Instead of interrupting you with task reminders and email alerts, Cody keeps a count of everything it silenced. When your session ends, you get a single summary notification — so nothing is lost, but nothing disturbs your flow either.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/miu-ll/Cody-assistant/llms.txt
Use this file to discover all available pages before exploring further.
Focus vs. Do Not Disturb
Cody offers two focus modes with different notification behaviours:focus (timed) | dnd (Do Not Disturb) | |
|---|---|---|
| Duration | 25, 50, or 90 minutes | Indefinite — runs until you cancel |
| Meeting reminders | ✅ Still delivered | ❌ Suppressed (all notifications silenced) |
| Task reminders | ❌ Suppressed | ❌ Suppressed |
| End behaviour | Auto-expires; shows summary notification | Stays active until manually cancelled |
| Summary on end | Shows suppressed count | No summary (you cancelled it deliberately) |
Activating Focus Mode
From the assistant panel
Open the assistant and click the Focus Mode button in the header or sidebar. Choose a duration (25, 50, or 90 minutes) or select Do Not Disturb.
From the pet context menu
Right-click the floating pet to open the context menu. Three options are shown when Focus is inactive:
- Focus Mode 25 min
- Focus Mode 50 min
- Do Not Disturb 60 min
How Suppression Works
Every scheduled reminder (task alerts, Outlook suggestions, general notifications) passes throughscheduleReminder() in the main process. When a reminder fires while a focus session is active, the function checks two conditions before showing the notification:
- In
focusmode: reminders whoseidstarts withmeeting-are still shown; everything else is silenced. - In
dndmode: all reminders are silenced, including meeting notifications.
suppressedCount in the main process. This counter resets when the session ends.
End-of-Session Summary
When a timedfocus session expires naturally (the timer fires), Cody calls endFocus(true). The main process sends a Windows native notification summarising the session:
null to setFocus) calls endFocus(false) — the session ends silently with no summary notification.
window.desktop API
The renderer accesses Focus Mode through the window.desktop bridge defined in electron/preload/index.ts:
minutes argument to setFocus is clamped between 1 and 480 (8 hours) in the main process.
Focus State Persistence and IPC
Focus state lives in the main process (focusState variable) and is never written to disk — it resets if Cody is restarted. When state changes (start, cancel, or natural expiry), the main process emits a focus-changed IPC event to the assistant window:
window.desktop.onFocusChanged(callback) and updates the UI (button state, badge, timer countdown) in real time.
Global Shortcut Reference
| Shortcut | Behaviour when Focus is inactive | Behaviour when Focus is active |
|---|---|---|
Win+Shift+F | Starts a 25-minute focus session | Cancels the current session (no summary) |