# Repository Briefing: a-schaefers/workbench
> Source: https://repoforai.com/repo/a-schaefers/workbench (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/a-schaefers/workbench
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 6/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.6.3-2 (2026-12-04) — https://github.com/a-schaefers/workbench/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, Local AI, API, GPU
- **Momentum**: 18 ★ total (+0 24h / +0 7d) · 1 forks
- **When to Use**: Best for: Developers already using Claude Code or OpenCode who can split changes into testable tasks and want to route implementation across local and API models while retaining merge control. Skip if: Most work is quick, interactive editing; you cannot run OpenCode alongside your preferred host; or source code must stay on-device and you cannot run both the orchestrator and workers locally.

## Overview
```text
### Architecture & Core Mechanics
Workbench separates planning and review from implementation. A Claude Code or OpenCode session drives the work: it breaks a request into model-sized steps, writes a test for each step, then delegates implementation to OpenCode subagents. Each worker operates on its own branch in a separate project copy. A failed test feeds back to the worker for another attempt; a passing test hands the change back to the orchestrator for review. Merging still requires user acceptance.

The Python code lives under `workbench/`, with the `wb` CLI shipped via `bin/`. The `opencode-workbench` package exposes `wb` and ships the OpenCode plugin alongside it; Claude Code has a separate plugin entry path. The web app binds to the local machine and brings chat, tasks, stats, and settings together. Scripts use its token-authenticated HTTP chat API, described in `docs/chat-api.yaml`; the ask-workbench MCP server exposes the same request path to MCP clients. MCP is an integration surface, not the worker runtime.

### Key Capabilities & Differentiators
Routing is by role: large coding steps, small steps, and writing can each use a different model. Workers can run via an OpenCode-connected API or on a local GPU. Local worker models need tool calling and at least 16K context, with 32K recommended; Qwen 3.8 27B or larger is given as an example for substantial local coding steps, not a baseline requirement. Hybrid setups can optionally send GPU-assigned work to an API when the GPU is busy. Weekly stats track GPU energy and API spend, with orchestrator token counts available for Claude Code but not OpenCode.

`deepcode` workflows add parallel attempts and cross-review before the orchestrator makes a judgment. Background tasks survive a restart of the coding client, and `wb schedule` can run work while the clients are closed. External programs can use revocable tokens: an ordinary program token cannot stand in for user approval, whereas `--as-user` can. With explicit permission, `--dispatch` can start a headless conversation for a project without an open session, but it cannot launch a GPU-hosted orchestrator that way.

### Trade-offs & Limitations
Compared with using Claude Code or OpenCode directly, Workbench makes delegation explicit: task branches, test-driven retries, role-specific routing, and a review step before merge. That is useful when work splits into independently testable changes. It adds model configuration and coordination overhead for small edits or changes that cannot be verified cleanly in isolation. The tests guide iteration, but their coverage still depends on what the orchestrator writes; a pass is not a substitute for review.

Local execution avoids per-token API charges and keeps the code handled by local models off provider infrastructure, but takes GPU capacity and electricity. Code read by an API-backed worker or orchestrator is sent to its provider, so a local worker alone does not make the workflow private. Worker safeguards include command allowlisting, read-only Git operations, and write confinement via Linux Landlock or macOS Seatbelt. These controls complement the merge approval gate; they do not make provider-backed inference local.

### Hardware & Deployment Guide
Install into either host and start with `/workbench`. OpenCode supports `opencode plugin add 'github:a-schaefers/workbench#main'`; Claude Code uses `claude plugin marketplace add a-schaefers/workbench` followed by `claude plugin install workbench@workbench`. Both paths require OpenCode 2.3+ for subagents, Git 2.34+, and Python 3.11+ on Linux, macOS, or WSL2. Claude Code also requires a Claude subscription or an API key. Connect an API provider via OpenCode's `/connect`, or supply a local worker model; the setup can help install Ollama and pull a model.

API-only deployment does not need a GPU. For all-local operation, size for simultaneous residency of the selected orchestrator and worker models, then test at the intended context length and concurrency. The web app is available locally at `http://localhost:8090/#token=…`. The v2.6.3 release sequence first addressed OpenCode chat listener behavior in v2.6.3-1, then added a thread roster for active conversations in v2.6.3-2, exposed through `wb chat thread list`.
```

## Key Capabilities
```text
- Execution: The orchestrator writes per-step tests; workers implement on separate branches and retry against failures without involving the orchestrator.
- Model routing: Large coding steps, small steps, and writing can each use a different model; API fallback when the GPU is busy is opt-in.
- Worker isolation: Landlock on Linux and Seatbelt on macOS constrain worker writes, with allowlisted commands and read-only Git access.
- Integration permissions: Local HTTP and MCP access use revocable tokens; ordinary program tokens cannot approve sensitive actions, while `--as-user` tokens can act as the user.
- Cost accounting: Weekly stats report GPU energy and API spend, plus orchestrator tokens for Claude Code but not OpenCode.
- Session management: The 2.6.3 release series introduces per-conversation web chat threads for concurrent orchestrator sessions; `wb chat thread list` shows the roster.
```

## Quick Start / Clone
```bash
opencode plugin add 'github:a-schaefers/workbench#main'
```
