Stayfocusedwhile AIwrites code
Code Blocker keeps distracting sites out of reach while your coding agent is idle, then unlocks them only while it is working.
Local-first. No account or wrapper command required.

Problem
AI coding creates small gaps. Distraction turns them into lost time.
The wait becomes a detour
You hand work to an AI agent, open a distracting tab for a minute, and lose the thread of the task.
Static blockers fight your workflow
Fixed schedules do not know whether your agent is thinking, finished, or waiting for your next decision.
One click breaks concentration
The easiest moment to drift is exactly when the agent stops and your attention is needed back in the terminal.
Solution
A website blocker that understands when your agent is working
Code Blocker connects agent lifecycle events to your browser, so access to distracting sites follows the natural rhythm of AI-assisted coding.
Agent-aware blocking
Sites are blocked when every connected coding agent is idle and made available while any session is working.
Local session bridge
A lightweight localhost bridge aggregates concurrent agent sessions. Your prompts and source code are never sent to Code Blocker.
Native agent integrations
Lifecycle hooks for Codex, Claude Code, Cursor, and OpenCode report working and idle state automatically.
A blocklist you control
Choose the sites that pull you away. Enable or pause blocking at any time from the browser extension.