Turn any AI chatbot into an autonomous coding agent
Project description
Browse Code
Browse Code is a CLI tool that turns any AI chatbot (ChatGPT, Gemini, Claude, HuggingFace) into an autonomous coding agent. It bridges your browser and local terminal, letting AI read/write files, run commands, and manage processes on your machine.
How It Works
Browse Code has two parts:
- A local server that exposes your file system and terminal to the AI via a secure API.
- A Chrome extension that injects agent capabilities into AI chat interfaces.
When connected, you can ask ChatGPT/Gemini/Claude to edit files, run scripts, search code, and more — all executed locally on your machine.
Setup
Step 1: Install the package
pip install browse-code
Step 2: Run the CLI
bc
If
bcis not found, add your Python Scripts folder to PATH:# Windows (PowerShell) $env:Path += ";$env:APPDATA\Python\Python312\Scripts" # Or run directly python -m browse_code.cli
Step 3: First-run extension setup
On the first run, bc will guide you through a one-time Chrome extension setup:
- It asks for your permission to extract the extension files.
- It copies the extension to
~/.browse_code/extension/and copies the path to your clipboard. - It opens
chrome://extensions/in your browser automatically. - You enable Developer mode (top-right toggle), click Load unpacked, and paste the path.
- Press Enter in the terminal and the server starts.
You only do this once. The extension stays loaded in Chrome across sessions.
Step 4: Start an AI session
- Open any supported AI chat (ChatGPT, Gemini, Claude, or HuggingFace Chat).
- Click the Browse Code Bridge extension icon and set your workspace directory.
- Click "Initialize Agent in Chat".
- Start coding with AI — it now has full access to your local environment.
Subsequent Usage
After the first-time setup, just run:
bc
The server starts immediately. Open your AI chat tab and you're ready to go. The server terminal will show:
- A startup banner with your workspace and endpoint
[+] Extension connectedwhen the browser extension connects- Real-time logs of every file read, write, command execution, and diff
Features
- File Operations: Read, write, and patch files with inline terminal diffs
- Code Search: Search across your entire codebase by keyword
- Terminal Commands: Run shell commands with full stdout/stderr capture
- Background Processes: Start, monitor, and kill long-running processes
- Multi-Platform AI: Works with ChatGPT, Gemini, Claude, and HuggingFace Chat
- Extension Heartbeat: Server detects when the browser extension connects/disconnects
For Developers
- Clone the repository:
git clone https://github.com/Dedeep007/browse_code.git cd browse_code
- Install in editable mode:
pip install -e .
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - 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.11.tar.gz.
File metadata
- Download URL: browse_code-0.2.11.tar.gz
- Upload date:
- Size: 44.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565ca945142f5bf0a5bb024a65e1af45fa32b00fc2936f96de7db84263c18565
|
|
| MD5 |
3758697fd32677971c76ff8487c81c9e
|
|
| BLAKE2b-256 |
22d713516c2578633586fc4d721591b5b7d9c4b96aaa90f0b3793dbadb533679
|
Provenance
The following attestation bundles were made for browse_code-0.2.11.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.11.tar.gz -
Subject digest:
565ca945142f5bf0a5bb024a65e1af45fa32b00fc2936f96de7db84263c18565 - Sigstore transparency entry: 2145990665
- Sigstore integration time:
-
Permalink:
Dedeep007/browse_code@55efcc1f8d54939d3ae520cb1b5c5873f1bc6c81 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/Dedeep007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@55efcc1f8d54939d3ae520cb1b5c5873f1bc6c81 -
Trigger Event:
push
-
Statement type:
File details
Details for the file browse_code-0.2.11-py3-none-any.whl.
File metadata
- Download URL: browse_code-0.2.11-py3-none-any.whl
- Upload date:
- Size: 42.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aae956bd521d8e1cff8ab2123c5f646bcfd5f636434f91e22de8cc2f4d895a4
|
|
| MD5 |
1ac533f9a3ff1a9d290c025bca2ad60f
|
|
| BLAKE2b-256 |
5f1d573a089ca9f8a96267eb212805e9e3f4764e809224c2ddc080a358d2a0c4
|
Provenance
The following attestation bundles were made for browse_code-0.2.11-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.11-py3-none-any.whl -
Subject digest:
6aae956bd521d8e1cff8ab2123c5f646bcfd5f636434f91e22de8cc2f4d895a4 - Sigstore transparency entry: 2145990670
- Sigstore integration time:
-
Permalink:
Dedeep007/browse_code@55efcc1f8d54939d3ae520cb1b5c5873f1bc6c81 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/Dedeep007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@55efcc1f8d54939d3ae520cb1b5c5873f1bc6c81 -
Trigger Event:
push
-
Statement type: