Build verified features with local coding models
VB Harness turns local coding models into proof-first implementers, keeping only changes that pass your project's checks and evidence-based review.
0.1.23Add to Favorites
Why it matters
Turn a feature request into reviewed code produced by a local model, with the project's own checks deciding whether each change survives.
Outcomes
What it gets done
Split a feature request into small, checked implementation tasks
Generate and repair exact edits in an isolated git worktree
Confirm review findings with failing tests before reporting them
Inspect run reports, rejected outputs, commits, tokens, and time by role
Source
Get it from source
Spark does not host a copy of it.
Open sourceReports
Agent outcome reports
No reports yet
Overview
VB Harness plans and implements coding requests with local models inside isolated git worktrees. Project checks decide completion, review claims require failing-test evidence, and each run produces a branch and detailed report. Use it for clear, self-contained coding work where repository checks can verify changes. Review the resulting branch yourself, and do not confuse passing gates with confirmation of product intent.
What it does
VB Harness turns a plain-language coding request into small implementation tasks carried out by local models in an isolated git worktree. Each run creates a harness branch, records the repository's existing check failures as a baseline, and uses the project's type check, lint, build and tests to decide whether changes survive. A new failure goes back to the model with the exact errors for bounded repair rounds. Accepted tasks become commits; blocked tasks keep their patch for inspection. The original checkout stays unchanged, and the harness does not push or merge the result.
Planning is checked before implementation. In pipeline mode, each task normally changes at most three files and names a gate or test that can prove it. The planner checks missing files, requested files left uncovered, dependency cycles, empty tasks and context size. The implementer receives the task's files first, then signatures and summaries of imports. It returns exact search-and-replace edits; a mismatch is rejected with nearby lines and gets one retry.
Review proposes claims through two independent passes, checks them against available code and version-matched Astro documentation, and challenges the surviving claims. A claim becomes a finding only when a test written and run by the harness fails because of it. A separate pass checks the request item by item, sending omissions directly to that test. Unconfirmed claims remain questions. Review alone does not block a commit, and a model saying it finished never completes a task.
When to use - and when NOT to
Use VB Harness for clear, self-contained features or fixes in a repository with meaningful checks. It gives smaller coding models bounded tasks, context that fits their window, structured replies and repair feedback. Astro is the first supported stack. Any OpenAI-compatible endpoint can supply the models, including LM Studio, Ollama, llama.cpp's server, vLLM or a hosted API.
Passing gates proves the checked behavior, rather than confirming that the result matches your intended product. Review the finished branch and diff before merging. Local models still make mistakes, and the project is in early development. Agent mode can investigate the repository and use tools, but makes many more model calls and can take several times longer than pipeline mode.
LAN mode is only for a trusted private network and devices you own. Its plain HTTP traffic can reveal messages, generated code, the pairing code and the session cookie to someone watching the network. Avoid public or guest Wi-Fi, port forwarding and public tunnels; stop sharing when finished.
Inputs and outputs
Describe the work in plain text with exact paths, values, scope and acceptance expectations. Chat mode helps work out the request without changing files. Use as build request copies a reply into Build mode for you to edit and send; it starts nothing automatically. Build mode starts the implementation workflow. Blocking planner questions pause the run for your answers, and a stopped or failed run can resume with its existing commits.
You can stop after planning, edit the saved plan and resume, or supply your own plan. Each task lists files to create, modify and read, dependencies, and acceptance items. A task needs at least one gate or test item, and a test path must identify a test file. Read and modified files must already exist or be created by a declared dependency. An assertion can supplement those checks, but cannot replace the required gate or test.
The command line can perform intake and baseline checks without calling a model. A dry run also checks a supplied plan except for its context size, then removes the worktree. Requiring a green baseline stops before model calls when a blocking check already fails. Otherwise, later checks distinguish new problems from the failures recorded at intake. The app's Build action always performs a real run.
Each run produces a harness/RUN_ID branch and runs/RUN_ID/report.md. The report lists tasks and commits, gates compared with baseline, confirmed findings, unconfirmed questions, blocked patches, rejected model outputs by reason, and token and time costs by role. Its Read this first notices explain skipped checks, reduced review, interrupted runs and changes made while paused. Events, the executed plan, configuration and task state remain available alongside per-request records with model, role, tokens, time and redacted failures; keys are never recorded.
Command-line progress goes to stderr and results to stdout; the JSON option makes results machine-readable. Exit code 0 means done, 1 means a failed run, 2 means a configuration or environment problem, and 3 means the planner is waiting for answers. Status, answer, steer, resume and report commands let you inspect or continue a run without starting another one.
How to install
VB Harness requires Ruby 3.3 or newer, git and an OpenAI-compatible model server. Normal use needs no gem dependencies. A coding model with at least 16K context is the starting point. An Astro project also needs Node.js and its own installed dependencies; Windows users can use RubyInstaller with the Devkit.
git clone https://github.com/Viktotovich/vb-harness-for-agentic-building.git
cd vb-harness-for-agentic-building
ruby exe/harness
The app opens in your browser and guides you through connecting a model, adding a project and describing a build. Downloading and unzipping the project is another option: Start VB Harness.bat on Windows or Start VB Harness.command on a Mac checks for Ruby, Git and Node.js, explains missing tools and asks before installing them from official sources. Keep its launcher window open while using the app. Linux and terminal users can install the requirements themselves and run the Ruby entry point.
Try the demo runs a scripted model through a sample build with a failed check, repair and review, without requiring a model server. Check setup, also available through the doctor command, lists missing requirements and remedies without asking a model to write code. Setup fixes show their exact command and run only after confirmation. Commit or stash uncommitted changes yourself before a build. Preview starts the project's configured development server on the local machine and opens the result.
Projects and workspaces
Add project can link an existing git repository, shallow-clone an HTTPS git URL, or create an Astro project. Linking checks the repository's top-level folder, branch, cleanliness and detected stack. Clone and creation dialogs show the download command and require confirmation. The app does not list folders on your disk.
Each run uses its own worktree under workspaces/RUN_ID in the harness home. Dependency directories such as node_modules are mirrored through hard links so checks can run without reinstalling them. The harness does not write through those links; a file it changes replaces the link. Git hooks are disabled, and changes remain on the run branch until you choose to merge them.
The folder containing config.json is the harness home, with chats, runs, logs, cache, projects and workspaces alongside it. Appearance choices live in appearance.json. The documented Astro landing-page cookbook walks from creating a project through planning, building, inspecting the page, following up on layout and merging the branch; it gives a worked example rather than guaranteeing a finished design in one run.
Model and gate configuration
The app detects local LM Studio and Ollama servers, can start or load their models, and accepts another OpenAI-compatible server URL. When authentication is needed, a profile holds the name of an environment variable containing the key, rather than the key itself. The initial probe checks context size, JSON and tool-call support, thinking controls, continuation behavior and speed. Results are cached, and explicit profile values override them. Plan & review can select a larger model for planning, review and verification while a faster model implements and fixes.
A reply cut off at its output limit can be continued up to three times when the server supports continuation; the joined answer still undergoes validation. If a reasoning model spends its whole budget thinking, the harness retries once with thinking off and includes the reasoning already produced. Continuation can be disabled in the profile.
Stacks define detection, protected paths, dependency directories and checking commands. For Astro, Prettier checks formatting without blocking by default; ESLint, astro check and applicable Vitest tests check tasks, while astro build and Playwright run during integration. Commands run as argument arrays through offline tool invocation. A missing tool is reported as skipped, never passed, and blocks a task when its acceptance names that gate. Gates cannot install packages or run git or gh. Environment variables that look like secrets are removed unless explicitly allowed for gates.
Local framework documentation supports review; without it, framework claims abstain. Diagnostic fix hints and review notes can encode project-specific facts. Setup maps dependency folders to repair commands, and preview defines the local development-server command. The app's Advanced configuration validates the whole config.json before saving, leaves invalid edits unsaved, supports undo, and applies saved changes to the next chat or build.
Full review covers every task and the whole run. Light review skips a small task's review when it changes at most 80 lines and its gates pass first time, while retaining final review. Off skips review. Verification is bounded by a call limit and consecutive refuted claims; remaining claims are recorded as unverified questions. Careful combines full review, a required green baseline and three fix rounds. Balanced defaults to light review, allows an existing failing baseline and uses three fix rounds. Quick turns review off and allows two fix rounds. These settings remain configurable. Default pipeline limits allow three repair rounds, two replanning rounds, 20 diagnostics, six lookups and two review fix tasks. Whole-file rewrites are capped at 4096 bytes and gate output at 204800 bytes. Verification defaults to 60 calls per run and stops after three consecutive refuted claims. Each task commit uses the planner's Conventional Commits type, with a task-title fallback and configurable gate-result trailers.
Agent workflow
Agent mode replaces each pipeline implementation step with a model that can read, list and search the repository, edit files, run gates and use explicitly allowed commands. A read-only investigation can inform planning before implementation. The model's finish action remains a claim: the harness reruns the task's checks and returns failures to the same agent until they pass or its round limit is reached.
Writes remain inside the worktree and outside protected paths. Named allowed commands use declared path or word parameters; the model cannot supply an arbitrary command line. Existing tests and checking configuration can change only when the plan names them. Agent mode defaults to 12 changed files per task, 60 tool steps per stretch, six rounds and a read-only investigation capped at 30 steps. It allows three further recovery attempts and waits 900 seconds for an answer to an agent question; these limits are configurable. Separate acceptance tests default to off.
Optional acceptance tests are written from the request by a separate tester before implementation. The implementer can read that test but cannot change it. Halfway through the round budget, its author can reconsider a still-failing test against the request. Passing the test can complete a task even if the implementer never called finish. Tasks without a planned test, or stacks without a test gate, keep their ordinary behavior.
If an agent stops early, bounded recovery first tries a fresh conversation about the current repository, then a smaller remaining job with fewer steps, then a different rescuer model if configured. Exhausted recovery blocks the task and records the attempts. A steering note reaches the agent before its next step; ambiguous work can prompt a question on the run card. If its question timeout expires, the agent chooses an assumption and records it in the summary. The app also offers Stop after this task.
App and phone controls
The desktop app listens on 127.0.0.1, refuses other host names and requires a per-start token for changes. Its build card shows Plan, Tasks, Final checks, Review and Report, the current action, elapsed progress, task commits and reasons rejected model answers were caught. Planner questions appear in the card. Finished runs offer the branch, report and preview; failed or stopped runs offer Resume.
Settings provides Models, How runs work, Check setup, Appearance, Demo and Help. Appearance supports system, dark and light looks, presets and custom colors with contrast feedback while keeping the layout and font. Help opens the documentation and lists shortcuts for switching chats, creating a chat, toggling Chat and Build, opening settings and sending messages. Enter adds a line; Ctrl+Enter sends, with Command+Enter also supported on macOS.
LAN sharing must be enabled anew for each app session and binds only a private address. The computer displays an address and a six-digit pairing code. Each code pairs one device, expires after ten minutes and locks after five wrong attempts until replaced on the computer. A paired session ends when the app stops or sharing is stopped. Phones can chat, start builds, answer planner questions, send notes and read reports, using the same origin and token checks. They cannot change settings or models, add projects, run setup fixes, control model servers or start Preview. Builds still run project commands on the computer. Windows WSL users may need mirrored networking or a native Windows process for phone access.
Figma design requests
A request can include a link to a specific Figma frame. Whole-file links are refused. A read-only personal access token goes in FIGMA_TOKEN, or in the environment variable selected by figmaTokenEnv. At startup, the harness reads each linked frame once and adds a textual outline of structure, dimensions, spacing, colors, type and wording to the request. An unreadable design stops the run before any model call.
The outline stops at 5,000 characters and represents images and icons as named placeholders, so choose a section rather than an entire page. Later Figma changes do not reach an active run. Both pipeline and agent modes use the outline without requiring image support. Only links supplied in your request are fetched; model output and repository files cannot choose another fetch. The token is sent only to Figma, and layer names and text are treated as untrusted data.
Claude Code delegation
Claude Code can prepare an exact, self-contained request and delegate implementation to VB Harness while local models plan, edit, repair and review. The delegation instructions belong in the project's CLAUDE.md and call for explicit paths, values, imports and scope. Claude can start the run in the background, inspect machine-readable status, answer planner questions when required, then read the report and branch diff. The trade is time: local runs can take minutes to hours. Review the result before choosing to merge it or request a smaller follow-up.
Source README
VB Harness
Proof-first coding with local models. Models write code; your project's own checks decide whether it survives.
VB Harness is an engineering harness that makes local coding agents accountable for their changes. It doesn't try to make the model smarter: it breaks your request into small tasks, has the model write each one in an isolated copy, and keeps a change only when your type check, lint, build and tests pass and an independent review can't prove it wrong.
A real screen recording: a 9B model on this computer builds a small Astro page in one run of 41 minutes, shown in 85 seconds. Nothing is staged: every clip says whether it is real time or sped up and by how much, and shows the run's own clock. Every task passed the type check first time, so no fix round was needed; the review dropped three unproven claims, and the report says plainly that the requested styles were not added. Click it for the 1080p video.
A four-part blog feature, built by a local model on a 6 GB laptop GPU in one unattended run. An animated illustration of a real run (not a screen recording): the plan, code, numbers, review claims and pages come from a real agent-mode run of evaluation task 10, which took 3 hours 28 minutes. The steering note shows the feature and was not part of that run, and the pages are shown in a layout with cover art made for the video; the run's own files are unchanged. Click it for the 1080p, 60 fps video.
- Your checks decide, not the model. Every change runs your type check, lint, build and tests. A change that breaks one goes back to the model with the exact errors, and only a green change is committed.
- Claims need proof. The final review may only report a bug it can show with a failing test; unproven claims are dropped, so the report holds no invented problems.
- Your checkout is never touched. Work happens in its own worktree on a new branch: no pushes, no installs without your OK, git hooks off. You review the branch like any pull request.
- Built for small models. Small tasks, exact edits instead of whole files, JSON checked on every reply, and context fitted to the model's window. Any OpenAI-compatible server works: LM Studio, Ollama, llama.cpp, vLLM.
- Small, verifiable tasks. A feature becomes a plan of small tasks, each with the files it may touch and how it will be proved; the plan is checked before any code is written.
- You see what it cost. Every model call is counted by role (planner, implementer, fixer, reviewer), so you know where the time and tokens went.
- Nothing to install but Ruby. Zero gem dependencies; the harness is plain Ruby and git.
- A calm app for all of it. Plan in Chat and watch the model think, start a build, steer it with a note, preview the result, even from your phone.
Get real coding work out of the model on your own machine. The harness plans a feature as small tasks, has your local model implement them one at a time, proves every change with your project's own type check, lint, build and tests, and re-reviews what it built with an evidence gate. It is built around the weak spots of local models: hallucinated APIs and defects, wrong edits, broken JSON, and small context windows.
AstroJS is the first supported stack. Any OpenAI-compatible endpoint works: LM Studio, Ollama, llama.cpp's server, vLLM, or a hosted API.
Documentation: vb-harness.vandbruno.net, with the guides, the cookbook and the design decisions.
Status: early development. Everything below works and is tested, but expect rough edges and changes.
Never coded? Build your own website
You don't need to write code: you describe the website in plain words, a model on your own computer builds it, and one click shows it in your browser. Setup takes about 30 minutes, once.
- Install LM Studio from lmstudio.ai. It runs AI models on your computer. Pick a video for the next two steps: a quick LM Studio setup, or Web Dev Simplified's friendly intro to running AI locally.
- Download a coding model in LM Studio's Discover tab (the models come from Hugging Face). Pick one that fits your computer's memory; LM Studio marks the ones that fit.
- Start LM Studio's server in its Developer tab, and leave LM Studio open.
- Download VB Harness: on GitHub, Code → Download ZIP, and unzip it (on Windows, right-click the ZIP → Extract All…; on a Mac, double-click it).
- Double-click Start VB Harness in the unzipped folder:
Start VB Harness.baton Windows,Start VB Harness.commandon a Mac. A small window checks for the three free tools VB Harness needs (Ruby, Git, and Node.js for the website itself). For each one that is missing it says what it is for and asks before installing it, from the official source: winget on Windows, Apple's Command Line Tools and Homebrew on a Mac. If it can't install one, it opens the official download page. Then the app opens in your browser. Keep that small window open while you use the app; closing it stops VB Harness. - In the app: Models finds LM Studio, choose Use. Then Add project → New Astro site, switch the text box to Build, describe your website ("a page for my bakery with opening hours and a menu…") and choose Start build. When it's done, Preview shows your site.
If something is missing, the app says what and usually offers a Fix button. Local models make mistakes, so look over the result before you publish it.
If your computer warns you about the start file. It came from the internet, so your computer asks before running it. That is normal; the steps below are the system's own way to say yes, and nothing is switched off.
- Windows: if a blue box says Windows protected your PC, choose More info → Run anyway. When an installer asks Do you want to allow this app to make changes to your device?, choose Yes. If Smart App Control blocks the file and offers no way to run it, use the manual steps below instead; Smart App Control can also block Ruby itself on some computers.
- Mac: if it says it can't verify the file is free of malware, choose Done, then open System Settings → Privacy & Security, scroll down and choose Open Anyway next to "Start VB Harness.command" (on older macOS, right-click the file and choose Open). If Terminal asks to access your Downloads or Desktop folder, choose Allow. Installing Homebrew asks for your Mac password; that is the installer asking, not VB Harness.
- After installing a tool, the window may ask you to close it and double-click Start VB Harness again, so the computer picks up the new tool.
Prefer a terminal, or on Linux? Install Ruby 3.3+
(on Windows, RubyInstaller), Git and
Node.js yourself, open a terminal in the unzipped folder and type ruby exe/harness.
Fastest path
You need Ruby 3.3+, git, and a model server; LM Studio or Ollama is the easiest. Then:
git clone https://github.com/Viktotovich/vb-harness-for-agentic-building.git
cd vb-harness-for-agentic-building
ruby exe/harness
The app opens in your browser on a start page with three steps: connect a model, add a project, describe what to
build. To see a whole build before setting anything up, choose Try the demo there (or run
ruby exe/harness demo): a scripted model builds a tiny sample project, with a failed check, its fix and a review,
in under a minute. Then Connect opens Settings → Models, where you choose Use on a model. Switch the text
box to Build, pick your project, describe the feature, and choose Start build. If the project is not set up
yet (dependencies not installed, a generated folder missing, a package its checks need), a card in the chat, just
above the text box, says so and offers a Fix button: it shows the exact command in the card, runs it after you
confirm, shows its output there, and you build. The one
thing it leaves to you is uncommitted changes: commit or stash them. Preview next to the project runs its dev
server (for Astro, astro dev) on 127.0.0.1 and opens it; a finished build has a Preview of what it made.
📱 New: use the harness from your phone.
ruby exe/harness ui --lanlets a phone on your home network chat, start builds, answer the planner and watch progress, while your computer does the work. Read Use it from your phone (LAN mode) first: it is off by default, needs a pairing code, and is for trusted networks only.
On the command line instead, ruby exe/harness init asks a few questions (Enter accepts each default), and
ruby exe/harness run --repo ../my-site --request request.md builds what request.md describes.
Stuck? ruby exe/harness doctor --repo ../my-site (or Settings → Check setup) lists every reason a
build would not start, each with what to do, without changing anything or asking a model to write.
Contents
- Never coded? Build your own website
- Fastest path
- How it works
- Requirements
- Install
- Quick start: the app
- Help, settings and shortcuts
- Use it from your phone (LAN mode)
- Quick start: the command line
- Projects and workspaces
- Understanding a run
- Cookbook: an Astro landing page
- Using with Claude
- Building from a Figma design
- Configuration
- Choosing and checking a model
- Safety model
- Evaluation
- Troubleshooting
- Limitations
- Why Ruby
- Development
- License
- Disclaimer
How it works
- Intake. The harness checks your repository is clean, creates a git worktree on a new branch
harness/<runId>, detects the stack, and runs your checks once to record a baseline. Anything already failing there is compared later, not blamed on the model. - Plan. A planner model splits the request into small tasks (at most 3 files each, by default), each with something that can prove it: a gate (type check, lint, tests) or a test it writes. Plans are checked in code: missing files, files the request names that no task builds, cycles, tasks that change nothing, tasks too big for the model's context. Problems go back to the planner. Questions that block the plan are asked to you.
- Each task. The context is packed to fit the model's window: the task's files first, then signatures and summaries of the files they import. The model replies with exact search-and-replace edits; edits that do not match the file exactly are rejected with the closest lines, and the model gets one retry.
- Gates. Your own commands decide whether a task is done. New errors go back to the model with the source around them, for a few fix rounds. A model saying "done" never marks a task done.
- Review. Two independent review passes propose claims; a verifier checks each against the code it can fetch (and, for Astro, version-matched docs); a gate in code rejects or abstains on anything not backed by evidence; a challenge argues for the code. A surviving claim becomes a finding only if a test the harness writes and runs fails because of it, and then it becomes a fix task. A separate check goes through your request item by item; anything missing skips the verifier and goes straight to that test. Review never blocks a commit on its own.
- Report. Every run ends with
runs/<runId>/report.md: tasks and commits, gates against the baseline, findings, open questions, blocked tasks with their patch, every rejected model output counted by reason, and cost per role.
Your checkout is never changed. The work stays on the harness/<runId> branch until you merge it.
Requirements
- Ruby 3.3 or newer. No gems. On Windows, use RubyInstaller (with the Devkit). The harness is not affected by ruby2shell on any of these versions (see Safety model), but we recommend 3.3.14, 3.4.13, 4.0.10 or newer for the rest of your machine.
- git.
- A model server with an OpenAI-compatible API, such as
http://127.0.0.1:8080/v1. A model with at least a 16K context works; more is better. - Your project's own toolchain. For Astro that is Node.js, with the project's dependencies installed
(
npm install) in the repository you build in.
Install
git clone https://github.com/Viktotovich/vb-harness-for-agentic-building.git
cd vb-harness-for-agentic-building
ruby exe/harness --version
That is all: there is nothing to install with gem or bundle. To put harness on your PATH, either alias
ruby /path/to/vb-harness-for-agentic-building/exe/harness, or build and install the gem locally:
gem build vb-harness.gemspec
gem install ./vb-harness-*.gem
The folder that holds config.json is the harness's home: chats/, runs/, logs/, .cache/, projects/
and workspaces/ are created next to it. All of them are git-ignored.
Quick start: the app
ruby exe/harness
This starts the local app on http://127.0.0.1:4567/ and, on first start, opens your browser on the start page.
The sidebar lists your chats, newest first; a chat that started a build shows its state there (Building,
Needs you, Failed, Stopped or ✓), so a waiting build is easy to spot. The model in use and whether it is
working sit at the bottom of the sidebar, next to Settings.

Connect a model (Settings → Models). The app looks for LM Studio and Ollama on this machine. You can start LM Studio's server, load a downloaded model, or pull an Ollama model, each with one click. For any other server, enter its OpenAI-compatible URL under Another server and, if it needs a key, the name of the environment variable that holds the key (never the key itself). Choose Use on a model: the harness probes it and shows what it found as plain labels, for example "48K context · JSON mode: yes · tools: yes · thinking can be turned off". Plan & review on any model makes it the model the planner, reviewer and verifier use, even on the same server as the first. Settings → How runs work picks the mode (Careful, Balanced or Quick) and the way of working (Pipeline or Agent).

Chat. Chat mode is a planning conversation: work out what to build, compare approaches, sketch the steps. Ctrl+Enter (⌘+Enter on macOS) sends; Enter adds a line. Replies stream. When the model thinks first, you see Thinking… 4s with its latest line of thought as it works; afterwards it folds into Thought for 12s above the reply, and a click opens the whole thought process so you can judge how it got there. Chat changes no files. Use as build request under a reply copies it into the text box in Build mode, for you to edit and send: nothing starts until you do.

Build. Switch the text box to Build, pick a project (or Add project), describe the feature, and choose Start build. The line under the text box says what will happen; if something stops the build (uncommitted changes, a project with a problem), a card in the chat above the text box says what and offers its fixes. A live card in the chat shows the run:
- a progress bar, Plan → Tasks → Final checks → Review → Report;
- a Now line in plain words ("T1 Double the price: running your checks") with how long ago it last moved, so a model that is still writing a long answer is not mistaken for a hang;
- every task with its state, its commit, and for the active one its steps (Read, Write, Apply, Check, Fix, Review, Commit);
- how many model answers were kept and how many the harness's checks caught. Why? lists the reasons in plain words; catching bad output is the harness doing its job, and none of it reaches your code;
- in agent mode, a box to send the agent a note, and Stop after this task.
If the planner has blocking questions, the card turns amber and asks them in the card itself, one field per question, with Answer and continue. When the run ends, the card shows a short summary, the branch with Copy branch, and View report, which opens the report beside the chat. A stopped or failed run has Resume, which continues where it left off and keeps what was committed.

The app only listens on 127.0.0.1, refuses other host names, and needs a per-start token for every change.
Appearance
Settings → Appearance chooses the look: System (follows your computer's light or dark setting), Dark or
Light. Each look has a few colour presets, and you can pick your own colours for the background, cards, text,
accent and the three status colours. The app shows the text contrast as you go and warns when it gets hard to read.
Only colours change; the font and layout stay the same. The choice is saved in appearance.json next to
config.json.


Help, settings and shortcuts
Settings (bottom of the sidebar) has six tabs: Models, How runs work, Check setup, Appearance, Demo and Help. On a paired phone the settings stay on the computer; see Use it from your phone.
Help
Settings → Help lists the keyboard shortcuts and links to the documentation site, which opens in a new tab: building your first website, using the app, how a run works, LAN mode, Figma designs, troubleshooting and configuration.
Advanced configuration
Settings → How runs work ends with Advanced configuration, folded until you open it. It shows the whole
config.json in a text box, for the settings the other tabs do not cover: model profiles and their limits, roles,
stacks and their checks, review, commits and more. Save configuration checks the text with the harness's own
configuration rules and writes it only when it is valid; otherwise it says Not saved: and why, and the file stays
as it was. A saved configuration applies from the next chat or build. Undo changes puts back the text as it was
when you opened the tab. Configuration explains every setting. Never paste a key there: like
everywhere else, a profile names the environment variable that holds its key.
Keyboard shortcuts
| Keys | What it does |
|---|---|
| Ctrl+Shift+Space | Switch to another chat: type to filter the list, Enter opens the first match |
| Alt+N | New chat |
| Alt+M | Switch the text box between Chat and Build |
| Alt+S | Open Settings, or go back from Settings |
| / | Go to the text box (when you are not already typing) |
| Ctrl+Enter | Send; Enter alone adds a line |
| Esc | Close a dialog, the chat menu or the report |
On macOS, Alt is the Option key, and ⌘+Enter also sends. New chat is Alt+N because Ctrl+Shift+N belongs to the browser (it opens a private window).
Use it from your phone (LAN mode)
Off by default. Only on a network you trust. LAN mode opens the app to other devices on your local network. Read the precautions below before you turn it on.
ruby exe/harness ui --lan # your computer's private address, found for you
ruby exe/harness ui --lan 192.168.1.20 # or name it
The terminal prints an address such as http://192.168.1.20:4567/ and a 6-digit code; the app on the computer shows
the same in a banner at the top. Open the address on your phone, type the code, and the phone gets the full app: chat,
start builds, answer the planner's questions, send the agent notes, stop and resume, read reports. The app is laid out
for phones.
What protects it:
- Off unless you ask, every time. Only
--lanturns it on, for that run of the app. It is never saved. - Private addresses only. It listens on a
10.x,172.16–31.xor192.168.xaddress, never on every interface (0.0.0.0) and never on a public address. The app on127.0.0.1stays as it is. - Pairing. A device sees nothing but the pairing page until it types the code. A code pairs one device, expires after 10 minutes, and five wrong tries lock pairing until you make a new code on the computer. A paired device holds a random session cookie that ends when the app stops or you choose Stop sharing.
- The phone cannot change your machine. From the LAN there is no way to run model-server commands (LM Studio, Ollama), add, clone or create projects, run setup fixes, start a Preview, or change settings, models or the look. Those stay on the computer.
- Same checks as the computer. Every change from the phone also needs the app's per-start token and its own origin; foreign host names are refused.
Precautions:
- Use it only on a network you trust, such as your home Wi-Fi. Never on public, hotel, café or office guest Wi-Fi.
- Traffic is not encrypted (plain HTTP). Anyone who can watch your network can read the pairing code, your messages, the code the model writes and the session cookie. That is why trusted networks only.
- Never forward the port on your router or expose it to the internet, and do not put it behind a public tunnel.
- Allow it on private networks only if your firewall asks (on Windows: Private, not Public).
- Stop sharing when you are done: the banner's Stop sharing, or Ctrl+C in the terminal.
- A paired phone can start builds, and builds run your project's own checks (its commands) on your computer. Pair only devices you own.
On Windows with WSL: WSL's own address (172.x) cannot be reached from a phone. Turn on WSL's mirrored networking
(then use your PC's address), or run the harness on Windows. The harness warns when this looks like the case.
Quick start: the command line
ruby exe/harness demo # a whole run on a sample project, no model needed
ruby exe/harness init # write config.json, asking a few questions
ruby exe/harness doctor --repo /path/to/repo # check everything a run needs, in one list
ruby exe/harness run --repo /path/to/repo --request request.md
ruby exe/harness status # the newest run: tasks, current step, rejections
ruby exe/harness status RUN_ID --watch # refresh every second until it stops
ruby exe/harness answer RUN_ID # answer the planner's blocking questions
ruby exe/harness steer RUN_ID "a note" # steer a running agent-mode run, or answer its question
ruby exe/harness resume RUN_ID # continue after a stop, a crash or new answers
ruby exe/harness report RUN_ID # (re)write runs/RUN_ID/report.md and print its path
request.md is plain text, as you would write it to a colleague:
Add a Badge component at src/components/Badge.astro. It takes a required label and an optional tone,
"info" or "warn" (default "info"), and renders <span class="badge badge--<tone>">. Use it on the pricing page.
Useful options:
| Option | Where | What it does |
|---|---|---|
--config FILE |
every command | Use another config; runs and caches live next to it. |
--json |
every command | Machine-readable output. |
--plan-only |
run |
Stop after planning; edit runs/<id>/plan.json, then resume. |
--dry-run |
run |
Run intake, the baseline gates and, with --from-plan, the plan checks, then stop. No model is called and the worktree is removed. "dryRun": true in the config does the same for every run. |
--require-green-baseline |
run |
Stop after intake when a blocking gate already fails (see requireGreenBaseline). |
--review MODE |
run, answer, resume |
full, light or off for this run, overriding the config's review. |
--mode MODE |
run, answer, resume |
pipeline or agent for this run, overriding the config's mode (see Agent mode). |
--from-plan FILE |
run |
Skip the planner and run a plan you wrote (format below). With --request too, the request is kept as context for the implementer and reviewers. |
--answers FILE |
answer |
A JSON array of answers instead of typing them. |
--accept-changes |
answer, resume |
Continue a run although the harness version or its prompts changed since it started (see Troubleshooting). |
--port N, --[no-]open |
ui |
The app's port, and whether to open the browser. |
A plan for --from-plan is the JSON the planner writes (runs/<id>/plan.json), and it is checked the same way:
{
"tasks": [
{
"id": "T1",
"title": "Add the Badge component",
"intent": "1-3 sentences: what and why, with every exact value the task needs",
"files": { "create": ["src/components/Badge.astro"], "modify": [], "read": ["src/styles/global.css"] },
"dependsOn": [],
"acceptance": [
{ "kind": "gate", "gate": "typecheck" },
{ "kind": "test", "path": "tests/badge.test.ts", "write": true, "describe": "what the test asserts" },
{ "kind": "assert", "text": "a property the review checks" }
]
}
],
"questions": []
}
Each task creates or modifies at most maxFilesPerTask files and needs at least one gate or test item; a
test path must be a test file. read and modify list existing files or files a task in dependsOn creates.
Progress lines go to stderr; the result goes to stdout. Exit codes: 0 done, 1 the run failed (planning
failed, a task was blocked, or something regressed), 2 a configuration or environment problem, 3 waiting for
your answers.
Projects and workspaces
In the app, Build mode works on projects. Add project (next to the project picker under the text box, or on the start page) offers three ways:
- Link an existing folder. Paste its full path once. The harness checks it is the top folder of a git
repository and shows its branch, whether it is clean, and the detected stack and version, or exactly what is
wrong. Linked folders are stored by name in your
config.json. - Clone from a git URL. A shallow clone of an
https://URL intoprojects/<name>. - New Astro project.
npm create astro@latestintoprojects/<name>, then a first commit.
Clone and New Astro project download code, so the dialog first shows you the exact command and runs it only after you choose Clone project or Create project. The app never lists folders on your disk.

Every run works in its own worktree under workspaces/<runId> in the harness's home, on branch harness/<runId>.
Folders listed in the stack's dependencyDirs (for Astro, node_modules) are mirrored into the worktree with hard
links, so your project's tools can run there without reinstalling. The harness never writes to them, and every file it
writes replaces the link instead of writing through it.
To keep the result, merge the branch in your repository:
git merge harness/RUN_ID
Understanding a run
Everything about a run is in runs/<runId>/:
| File | What it holds |
|---|---|
report.md |
The summary to read first. |
events.jsonl |
Every stage and every rejected output, with a reason code. status and the app are built from it. |
plan.json, run.json |
The plan as run, and the run's state, including the harness version, prompts and config it started with. |
tasks/<id>/ |
Per task: state.json, gate results per round, review.json, and blocked.patch if it was blocked. |
records/ |
One file per model request: role, profile, model id, tokens, time, outcome, and for a failed request the HTTP status and the server's error text (redacted). Never a key. |
final_review.json |
The review of the whole run. |
Read this first, at the top of the report when it applies, says what the numbers below do not show: a gate that could not run, review that was off or light, a run that failed or stopped early, a dry run, and anything that changed while the run was paused. Each line says what to do about it.
Rejections are the heart of the report: every output the harness threw away is counted by reason, such as "edit search text not found", "typecheck failed", "depends on code not shown" or "needs a value its type forbids". Replies that were discarded and retried with thinking off count too. Rejections show where a model struggles, and they are how you compare models.

Findings in the report are only claims confirmed by a failing test. Everything else the review raised is under Questions, clearly marked as unconfirmed.
Cookbook: an Astro landing page
docs/cookbook/astro-landing-page.md builds a small business landing page from an empty folder with a local 16K coder model: the new project, the theme, planning in Chat, the Build request line by line, seven runs (the first two found harness gaps, now fixed; the last four were layout and fixes after reviewing the page), reviewing the branch and merging it. Every stage has a screenshot.
Using with Claude
Claude Code is good at deciding what to build and at reviewing it; the typing in between is where most of its tokens go. The harness can take that part. Claude writes the request, starts a run, and reads back a short report and a diff, while a model on your own machine does the planning, editing, fixing and reviewing in between.
What it saves, measured on the cookbook's third run (eight tasks, a full landing page):
| Tokens | |
|---|---|
| The local model, all of its calls | 93,400 (77,000 in, 16,400 out) |
| Claude: writing the request | ~740 |
Claude: reading harness status --json |
~2,000 |
| Claude: reading the report | ~1,300 |
| Claude: reading the diff (375 lines) | ~3,100 |
| Claude, in all | ~7,200 |
About 13 times the model traffic stayed on the local machine. Claude's figures are the sizes of what it would read and write, estimated the way the harness budgets context (three bytes a token, which errs high); they leave out Claude's own system prompt and turns. We have not measured Claude building the same page directly, so this is not a claim about how much that would cost; it would at least read the files, write the 375 lines and check them, with every turn re-sending the conversation.
The trade is time. A 16K local model one request at a time took a couple of hours for that page. Hand the harness the work that is clear and self-contained, and keep Claude for the parts that need judgment.
How to set it up. Install the harness and connect a local model (see Install and
Choosing and checking a model). Then tell Claude Code how to delegate, in your
project's CLAUDE.md:
## Delegating to VB Harness
For a self-contained feature (a component, a page, a small refactor), delegate to the local harness instead of
writing the code yourself:
1. Write the request to `.harness/request.md`: exact file paths, exact values (colours, sizes, text), what each
file imports, and what is out of scope. The harness keeps what the request says and nothing else.
2. Run it in the background: `ruby <harness>/exe/harness run --repo . --request .harness/request.md --json`.
3. Check on it with `ruby <harness>/exe/harness status RUN_ID --json` rather than polling often; runs take
minutes to hours.
4. Exit code 3 means the planner asked questions: answer with `harness answer RUN_ID --answers answers.json`.
5. When it finishes, read `runs/RUN_ID/report.md` and `git diff main...harness/RUN_ID`. Gates prove the code
builds, not that it matches the request, so review it. Merge with `git merge harness/RUN_ID`, or send a
smaller follow-up request.
Any command works the same from Claude's side: --json on every command gives machine-readable output, progress
goes to stderr, and the exit code says how the run ended (see Quick start: the command line).
Building from a Figma design
Paste a link to a Figma frame into your request, and the run builds from that design:
Add a pricing section to the home page, matching https://www.figma.com/design/FILE/Name?node-id=1-2
- In Figma, select the frame and use Copy link. A link to a whole file is refused, because it doesn't say what to build.
- Create a Figma personal access token with read access to file content, and put it in the
FIGMA_TOKENenv var. To use another variable, set"figmaTokenEnv"inconfig.json.
When the run starts, the harness reads each linked frame once and adds it to the run's request.md as a short outline:
structure, sizes, spacing, colours, type and wording. Pipeline and agent modes both use it, so the model needs no image
support and no Figma tools. A design that can't be read stops the run before any model is called, and the run shows the reason.
Limits: the outline is text, so images and icons appear only as named placeholders, and it stops at 5,000 characters, so link a section rather than a whole page. It's read once, so later changes in Figma don't reach a running run.
Safety: only links in your request are read, so a model or a repo file can't choose what's fetched. Requests are read-only. The token goes only into the request to Figma, and layer names and text reach models as untrusted data.
Configuration
harness init (or the app's Settings) writes config.json for you. Start from
config.example.json; every value there is a default or a placeholder.
Profiles describe model servers; roles say which profile does what:
"profiles": {
"default": {
"baseUrl": "http://127.0.0.1:8080/v1",
"model": "auto", // "auto" uses the first model the server lists
"apiKeyEnv": null, // the NAME of an env var holding a key, or null
"contextTokens": "probe", // or a number
"maxOutputTokens": 4000,
"thinking": { "control": "probe", "effort": "low", "budgetTokens": null },
"structuredOutput": "probe", // json_schema | json_object | prompt
"toolCalls": "probe", // native | none
"continuation": "probe", // prefill | continue_final_message | none
"timeoutSec": 900
}
},
"roles": { "planner": "default", "implementer": "default", "fixer": "default",
"reviewer": "default", "verifier": "default", "summarizer": "default" }
Use two profiles to plan and review with a larger model and implement with a faster one. HARNESS_<PROFILE>_BASE_URL
and HARNESS_<PROFILE>_MODEL override a profile from the environment.
Stacks say how to check a project. The Astro stack in the example (each command runs as
npx --offline --no -- <tool>, so a tool that is not installed fails at once and npx never downloads one):
| Gate | Command | When | Blocking |
|---|---|---|---|
format |
prettier --check {files} |
each task, touched files | no |
lint |
eslint {files} |
each task, touched files | yes |
typecheck |
astro check |
each task | yes |
unit |
vitest run {tests} |
tasks with tests | yes |
build |
astro build |
integration | yes |
e2e |
playwright test {tests} |
integration | yes |
Gates are argv arrays, never shell strings. A gate whose tool is missing is reported as skipped, never as passed;
it blocks a task only when the task names it in its acceptance.
Gates may not install packages, run git or gh, or use npx --yes. Other stack keys: detect (files that
identify the stack), alwaysGates, protectedPaths (globs the model may never touch; .git, .husky and
node_modules are always protected), dependencyDirs, and docs.local (a local checkout of the framework's docs,
used by the review; without it, framework claims abstain instead of being confirmed).
Two keys power the app's buttons: setup maps a dependencyDirs folder to the command that creates it, offered as
a one-click Fix when it is missing (for example "setup": {"generated": ["npx", "--offline", "--no", "--", "prisma", "generate"]}; node_modules needs no entry, its fix is the package manager's install with
--ignore-scripts), and preview is the dev server's argv with {port} where the port goes (the example config's
Astro stack has ["npx", "--offline", "--no", "--", "astro", "dev", "--host", "127.0.0.1", "--port", "{port}"]).
Two keys carry what a small model gets wrong about the stack, as plain data: fixHints ({"match": text in a diagnostic, "hint": what to tell the fixer}, shown next to a matching diagnostic) and reviewNotes (facts and
pitfalls the reviewer and verifier are given). The example's Astro stack has a few, such as "props are
Astro.props" and "{expression} output is escaped"; add your project's own.
Limits (defaults): maxFilesPerTask 3, maxFixRounds 3, maxReplanRounds 2, maxDiagnostics 20,
maxLookups 6, maxReviewFixTasks 2, wholeFileRewriteMaxBytes 4096, maxGateOutputBytes 204800,
maxVerifierCalls 60 (per run), maxRefutedInARow 3.
Commits: each task is committed as <type>: <title> in Conventional Commits form, with the type (feat, fix,
chore, docs, test, refactor, style, perf) chosen by the planner. A plan without a type falls back to
T1: <title>. The lines under the subject come from "commit": {"trailer": "..."}, default
Gates passed: {gates}. The placeholders are {model} (the implementer's model id), {version} (the harness
version), {checks} (how many gates passed) and {gates} (their names), for example
"Commit by {model} from vb-harness {version}. {checks} checks passed".
Review (review, default full): full reviews every task and the whole run; light skips the per-task
review of a small change (80 changed lines or fewer) whose gates passed first time, and keeps the final review;
off skips review. In every mode the verifier stops when the run has used maxVerifierCalls, or after
maxRefutedInARow claims in a row were refuted by the code; the claims left are recorded as unverified
questions, never dropped. Review is the most expensive stage with a small model, so light is a good start.
Modes. harness init asks how careful runs should be, and the app's Settings can change it later; either
writes the matching settings, which you can still edit by hand:
| Mode | review |
requireGreenBaseline |
maxFixRounds |
For |
|---|---|---|---|---|
| Careful | full |
true |
3 | Real projects, and weaker models. |
| Balanced (default) | light |
false |
3 | Most work. |
| Quick | off |
false |
2 | Trying things out, small changes. |
It also asks whether to use one model for everything, or a second model (often a larger one) for the planner,
reviewer and verifier, with the implementer and fixer on the first. That writes a planning profile and points
those roles at it. In the app, Plan & review on a model does the same, and Settings picks which configured
model those roles use. A config the app creates starts Balanced, like one from init.
Agent mode ("mode": "agent", or --mode agent) trades speed for accuracy. Instead of one structured
reply per step, each task is worked by an agent with tools: it reads, lists and searches the code, edits files
(exact search-and-replace, whole files, and long new files in parts), and runs the project's gates and the
commands you allow, until it calls finish. Its finish is a claim, not a result: the harness then runs the task's
gates itself, and sends any failure back to the same agent, which keeps what it already read, until the gates
pass or agent.maxRounds runs out. Before planning, an investigating agent reads the repository (it cannot change
files) and its findings go to the planner, so plans and bug fixes start from the code as it is. Tasks may change
up to agent.maxFilesPerTask files.
The safety rules do not change. Writes stay in the worktree and outside protectedPaths; tool output is fenced as
untrusted; only gates mark a task done. The agent runs only the stack's gates and the commands you declare under
agent.commands, by name: an argument written exactly as {name} is filled from a declared parameter, either
path (an existing file in the repository) or word (letters, digits and . _ : / @ -, never starting with
-, and never an absolute path, drive letter or ..). The model never writes a command line. Check configuration
(package.json, tsconfig*.json, *.config.*, linter configs and the like) and tests that already exist can be
changed only when the plan names them, so an agent cannot make a gate pass by weakening it.
| Key | Default | What it does |
|---|---|---|
agent.maxSteps |
60 | Tool calls per stretch of a task's work. |
agent.maxRounds |
6 | How often the harness may send a task back after its gates failed. |
agent.maxFilesPerTask |
12 | Files one task may change (replaces maxFilesPerTask in agent mode). |
agent.investigate |
true |
Explore the repository before planning. |
agent.maxInvestigateSteps |
30 | Tool calls for that exploration. |
agent.commands |
{} |
Named commands the agent may run, as above. |
agent.askTimeoutSec |
900 | How long an agent's question waits for your answer; 0 means it cannot ask. |
agent.maxRecoveries |
3 | Further tries when an agent stops without finishing; 0 blocks the task at once. |
agent.acceptanceTests |
false |
A separate agent writes each task's test from the request before the code exists. |
Acceptance tests. An implementer's own tests share its misunderstandings. With agent.acceptanceTests on, the
test a task's plan asks for is written first, from the request, by a separate agent on roles.tester (the reviewer's
model unless you set it). The implementer can read that test but not change it. Halfway through agent.maxRounds, a
test the code still fails gets one look from its author, who may correct it only against the request. Work that
passes such a test counts as done even if the agent never called finish. A task with no test in its plan, or a stack
with no test gate, works as before.
When an agent stops early. An agent that runs out of steps, or stops without calling finish, gets a limited
number of further tries, and each one changes something. First a new conversation, told by the harness what is
already in the repository. Then a smaller job: the harness runs the checks and gives the agent only what is left,
with half the steps. Then, if roles.rescuer names a different profile from roles.implementer, that model
takes over. After that the task blocks, and the report says what was tried.
Steering a running agent. While an agent-mode run works, harness steer RUN_ID "use the existing Button component" (or the note box on its card in the app) sends it a note, which the agent reads before its next step,
as your words. An agent can also ask you a question with ask_user when the task is ambiguous: the question shows
on the card, in the events and in run.json, and your next note is the answer. If none comes within
agent.askTimeoutSec, the agent decides for itself and says in its summary what it assumed. In the app, Settings
switches the way of working between Pipeline and Agent, and an agent-mode card's Agent activity lists each agent's steps.
Agent mode makes many more model calls than the pipeline; with a local model, expect a task to take several times longer. Models without native tool calls use a JSON reply protocol, one tool per reply.
A red baseline. When a blocking gate already fails before the run, intake says so (an event, and a line at the
top of the report); tasks are still judged only on new problems. Set requireGreenBaseline to true to stop the
run there instead, before any model call (exit code 2).
A dry run (harness run --dry-run, or "dryRun": true for every run on the command line) shows what a run
would start from without calling a model: the stack, each gate's baseline result, the plan's problems when a plan
is given (all but the context-size check, which needs the model), and what would happen next. It exits 0 when
nothing found would stop a real run, 1 for plan problems, 2 for a failing baseline under requireGreenBaseline.
The app's Build is never a dry run.
gateEnvAllow lists extra environment variables your gates need; everything that looks like a secret is removed
from the gates' environment otherwise.
Choosing and checking a model
Nothing about specific models is built in. On first use, the harness probes each model: its context size, whether
it can return JSON or call tools, whether its thinking can be turned off, whether it can continue a reply it
started, and how fast it is. Values you set in a profile override the probe. Results are cached in .cache/probe/.
Practical advice:
- A coding model with 16K context or more, instruction-tuned, at a quantization that still follows JSON reliably.
- A reply cut off at
maxOutputTokensis not thrown away. When the server can continue a reply, the harness asks the model to go on from where it stopped, up to three times, and checks the joined answer as usual. When a reasoning model spends its whole budget thinking, the harness retries once with thinking off and gives the model its reasoning so far, so the thinking is not lost. Setcontinuationtononeto turn continuing off. - Compar
[Content truncated due to size limits]
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.


