Skip to content

feat: add focus mode to reduce human interruption - #37

Open
aalvii wants to merge 1 commit into
NanmiCoder:mainfrom
aalvii:feat/focus-mode
Open

feat: add focus mode to reduce human interruption#37
aalvii wants to merge 1 commit into
NanmiCoder:mainfrom
aalvii:feat/focus-mode

Conversation

@aalvii

@aalvii aalvii commented Aug 16, 2026

Copy link
Copy Markdown

feat: add focus mode to reduce human interruption

Summary

  • Add a new focusMode config option (default false, opt-in) to dsh-agent-teams.
  • When enabled, the captain system prompt includes a Focus Protocol:
    • Ask the captain to notify the user only on completion, failure, or a decision that genuinely needs the user.
    • Ask the captain to keep the human-visible task list short and push background work to autonomous agents.
    • Ask the captain not to start extra deep tasks while agents are running, and to batch the final summary.
    • Ask the captain to mark blocked/needs-decision tasks once and wait.
  • When focusMode: false, the previous always-report prompt behavior is preserved.

Motivation

Running multiple agents in parallel increases context-switching cost. This feature lets users keep AgentTeams running in the background without being interrupted by progress chatter, matching the “only notify on completion/failure/needs-decision” pattern from AI multitasking/focus guidance.

Scope / Limitation

  • This is a prompt-level guideline, not a hard notification filter.
  • It changes what the captain is instructed to do; a model may still surface important updates.
  • A future follow-up could add a real delivery filter at the scheduler/mailbox layer.

Test Plan

  • pnpm typecheck
  • pnpm build
  • pnpm verify (offline + lifecycle + stress)
  • Manual config check: focusMode: true adds Focus Protocol to the system prompt section; focusMode: false keeps original text

Notes

  • Default is false (opt-in) to preserve existing behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant