Skip to content

Library Overview

The buddy-agent-harness package exports a library as well as the CLI. Everything the commands do is reachable as a function, so a script or another tool can run a command, initialize harnesses, or read a report without spawning a process.

The library is the package’s . export, built from src/index.ts. It is an ES module:

import { initializeHarnesses, run } from 'buddy-agent-harness'

Types are exported alongside the values and are imported the same way:

import type { InitializeOptions, InitializeResult } from 'buddy-agent-harness'
PageCovers
Init and runrun, the CLI entry point, and initializeHarnesses with the init command objects
ReferencesreferenceLayers, resolveReference, listReferences, searchReferences, and referenceCommand: reading reference documents through the layered tiers
MCP and the harness registryharnessRegistry, the MCP server inventory listMcpServers, the golden-set check diagnoseMcp, and the shared MCP server model
DoctordiagnoseBridges, diagnoseInstructions, buildDoctorReport, the doctor command object, and the repair tables behind the doctor skill
Governance (deprecated)The deprecated governance override layers, resolveGovernance, listGovernances, and governanceCommand, with the reference export that replaces each