Skip to content

Feature: Deep work mode with distraction blocking #59

@gloomcheng

Description

@gloomcheng

Problem

As a developer who struggles with focus, I know my most productive hours but still get distracted by Slack, email, etc.

Current State

Toki's `insights` command shows peak hours and context switch patterns, but it's passive observation only.

Proposed Solution

  1. Deep work scheduler - Set protected time blocks based on peak hours analysis
  2. Distraction detection - Track when focus apps (IDE) switch to distraction apps (Slack, Twitter)
  3. Gentle notifications - "You've been on Slack for 15 mins during your deep work block"
  4. Focus score - Daily/weekly metric for uninterrupted work time

Example

```bash
toki focus start --duration 2h

Tracks focus, notifies if context switch detected

toki focus report

Shows focus time vs interruptions

```

Related Pain Points

  • Workflow disruption from time tracking
  • Context switching kills productivity
  • Need actionable insights, not just observation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions