Get started with PatchPort v0.6.0
Install the PatchPort extension, connect two AI terminals on the board, and review your first change in a working copy.
This guide follows version 0.6.0, the one published on Visual Studio Marketplace. The extension's interface is in English, so button and panel names appear here as they do on screen. Commands and file formats may change before 1.0.
Install#
| Requirement | Why |
|---|---|
| Local desktop VS Code 1.100 or later | Hosts the board and the managed terminals |
| Python 3.11 or later | Runs the core bundled with the extension; Python itself is not bundled |
| Codex CLI and/or Claude Code | Runs the AI sessions with each CLI's existing sign-in and permissions |
| A local project folder you trust | Sets the working directory for the terminal cards |
Install the extension
Install PatchPort from Visual Studio Marketplace, or paste this into Quick Open. If you have a native VSIX instead, use Extensions › … › Install from VSIX with the file that matches your OS and CPU.
VS Code Quick Open (Ctrl+P)ext install utialy.patchportOpen a project and the board
Open the local project folder you want to work in and review the workspace trust prompt; restricted workspaces can't run PatchPort terminals. Press Ctrl+Shift+P (Cmd+Shift+P on macOS) and run PatchPort: Open AI Terminal Board. You should see an empty board or your saved cards. Opening the board does not start any AI session.
Point to Python if needed
If Python can't be found, search VS Code Settings for
patchport.corePython. Leave it empty to usepythonon Windows orpython3on Linux and macOS, or enter the absolute path of a Python 3.11+ executable — not a folder or an activation script. After changing it, finish managed terminal work and run Developer: Reload Window.
Default provider shells are Windows PowerShell, Linux Bash and macOS Zsh. Remote extension hosts, Remote-WSL, Alpine/musl and Windows ARM64 are not supported. PatchPort does not sign you in or choose an account; provider requests can consume your account's allowance. See platform requirements.
Connect two AI terminals#
For a first trial, use a small project and one arrow. Board terminals run in the original project folder, under each CLI's permissions.
Start two terminals
Click + AI terminal, select a launch profile, project and group, and click Start terminal. Complete the CLI's normal sign-in, startup or permission prompts inside the terminal. Repeat for a second AI in the same project and group. When each CLI is waiting at an empty prompt, click Ready to receive. An approval dialog is not an empty prompt.
Connect and set limits
Click the first card's right Output port, then the second card's left Input port. Open Groups, click the group's Settings and start with the values below. Save, then click Resume routes if the group is paused.
Setting Trial value Meaning Automatic delivery limit 2 Maximum automatic input attempts for the group. Attempts already used still count Message hop limit 2 Maximum steps a message chain can travel Shared goal Discuss only. Do not edit files or run tools. Optional context included with routed messages Send a small request
Type a request like this into the first terminal and submit it, then click outside the terminal. Automatic input waits while a target is focused or holds a draft you were typing.
Typed into the first terminalDo not edit files or run tools. Explain a simple approach to validating an email address. Address your completed reply to the connected peer and ask for one potential edge case.
When the first AI finishes, Delivery history shows the delivery and the second terminal receives the answer as a new request. Only the completed reply is forwarded; raw terminal logs and the whole conversation are not synchronized. The second AI has no outgoing arrow yet, so its answer stays in its own terminal. Add a return arrow when you want a bounded two-way discussion.
Routing and stopping#
If an arrow exists but no message arrives, read its status in Routes and check Delivery history before you submit again.
| State or condition | What to do |
|---|---|
| Group or route paused | Resume the intended group or route when ready |
| Target stopped or still starting | Start it and finish its CLI startup |
| Target busy or waiting for approval | Wait, or answer its CLI prompt |
| Human draft or focused input | Finish or clear your draft, then click elsewhere |
| Delivery or hop limit reached | Inspect the consumed count and the conversation before changing the limit |
| Uncertain delivery | Inspect the saved delivery and the target terminal; do not blindly resend |
| Control | Effect |
|---|---|
| Pause routes | Pauses automatic delivery; the CLIs keep running |
| Interrupt | Sends a terminal interrupt; inspect the CLI's resulting state |
| Stop | Ends that managed terminal |
| Close the board | Closes the view; managed terminals stay alive |
| Reload or close the window | Ends the managed terminals that window owns |
Replies completed while a group is paused are not replayed when it resumes. A restored board keeps its groups paused, and PatchPort does not restart AI sessions or resend old or uncertain messages on its own.
Talk to a local model#
Local chat receives only the text you type, paste or route to it. It does not read or edit project files, run commands or take part in copy or role work.
Prepare the runtime
Set up Ollama or LM Studio with a text model yourself and start its HTTP server. PatchPort does not download a model or install a runtime.
Create a local profile
Open Launch profiles › New local profile and choose Ollama or LM Studio. Enter the Server origin, such as
http://127.0.0.1:11434, using the port your runtime actually shows. Leave out/v1, other paths and tokens. Only loopback HTTP addresses are accepted.Check the connection and pick a model
Click Check connection to list models and select the Exact model ID. The check does not generate, download or load a model. Set the context window, maximum output tokens and request timeout, confirm that the model runs on your computer, and click Save local profile.
Ask and connect
Add an AI terminal with the saved profile. Press Enter to send; Ctrl+J or Alt+Enter adds a line, and Ctrl+C cancels the request. Connect the local card's output to another card as in the first connection. Only successfully completed replies are routed, and failed or uncertain requests are not retried automatically.
If LM Studio requires authentication, save the profile and click Set API token. The token goes into VS Code SecretStorage, bound to this profile and the exact server address — not into settings JSON. A localhost connection alone does not guarantee offline inference, so check the server's own settings.
Request a change in a working copy#
Use this workflow when you want to inspect proposed changes before they are written to the original. It copies only the configured input. A working copy is not a security sandbox; the provider's permissions still matter.
Connect the project once. Keep the PatchPort checkout separate from the project you work on, install the Python backend into its own environment, and run the setup wizard with that interpreter. Replace the example paths with your own.
git clone https://github.com/utialy/PatchPort.git
cd PatchPort
py -3 -m venv .venv
.\.venv\Scripts\python.exe -m pip install .
& 'C:\Projects\PatchPort\.venv\Scripts\python.exe' -m agent_bridge setup --project 'C:\Projects\hello-patchport'git clone https://github.com/utialy/PatchPort.git
cd PatchPort
python3 -m venv .venv
.venv/bin/python -m pip install .
/path/to/PatchPort/.venv/bin/python -m agent_bridge setup --project /path/to/hello-patchportSet patchport.corePython to that environment's Python executable. The wizard lets you choose provider commands, input paths and the paths eligible for later promotion; review its preview and apply it explicitly. Setup does not sign in, call an AI, submit a task or start the runner. Then open the connected project and click Refresh in Jobs & usage.
Describe the work
Open Project work › Submit work. Enter a New batch ID, such as
readme-check-001, and a concrete Original request, and choose endpoints from the connected configuration.Choose input and preview
Click Refresh input & budget. Use
fullfor files the AI needs andomitfor the rest. Click Preview input & submission and check the selected files, estimates and limits. Nothing is queued yet.Submit, then start the runner
Click Apply reviewed preview and confirm to save the task in the queue. When you're ready for pending tasks to run, click Start queue runner in Jobs & usage, then refresh and read the saved answer.
Submission, runner execution and promotion are separate actions. DONE describes the process outcome, not the quality of the edits. An intentional rerun after a failure or interruption needs a new ID.
Review, apply and recover files#
- Open Copies & recovery and select a finished task.
- Click diff beside a path to compare the current original (left) with the proposed copy (right).
- Select only paths marked Promotion allowed, then click Preview selected promotion and read the paths and hashes.
- Apply the reviewed preview and confirm. The core rechecks the original, the proposal, the permitted paths and the task state before writing.
- Refresh the task. Its recovery preview lets you inspect an undo before you apply it.
Only the selected, approved paths are promoted. Later conflicting edits, damaged backups or changed proposals block recovery. A reviewer's answer is not approval to apply every file.
Panels#
| Panel | What you can do |
|---|---|
| Jobs & usage | Read retained answers, task status, sessions and reported consumption |
| Submit work | Choose full files, omit files or use reviewed summaries before submitting |
| Copies & recovery | Compare changes, promote selected paths and preview backup recovery |
| Roles & archives | Run developer, test and reviewer steps and preserve evidence |
| Sessions & updates | Inspect history, explicitly resume eligible conversations and check runtime integrity |
| Data & settings | Manage project connections and preview selected data cleanup |
Automatic deliveries, batch claims, input estimates and reported tokens are different numbers. None of them is whole-account billing, remaining subscription quota or a hard spending limit.
Troubleshooting#
| What you see | Check first |
|---|---|
| No project, or restricted mode | Open the intended local folder and review workspace trust |
| Python error | Select the actual Python 3.11+ executable, then finish work and reload |
| CLI or alias not found | Check it in the selected shell and profile; put flags in Fixed arguments |
| Arrow with no delivery | Read Routes: paused state, readiness, focus or draft, busy state and limits |
| Permission prompt | Handle it inside the CLI; do not mark it Ready to receive |
| Empty Project work, or no bridge.json | Complete project setup, then Refresh. Board terminals alone don't need it |
| Preview expired, or files changed | Inspect the change, then make a new preview |
| Unknown usage | The supported signal was unavailable; do not treat it as zero |
The full guide on GitHub covers roles, sessions, project data cleanup and more cases.
What's new#
PatchPort 0.6.0 adds text conversations with Ollama and LM Studio and routes their completed replies to other cards. See the 0.6.0 release notes.
Roles and tests
Developer, test and reviewer workflows.
Project data
What is stored, and how to clean it up.