Feature switches
On this page
Settings, Features turns whole areas of Hatch on or off. Someone who wants a plain notes app picks Notes only. Someone who wants everything leaves it on Everything, the default. Any mix in between shows as Your mix.
| Feature | Turning it off takes away |
|---|---|
| AI chat | The Chat panel, Settings, AI, the chat commands (Mod+J), the chat step of the Get started guide, and the "with the chat" buttons in Your components |
| Agent sessions | Agent sessions in the sidebar, its commands, and its screens (an old link shows the off page) |
| Publishing | Settings, Publish, the Sites button, the Site panel, site kits on the start screen and in the guide, the publish and responses commands, the candidate actions on boards, and the pull of form responses and applications every 10 minutes |
| Slides | The Slides panel, Present, Turn into slides, slide exports (menu and commands), and the Present button on decks |
| Canvas | New canvas (menus and commands). A .canvas file opens on the off page |
| Collections | New collection (menus and commands) and the Collection item in the / menu. A .base file opens on the off page, and a ```base block shows as its source |
Writing, links, tags, search, daily notes, templates, folders as boards, export to Word and PDF, and sync stay in every mix. Smaller pieces (outline, graph, comments, version history, Git backup) keep their own switches in Settings, Plugins.
Rules
- The vault never changes. Turning a feature off hides it. Files stay where they are, and Obsidian still opens them. A file of a feature that's off opens on a page that says so, with a button to turn it back on (
components/FeatureOff.tsx). - Gone means gone. No disabled buttons, no "upgrade" teasers. The menus, commands, panels, settings pages and sidebar rows of a feature that's off aren't drawn at all, and its deferred code is never fetched (
warmDeferredindeferred.ts). - Plugins follow. A feature lists the built-in plugins that belong to it (
pluginsinfeatures.ts). While it's off,PluginHost.holdkeeps them stopped whatever their own switch says, and Settings, Plugins leaves them out. Turned back on, each starts again unless its own switch is off. - Old links still land. An address naming a panel of a feature that's off opens without it, on a fresh load too, and a panel kept on this device from before is forgotten.
/settings/aiwith AI off shows the first settings page. - Kept on this device, like which plugins are on. The device setting
features:offlists the features turned off, so a feature added later starts on.
Adding a feature
- Add it to
FEATURESinpackages/app/src/features.ts, with its built-in plugins. - Hide each place it shows up behind
store.state.features.<id>(oruseAppState((s) => s.features.<id>)in a component). Commands go incommands.ts, menus where they're drawn. - If it has a screen in the main area, return its id from
featureOfView. - If it has deferred code, skip it in
warmDeferredwhile it's off. - Add a line to the table above, and a check to
scripts/e2e-features.py.