a-schaefers/workbench
A test-driven orchestration layer for local and API coding agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
--as-user tokens can act as the user.wb chat thread list shows the roster.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.
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.
Quick Start & Installation
opencode plugin add 'github:a-schaefers/workbench#main'Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| workbench ★ | 18 | — | Python | MIT | A test-driven orchestration layer for local and API coding agents |
| oh-my-pi | 40.5k | +497 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/a-schaefers/workbench.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about workbench
Does the Claude Code plugin replace OpenCode, and how do external clients connect?
Do I need a GPU, and how should I size VRAM?
Can we self-host Workbench commercially and keep source code on the machine?
When is Workbench worth adding to Claude Code or OpenCode?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy