Skip to content
utialy
Contact

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.

Before you start

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#

RequirementWhy
Local desktop VS Code 1.100 or laterHosts the board and the managed terminals
Python 3.11 or laterRuns the core bundled with the extension; Python itself is not bundled
Codex CLI and/or Claude CodeRuns the AI sessions with each CLI's existing sign-in and permissions
A local project folder you trustSets the working directory for the terminal cards
  1. 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.patchport
  2. Open 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.

  3. Point to Python if needed

    If Python can't be found, search VS Code Settings for patchport.corePython. Leave it empty to use python on Windows or python3 on 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.

Note

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.

  1. 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.

  2. 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.

    SettingTrial valueMeaning
    Automatic delivery limit2Maximum automatic input attempts for the group. Attempts already used still count
    Message hop limit2Maximum steps a message chain can travel
    Shared goalDiscuss only. Do not edit files or run tools.Optional context included with routed messages
  3. 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 terminal
    Do 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 conditionWhat to do
Group or route pausedResume the intended group or route when ready
Target stopped or still startingStart it and finish its CLI startup
Target busy or waiting for approvalWait, or answer its CLI prompt
Human draft or focused inputFinish or clear your draft, then click elsewhere
Delivery or hop limit reachedInspect the consumed count and the conversation before changing the limit
Uncertain deliveryInspect the saved delivery and the target terminal; do not blindly resend
ControlEffect
Pause routesPauses automatic delivery; the CLIs keep running
InterruptSends a terminal interrupt; inspect the CLI's resulting state
StopEnds that managed terminal
Close the boardCloses the view; managed terminals stay alive
Reload or close the windowEnds 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

LM Studio token

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.

PowerShell
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'
Terminal
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-patchport

Set 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.

  1. 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.

  2. Choose input and preview

    Click Refresh input & budget. Use full for files the AI needs and omit for the rest. Click Preview input & submission and check the selected files, estimates and limits. Nothing is queued yet.

  3. 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#

  1. Open Copies & recovery and select a finished task.
  2. Click diff beside a path to compare the current original (left) with the proposed copy (right).
  3. Select only paths marked Promotion allowed, then click Preview selected promotion and read the paths and hashes.
  4. Apply the reviewed preview and confirm. The core rechecks the original, the proposal, the permitted paths and the task state before writing.
  5. 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#

PanelWhat you can do
Jobs & usageRead retained answers, task status, sessions and reported consumption
Submit workChoose full files, omit files or use reviewed summaries before submitting
Copies & recoveryCompare changes, promote selected paths and preview backup recovery
Roles & archivesRun developer, test and reviewer steps and preserve evidence
Sessions & updatesInspect history, explicitly resume eligible conversations and check runtime integrity
Data & settingsManage 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 seeCheck first
No project, or restricted modeOpen the intended local folder and review workspace trust
Python errorSelect the actual Python 3.11+ executable, then finish work and reload
CLI or alias not foundCheck it in the selected shell and profile; put flags in Fixed arguments
Arrow with no deliveryRead Routes: paused state, readiness, focus or draft, busy state and limits
Permission promptHandle it inside the CLI; do not mark it Ready to receive
Empty Project work, or no bridge.jsonComplete project setup, then Refresh. Board terminals alone don't need it
Preview expired, or files changedInspect the change, then make a new preview
Unknown usageThe 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.

Last updated
Was this page helpful?Thanks. We use your feedback to improve the docs.
↵ open↑ ↓ move⌘K toggle