Harness Intelligence Wiki
HarnessFoundations

Harness Operating System

The operating baseline that makes AI-assisted engineering repeatable

Harness Intelligence is the shared operating baseline for AI-assisted engineering at Devpunks.

A harnessed repository has more than code and package scripts. It has prompt surfaces, scoped guidance, workflow skills, Codebase Rules, validation gates, required tools, wiki memory, an installed Registry Baseline, and feedback loops.

The operating system exists because agent work otherwise becomes private craft. One engineer may have a careful local setup, strong prompts, source inspection habits, browser validation, and review discipline. Another may only have a chat box. The harness narrows that spread by making the workflow inspectable and repeatable inside the repository.

Repeatable operating surfaces make agent work reviewable because they turn a run into a visible sequence: guidance loaded, skill contract chosen, evidence inspected, edits made, checks run, artifacts updated, blockers recorded. Review can then inspect the model of work instead of trusting the transcript or the final diff alone.

Boundary

Harness pages own the methodology:

  • how an agent receives context
  • which prompts and scoped guidance apply
  • which skills shape the lifecycle
  • which validation gates prove completion
  • how durable wiki knowledge is updated
  • how feedback from real repositories improves the baseline

The CLI domain owns hi / hint mechanics: the Registry client, Baseline install and Drift Check, Project settings in .devpunks/settings.json, the Installed Record in .devpunks/installed.json, local filesystem writes, and tool installation. Harness pages link to CLI mechanics when the reader needs command details.

The Registry is a static, public set of Registry Items in the shadcn registry format. It is served at https://api.harness-intelligence.devpunks.com/r, which is a rewrite to a Vercel Blob store. No API code serves it, and the CLI sends no credential to it. The control plane in apps/api owns reports and telemetry ingestion; the private backoffice shows them to operators. Neither surface changes a local repository. The CLI remains the local executor.

The telemetry boundary is narrow. The CLI emits one event, cli.harness.report.submitted, after hi report submits a report. hi init, hi update, hi diff, and hi check emit no telemetry. Telemetry is best-effort: a failed submission never blocks a command.

Operating Surfaces

Harness Intelligence is assembled from several surfaces that reinforce one another:

  • Prompt surfaces: the shared .agents/AGENTS.md, root and scoped AGENTS.md, memory notes, and the post-command handoff in .devpunks/AGENT-HANDOFF.md.
  • Skills: reusable contracts for requirements, planning, delivery, review, debugging, docs ingest, debt resolution, framework work, and quality work. Every harness reads them from .agents/skills/<id>.
  • Codebase Rules: project-owned invariants in .agents/rules/, activated by path and task triggers. No Registry Item writes them.
  • Packs: Registry groups of skills, lint assets, source guides, and tool runtimes. A Pack has one category: default, detected, surface, language, or optional. Detection never selects an optional Pack. hi init proposes Packs from repository facts; the settings packs list selects them. pack-core installs every time and carries the shared prompt, prompt specs, handoff, subagents, Harness links, hooks, managed lint, Commit Gate, source guide index, and required tools.
  • Validation gates: tests, typecheck, builds, browser checks, runtime evidence, review, manual checklists, and docs closeout.
  • Required tools: agent-browser, opensrc, portless, and skills, plus the tools that installed skills require and the provider CLI for the repository manager. See External Tool Contract.
  • Wiki: the routed private wiki is the single home for durable product, methodology, spec, runbook, and reference knowledge. A root docs/ tree is legacy input only. hi installs no wiki.
  • Distribution and feedback: Registry Baselines, hi check, hi diff, hi update, hi report, and the backoffice triage loop.

Registry Baseline

A Baseline is one immutable Registry version, named YYYY.MM.DD-<short sha>. A correction is a new Baseline. Publishing moves the latest field of the root registry.json; that pointer is the only channel. No stable channel and no promotion step exist.

Each Baseline catalog carries a cliVersionRange. The publisher reads it from the Compatibility: line under ## Unreleased in BASELINE_CHANGELOG.md. When the running CLI is outside that range, hi init and hi update refuse the Baseline and write nothing. hi check reports the same mismatch. The fix is hi upgrade.

Lifecycle Shape

The adoption path is intentionally ordinary:

  • hi init runs once per repository. It detects the repository, proposes Packs and Software Scopes, confirms providers and the Commit Gate policy, writes .devpunks/settings.json, and then runs the hi update pipeline. Run it again to change Packs or providers; it pre-fills the current settings.
  • hi update always installs the latest Baseline for the settings packs. It has no version pin. It never writes settings.
  • hi check compares the installed Baseline with the latest one and reports missing tools. It never checks drift.
  • hi diff runs a Drift Check per managed path and writes nothing.

After the install, the agent activates $hi-cli and follows the handoff. It authors root and scoped AGENTS.md files, tailors the subagent manifest, and reviews lint scopes. Then it runs the project's wiki structure check and, when the wiki needs initial context, $docs-onboarding. Day-to-day work then moves through entrypoint-driven manual skills or AFK phase wrappers, depending on the task and the operator's chosen mode.

The CLI handles distribution. The methodology decides why each asset exists and how work moves from unclear intent to validated closeout.

For setup details, start with Basic Usage, the CLI scaffolding runbook, and the CLI Domain. For supported work, start with Harness Entry Points, then choose the page that matches the current job.

Done Signal

A harness run is done when the requested scope is implemented or honestly blocked, the relevant checks produced evidence, review has no unresolved blocking finding, docs ingest was handled when durable knowledge changed, and follow-up reports or backlog updates are synchronized when they are in scope.

The operating system gives the team artifacts that show how care was applied: the chosen workflow, the evidence behind decisions, the validation result, and the durable record that future work can reuse.

On this page