Files
pipelines/internal/author/skill/references/harnesses.md
T
alan 81d6af04c2 Stages: offer every operator Claude Code skill without an import step
Claude stages always get the Skill tool (bare Skill allow rule) and no
longer pass --disable-slash-commands or the disableBundledSkills settings
layer, so Claude Code's bundled skills are available. --setting-sources ""
stays, so the operator's personal (~/.claude/skills), claude.ai synced and
enabled-plugin skill folders are discovered per visit and passed as
generated skills-only session plugins (plugin.json plus skills/<name>
symlinks; no hooks, MCP servers or commands) after the skills block's own
plugin. The ambient-skill stream guard is removed.

Pi stages keep --no-skills (Pi's own discovery) and add --skill for each
block skill, then each operator skill folder, with read access to those
folders. OpenCode tool-using stages allow OpenCode's own skill tool for
exactly the personal and synced Claude skill names it discovers, plus
external_directory reads of their folders. Bundled Claude Code skills have
no folder and stay unavailable to Pi and OpenCode (documented).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:52:09 +00:00

4.6 KiB

Configured harnesses (operator only)

Authoring needs only the harness= config (references/format.md). The rest is for an operator setting up or debugging the execution computer.

OpenCode and Pi run interactive authoring, debugging and model stages; Claude Code is a chat backend that also runs model stages (harness=claude, provider=anthropic, declared tools only); Codex is a chat backend. nvim is a file editor/read-only debug packet viewer, not a stage backend. Only configured harnesses appear in pickers, default first. CLI new/edit/debug --harness opencode|pi|nvim overrides the default, and pipelines harness launches the configured default in the invocation directory.

pipelines harness setup <claude|codex|opencode|pi> is the single setup path on native and Docker installations: it checks the CLI is reachable from the server (printing the install command when missing), signs in only when needed (--login forces it) and verifies with the server's own check. For OpenCode/Pi it picks the interactive harness model and the new-pipeline model; automation passes --model PROVIDER/MODEL --pipeline-model PROVIDER/MODEL, and a non-terminal run with a missing model fails instead of opening a picker. harness default [opencode|pi] switches defaults; harness list shows installed / signed-in / configured / default status (--json adds profiles). Setup reads catalogs and login state without inference. Changing defaults never rewrites published definitions or drafts; canceling a picker leaves saved preferences unchanged. Harness setup/default commands configure the local execution user, not a remote --url server. Pi setup runs no generation check; provider-check --harness pi --model PROVIDER/MODEL is a separate, potentially chargeable check.

Docker image resolution, profile storage, the Docker-aware CLI prefix, Pi sign-in and OpenCode V2 settlement internals are in docs/operator-reference.md in the source checkout; dated verification is in docs/verification-history.md.

A run may override the pinned model at launch: pipelines run --model PROVIDER/MODEL covers every model stage and repeatable --stage-model STAGE=PROVIDER/MODEL overrides one stage (per-stage > whole-run > pinned). Overrides are validated against the pinned version before the run starts (an unknown stage key fails naming the valid keys; a non-model stage cannot be overridden), apply to that run only, and are recorded so retry reproduces them. The effective provider/model is stamped on the step.

Pi stages start a new retained session per visit with explicit tools and a Pipelines permission extension; ambient extensions, Pi's own skill discovery, context files, prompt templates, automatic retries and compaction are disabled. Tool gates are not an OS sandbox: approved shell can have broad side effects. Usage accumulates across attempts and visits; missing required accounting fails closed. Session/RPC audit lives in the execution user's cache under pipelines/pi-sessions; unconfirmed cleanup blocks continuation and retry.

Every model stage can use the execution user's own Claude Code skills with no import, and a skills block (references/format.md, Skills) adds library skills on all three stage harnesses. Claude stages always offer the Skill tool (in --tools, approved by a bare Skill rule) and no longer pass --disable-slash-commands, so Claude Code's bundled skills are available; --setting-sources "" still keeps user/project settings, hooks, MCP servers and plugins off, so the operator's personal (~/.claude/skills), synced and enabled-plugin skill folders are passed as generated skills-only session plugins (--plugin-dir, named user:, anthropic-skills:, <plugin>:), after the block's own --plugin-dir <visit skills dir> (pipelines-stage:<name>). Pi keeps --no-skills (Pi's own discovery stays off) and adds --skill <dir> per block skill, then per operator skill folder. OpenCode discovers ~/.claude/skills (including synced) itself; a tool-using stage session allows its skill tool for exactly those names, while its other skills stay denied. Block skills are attached as per-session instruction entries instead, which needs the OpenCode V2 service (a V1 backend fails the visit) and a SKILL.md small enough for one 64 KiB request. Bundled Claude Code skills have no folder and are unavailable to Pi and OpenCode.

Claude stages may additionally allow named MCP servers/tools in the tools block. These are Claude-only, exact allowlist entries; other MCP tools remain denied in unattended dontAsk sessions. Use mcp:<server> or mcp:<server>/<tool> with names as Claude Code displays them, and prefer read-only tools.