Skip to content

pisrcio/refined-claude-code-on-the-web

Repository files navigation

Refined Claude Code on the Web

Refined Claude Code on the Web

A Chrome extension to enhance the Claude web experience with improved code editing capabilities.

Add to Chrome

Naming Inspiration: The name "Refined Claude Code on the Web" is inspired by the excellent Refined GitHub Chrome extension, which enhances the GitHub experience with thoughtful UI improvements.

Recommended Workflow: This extension is built around this workflow, which inspired most of the "refined" features here.

Disclaimer

This project is not affiliated with, endorsed by, or associated with Anthropic. "Claude" is a trademark of Anthropic. This is an independent, community-built tool.

The Refined Workflow

  1. Plan - Use Plan mode to design your approach
  2. Execute - Let Claude implement the changes
  3. Pull - Click the "Pull Branch" button to get the code locally
  4. Test - Run your tests locally
  5. Teleport - If needed, click "Open in CLI" to continue in your local environment
  6. Repeat - Iterate until the feature is complete
  7. Create PR - Open a pull request for review
  8. Resolve conflicts - If conflicts exist, click the "Merge [main]" button
  9. Test again - Verify everything works after merging
  10. Merge PR - Complete the pull request

Features

Pull Branch Button

Adds a convenient button to copy the git pull command for the current branch directly to your clipboard.

Pull Branch

Merge Branch Button

Adds a button next to PRs to copy the merge command for resolving conflicts from the main branch. This makes it easy to keep your feature branch up-to-date before merging a PR.

Merge Branch

Tip: Configure the main branch name per project in Project Settings (defaults to main).

Project Settings

Customize how individual projects appear and behave in the sidebar.

Project Settings

Features:

  • Color Coding - Assign distinct colors to projects for visual identification in the sidebar
  • Main Branch - Configure which branch is the "main" branch per project (used by the Merge button)

Access project settings via the extension popup.

Blocked Sessions

Mark sessions as "blocked" to track sessions that are stuck, need attention, or should be avoided.

Blocked Sessions

How it works:

  • Hover over any session in the sidebar to reveal action buttons
  • Click the warning icon to mark a session as blocked
  • Optionally add a reason message (appears in tooltip on hover)
  • A persistent indicator shows blocked sessions even when not hovering
  • Click the blocked button again to unblock

Blocked status persists across browser sessions via Chrome storage.

Scroll to Top Button

A floating button in the bottom-right corner that scrolls to your last user message in the conversation.

Scroll to Top Button

How it works:

  • Appears as a subtle arrow button in the bottom-right corner
  • Click to instantly scroll to your most recent message
  • Useful for long conversations where you need to review your last prompt

Fullscreen Conversation Mode

Removes the max-w-3xl width constraint on the conversation area, allowing messages to use the full available width. Adds a Table of Contents (ToC) sidebar on the right side of the screen listing each user message in the conversation.

Fullscreen Conversation Mode

How it works:

  • Removes the max-width constraint so conversation messages span the full width
  • A ToC sidebar appears on the right with an entry for each user message
  • Click any ToC entry to scroll directly to that message
  • Hover over the ToC to slowly auto-scroll through the list
  • The ToC scrolls back to the top when you move your mouse away

Fullscreen Plan Panel

Removes the max-width constraint on the plan review panel, allowing it to use the full available width on wider screens.

Fullscreen Plan Panel

Refined Label

Shows a "Refined" badge in the header indicating the extension is active. Click to toggle all features on/off.

Refined Label

Settings Popup

Click the extension icon in your Chrome toolbar to access all settings.

Settings Popup

Available controls:

  • Master toggle to enable/disable all features at once
  • Individual feature toggles for fine-grained control
  • Project settings configuration (colors and main branch)

Installation

From Source (Development)

  1. Clone this repository:

    git clone https://github.com/pisrcio/refined-claude-code-on-the-web.git
  2. Open Chrome and navigate to chrome://extensions/

  3. Enable "Developer mode" in the top right corner

  4. Click "Load unpacked" and select the cloned repository folder

  5. The extension should now be installed and active

Development

Prerequisites

  • Google Chrome browser
  • Basic knowledge of Chrome extension development

Project Structure

├── manifest.json    # Chrome extension manifest (Manifest V3)
├── content.js       # Main content script - all UI injection and features
├── content.css      # Styles for injected UI elements
├── popup.html       # Settings popup UI
├── popup.css        # Settings popup styles
├── popup.js         # Settings popup logic
├── icons/           # Extension icons (16px, 48px, 128px, SVG)
├── screenshots/     # Feature screenshots
├── TEST_PLAN.md     # Manual testing guide
├── CLAUDE.md        # Guidance for Claude Code AI assistant
├── LICENSE          # MIT License
└── README.md        # This file

Making Changes

  1. Make your changes to the source files
  2. Go to chrome://extensions/
  3. Click the refresh icon on the extension card to reload

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

About

A Chrome extension to enhance the Claude Code on the web experience with improved code editing capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors