ClaudeCodeMod

All shelves / Mods / Workflow

browser-lanes

By hamzafer

browser-lanes is a Claude Code workflow mod by hamzafer.

Draws whether this session has a Playwright browser and who holds it. A subagent that wants the browser waits until the one using it is done.

DrawsHolds a command

Install

The marketplace name is claude-code-mods.

In your shell
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install browser-lanes@claude-code-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.3
License
MIT
Repo stars
381
Last change
2026-10-15

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls
  • Calls another program on this machine

Claude Code 2.1.287 or later. The author says to restart after installing. Run the Playwright MCP server with --isolated: claude mcp add playwright --scope user -- npx @playwright/mcp@latest --isolated. Without it, every session shares one Chrome profile, and the second one gets an error that the browser is already in use. When a browser call fails that way, it offers to close the blocking browser and tries again. /browser clean lists the browsers other sessions left open and closes the ones you pick; it closes Chrome only, never a Claude session. The session's own browser closes when the session ends. Subagents in one session take turns: a second one's browser call waits until the first is done, by closing it, finishing, or sitting idle for 90 seconds, for up to 5 minutes. Screenshots get the name of the agent that took them, such as login-test-03.png.

The marketplace, claude-code-mods, holds all of hamzafer's mods. This one installs on its own, or from the checklist that npx claude-code-mods@latest opens. Sharing one browser between agents is why this page files it under workflow. terminal-browser, by zenbu-labs, opens a real browser in a pane inside Claude Code to preview sites and HTML, and lets the agent drive it. This one adds no browser of its own: it keeps the Playwright browser Claude already uses to one driver at a time. In the source, a browser call that waits more than 5 minutes is refused with the name of the one holding it, and another Claude session that used the browser in the last 90 seconds gets a warning.

Demo

The browser-lanes section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/browser
  • session.endWhen a session ends
  • agent.spawnWhen a subagent starts
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /browserShow if this session has a Playwright browser; /browser clean closes other sessions' browsers

Files

The author's source, 3 files. They load when you open them.

Facts

Author
hamzafer
Category
Workflow
Marketplace
claude-code-mods
Repo
hamzafer/claude-code-mods
Folder
mods/browser-lanes
Version
0.1.3
License
MIT
Repo stars
381
Last change
2026-10-15
Language
TypeScript
Files
8

Other mods in Workflow

glancehamzaferDraws one line above the prompt for what needs you: the next meeting, pull requests, Linear issues, and Slack DMs.session-saverhamzafer/park saves where you left off. The next time that session resumes, it draws the note.prayer-timeshamzaferDraws the current prayer and how long is left, the next prayer, and zawal, above the prompt. Computed on your computer. The author says nothing is sent out.tool-radarSingh-APDraws a pane of every tool call as it happens, with status, arguments, duration, and failures.git-pulseSingh-APDraws the branch, ahead and behind, and dirty files on the status line, and a heads-up when Claude commits.test-pulseSingh-APDraws pass or fail on the status line, toasts when the suite flips, and marks flakes.aimSingh-APDraws one goal above the prompt, with a timer and Done and Clear. /aim sets it. Claude is told to stay on it and name side quests instead of doing them.pin-boardarasovicDraws standing notes in one row above the prompt. /pin adds one. Claude gets it again after /compact and /clear. --keep stores it for the folder.ci-watcharasovicAfter Claude pushes, opens a pull request, or pushes a tag, draws a progress bar above the prompt for each GitHub Actions run, then pass or fail.loop-guardarasovicAdds a note to the second identical failure of a tool call, telling the model not to try a third time, and shows a toast when it does.compact-keeperarasovicSaves a handoff file at each compaction: tokens before and after, your /compact instructions, the files edited since the last one, and Claude Code's summary.switchboardhamzaferPicks the model for each subagent that names none, draws each pick above the prompt, and shows what every subagent cost in /route.
All 396 in Workflow