Harn providers

From burin-labs/harn · View interactive version

Harn providers is an AI agent skill from the GitHub repository burin-labs/harn. Use for Harn provider setup, model routing, provider capability matrices, and llm_call options.

How to use this skill

Skill file

Harn providers

Use this skill when wiring or debugging LLM providers, model routes, structured

output, connector providers, or provider readiness.

Pair it with [[harn-orchestration]] for workflow behavior and [[harn-testing]] for deterministic provider fixtures.

Start here

`llm_call` options

{schema, strict?, validation?, stream_abort?}.

capability denial is a terminal invalid_request; adapters must not drop it.

and prompt_cache_ttl require authored support because cache lowering is

provider-specific; TTL values must be listed in prompt_cache_ttls.

adapters must use the canonical lowering and preserve explicit caller markers.

Capability routing

auth from harness.llm.provider_catalog().providers. These are projections

of the authoritative catalog artifact; do not infer them from provider names.

request, stream, response, and error handling. Do not choose a builder or

parser independently from provider strings or response headers.

harness.llm.apply_reasoning_policy; do not branch on model IDs, providers,

families, or lineages in stdlib policy.

ladder: "<name>" for calls and harness.llm.model_ladder(name) when policy

or tooling needs to inspect the steps.

from the public call option effort; capability data may describe a wire

mechanic that callers never spell directly.

field reasoning_round_trip defaults to strip; use echo_signed only for

signed blocks and echo_same_key only with a typed history wire field.

resolve; admission belongs before rate limiting and provider transport.

Connector providers

Cost and reliability

Review checklist

Catalog and matrix commands

--input <response.json> for a downloaded Models.dev v2.0 response.

their values locally. Generation reads the committed cache without network.

measured tool behavior in Harn. Upstream tool flags aren't live-loop proof.

Maintain the live catalog

  1. Run the exact-source Harn CLI with authorized provider keys in its process

environment. Never put key values in arguments, source, reports, or a remote

file. Read the JSON coverage summary from refresh --live --json and the

full .harn-runs/provider_catalog/refresh.json evidence. A partial run

names skipped, empty, and failed adapters; zero observations is unmeasured, not a

clean catalog.

  1. Review the typed drift and source provenance. A model-index omission is a

retirement lead, not proof of deprecation. Verify identity and successor

against first-party release notes or the provider's current rate card.

Use provider list prices for the actual route; do not copy an aggregator's

floating cheapest-host price into a direct-provider row.

For a trusted release or pricing notice, run

harn run scripts/provider_catalog_notice.harn -- --notice <json> --provider <inference-provider> --model <inference-model>

with a configured own-key route. Harn's schema-constrained model extraction

produces a reviewable receipt and refuses ambiguous identities. A new model

becomes an incomplete proposal, with the original extraction in the receipt.

Each run extracts one change; split multi-change announcements into focused

notice records and track every residual fact.

Keep --apply off until the candidate is independently verified.

  1. For each new chat route with available credentials, run

harn provider tool-probe <provider> --model <id> --tool-format native --mode non-streaming --json true

and save its JSON report. Validate it with

harn provider tool-scorecard --tool-probe-report <report> --json.

Require live provider-adapter provenance and native_tool_probe in the exact

route's passed_probes before advertising native tools; saved responses,

legacy reports, and explicit --base-url overrides cannot certify that route.

Pass the report to the notice workflow with --tool-probe-report <report>;

missing or mismatched evidence leaves an incomplete proposal. Record

usage.cost_usd and keep an inaccessible route

explicitly unverified instead of treating an aggregator mirror as proof of

its direct adapter.

  1. Change the owning catalog fragments. Record deprecated and

superseded_by, preserve aliases, and move defaults off deprecated rows.

Pin curated support recommendations before generating projections. Check

downstream Burin overlays after the next Harn repin; Burin supplies its

credentials and product-specific aliases, while Harn owns route semantics.

  1. Regenerate the catalog, matrix, and support projections, run their checks

and the repository audit gate, then open a reviewable PR. Put measured

coverage, probe costs, skipped adapters, and unverified claims in its

summary. Never treat a file's existence or a green inventory count as proof

that a route served a tool call.

Verify

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.