Turn any AI chatbot into an autonomous coding agent
Project description
Browse Code
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.
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:
- A Local Python Server (
bc): Exposes your file system and terminal to the AI via a secure local API. - 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
bcis not found, add your Python Scripts folder to PATH, or run directly viapython -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:
- It automatically extracts the extension to
~/.browse_code/extension/and copies the path to your clipboard. - It opens
chrome://extensions/in your browser. - Enable Developer mode (top-right), click Load unpacked, and paste the path.
- Press Enter in your terminal. You're done forever!
Step 4: Start Coding Autonomously
- Open any supported AI chat (ChatGPT, Gemini, Claude, or HuggingFace Chat).
- Click the Browse Code Bridge extension icon in your browser toolbar and set your workspace directory.
- Click Initialize Agent in Chat.
- 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?
- Clone the repository:
git clone https://github.com/Dedeep007/browse_code.git cd browse_code
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browse_code-0.2.62.tar.gz.
File metadata
- Download URL: browse_code-0.2.62.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5da439a5a3f09b57e2ee9d1756f81fc0785a626680df1a2891f4c6603b65866
|
|
| MD5 |
77bc9c5534db547ac4757a28e0afeb12
|
|
| BLAKE2b-256 |
949e13f72eff3480526c8fd992e13b90d1208fabfbedf6c964795f2d3ce9479e
|
Provenance
The following attestation bundles were made for browse_code-0.2.62.tar.gz:
Publisher:
publish.yml on Dedeep007/browse_code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
browse_code-0.2.62.tar.gz -
Subject digest:
e5da439a5a3f09b57e2ee9d1756f81fc0785a626680df1a2891f4c6603b65866 - Sigstore transparency entry: 2203396371
- Sigstore integration time:
-
Permalink:
Dedeep007/browse_code@8da6c32b8ee9c94215fe84c8fc517142013a968e -
Branch / Tag:
refs/tags/v0.2.62 - Owner: https://github.com/Dedeep007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8da6c32b8ee9c94215fe84c8fc517142013a968e -
Trigger Event:
push
-
Statement type:
File details
Details for the file browse_code-0.2.62-py3-none-any.whl.
File metadata
- Download URL: browse_code-0.2.62-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a384fb7009de645b32e6e2c1b7f2cafe28dcf4a6ceb14f33100ccb37c95ee088
|
|
| MD5 |
c65f65e779c7651a60d1b434730aadcb
|
|
| BLAKE2b-256 |
47388d0f1ae751405975197532bd2223df200062e1a33da8bedec6f8dabc7b34
|
Provenance
The following attestation bundles were made for browse_code-0.2.62-py3-none-any.whl:
Publisher:
publish.yml on Dedeep007/browse_code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
browse_code-0.2.62-py3-none-any.whl -
Subject digest:
a384fb7009de645b32e6e2c1b7f2cafe28dcf4a6ceb14f33100ccb37c95ee088 - Sigstore transparency entry: 2203396382
- Sigstore integration time:
-
Permalink:
Dedeep007/browse_code@8da6c32b8ee9c94215fe84c8fc517142013a968e -
Branch / Tag:
refs/tags/v0.2.62 - Owner: https://github.com/Dedeep007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8da6c32b8ee9c94215fe84c8fc517142013a968e -
Trigger Event:
push
-
Statement type: