
Trigger Raycast Focus and block Social Media unless you have work currently running in AI agents. Inspired by a tweet from @theo.
The extension manages a session counter:
This logic ensures that if you are not actively using an AI agent, your environment remains distraction-free.
The Setup AI Agent Hooks command configures the following agents:
~/.claude/settings.json to include SessionStart and SessionEnd hooks.~/.cursor/hooks.json with beforeSubmitPrompt and stop hooks.~/.config/opencode/plugin to track sessions..zshrc and .bashrc.Users can configure Focus settings in Raycast Preferences:
social,news).Inspired by a tweet from @theo
Displays the current number of active AI Agent sessions and focus state.
Configures Claude and Cursor to trigger counter when sessions start or end.