# patchwork-os [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Oolab-labs/patchwork-os  
**GitHub Stars:** 33  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/patchwork-os

## Description
Your personal AI runtime, local-first. Patchwork OS gives any AI model a consistent set of tools, YAML recipes, a delegation policy with approval queue, and a durable trace memory — all on your machine, all under your policy.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Oolab-labs/patchwork-os), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g patchwork-os@beta
```

2. Configure:

```sh
patchwork-os init
```

3. Install:

```sh
git clone https://github.com/Oolab-labs/patchwork-os && cd patchwork-os/dashboard
```

4. Configure:

```sh
patchwork-os init --with-connectors   # seeds the connector-backed recipes
```

5. Start the server:

```sh
patchwork start        # bridge + Claude + dashboard
```

6. Install:

```sh
npm install -g patchwork-os
```

## Documentation

## What patchwork-os does

patchwork-os places a local policy and execution layer between an AI agent and the systems it can modify. It supports YAML recipes, named workers, service connectors, an approval queue, and durable records of actions and decisions. The runtime can work with editors, GitHub, Slack, Gmail, and more than 45 services, while keeping configuration and generated files under the local `~/.patchwork` directory.

The decision layer evaluates action risk based on factors such as reversibility and potential impact. Depending on the active profile and gate settings, reversible operations can proceed automatically, while higher-risk or non-reversible writes can pause for approval. Policies can also refuse an action outright; approval cannot override a forbidden operation.

## How it works

A typical execution follows a trigger, recipe or worker, tool call, and receipt. Automated triggers include cron, webhooks, file watches, and Git hooks. When approval is required, the queue records what will run, why it was selected, and the possible consequence before the operation proceeds. Approved calls and their outcomes remain available through `patchwork judgments`, the dashboard traces page, and `patchwork gate explain`.

Workers begin under supervision and can earn autonomy separately for different action types based on their history. The configured ceiling remains authoritative. In the governed profile, worker recipe steps are contained to read-only tools without network or shell access, and recipe plugins must be explicitly allowed. `patchwork panic` blocks write-tier tool calls across running bridges while leaving reads available.

## Setup and configuration

Install the package globally with Node.js 22.5 or newer on macOS, Linux, or native Windows. The documented installation uses npm and then `patchwork-os init`; `npx` is unsuitable because it does not leave the command installed for subsequent commands.

`init` creates the local Patchwork directory, seeds local recipes, and registers a Claude Code PreToolUse hook. Claude Code must be restarted after initialization so it reads the hook. A new initialization creates the governed profile. Existing configurations retain their profile, while starting a bridge without a configuration uses the compatibility profile. Run `patchwork doctor` to inspect the active enforcement settings.

The optional dashboard is built separately from the repository and runs at port 3200. The CLI can operate without it. Connectors are added with commands such as `patchwork connect gmail`, `patchwork connect google-calendar`, `patchwork connect github`, and `patchwork connect linear`.

## Tools and capabilities

- Run and inspect YAML recipes with `patchwork recipe run`, `recipe list`, `recipe doctor`, and `recipe preflight`.
- Start the bridge and runtime with `patchwork start` or run against a workspace directly.
- Manage approvals and explain recorded decisions through the CLI and dashboard.
- Connect workflows to Gmail, Google Calendar, GitHub, Linear, and other supported services.
- Use the IDE bridge for diagnostics, LSP navigation, refactoring analysis, debugging, terminal access, Git and GitHub operations, and file management.
- Install the IDE extension for VS Code, Cursor, Windsurf, or Antigravity.

## Limitations and notes

The safety behavior depends on the profile and gate configuration. A compatibility-profile installation may run risky actions without approval unless an approval threshold is enabled, and its recipe plugins load in-process without an allowlist. Governed installations provide stricter defaults, but configuration still determines the enforced behavior.

Recipes that use a model require a working driver, such as the Claude CLI with `--driver subprocess` or an API key. `patchwork start` expects the Claude CLI on the system path unless configured to avoid that launch path. The connected Morning Brief example requires all four of its listed connectors unless its steps are changed.

The dashboard is not included in the npm package and must be built from the repository. Interfaces may change between minor releases, so applications built on the package should pin an exact version.

_Full upstream README: https://allmcps.com/mcp/patchwork-os/readme_

