harn-control-events

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

A guide for handling stop and direction-change commands during a running Harn agent session.

In plain words
What is it for?
Use it when implementing cancellation, course changes, loop handling, cleanup of session-owned processes, and terminal records.
Why use it?
It ensures the agent stops promptly, terminates work it started, and records that a person issued the control.

Skill for Claude Code

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

Good fit Use it when implementing cancellation, course changes, loop handling, cleanup of session-owned processes, and terminal records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/burin-labs/harn/harn-control-events
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-control-events
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-control-events

README.md
[![agentmods](https://agentmods.dev/badge/skills/burin-labs/harn/harn-control-events/github.svg)](https://agentmods.dev/skills/burin-labs/harn/harn-control-events)
Your own site
<a href="https://agentmods.dev/skills/burin-labs/harn/harn-control-events"><img src="https://agentmods.dev/badge/skills/burin-labs/harn/harn-control-events/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-control-events

Your own site · 80×15
<a href="https://agentmods.dev/skills/burin-labs/harn/harn-control-events"><img src="https://agentmods.dev/badge/skills/burin-labs/harn/harn-control-events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 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.00029 $0.01285
Opus 5 $0.00015 $0.00642
Sonnet 5 $0.00006 $0.00257
Haiku 4.5 $0.00003 $0.00128

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

Security

Grade A, and why

harn-control-events 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 11d 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-control-events/SKILL.md · 110 lines

How it starts

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

Harn control events

A control event is a person telling a running session to stop or to change course. It is an event the session must answer, not a request it may finish its current plan first and then consider.

Pair this skill with [[harn-orchestration]] for where the loop drains injections, [[harn-agent]] for loop and terminal vocabulary, and [[harn-product-quality]] for what a host must show while a control is in flight.

The three things a stop has to do

A stop that does one or two of these is not a stop. Check all three separately, because the second and third fail silently while the first looks correct.

  1. The loop stops. No further iteration, model call, or tool dispatch after the control lands.
  2. What the session started dies. A cancelled agent that leaves a backgrounded command running has moved the work, not stopped it. Kill the handles owned by that session and no others.
  3. The record names the control. The run's terminal says a person stopped it. Without this, a stopped run and a run that merely produced nothing are the same row in every downstream report.

Point 3 is the one that rots. An accepted cancel is answered — the prompt returns stopReason: "cancelled" — so the turn settles normally and any tagging that fires only when a turn fails to settle never fires at all. Seal the terminal from the observed control, not from whether the turn looked finished.

Absence must not read as success

The dangerous shape is a control that names something that is not there.

  • A cancel naming an unregistered session must be loud: warn, and emit a ControlOutcome with status: "rejected" naming the session. Consuming the frame silently makes "nothing was cancelled" indistinguishable from "everything was cancelled".
  • Every control decision, accepted or rejected, gets a ControlOutcome carrying method, outcome, status, actor, target, and reason. Read the structured record; do not grep prose for the verdict.
  • A record that a control arrived is not a record that the loop stopped. Assert the loop counters after the control, not the frame before it.

Read the full file on GitHub · 110 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. 11d ago First seen · 110 lines · 29 tokens per session scan A a8c4037fc77a

Subscribe to this mod's changes

harn-control-events is a skill published in the GitHub repository burin-labs/harn (21 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 1,285 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.