Workbench guides getting-started.md
6.7 kB 132 lines
Markdown
at main


id: guide.getting-started title: Getting Started describes: [proposal.0001] #

Getting Started #

I just cloned this. What do I do? #

Start by making the kit your project, then use it for one small feature. You and the agent have different jobs, but you use the same orientation command whenever the work needs a next step.

What Workbench is #

Workbench is a process kit for developing a project with a coding agent. No single artifact defines a feature: intent is written more than once in forms that can disagree. A proposal records intent, tests encode behavior, guides explain it, and code implements it; disagreement between them is the signal to investigate.

For the argument behind this structure, read the README.md. This guide starts with using it.

Install and verify #

The project's toolchain is Vite+. Install its vp command once per machine, following the Vite+ guide:

curl -fsSL https://vite.plus | bash

From the repository root, install the project's dependencies. Vite+ uses the Node version in .node-version and the pnpm version in package.json, downloading either when it is missing, and installs the commit-message hook that holds commits made from Oh My Pi to Scoped Commits:

vp install

The gate also needs Bun, which Vite+ does not install. One test loads the workflow tool through Oh My Pi's real loader, and that loader runs on Bun:

curl -fsSL https://bun.sh/install | bash

Then run the complete local gate:

vp run check

vp run check succeeds only when formatting, lint, and type checks, record validation, tests, and the documentation build all finish without an error. The documentation build also catches dead links.

Vite+ does not install the GitHub CLI either. The process runs on pull requests, so gh must be present and authenticated against your remote:

gh auth login

Without it, vp run status cannot see the pull request and will say so rather than guess.

When you need to diagnose the nonformatting parts of the gate, run:

vp run validate
vp run test

This repository produced this trimmed passing output:

$ node tools/validate.ts
Validation passed: 0 violations

$ vp test run
 Test Files  6 passed (6)
      Tests  189 passed (189)

Run vp run check after changing the project; the agent runs it before claiming a feature is ready.

If the gate fails #

Do not begin a feature with a failing baseline. Give the output to the agent and have it find the root cause; changing a gate or suppressing its failure is not a repair.

Adapt it to your harness #

Workbench comes wired for Oh My Pi: it loads the contract, discovers the skills, and runs the lifecycle extensions in .omp/extensions/ with no further setup. For any other harness, adapt its contract and skill-loading configuration, commit that one-time setup, and then forget about the wiring; the process material in .agents/ remains the source of truth. Follow Adapting Your Harness before starting feature work.

Read the worked example #

This clone ships Workbench's own record and guides, which are the clearest available answer to what good output looks like. Read them before you write or delete anything: VISION.md for the shape of a vision, proposals/0001-*.md for a real proposal, and Running a Feature for the loop you are about to run.

Write your project's vision #

Now replace VISION.md, using .agents/templates/VISION.md, in conversation with the agent. Describe your project's purpose, minimum viable product, principles, direction, and non-goals — not a list of the first feature's tasks.

The vision is the standard against which later proposals are evaluated. Without it, the agent silently substitutes its assumptions for the direction you did not write down. Keep it current when accepted work changes what the project is.

Clear the rest of the example #

Remove proposals/0001-*.md and the six guides. Keep guides/README.md — it documents the frontmatter every future guide needs, and the site's navigation points at it while you have no guides of your own. Keep the README.md in each record directory for the same reason.

Keep policies/ and decisions/ empty until a real feature establishes one; speculative policies are the ones nobody follows.

Run your first feature #

Pick something small for the first pass. It will expose the parts your harness handles badly, and learning that on a small change is much cheaper than learning it on a large one.

The Running a Feature guide you just read takes a change from a branch and draft pull request through proposal, implementation, review, release, and cleanup. The agent handles the ordered implementation and review work; you establish intent, make the proposal decisions reserved for you, and review the preview before accepting the feature.

The one command #

vp run status

Run it with no arguments at the start of a session and whenever you need to orient yourself. It reads the branch, pull request, and proposal record, then reports the current phase, the next action, and who acts.

You are not expected to memorise commands, skill names, or process steps. “Keep going” is a complete instruction to the agent because it orients itself with the same command.

Where things live #

Path What it holds When you use it
VISION.md Your project's purpose, minimum viable product, and direction Write it before feature work; update it after accepted work changes the project.
proposals/ One numbered specification for each change Write and settle a proposal before implementation.
guides/ Reader-facing behavior and usage guides The agent writes or updates these from the proposal before code.
policies/ Rules future work must keep enforcing Add one only when a feature establishes a durable rule.
decisions/ Architectural choices and their context Add one only when a feature establishes a durable choice.
.agents/ Harness-neutral process instructions, rules, and templates Your harness reads the adapted copy; this remains the source of truth.

Continue from here #