@harness-lens/core
v0.0.1
Published
Deterministic discovery and structural analysis for AI harness files.
Maintainers
Readme
@harness-lens/core
Deterministic core for Harness Lens. It discovers, safely loads, normalizes, validates, measures, snapshots, and compares AI-agent harness files.
Recognized inputs:
AGENTS.mdCLAUDE.mdGEMINI.md.github/copilot-instructions.md.cursor/rules/*
import { scanRepository } from "@harness-lens/core";
const report = await scanRepository(process.cwd(), {
profile: "coding-agent/v1",
});Coverage is evaluated only when an explicit profile is selected. Alignment and cost remain not-evaluated until callers supply a concrete reference. Optional AI interpreters consume the completed report and cannot change deterministic metrics.
Pipeline
discover → load → normalize → validate → measure → snapshot → compare → renderThis 0.0.x API is intentionally small and may change before 1.0.0.
Development
npm install
npm test
npm run check
npm packBSD-3-Clause licensed.
