agent-harness-observability

agent-harness-observability is a skill for Claude Code, Codex from sjarmak/coding-agent-workflows. It costs 30 tokens per session (1,215 once invoked), scanned A, original, MIT.

A guide to observing an agent harness, the software that runs an agent and its tools. It covers events, traces, usage measurements, recovery, and privacy.

In plain words
What is it for?
Use it to design event records, track model and tool activity, recover incomplete streams, account for usage, and audit what data is collected.
Why use it?
It helps you know what the agent did, in what order, and whether records were lost during streaming, cancellation, or parallel work. It also separates operational records from product analytics and diagnostic details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to design event records, track model and tool activity, recover incomplete streams, account for usage, and audit what data is collected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/coding-agent-workflows/agent-harness-observability
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 sjarmak/coding-agent-workflows --skill agent-harness-observability
Clone the repo
git clone --depth 1 https://github.com/sjarmak/coding-agent-workflows

Made for: Claude Code, Codex.

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 agent-harness-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/agent-harness-observability/github.svg)](https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-observability)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-observability"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/agent-harness-observability/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 agent-harness-observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjarmak/coding-agent-workflows/agent-harness-observability"><img src="https://agentmods.dev/badge/skills/sjarmak/coding-agent-workflows/agent-harness-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,215 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.
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.00030 $0.01215
Opus 5.5 $0.00012 $0.00486
Sonnet 5.5 $0.00006 $0.00243
Haiku 4.5 $0.00003 $0.00121

Measured 1mo ago against content hash 94d75d25ae03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-harness-observability 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 1mo 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.

optional/skills/agent-harness-observability/SKILL.md · 113 lines

How it starts

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

Agent harness observability

Locate companion skills by name in the current host's skill catalog. If a companion skill is unavailable, use the provider's current help/schema and official documentation; do not assume a missing skill or command exists.

Separate live events, operational metrics, diagnostic traces, and product analytics. Identify which parts of the harness are owned locally and which are a hosted service before proposing changes.

Durable events and recovery

Define a versioned event contract for snapshots, turn/model activity, tool activity, compaction, and terminal outcomes. Include run and attempt identity, event identity, timestamp, ordering, and parent tool-call identity where relevant.

  • Allocate sequence numbers at an authority shared by all writers to the run. Per-process counters do not establish ordering across parallel workers.
  • Buffer fragmented tool-call arguments until structurally complete before dispatch. Record rejected, skipped, and cancelled calls as well as results.
  • Commit durable state before publishing its completion event. Use an outbox or equivalent recoverable mechanism when delivery is required; an in-memory queue does not survive worker death or an exhausted save retry.
  • For snapshot plus pub/sub, subscribe and buffer first, then read a consistent snapshot with a high-water sequence. Send the snapshot, discard buffered events already covered, and apply later events in order. Detect gaps and recover from durable state. Bound buffers and define overflow recovery.
  • Ephemeral deltas need their own cursor/replay contract if they must survive reconnect; a completed-turn snapshot cannot recover mid-turn text by itself. Use a durable event log when that guarantee is needed.
  • Persist terminal status before announcing it. Cleanup/finally/defer can help on ordinary exits, but cannot guarantee delivery after process death. A reconciler or lease recovery must resolve abandoned runs; reconnecting clients need a terminal snapshot even when the final publish was lost.
  • Best-effort UI publishing has bounded retries and observable failures. Financial and audit records need durable delivery and consumer deduplication.

Read the full file on GitHub · 113 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. 1mo ago First seen · 113 lines · 30 tokens per session scan A 94d75d25ae03

Subscribe to this mod's changes

agent-harness-observability is a skill published in the GitHub repository sjarmak/coding-agent-workflows (7 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 5.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-10-02.

Related

agent-harness-observability compared with skills from other repositories

agent-harness-observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-harness-observabilitysjarmak/coding-agent-workflowsSkill72d agoMITA30Claude Code, Codex
reverse-engineer-anythingmxyhi/ok-skillsSkill5189d agoApache-2.0A83Claude Code, Codex
browser-tracemxyhi/ok-skillsSkill5189d agoApache-2.0A88Claude Code
planning-with-filesmxyhi/ok-skillsSkill5189d agoApache-2.0A117Claude Code
bopomofo-rescuemxyhi/ok-skillsSkill5189d agoApache-2.0A332Claude Code
ai-elementsmxyhi/ok-skillsSkill5189d agoApache-2.0A46Claude Code, Codex
exa-searchmxyhi/ok-skillsSkill5189d agoApache-2.0A33Claude Code, Codex