# Patchsmith

The first hands a single well-specified coding task to a local model served through Ollama (the measured backend) and returns the resulting diff.

- Type: Plugin
- Version: 0.1.1
- Updated: 22 Nov 2026
- Publisher: Bart Porcincula
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

The first hands a single well-specified coding task to a local model served through Ollama (the measured backend) and returns the resulting diff. Propose mode runs in an isolated temporary checkout, preserves the source checkout, and saves a full patch for review.

The second tool applies an approved saved patch only after hash, base, affected-file and path checks. The local model works inside a fixed toolset with no shell (read, grep, glob, git status/diff, write/edit, run the configured test command, finish) under hard turn and total token budgets shared across up to three fresh-context attempts.

An optional local model is used only on the final allowed attempt; failures return a factual handback. Includes a path jail, read-only test files, an auto-finish when tests go green, a repeat-call guard, and revert of partial edits when a run is blocked.

Your main model spends tokens only on the instruction and the returned diff. Disclosure — runs git and the owner-configured test command (PS_TEST_COMMAND, never chosen by the model; it executes project code on the host) as subprocesses in the working directory with a minimal child environment plus an owner passthrough list (PS_ENV_PASSTHROUGH); in direct mode a local model writes implementation files inside the given workdir (never.git, node_modules, test files,.env\* or.ssh/; the Ulpi home, the user home and filesystem roots are refused as workdirs) and a run transcript with file excerpts under \<workdir\>/.patchsmith/; propose mode copies the checkout to a temporary Git worktree and keeps the patch, provenance record and transcript under \<ulpi home\>/plugin-data/patchsmith/proposals/, with run summaries under \<ulpi home\>/plugin-data/patchsmith/runs/.

Task text and file contents go only to the local model endpoint set in PS_ENDPOINT (loopback or private-network address; public and link-local hosts refused). inspect_hardware runs fixed OS probes (nvidia-smi, sysctl, system_prof

## Tools it adds

The tools an agent gets once this plugin is installed.

- `implement_task`
- `apply_patch`
- `task_status`
- `inspect_hardware`

## How to set it up

Adds and.

```
implement_task
```

```
apply_patch
```

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Tools

- [Patsnap](https://www.ulpi.io/en/marketplace/plugins/patsnap): Patent and scientific-literature search.
- [Pay](https://www.ulpi.io/en/marketplace/plugins/pay): Discover priced APIs and pay per request (HTTP 402, x402, MPP) in stablecoins.
- [payops](https://www.ulpi.io/en/marketplace/plugins/payops): Read-only Paystack transaction inspection and reconciliation for Ulpi agents.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
