Omniscio

Focus mode (part 2)

How Focus mode is built: the CLI entry points, the rule engine and its state machine, the banner count the main process owns, and the contracts the suppression and overlay layers answer to — the implementation detail behind the behaviour on part 1.

On this page

What it is

This is part 2 of the Focus mode page. It carries how the feature is built and what guards it, moved here under the former 40,000-character page cap (retired 2026-10-11).

Where to find it

Nothing on this page is a surface — part 1 covers the chord, the popover and the rule editor. What follows is the code behind them, so it is for a reader with the repository open.

How it behaves

The rule is compiled once and read by every suppression layer, so the sidebar, the main panel, the overlays and the badge cannot disagree about whether Focus mode is on. Below is the state machine, the layers it drives, and the contracts that lock them.

  • Focus mode — part 1 of this page, with the surfaces and the user-facing behaviour.

Last verified 2026-10-02