π Just Code
Just Code is a rapid development tool that bridges the gap between your local development environment and an AI (LLM) chat interface. It allows you to:
- Send your entire project's context to an LLM with a single click and prompt your task.
- Deploy code generated by the LLM in many files back to your local files with another single click.
- Instantly Undo and Redo any changes that don't work as expected.
- Push-to-Talk Voice Dictation in 2 Modes across your entire operating system (Terminal, Ghostty, IDEs, text editors, browsers) powered by ChatGPT Whisper in a dedicated tab with zero API keys.
This creates a tight, safe, and incredibly fast feedback loop for iterating on code with AI assistance. Because the LLM receives the full context, it can generate scripts that create, modify, and delete dozens of files at once, allowing you to implement complex features with a single deployment.
ποΈ Push-to-Talk Voice Dictation (Server Mode Only)
JustCode includes a built-in system-wide push-to-talk voice dictation service. It leverages OpenAI's Whisper engine through a dedicated ChatGPT browser tab without requiring paid API keys or extra transcription tools.
Two Dictation Modes:
- 1. π§ Background Mode (Hold Right β /
cmd_r):
You stay in your current app (Ghostty, Terminal, VS Code, Google Chrome) while speaking. When you release the key, JustCode grabs the text and pastes it into your cursor instantly.
- 2. π₯οΈ Foreground Mode (Hold Right β₯ /
alt_r):
Switches to the ChatGPT tab immediately when pressed so you can see the screen and prompt box while speaking long text. When you release the key, it grabs the transcript, switches back to your original app/tab, and pastes the text at your cursor.
How to Setup Dictation:
- Run the Server: Start the local Python server (
./app.sh on macOS/Linux or .\app.bat on Windows).
- Open ChatGPT: Open chatgpt.com in Google Chrome and ensure you are logged in.
- Designate the Tab: Open the JustCode extension popup and click the ποΈ Microphone icon in the top navigation bar.
- Push to Talk: In any application (Ghostty, Terminal, VS Code, Slack, Chrome, TextEdit):
- Hold Right β for background dictation or Right β₯ to see the screen.
- Speak your thoughts, and release.
π‘ macOS Permissions Required:
Because the server daemon listens for global keys and simulates Cmd+V, macOS requires the terminal running ./app.sh (e.g. Terminal, Ghostty, or iTerm) to have both Accessibility and Input Monitoring permissions:
- Open System Settings β Privacy & Security β Input Monitoring and enable your terminal.
- Open System Settings β Privacy & Security β Accessibility and enable your terminal.
- Restart your terminal application (
Cmd+Q) so permissions take effect.
π Quick Start Guide
1. Go to Your LLM
Navigate to your favorite AI chat interface. We highly recommend Google AI Studio with the Gemini 2.5 Pro model for the best results.

2. Open JustCode
Click the JustCode icon in your Chrome toolbar. We suggest pinning it for easy access!

3. Select Your Project Folder
In the "Browser (JS) Mode", click "Select Project Folder". You may need to grant permission 2-3 times until Chrome offers the "Allow on every visit" option. This is a crucial step for persistent access.
Alternatively, for more advanced control, check out the Server Mode setup.

4. Get Context & Add Your Task
Click "Get Context". This will load your project files into the AI's chat box. Scroll to the bottom and type your task, for example: "Add a new feature that does X and Y."

5. Filter Large Projects (If Needed)
If your project is large, you'll get a prompt to create an "exclude list". Just send this prompt to the AI. It will reply with a list of files to ignore. Copy this list, paste it into the "Exclude Patterns" field in your JustCode profile, and click "Get Context" again. You may need to repeat this process a few times to fine-tune your exclusions until the project size is under the limit.
Tip: Most projects are 50k-700k characters. If yours is larger, you likely have unneeded files that should be excluded.

6. Deploy Code
After the AI generates its response (a bash script), simply click "Deploy Code" in the JustCode extension. The changes will be applied directly to your local files.

7. Verify & Undo
Check the changes in your IDE. If the result isn't what you expected, just click "Undo". Don't be discouraged if it's not perfectβaround 15% of AI answers have minor mistakes. Refine your prompt and try again!

8. Support the Project
If you find JustCode useful, please consider supporting the project by leaving a star on the GitHub repository. It helps a lot! Thanks in advance!

π‘ Pro Tip: Recommended LLM
While JustCode can work with many LLMs, it is highly optimized for and tested with Google AI Studio using the Gemini 2.5 Pro model. Its large context window (1 million tokens) and strong instruction-following capabilities provide the most reliable results.
βοΈ How It Works
The system consists of a Chrome Extension that can operate in two different backend modes, which you can select per-profile within the extension:
π±οΈ Browser (JS) Backend (Default & Recommended): This mode runs entirely within your browser. It uses the modern File System Access API to directly and safely read your project files and write changes back.
- Pros: No Python or server setup required. It's the simplest and fastest way to get started.
- Cons: Requires you to grant permission for each project folder you want to work with, for first project permissions should be granted twice.
π Server Backend: This optional mode uses a local Flask server (app.py) that you run on your machine. The extension communicates with this server to access your filesystem.
- Pros: Can work with any project path you provide without needing per-folder browser permissions, enables Push-to-Talk Voice Dictation in 2 modes, supports automated Agent terminal tools, and exposes the Model Context Protocol (MCP) bridge.
- Cons: Requires Python and leaving a terminal process running in the background.
The Chrome Extension (chrome_extension/) provides a unified user-friendly interface for both modes, including multi-profile management, settings, and direct action buttons.
Shortcuts
Global Push-to-Talk Dictation (Works across the entire OS in Server Mode):
- Hold Right β (
cmd_r on macOS): Dictate in Background (stay in current app).
- Hold Right β₯ (
alt_r on macOS): Dictate in Foreground (switch to ChatGPT tab and return).
Global Shortcuts (Work even when the popup is closed):
- Get Context:
(ALT + β) or (β₯β)
- Deploy Code:
(ALT + β) or (β₯β)
- Undo:
(ALT + <) or (β₯<)
- Redo:
(ALT + >) or (β₯>)
- Apply Replacements:
(ALT + V) or (β₯V)
Popup-Only Shortcuts (Work only when the popup is open):
- Switch Profile Left:
(ALT + A) or (β₯A)
- Switch Profile Right:
(ALT + S) or (β₯S)
Note on Shortcuts: If a shortcut doesn't work, you may need to set or reset it. Go to chrome://extensions/shortcuts in your browser, find "JustCode", and assign your preferred shortcuts. The ALT + β shortcut might conflict with the browser's "Back" navigation; you can easily remap it on the shortcuts page.
β©οΈ Automatic Undo/Redo History
Never fear a bad deployment again. Just Code includes a powerful safety net that works for both Browser (JS) and Server modes:
- Automatic History: When you click Deploy Code, two scripts are saved:
- The deployment script itself (which becomes the "redo" script).
- An automatically generated "undo" script that perfectly reverses the deployment.
- Instant Recovery: If a deployment produces an undesirable result, simply click the Undo button. Your files are instantly restored. Clicked Undo by mistake? Just click Redo.
- Intelligent History: The undo/redo history works just like in a text editor. If you undo several changes and then make a new deployment, the old "redo" history is cleared, as it no longer applies to the new state of your project.
This feature allows you to experiment and iterate with AI-generated code fearlessly, knowing you can instantly step backward and forward through your changes.
β
Prerequisites
- π Google Chrome or a Chromium-based browser that supports loading unpacked extensions.
For Server Mode & Dictation:
- π Python 3.10 or higher
- π¦
pip and venv (usually included with Python)
- π Git (if you want to use the built-in update feature via
git pull)
- π macOS Accessibility and Input Monitoring permissions for Terminal (for push-to-talk dictation and pasting).
π οΈ Setup
Stage 1: Get the Code
You have two options:
A) Download ZIP (Easiest):
- Go to the JustCode GitHub repository.
- Click
Code > Download ZIP.
- Unzip the file on your computer.
B) Git Clone (For updates & server mode):
git clone https://github.com/achendev/justcode.git
cd justcode
Stage 2: Load the Chrome Extension
Load the Extension:
- Open Chrome and navigate to
chrome://extensions/.
- Enable Developer mode using the toggle switch (usually in the top-right corner).
- Click the Load unpacked button.
- In the file dialog, select the
chrome_extension folder located inside your unzipped or cloned justcode project directory.
Pin the Extension:
- Click the puzzle piece icon π§© in the Chrome toolbar, find JustCode, and click the pin icon to keep it visible.
Stage 3: Configure a Profile
- Open the JustCode extension popup. A default profile is already created for you.
- Choose your backend mode using the toggle button next to the project location input:
- π±οΈ Browser (JS) Mode (Default): Runs entirely in the browser.
- π Server Mode: Connects to a local Python server.
Using Browser (JS) Mode
- Make sure the browser icon is selected in the backend toggle.
- Click the Select Project Folder button. A new small window will open.
- In the new window, click the "Select Folder" button again. This user gesture is required for Chrome to show the folder picker.
- Choose your project's root directory and click Allow.
- Granting Persistent Access: Due to Chrome's security policies, you'll have to grant permission more than once to establish persistent access for a project. For second time the browser will offer an "Allow on every visit", it's required.
Using Server Mode
- Make sure the server icon is selected in the backend toggle.
- Follow the OS-specific instructions in the "Running the Server (Optional)" section below to start the local Python server.
- In the extension, enter the full, absolute path to your project in the "Project Location" text field (e.g.,
/Users/yourname/projects/my-app