Code Blocker

Chrome and Firefox extension

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.

Hero Video

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.

http://localhost:17373

Local session bridge

A lightweight localhost bridge aggregates concurrent agent sessions. Your prompts and source code are never sent to Code Blocker.

http://localhost:17373

Native agent integrations

Lifecycle hooks for Codex, Claude Code, Cursor, and OpenCode report working and idle state automatically.

http://localhost:17373

A blocklist you control

Choose the sites that pull you away. Enable or pause blocking at any time from the browser extension.

code-blocker://settings

How it works

Three steps to agent-aware focus

    1. Install the extension

    Add Code Blocker to Chrome or Firefox, then choose the websites you want kept out of reach.

    2. Connect your coding agents

    Install the integration for Codex, Claude Code, Cursor, or OpenCode. It starts the local bridge and reports session state automatically.

    3. Work as usual

    Use your agent normally. Distractions unlock while it works and lock again when it stops, bringing you back to the task.

Features

Everything needed to make agent wait time focused time

    Live agent status

    See whether agents are working and how many sessions are active.

    Configurable blocklist

    Block full domains and subdomains, with sensible defaults you can edit.

    Concurrent sessions

    Sites stay available while at least one connected agent is still working.

    Private by default

    Only working and idle state crosses the localhost bridge. Prompts and code stay private.

FAQ

Common questions about Code Blocker

Still have questions? Email us at support@codeblocker.dev

Make the next agent wait count

Connect your browser and coding agents, then work exactly as you do today.