Skip to content

Repository files navigation

Provenant

A personal harness for Claude Code and Codex that turns agent work into a scoped, verified and independently reviewed delivery workflow.

CI Licence: MIT

Provenant is a personal harness, used daily by its author. Interfaces change without notice and support is best effort. Propose changes through GitHub issues; report vulnerabilities privately through SECURITY.md.

Why Provenant

A bare coding agent will write and "finish" a change in one pass, with its own author as the only reviewer. Provenant puts structure around that:

  • it scopes work in dialogue with the user, returning open decisions as questions, and requires approval before implementation starts;
  • it runs deterministic checks before any result surfaces for review;
  • it adds review by the other model family once the work is substantial: Claude checks Codex, Codex checks Claude; and
  • it keeps acceptance and release as separate user decisions.

A change therefore arrives already scoped, verified and read by a context that did not write it, so user attention goes to judgement rather than to catching an agent's own mistakes.

How it fits together

Three parts act on every request at once: the constitution sets the rules, a skill supplies the procedure, and cross-provider dispatch runs and cross-reviews the work. None of them is a stage the work passes through.

flowchart TB
    accTitle: The three parts and the delivery loop they serve
    accDescr: A user request enters the delivery loop, which runs scope, implement, verify and review, and produces a scoped, verified, independently reviewed change. Three parts act on that loop concurrently rather than in sequence. HARNESS.md, the constitution, sets the rules: authority, lifecycle and review pressure. The skills library supplies the procedure, one SKILL.md per task loaded when the task matches. Cross-provider dispatch runs and reviews the work, with Claude Code and Codex as primaries reviewing each other and Fabric providing messages, tasks, activity and a thin front door to the existing dispatch owners.
    U(["User request"]) --> LOOP["Delivery loop<br/>scope · implement · verify · review"]
    LOOP --> OUT(["Scoped, verified,<br/>independently reviewed change"])
    H["HARNESS.md: the constitution<br/>authority · lifecycle · review pressure"] -. "sets the rules" .-> LOOP
    SK["Skills library: 26 Agent Skills<br/>one procedure per task, loaded on match"] -. "supplies the procedure" .-> LOOP
    F["Cross-provider dispatch<br/>Claude Code and Codex review each other;<br/>Fabric coordinates and can start existing dispatch owners"] -. "runs and reviews the work" .-> LOOP
    classDef out fill:#1f6f43,stroke:#4fd08a,color:#ffffff,stroke-width:2px
    class OUT out
Loading
  • Harness: HARNESS.md is the constitution. It sets authority, the delivery lifecycle, and how much review pressure each risk tier owes, and stays small so it can be read every session.
  • Skills: the 26 Agent Skills are task-specific procedures, one folder with a SKILL.md each. Only the one-line descriptions sit in permanent context; a full body loads only when the task matches it.
  • Fabric: messages, shared tasks and activity between agents working on one project, plus two MCP tools that delegate ordinary dispatch and finite batches to the existing owners. One SQLite file, no daemon, nothing to provision.

Quick start

Requirements:

  • Git and Python 3.11+
  • Claude Code or Codex, subscription-authenticated, per primary client
  • Node.js >=24.15.0 <25 and npm >=11.12.1 <12 for repository verification (the suite shells out to node)
  • uv, or an already-built harness interpreter. scripts/install-harness and scripts/check-harness both select their interpreter through scripts/lib/harness-python.sh, which refuses to run without one, so this is a hard prerequisite rather than a convenience
  • PyYAML and pytest for harness checks (uv sync --locked --only-group test installs the locked versions into .venv/; scripts/check-harness honours HARNESS_PYTHON if you would rather point at your own interpreter)

Install either platform independently, or both:

git clone https://github.com/mblauberg/provenant.git "<PRODUCT_ROOT>"
cd "<PRODUCT_ROOT>"

# build the harness interpreter; install-harness cannot run without one
uv sync --locked --only-group test

# install the pinned workspace dependencies
npm ci

scripts/install-harness --platform all

# discover commands, then verify the daemonless Fabric bus
provenant help
provenant fabric whoami

# run the repository gates when changing Provenant
provenant check   # harness policy gate
npm run check     # TypeScript gates

Each installer command registers the Fabric MCP server for the platform it installs. Pass --mcp-clients all to either one to register all six clients instead.

With --platform all, installation links skills into both primary clients and installs Claude workflows. Both clients also receive the instance-owned skills in <instance-root>/custom-skills/; scripts/instance_installation.py validate reports how many it will project. A custom skill whose name matches a product skill fails the install rather than shadowing it. If a client still exposes the product catalogue as one directory-level link, the first install carrying a custom skill converts that directory into per-entry links. A single-platform install changes only that primary. Every install also writes a managed copy of the thin provenant command in ${PROVENANT_BIN_DIR:-$HOME/.local/bin}; it warns when that directory is not on PATH, and never edits shell startup files. During an upgrade, the installer also retires prior managed Claude custom-agent links recorded by the old installation receipt, while preserving changed or unrecorded files. It replaces only the legacy link that exactly names <instance-root>/scripts/provenant, including a dangling link. It preserves other files and links as user-owned. If the installer exits non-zero, follow the message it prints: exit 3 flags a command collision, incompatible instruction target, or managed skill-link conflict, and instruction conflicts include the bootstrap line to add.

Exit 3 also covers a missing harness interpreter, which is what a machine without uv meets first:

harness-python: unusable interpreter: <PRODUCT_ROOT>/.venv/bin/python
repair: uv sync --project <PRODUCT_ROOT> --locked --only-group test

Run the repair line the message prints, or export HARNESS_PYTHON pointing at a Python 3.11+ interpreter that already imports yaml and pytest. Every install-harness and check-harness step is gated on this, so nothing else in the quickstart runs until it resolves. scripts/check-harness --doctor reports whether uv is on PATH.

To move the product checkout while retaining a small instance root, follow the split-product relocation runbook.

provenant fabric whoami creates the project-local Fabric identity and shared SQLite bus on first use. There is no daemon, trust record, initial provisioning or warm/build step. provenant check runs the harness policy gate from the registered checkout containing the caller, so a linked-worktree check cannot certify the primary checkout. npm run check covers the Fabric typecheck and tests. It first reports missing dependencies for that exact checkout and tells the operator to run npm ci; it never installs or borrows another checkout's tree.

Filesystem layout, Codex config and uninstall
<PRODUCT_ROOT>/                product checkout
  HARNESS.md                      product constitution
  runtime/  skills/  workflows/
  scripts/  config/
          |
          | scripts/install-harness
          v
~/.agents/                        thin instance
  AGENTS.md                       instance-owned instructions
  config/                         instance-owned configuration
  .agent-fabric/product-root.json machine-local product pointer

~/.claude/skills/                 managed links
~/.codex/skills/                  managed links
~/.claude/workflows/              managed links
~/.local/bin/provenant            managed command

The Codex installer appends one block to ~/.codex/config.toml disabling Codex's bundled skill-creator, leaving skill-craft canonical; the rest of that file is preserved.

From the product checkout, scripts/manage_installation.py uninstall-managed --target <skills-dir> reclaims the harness-owned skill links and nothing else. The bootstrap line and the Codex block remain until removed by hand.

Fabric derives the project from the current working directory. Run provenant fabric whoami from the project you mean; the first call creates its database and registers the caller without a separate activation step. A repository's ordinary registered linked worktrees share that Fabric project while each caller retains its resolved working directory.

Providers

The Fabric MCP installer supports the six host clients below. Fabric registration and direct provider execution are separate; current dispatch activation is owned by adapter compatibility.

Client or provider Fabric MCP registration Direct provider execution
Claude Code Supported Enabled Anthropic primary
Codex Supported Enabled OpenAI primary
Agy Supported Enabled optional broker; the receipt records the runtime model family
Cursor Supported Enabled optional Composer/Grok and hosted third-party broker
Kiro Supported Disabled; see kiro-acp policy
OpenCode Supported Enabled optional free/Zen worker (opencode/<model>); explicit model required

Provider CLI versions and digests are diagnostic observations, not admission locks. Direct dispatch enforces the checked-in activation decision and uses fresh adapter capability evidence where the route requires it; a CLI update does not by itself require a compatibility-table edit.

Core workflows

Each task has a front-door skill; the agent loads it when a request matches.

Need Skill
Agree what to build scope
Deliver an approved code change implement
Deliver research, analysis or documents deliver
Find a root cause diagnose
Review without changing the code code-review
Coordinate parallel agents orchestrate
Promote an accepted artefact release

Lifecycle

Every change runs the delivery loop and stops at three gates reserved to the user; receipts declare approval rather than authenticating it.

flowchart TB
    accTitle: The delivery loop and its three user gates
    accDescr: After a session sets up clean context, the deliver kernel runs the loop top to bottom: scope writes the specification and risk tier, a user gate approves it, implement writes the test first whenever observable behaviour changes, verify runs deterministic checks, and review reads the work in a fresh context that never wrote it, using targeted lenses plus the other primary from the substantial tier up. Two dotted edges return: the approval gate sends the plan back to scope, and a blocking review finding sends the work back to implement for a bounded repair. A user gate then accepts, leading to retrospect and the next cycle. Release and observe sit outside the loop, behind a third user gate that authorises the external action.
    SC["scope · spec, risk tier, acceptance criteria"] --> G1{{"USER · approve the spec"}}
    G1 -. "send back" .-> SC
    G1 --> IM["implement · test first when behaviour changes"]
    IM --> VF["verify · deterministic checks"]
    VF --> RV["review · fresh context<br/>targeted lenses + other primary at substantial+"]
    RV -. "blocking finding" .-> IM
    RV --> G2{{"USER · accept"}}
    G2 --> RT["retrospect"]
    G2 -. "only if it ships" .-> G3{{"USER · authorise the action"}}
    G3 --> RL["release · observe"]

    classDef gate fill:#8a6d1f,stroke:#f0c674,color:#ffffff,stroke-width:2px
    class G1,G2,G3 gate
Loading

Gold hexagons are user gates; specification approval and acceptance can also return work for revision. Scoping is usually a conversation: a decision packet with choices and a recommendation, owner calls parked as named questions rather than guesses, and the grill-me interview, one question per round, while material decisions stay unresolved.

The loop is deliver, the kernel binding one run to one receipt; implement is its software front door, and the full lifecycle lives in docs/ARCHITECTURE.md.

What the harness guarantees

Review pressure scales with the risk tier the work is scoped at. Four tiers run from routine through substantial and crucial to terminal, each adding pressure to the one below: the chair plus objective and native checks at the bottom, targeted lenses and an other-primary review from substantial up, a distinct-family review at crucial, and adversarial pressure at terminal. HARNESS.md is the single source of truth for the thresholds.

Solo routine work still completes, but substantial and above cannot reach acceptance with the other-primary leg missing. Distinct-family review applies from crucial upwards when available; a skipped distinct-family leg records its reason. Evidence and corroboration, not model votes, make a finding blocking.

Durable boundaries hold regardless of tier:

  • access and credentials never grant authority;
  • creating branches and worktrees for implementation is pre-authorised; merge authority comes from the owning repository (this repo grants it through its GitHub runbook); deletion beyond post-merge pruning, force-removal and unauthorised shared-branch pushes stay gated;
  • no two agents write one source surface at once; and
  • specification approval, acceptance and release stay separate user decisions (HARNESS.md).

Provider workers can be dispatched through Fabric MCP or the direct command line; both paths use the same orchestration owners and retain full output in run files. Fabric also carries messages, shared tasks and activity between agents. Herdr is optional: it observes and sends fire-and-forget steering; it does not provide wake, callback or completion delivery.

Skill library

The full 26-skill catalogue, grouped by area:

All 26 skills
Area Skills
Delivery session, scope, grill-me, deliver, implement, tdd, refactor, diagnose, code-review, evaluate, release, retrospect, work-map, setup-repo, tracker
Orchestration orchestrate, autopilot
Writing and documentation engineering-docs, engineering-writing, legal-writing, natural-writing
Design and diagrams ui-ux-design, prototype, d2-diagrams
Harness development skill-craft
Presentation caveman

Documentation and help

Historical archives, effort route maps, handoffs and superseded evaluation bundles were pruned from the working tree; they stay reachable at the docs-archive-2026-09-02 tag.

Legal: MIT licence · Notices · Third-party notices · Acknowledgements

About

Portable equal-primary Claude and Codex agent harness for a governed agentic SDLC

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages