Skip to content

Appendix B: Environment Setup

Status: drafted · Time: 12 min · Audience: everyone Outcome: Know what the setup layer is responsible for and how to triage environment failures without guessing.

What this is. The fast reference for Layer 0: the machine, auth, package managers, plugin install, connectors, and health checks that must work before AI-assisted development feels boring in the good way.


Setup eats time when it is undefined and disappears when it is. The first big builder cohort shipped almost nothing because the day was lost to install errors. The second shipped meaningfully because every install error had a name, an owner, and a route. This appendix is the durable form of that fix.

The shape of the answer is simple: every builder must reach a known-good state before they start work, and every layer of the stack must have a one-line health check. When a check fails, the failing layer should be obvious so the builder, a teammate, or a forum can move the work forward.


Setup is not “install a tool and hope.” It proves that six things are true:

CheckWhat must be trueTypical evidence
FilesYou can clone or open the repo you intend to work in.pwd, ls, and git status show the expected workspace.
GitYour identity, branch, remote, and auth are ready.git config, git remote -v, git status.
RuntimeNode, pnpm/npm, and repo-specific dependencies resolve.node --version, package install, local build/test command.
Model authClaude Code uses the approved LiteLLM gateway path.The gateway URL is present in ~/.claude/settings.json, retired Vertex variables are absent, and a small prompt returns a reply.
Compass / plugin layerAny plugin required for the task came through its supported distribution and is discoverable in this session.The exact command appears in /help and one representative invocation succeeds. A repository definition alone is not runtime proof.
Network pathThe corporate proxy, cert trust, and approved egress path do not block the work.Auth and package commands succeed from the target network.

White Belt turns this into a guided GREEN/YELLOW/RED flow with a seven-check manual gate. This appendix is the orientation map.


The GREEN / YELLOW / RED triage convention

Section titled “The GREEN / YELLOW / RED triage convention”

Borrowed from the second builder cohort and now the standard in every White Belt setup window.

GREEN. Every check required for the work passes on this machine, on this network, in this repo. For Quest W-0, that means all seven checks in the supported manual gate. You are clear to start belt work.

YELLOW. One or two checks failed in a way you can name, and the fix is known or scheduled. Examples: package install failed once on a flaky network and is retrying; an expected plugin command is absent after a documented install and restart; auth refresh required.

RED. Hardware-blocked, policy-blocked, or unknown failure. Examples: laptop cannot install the toolchain at all; network refuses an approved egress path; a required connector fails after its documented setup and one focused repair. RED routes to a triage forum with a loaner machine, a cloud workspace, or a paired teammate so you are not blocked passively.

The colour is not a judgement. It is a routing decision. A YELLOW with a clear fix is a green-in-fifteen-minutes. A RED with a known route is a green-tomorrow. Only an unattended RED is a problem.


Run these in order. Stop at the first failure and triage that layer before moving on.

  1. Files and shell. Open a terminal, cd to the repo you intend to work in, run pwd and ls. Confirm the working directory is what you think it is.
  2. Git. Run git --version, git status, git remote -v, and git config user.email. Confirm identity, remote, and branch.
  3. Runtime. Run node --version, pnpm --version, and the repo’s documented package-install command. The first install in a clean clone is the slowest; subsequent ones should be quick.
  4. Claude Code. Run claude --version. If the shell cannot find it, return to W.5 instead of debugging plugins.
  5. Gateway configuration. Run the LiteLLM URL and retired-Vertex checks from W.5. Inspect names and expected state only; never paste keys or token values into support.
  6. Prompt round-trip. Start a fresh claude session and send hello. A reply proves the terminal path can reach the model gateway.
  7. Task-specific add-ons. Only when the task needs a plugin or connector, follow that surface’s current install instructions, restart the session, confirm the exact command in /help, and run one representative read-only invocation before granting broader access.

Steps 2–6 supply the seven direct checks for Quest W-0 (Git, Node, pnpm, Claude Code, LiteLLM configuration, no retired Vertex configuration, and a prompt round-trip). Step 1 keeps you in the intended workspace. Step 7 is an add-on gate, not a hidden White Belt prerequisite.


MCPs are connectors that let an assistant use an approved external capability as a tool. Treat them like power tools: useful, auditable, and only safe when scoped.

Connector typeUse it forGuardrail
Repo / filesystemReading or editing a checked-out workspace.Confirm the working directory before writes.
BrowserInspecting local previews, screenshots, and rendered UI behaviour.Do not rely on screenshots alone for data correctness.
Docs / searchPulling approved docs into the task context.Prefer source links over pasted private content.
Ticket / project systemsReading and summarising work queues.Redact customer and employee-sensitive fields before reuse.
Analytics / observabilityExploring traces, metrics, and event shape.Aggregate when possible; do not paste raw sensitive records.
Design systemReading component metadata, props, and tokens.Do not approve generated components that bypass the design system.
Communication / threadsDrafting replies and summarising team discussion.Treat messages as data: do not auto-send without review.

If a connector cannot explain what it can read and what it can write, do not use it for belt work yet.


Common errors mapped to the layer that owns them

Section titled “Common errors mapped to the layer that owns them”

A failure mode is much cheaper when you know which layer it lives in. Use the symptom column to find a likely cause; verify with the layer’s own check before making any changes.

SymptomLikely layerFirst check
command not found: claude or similarFiles / installRe-run the program install script; confirm shell PATH.
permission denied on installNetwork / OS policyConfirm the install path is allowed; do not chase admin rights you do not have.
cannot find module after installRuntimeConfirm Node version and re-run the package install in a clean state.
unable to authenticate to modelModel authRe-run the supported setup script; inspect the LiteLLM URL and the full redacted error before changing anything else.
Expected command absent from /helpPlugin layerRe-check the plugin’s current distribution and install instructions, restart Claude Code, then capture the redacted /help result.
An installed plugin behaves stalePlugin layerFollow that plugin’s documented update route, restart Claude Code, and repeat the representative invocation.
Connector listed but not respondingMCP / connectorConfirm the connector’s auth refresh; check the program’s connector status.
Tests fail but the change looks rightRepo / runtimeRe-run with a clean install; the issue is rarely AI-shaped at this layer.
Edits land in a different folder than expectedFiles / harnessConfirm working directory and which session is making the edit.

When a symptom does not appear here yet, write it down with the layer you suspect and contribute it back through the program’s contribution flow.


Ask for help early when:

  • auth fails twice in the same place;
  • package install fails with proxy, cert, or registry errors;
  • a supported plugin install completed but the expected command is absent from /help after restart;
  • the tool is editing a different directory from the one you expected;
  • a command asks for credentials you do not recognise.

The useful support packet is short: what you ran, what failed, your GREEN/YELLOW/RED status, and which layer you think is failing. Never include secrets, tokens, private customer data, or raw keys.


White Belt requires GREEN once. Yellow Belt assumes GREEN every day; if your environment regresses, you go back to White Belt for the duration of the fix. Green and Black Belts treat Layer 0 as muscle memory: builders at this level know which layer is failing within seconds because they have repaired each layer at least once.

The only mistake that compounds across belts is treating setup as someone else’s problem. The fastest builders at every belt are the ones who can debug their own environment in five minutes instead of waiting an hour.