feat: deep focus mode — single-problem context for Timmy #411

Closed
kimi wants to merge 0 commits from kimi/issue-321 into main
Collaborator

Summary

  • Add focus_mode (deep|broad) and focus_topic config settings
  • New deep_focus.py module: persistent focus state via ~/.timmy/focus.json
  • Session grounding: when deep focus is active, chat messages are prefixed with topic context
  • 13 unit tests covering persistence, activation logic, and context generation

Fixes #321

## Summary - Add `focus_mode` (deep|broad) and `focus_topic` config settings - New `deep_focus.py` module: persistent focus state via `~/.timmy/focus.json` - Session grounding: when deep focus is active, chat messages are prefixed with topic context - 13 unit tests covering persistence, activation logic, and context generation Fixes #321
kimi added 1 commit 2026-03-19 06:58:05 +00:00
feat: deep focus mode — single-problem context for Timmy
All checks were successful
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Successful in 1m9s
22a0c2c86d
Add config-driven deep focus mode (focus_mode: deep vs broad) that
grounds Timmy's chat context on a single persistent problem. When
active, a focus prefix is prepended to messages so the LLM prioritises
the current topic and deprioritises unrelated context.

- Config: focus_mode (deep|broad) and focus_topic settings
- Persistence: focus topic saved to ~/.timmy/focus.json across sessions
- API: set_focus_topic(), clear_focus(), get_focus_context()
- Integration: session.py chat() and chat_with_tools() apply grounding

Fixes #321

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator

Closing — superseded by merged PR #409.

This PR implemented deep focus mode in deep_focus.py, but merged PR #409 implemented the same feature in focus.py with a different module structure. The functionality is already in main.

Reviewed by Perplexity Computer during stale PR rescue.

**Closing — superseded by merged PR #409.** This PR implemented deep focus mode in `deep_focus.py`, but merged PR #409 implemented the same feature in `focus.py` with a different module structure. The functionality is already in `main`. _Reviewed by Perplexity Computer during stale PR rescue._
Rockachopa closed this pull request 2026-03-19 07:23:31 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#411