harn-agent

harn-agent is a skill for Claude Code from burin-labs/harn. It costs 18 tokens per session (1,251 once invoked), scanned A, original, Apache-2.0.

A skill for building controllable agent loops, including workers, supervisors, tools, completion states, and recovery. It defines how sessions, authority, evidence, and lifecycle state are managed.

In plain words
What is it for?
Use it when designing agent sessions, delegated workers, supervisors, lifecycle controls, transcripts, replay, lineage, or audit behavior.
Why use it?
It helps keep long-running or delegated agent work traceable, resumable, and within explicit permissions.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it when designing agent sessions, delegated workers, supervisors, lifecycle controls, transcripts, replay, lineage, or audit behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/burin-labs/harn/harn-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add burin-labs/harn --skill harn-agent
Clone the repo
git clone --depth 1 https://github.com/burin-labs/harn

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harn-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/burin-labs/harn/harn-agent/github.svg)](https://agentmods.dev/skills/burin-labs/harn/harn-agent)
Your own site
<a href="https://agentmods.dev/skills/burin-labs/harn/harn-agent"><img src="https://agentmods.dev/badge/skills/burin-labs/harn/harn-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harn-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/burin-labs/harn/harn-agent"><img src="https://agentmods.dev/badge/skills/burin-labs/harn/harn-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,251 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01251
Opus 5 $0.00009 $0.00626
Sonnet 5 $0.00004 $0.00250
Haiku 4.5 $0.00002 $0.00125

Measured 9d ago against content hash aa1bfabf485b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

harn-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

crates/harn-skills/src/corpus/harn-agent/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Harn agents

Use this skill for agent_loop, agent sessions, workers, supervisors, tools, completion, and lifecycle controls.

Pair it with [[harn-orchestration]] for workflows, [[harn-testing]] for deterministic evidence, and [[harn-product-quality]] for user-facing behavior.

Ownership

  • Harn owns loop, lifecycle, transcript, replay, lineage, and audit semantics.
  • Hosts expose concrete capabilities and native approval UX.
  • Keep semantic policy in the runtime or harness, not duplicated in host prose.
  • Give each behavior one owner and project its state to every client.
  • Prefer a deep agent module with a small typed interface.
  • Do not infer lifecycle state by parsing assistant text.

Session identity

  • Give durable work a stable session id.
  • Preserve parent/child lineage for delegated work.
  • Carry workspace anchors and capability scope explicitly.
  • Resume from durable state rather than reconstructing from UI messages.
  • Treat transcript compaction as a state transition with continuity evidence.
  • Keep secrets and provider credentials out of transcripts.
  • Record the initiator and reason for lifecycle transitions.

Capabilities and approval

  • Grant only the capabilities required for the task.
  • Child policy intersects the parent ceiling; delegation must not widen it.
  • Let agents act autonomously inside approved, reversible scope.
  • Request approval for genuine ambiguity, destructive action, production impact, exceptional spend, or new authority.
  • Do not request approval for every ordinary tool call.
  • Make a rejected or expired approval a typed terminal or waiting state.
  • Route mutations through host-owned capabilities so undo and audit remain native to the product.

Loop design

  • Use agent_loop as the one public agent entry point. Use harness.llm.call or harness.llm.completion when the work is one model request, and keep interactive input and editor state in the host.
  • Build the flat AgentSpec with agent_options or agent_preset. Use its named model, execution, capability, lifecycle, context, and observability component records at narrower boundaries.
  • Bound iterations, tool duration, concurrency, tokens, and cost.
  • Use adaptive iteration budgets only when progress signals justify extension.
  • Register typed tools with closed input and result shapes.
  • Feed dispatch errors back as structured observations.
  • Use stop_after_successful_tools for terminal tools.
  • Prefer lifecycle events and progress records over recurring prose nudges.
  • Keep model routing and fallback policy explicit.
  • Built-in presets use named catalog ladders. Override routing with one owner (provider + model, inline models, or ladder) rather than splicing a caller route into the preset's catalog route.
  • Use a completion judge only for a claim it can actually evaluate.

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 133 lines · 18 tokens per session scan A aa1bfabf485b

Subscribe to this mod's changes

harn-agent is a skill published in the GitHub repository burin-labs/harn (21 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 1,251 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.