Skip to main content

Turn any AI chatbot into an autonomous coding agent

Project description

Browse Code

Browse Code

PyPI - Version Downloads Python Version License

Browse Code is a powerful CLI tool and browser extension that turns any web-based AI chatbot (ChatGPT, Gemini, Claude, HuggingFace) into a fully autonomous coding agent (similar to Devin or Antigravity) running right on your local machine.

Stop copy-pasting code back and forth! Browse Code bridges your browser and local terminal, granting your favorite AI the ability to securely read files, execute true regex searches, surgically replace code, and run terminal commands directly in your workspace.

Tool Formatting Example


Why Browse Code?

  • 100% Free Autonomous Agents: Leverage the free tiers of powerful models like Claude 3.5 Sonnet or Gemini 1.5 Pro to build entire projects autonomously without paying for expensive agent services.
  • Local & Secure: Your code stays on your machine. The AI only reads what it searches for.
  • Seamless Integration: Works out-of-the-box with ChatGPT, Claude, Gemini, and HuggingFace Chat.
  • Advanced Tooling: Features true regex codebase searching, precise line-based surgical edits, and asynchronous background process monitoring.

How is this different from Claude Code / Cursor / Devin?

Most autonomous coding tools (like Claude Code, Cursor, or Devin) are API-based. This means you must provide your own API keys, and you pay per token for every single file read, search, and edit. Over a long coding session, this can easily cost dollars per hour!

Browse Code is entirely different. It operates purely via a Chrome Extension that injects agentic workflows directly into the native web UI of ChatGPT, Gemini, or Claude.

This means you don't need ANY API keys! It hijacks your existing free or Plus subscription and turns the standard web chat into a fully integrated, local execution environment for free.


How It Works

Browse Code consists of two tightly integrated components:

  1. A Local Python Server (bc): Exposes your file system and terminal to the AI via a secure local API.
  2. A Chrome Extension: Injects agent capabilities and hidden tools directly into the AI chat interface, passing messages back and forth flawlessly.

Quick Setup

Step 1: Install the Package

pip install browse-code

Step 2: Run the CLI

You can run the server from anywhere on your machine:

bc

Note: If bc is not found, add your Python Scripts folder to PATH, or run directly via python -m browse_code.cli.

Step 3: First-Run Extension Setup (One-Time)

On your very first run, bc will guide you through a simple Chrome extension setup: For Chrome / Edge / Brave / Chromium:

  1. It automatically extracts the extension to ~/.browse_code/extension_chrome/ and copies the path to your clipboard.
  2. It opens chrome://extensions/ in your browser.
  3. Enable Developer mode (top-right), click Load unpacked, and paste the path.

For Firefox / LibreWolf / Waterfox:

  1. Open about:debugging in your URL bar.
  2. Click This Firefox on the left menu.
  3. Click Load Temporary Add-on...
  4. Navigate to ~/.browse_code/extension_firefox/ and select the manifest.json file.

Press Enter in your terminal. You're done!

Step 4: Start Coding Autonomously

  1. Open any supported AI chat (ChatGPT, Gemini, Claude, or HuggingFace Chat).
  2. Click the Browse Code Bridge extension icon (the puzzle piece) in your browser toolbar.
  3. Paste the Authentication Key shown in your bc terminal into the extension popup.
  4. Set your desired workspace directory in the popup.
  5. Click Initialize Agent in Chat.
  6. Give the AI a task (e.g., "Build a React Native app that syncs gallery photos") and watch it work entirely on its own!

Core Capabilities

  • Directory Exploration (view_dir): The AI can map out your project structure.
  • True Regex Search (search_code): Blazing fast codebase search using compiled Python regex.
  • Surgical Reading (read_lines): Reads specific chunks of files to preserve LLM token context.
  • Precise Editing (replace / write): Surgically replaces specific code blocks using start/end line bounds to eliminate hallucination, complete with beautiful inline terminal diffs!
  • Terminal Execution (terminal_run): Runs synchronous shell commands with full stdout/stderr capture (e.g., git commit, ls).
  • Background Processes (terminal_bg): Starts and monitors long-running dev servers or build scripts (e.g., npm run dev) asynchronously.

For Developers

Want to contribute or hack on Browse Code?

  1. Clone the repository:
    git clone https://github.com/Dedeep007/browse_code.git
    cd browse_code
    
  2. Install in editable mode:
    pip install -e .
    

Contributions are always welcome! Feel free to open a Pull Request.


License

Distributed under the MIT License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browse_code-0.2.81.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

browse_code-0.2.81-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

Details for the file browse_code-0.2.81.tar.gz.

File metadata

  • Download URL: browse_code-0.2.81.tar.gz
  • Upload date:
  • Size: 58.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for browse_code-0.2.81.tar.gz
Algorithm Hash digest
SHA256 91c68e5ae6d4cdbcf2ede5264567fb9e6016b061968beed9731659a2b9a3e118
MD5 61e8e285153524055ced127b32a5f3fc
BLAKE2b-256 5c487dcb3d226112cf72635f2f31d5ac712893bbc38c91592f012324ad5decf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for browse_code-0.2.81.tar.gz:

Publisher: publish.yml on Dedeep007/browse_code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file browse_code-0.2.81-py3-none-any.whl.

File metadata

  • Download URL: browse_code-0.2.81-py3-none-any.whl
  • Upload date:
  • Size: 59.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for browse_code-0.2.81-py3-none-any.whl
Algorithm Hash digest
SHA256 4c68c1dff6cfecf6ce22583fbb8757d17b1d2ef57d3905dba35da26dc0cab7dd
MD5 c7b18b2b936d13cd0dbe7f596b787460
BLAKE2b-256 382e74dac9719db301dc90363292629c0d3a2f4412f64c6f691ce0ed64ac6a68

See more details on using hashes here.

Provenance

The following attestation bundles were made for browse_code-0.2.81-py3-none-any.whl:

Publisher: publish.yml on Dedeep007/browse_code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page